]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.20 | |
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 | ||
49 | ||
50 | /*********************************************************************** | |
51 | * common.swg for wxPython | |
52 | * | |
53 | * Include only the function prototypes and such from SWIG's common.swg, | |
54 | * but not the runtime functions themselves. This helps keep the | |
55 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
56 | * anyway. | |
57 | * | |
58 | ************************************************************************/ | |
59 | ||
60 | #include <string.h> | |
61 | ||
62 | #if defined(_WIN32) || defined(__WIN32__) | |
63 | # if defined(_MSC_VER) | |
64 | # if defined(STATIC_LINKED) | |
65 | # define SWIGEXPORT(a) a | |
66 | # define SWIGIMPORT(a) extern a | |
67 | # else | |
68 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # endif | |
71 | # else | |
72 | # if defined(__BORLANDC__) | |
73 | # define SWIGEXPORT(a) a _export | |
74 | # define SWIGIMPORT(a) a _export | |
75 | # else | |
76 | # define SWIGEXPORT(a) a | |
77 | # define SWIGIMPORT(a) a | |
78 | # endif | |
79 | # endif | |
80 | #else | |
81 | # define SWIGEXPORT(a) a | |
82 | # define SWIGIMPORT(a) a | |
83 | #endif | |
84 | ||
85 | #ifdef SWIG_GLOBAL | |
86 | #define SWIGRUNTIME(a) SWIGEXPORT(a) | |
87 | #else | |
88 | #define SWIGRUNTIME(a) static a | |
89 | #endif | |
90 | ||
91 | ||
92 | #ifdef __cplusplus | |
93 | extern "C" { | |
94 | #endif | |
95 | ||
96 | typedef void *(*swig_converter_func)(void *); | |
97 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
98 | ||
99 | typedef struct swig_type_info { | |
9d1d5697 | 100 | const char *name; |
d14a1e28 RD |
101 | swig_converter_func converter; |
102 | const char *str; | |
9d1d5697 | 103 | void *clientdata; |
d14a1e28 RD |
104 | swig_dycast_func dcast; |
105 | struct swig_type_info *next; | |
106 | struct swig_type_info *prev; | |
107 | } swig_type_info; | |
108 | ||
109 | ||
110 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
112 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
114 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
116 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
117 | ||
118 | ||
119 | #ifdef __cplusplus | |
120 | } | |
9d1d5697 | 121 | |
d14a1e28 RD |
122 | #endif |
123 | ||
124 | /*********************************************************************** | |
125 | * pyrun.swg for wxPython | |
126 | * | |
127 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
128 | * but not the runtime functions themselves. This helps keep the | |
129 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
130 | * anyway. | |
131 | * | |
132 | ************************************************************************/ | |
133 | ||
134 | ||
135 | #include "Python.h" | |
136 | ||
137 | #ifdef __cplusplus | |
138 | extern "C" { | |
139 | #endif | |
140 | ||
141 | #define SWIG_PY_INT 1 | |
142 | #define SWIG_PY_FLOAT 2 | |
143 | #define SWIG_PY_STRING 3 | |
144 | #define SWIG_PY_POINTER 4 | |
145 | #define SWIG_PY_BINARY 5 | |
146 | ||
147 | /* Flags for pointer conversion */ | |
148 | ||
149 | #define SWIG_POINTER_EXCEPTION 0x1 | |
150 | #define SWIG_POINTER_DISOWN 0x2 | |
151 | ||
152 | /* Exception handling in wrappers */ | |
153 | #define SWIG_fail goto fail | |
154 | ||
155 | /* Constant information structure */ | |
156 | typedef struct swig_const_info { | |
157 | int type; | |
158 | char *name; | |
159 | long lvalue; | |
160 | double dvalue; | |
161 | void *pvalue; | |
162 | swig_type_info **ptype; | |
163 | } swig_const_info; | |
164 | ||
165 | ||
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_PackData(c, ptr, sz) \ | |
183 | SWIG_Python_PackData(c, ptr, sz) | |
184 | #define SWIG_UnpackData(c, ptr, sz) \ | |
185 | SWIG_Python_UnpackData(c, ptr, sz) | |
186 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
187 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
188 | #define SWIG_InstallConstants(d, constants) \ | |
189 | SWIG_Python_InstallConstants(d, constants) | |
190 | ||
191 | ||
192 | SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
193 | SWIGEXPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
194 | SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
195 | ||
196 | SWIGEXPORT(PyObject *) SWIG_Python_newvarlink(void); | |
197 | SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
198 | SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
199 | SWIGEXPORT(char *) SWIG_Python_PackData(char *c, void *, int); | |
200 | SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c, void *, int); | |
201 | SWIGEXPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
202 | SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
203 | ||
204 | ||
205 | /* Contract support */ | |
206 | ||
9d1d5697 | 207 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 208 | |
d14a1e28 RD |
209 | |
210 | #ifdef __cplusplus | |
211 | } | |
212 | #endif | |
213 | ||
214 | ||
215 | ||
216 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
217 | ||
218 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
219 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
220 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
221 | #define SWIGTYPE_p_wxTreeItemIdValue swig_types[3] | |
222 | #define SWIGTYPE_wxTreeItemIdValue swig_types[4] | |
223 | #define SWIGTYPE_p_wxCheckBox swig_types[5] | |
224 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[6] | |
225 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
226 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[8] | |
227 | #define SWIGTYPE_p_bool swig_types[9] | |
228 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[10] | |
229 | #define SWIGTYPE_p_wxItemContainer swig_types[11] | |
230 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[12] | |
231 | #define SWIGTYPE_p_wxPyListCtrl swig_types[13] | |
232 | #define SWIGTYPE_p_wxStaticLine swig_types[14] | |
233 | #define SWIGTYPE_p_wxControl swig_types[15] | |
234 | #define SWIGTYPE_p_wxPyControl swig_types[16] | |
235 | #define SWIGTYPE_p_wxGauge swig_types[17] | |
236 | #define SWIGTYPE_p_wxToolBarBase swig_types[18] | |
237 | #define SWIGTYPE_p_wxFont swig_types[19] | |
238 | #define SWIGTYPE_p_wxToggleButton swig_types[20] | |
239 | #define SWIGTYPE_p_wxRadioButton swig_types[21] | |
240 | #define SWIGTYPE_p_wxChoice swig_types[22] | |
e811c8ce RD |
241 | #define SWIGTYPE_p_wxMemoryDC swig_types[23] |
242 | #define SWIGTYPE_p_wxListItemAttr swig_types[24] | |
243 | #define SWIGTYPE_p_int swig_types[25] | |
244 | #define SWIGTYPE_p_wxSize swig_types[26] | |
245 | #define SWIGTYPE_p_wxDC swig_types[27] | |
246 | #define SWIGTYPE_p_wxListView swig_types[28] | |
247 | #define SWIGTYPE_p_wxIcon swig_types[29] | |
248 | #define SWIGTYPE_p_wxTextCtrl swig_types[30] | |
249 | #define SWIGTYPE_p_wxNotebook swig_types[31] | |
250 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
251 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
252 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
253 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
254 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
255 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
256 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
257 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
258 | #define SWIGTYPE_p_long swig_types[40] | |
259 | #define SWIGTYPE_p_wxEvtHandler swig_types[41] | |
260 | #define SWIGTYPE_p_wxListEvent swig_types[42] | |
261 | #define SWIGTYPE_p_wxListBox swig_types[43] | |
262 | #define SWIGTYPE_p_wxCheckListBox swig_types[44] | |
263 | #define SWIGTYPE_p_wxBookCtrl swig_types[45] | |
264 | #define SWIGTYPE_p_wxSpinButton swig_types[46] | |
265 | #define SWIGTYPE_p_wxButton swig_types[47] | |
266 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
267 | #define SWIGTYPE_p_wxRect swig_types[49] | |
268 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
269 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
270 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
271 | #define SWIGTYPE_p_wxTreeItemId swig_types[53] | |
272 | #define SWIGTYPE_p_wxComboBox swig_types[54] | |
273 | #define SWIGTYPE_p_wxHelpEvent swig_types[55] | |
274 | #define SWIGTYPE_p_wxListItem swig_types[56] | |
275 | #define SWIGTYPE_p_wxNotebookSizer swig_types[57] | |
276 | #define SWIGTYPE_p_wxGenericDragImage swig_types[58] | |
277 | #define SWIGTYPE_p_wxSpinCtrl swig_types[59] | |
278 | #define SWIGTYPE_p_wxImageList swig_types[60] | |
279 | #define SWIGTYPE_p_wxHelpProvider swig_types[61] | |
280 | #define SWIGTYPE_p_wxTextAttr swig_types[62] | |
281 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[63] | |
282 | #define SWIGTYPE_p_wxPoint swig_types[64] | |
283 | #define SWIGTYPE_p_wxListbookEvent swig_types[65] | |
284 | #define SWIGTYPE_p_wxNotebookEvent swig_types[66] | |
285 | #define SWIGTYPE_p_wxObject swig_types[67] | |
286 | #define SWIGTYPE_p_wxCursor swig_types[68] | |
287 | #define SWIGTYPE_p_wxKeyEvent swig_types[69] | |
288 | #define SWIGTYPE_p_wxWindow swig_types[70] | |
289 | #define SWIGTYPE_p_wxString swig_types[71] | |
290 | #define SWIGTYPE_p_wxBitmap swig_types[72] | |
291 | #define SWIGTYPE_p_wxTreeEvent swig_types[73] | |
292 | #define SWIGTYPE_p_wxMouseEvent swig_types[74] | |
293 | #define SWIGTYPE_p_wxCommandEvent swig_types[75] | |
294 | #define SWIGTYPE_p_wxStaticText swig_types[76] | |
295 | #define SWIGTYPE_p_wxControlWithItems swig_types[77] | |
296 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[78] | |
297 | #define SWIGTYPE_p_wxColour swig_types[79] | |
298 | #define SWIGTYPE_p_wxToolBar swig_types[80] | |
299 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[81] | |
300 | #define SWIGTYPE_p_wxValidator swig_types[82] | |
301 | static swig_type_info *swig_types[84]; | |
d14a1e28 RD |
302 | |
303 | /* -------- TYPES TABLE (END) -------- */ | |
304 | ||
305 | ||
306 | /*----------------------------------------------- | |
307 | @(target):= _controls.so | |
308 | ------------------------------------------------*/ | |
309 | #define SWIG_init init_controls | |
310 | ||
311 | #define SWIG_name "_controls" | |
312 | ||
313 | #include "wx/wxPython/wxPython.h" | |
314 | #include "wx/wxPython/pyclasses.h" | |
315 | ||
316 | DECLARE_DEF_STRING(PanelNameStr); | |
317 | DECLARE_DEF_STRING(EmptyString); | |
318 | DECLARE_DEF_STRING(ControlNameStr); | |
319 | ||
320 | ||
321 | ||
322 | DECLARE_DEF_STRING(ButtonNameStr); | |
323 | ||
324 | ||
325 | DECLARE_DEF_STRING(CheckBoxNameStr); | |
326 | ||
327 | ||
328 | DECLARE_DEF_STRING(ChoiceNameStr); | |
329 | ||
330 | ||
331 | DECLARE_DEF_STRING(ComboBoxNameStr); | |
332 | ||
333 | ||
334 | DECLARE_DEF_STRING(GaugeNameStr); | |
335 | ||
336 | ||
337 | DECLARE_DEF_STRING(StaticBitmapNameStr); | |
338 | DECLARE_DEF_STRING(StaticBoxNameStr); | |
339 | DECLARE_DEF_STRING(StaticTextNameStr); | |
340 | ||
341 | ||
342 | #include <wx/checklst.h> | |
343 | ||
344 | DECLARE_DEF_STRING(ListBoxNameStr); | |
345 | ||
346 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ | |
347 | if (clientData) { | |
348 | wxPyClientData* data = new wxPyClientData(clientData); | |
349 | self->Insert(item, pos, data); | |
350 | } else | |
351 | self->Insert(item, pos); | |
352 | } | |
353 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
354 | wxArrayInt lst; | |
355 | self->GetSelections(lst); | |
356 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
357 | for(size_t i=0; i<lst.GetCount(); i++) { | |
358 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
359 | } | |
360 | return tup; | |
361 | } | |
362 | ||
363 | DECLARE_DEF_STRING(TextCtrlNameStr); | |
364 | ||
365 | ||
366 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
367 | PyObject* o2; | |
368 | PyObject* o3; | |
369 | ||
370 | if (!target) { | |
371 | target = o; | |
372 | } else if (target == Py_None) { | |
373 | Py_DECREF(Py_None); | |
374 | target = o; | |
375 | } else { | |
376 | if (!PyTuple_Check(target)) { | |
377 | o2 = target; | |
378 | target = PyTuple_New(1); | |
379 | PyTuple_SetItem(target, 0, o2); | |
380 | } | |
381 | o3 = PyTuple_New(1); | |
382 | PyTuple_SetItem(o3, 0, o); | |
383 | ||
384 | o2 = target; | |
385 | target = PySequence_Concat(o2, o3); | |
386 | Py_DECREF(o2); | |
387 | Py_DECREF(o3); | |
388 | } | |
389 | return target; | |
390 | } | |
391 | ||
392 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
393 | self->AppendText(text); | |
394 | } | |
395 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
396 | return self->GetValue().Mid(from, to - from); | |
397 | } | |
398 | ||
399 | DECLARE_DEF_STRING(ScrollBarNameStr); | |
400 | ||
401 | ||
402 | DECLARE_DEF_STRING(SPIN_BUTTON_NAME); | |
403 | wxChar* wxSpinCtrlNameStr = _T("wxSpinCtrl"); | |
404 | DECLARE_DEF_STRING(SpinCtrlNameStr); | |
405 | ||
406 | void wxSpinCtrl_SetSelection(wxSpinCtrl *self,long from,long to){ | |
407 | } | |
408 | ||
409 | DECLARE_DEF_STRING(RadioBoxNameStr); | |
410 | DECLARE_DEF_STRING(RadioButtonNameStr); | |
411 | ||
412 | int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; } | |
413 | int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; } | |
414 | int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; } | |
415 | ||
416 | #include <wx/slider.h> | |
417 | ||
418 | DECLARE_DEF_STRING(SliderNameStr); | |
419 | ||
420 | ||
421 | wxChar* wxToggleButtonNameStr = _T("wxToggleButton"); | |
422 | DECLARE_DEF_STRING(ToggleButtonNameStr); | |
423 | ||
424 | ||
425 | #ifdef __WXMAC__ | |
426 | // implement dummy classes and such for wxMac | |
427 | ||
428 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
429 | ||
430 | class wxToggleButton : public wxControl | |
431 | { | |
432 | public: | |
433 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
434 | const wxPoint&, const wxSize&, long, | |
435 | const wxValidator&, const wxString&) | |
436 | { PyErr_SetNone(PyExc_NotImplementedError); } | |
437 | ||
438 | wxToggleButton() | |
439 | { PyErr_SetNone(PyExc_NotImplementedError); } | |
440 | }; | |
441 | #endif | |
442 | ||
443 | ||
444 | DECLARE_DEF_STRING(NOTEBOOK_NAME); | |
445 | ||
446 | ||
447 | DECLARE_DEF_STRING(ToolBarNameStr); | |
448 | ||
449 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ | |
450 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
451 | if (udata) { | |
452 | Py_INCREF(udata->m_obj); | |
453 | return udata->m_obj; | |
454 | } else { | |
455 | Py_INCREF(Py_None); | |
456 | return Py_None; | |
457 | } | |
458 | } | |
459 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
460 | self->SetClientData(new wxPyUserData(clientData)); | |
461 | } | |
462 | 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){ | |
463 | wxPyUserData* udata = NULL; | |
464 | if (clientData && clientData != Py_None) | |
465 | udata = new wxPyUserData(clientData); | |
466 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
467 | shortHelp, longHelp, udata); | |
468 | } | |
469 | 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){ | |
470 | wxPyUserData* udata = NULL; | |
471 | if (clientData && clientData != Py_None) | |
472 | udata = new wxPyUserData(clientData); | |
473 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
474 | shortHelp, longHelp, udata); | |
475 | } | |
476 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
477 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
478 | if (udata) { | |
479 | Py_INCREF(udata->m_obj); | |
480 | return udata->m_obj; | |
481 | } else { | |
482 | Py_INCREF(Py_None); | |
483 | return Py_None; | |
484 | } | |
485 | } | |
486 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
487 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
488 | } | |
489 | ||
490 | #include <wx/listctrl.h> | |
491 | ||
492 | const wxChar* wxListCtrlNameStr = _T("wxListCtrl"); | |
493 | DECLARE_DEF_STRING(ListCtrlNameStr); | |
494 | ||
495 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } | |
496 | // Python aware sorting function for wxPyListCtrl | |
497 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
498 | int retval = 0; | |
499 | PyObject* func = (PyObject*)funcPtr; | |
500 | wxPyBeginBlockThreads(); | |
501 | ||
502 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
503 | PyObject* result = PyEval_CallObject(func, args); | |
504 | Py_DECREF(args); | |
505 | if (result) { | |
506 | retval = PyInt_AsLong(result); | |
507 | Py_DECREF(result); | |
508 | } | |
509 | ||
510 | wxPyEndBlockThreads(); | |
511 | return retval; | |
512 | } | |
513 | ||
514 | // C++ Version of a Python aware class | |
515 | class wxPyListCtrl : public wxListCtrl { | |
516 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
517 | public: | |
518 | wxPyListCtrl() : wxListCtrl() {} | |
519 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
520 | const wxPoint& pos, | |
521 | const wxSize& size, | |
522 | long style, | |
523 | const wxValidator& validator, | |
524 | const wxString& name) : | |
525 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
526 | ||
527 | bool Create(wxWindow* parent, wxWindowID id, | |
528 | const wxPoint& pos, | |
529 | const wxSize& size, | |
530 | long style, | |
531 | const wxValidator& validator, | |
532 | const wxString& name) { | |
533 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
534 | } | |
535 | ||
536 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
537 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
538 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
539 | ||
540 | PYPRIVATE; | |
541 | }; | |
542 | ||
543 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
544 | ||
545 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
546 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
547 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
548 | ||
549 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
550 | wxListItem item; | |
551 | item.SetMask( wxLIST_MASK_STATE | | |
552 | wxLIST_MASK_TEXT | | |
553 | wxLIST_MASK_IMAGE | | |
554 | wxLIST_MASK_DATA | | |
555 | wxLIST_SET_ITEM | | |
556 | wxLIST_MASK_WIDTH | | |
557 | wxLIST_MASK_FORMAT | |
558 | ); | |
559 | if (self->GetColumn(col, item)) | |
560 | return new wxListItem(item); | |
561 | else | |
562 | return NULL; | |
563 | } | |
564 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
565 | wxListItem* info = new wxListItem; | |
566 | info->m_itemId = itemId; | |
567 | info->m_col = col; | |
568 | info->m_mask = 0xFFFF; | |
569 | self->GetItem(*info); | |
570 | return info; | |
571 | } | |
572 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
573 | wxPoint pos; | |
574 | self->GetItemPosition(item, pos); | |
575 | return pos; | |
576 | } | |
577 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
578 | wxRect rect; | |
579 | self->GetItemRect(item, rect, code); | |
580 | return rect; | |
581 | } | |
582 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
583 | if (!PyCallable_Check(func)) | |
e811c8ce | 584 | return False; |
d14a1e28 RD |
585 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
586 | } | |
587 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
588 | ||
589 | ||
590 | ||
591 | return (wxWindow*)self->m_mainWin; | |
592 | ||
593 | } | |
594 | ||
595 | #include <wx/treectrl.h> | |
596 | #include "wx/wxPython/pytree.h" | |
597 | ||
598 | const wxChar* wx_TreeCtrlNameStr = _T("wxTreeCtrl"); | |
599 | DECLARE_DEF_STRING(_TreeCtrlNameStr); | |
600 | ||
601 | bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){ | |
e811c8ce | 602 | if (!other) return False; |
d14a1e28 RD |
603 | return *self == *other; |
604 | } | |
605 | bool wxTreeItemId_operator_Ne___(wxTreeItemId *self,wxTreeItemId const *other){ | |
e811c8ce | 606 | if (!other) return True; |
d14a1e28 RD |
607 | return *self != *other; |
608 | } | |
609 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
610 | // C++ version of Python aware wxTreeCtrl | |
611 | class wxPyTreeCtrl : public wxTreeCtrl { | |
612 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
613 | public: | |
614 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
615 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
616 | const wxPoint& pos, | |
617 | const wxSize& size, | |
618 | long style, | |
619 | const wxValidator& validator, | |
620 | const wxString& name) : | |
621 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
622 | ||
623 | bool Create(wxWindow *parent, wxWindowID id, | |
624 | const wxPoint& pos, | |
625 | const wxSize& size, | |
626 | long style, | |
627 | const wxValidator& validator, | |
628 | const wxString& name) { | |
629 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
630 | } | |
631 | ||
632 | ||
633 | int OnCompareItems(const wxTreeItemId& item1, | |
634 | const wxTreeItemId& item2) { | |
635 | int rval = 0; | |
636 | bool found; | |
637 | wxPyBeginBlockThreads(); | |
638 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
e811c8ce RD |
639 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
640 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
641 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
642 | Py_DECREF(o1); | |
643 | Py_DECREF(o2); | |
644 | } | |
645 | wxPyEndBlockThreads(); | |
646 | if (! found) | |
647 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
648 | return rval; | |
649 | } | |
650 | PYPRIVATE; | |
651 | }; | |
652 | ||
653 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
654 | ||
655 | ||
656 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
657 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
658 | if (data == NULL) { | |
659 | data = new wxPyTreeItemData(); | |
660 | data->SetId(item); // set the id | |
661 | self->SetItemData(item, data); | |
662 | } | |
663 | return data; | |
664 | } | |
665 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
666 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
667 | if (data == NULL) { | |
668 | data = new wxPyTreeItemData(); | |
669 | data->SetId(item); // set the id | |
670 | self->SetItemData(item, data); | |
671 | } | |
672 | return data->GetData(); | |
673 | } | |
674 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
675 | data->SetId(item); // set the id | |
676 | self->SetItemData(item, data); | |
677 | } | |
678 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
679 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
680 | if (data == NULL) { | |
681 | data = new wxPyTreeItemData(obj); | |
682 | data->SetId(item); // set the id | |
683 | self->SetItemData(item, data); | |
684 | } else | |
685 | data->SetData(obj); | |
686 | } | |
687 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
688 | wxPyBeginBlockThreads(); | |
689 | PyObject* rval = PyList_New(0); | |
690 | wxArrayTreeItemIds array; | |
691 | size_t num, x; | |
692 | num = self->GetSelections(array); | |
693 | for (x=0; x < num; x++) { | |
694 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
e811c8ce | 695 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
696 | PyList_Append(rval, item); |
697 | } | |
698 | wxPyEndBlockThreads(); | |
699 | return rval; | |
700 | } | |
701 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
702 | wxTreeItemIdValue cookie = 0; | |
703 | wxTreeItemId ritem = self->GetFirstChild(item, cookie); | |
704 | wxPyBeginBlockThreads(); | |
705 | PyObject* tup = PyTuple_New(2); | |
e811c8ce RD |
706 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(&ritem, wxT("wxTreeItemId"), True)); |
707 | PyTuple_SET_ITEM(tup, 1, wxPyConstructObject(cookie, wxT("wxTreeItemIdValue"), True)); | |
d14a1e28 RD |
708 | wxPyEndBlockThreads(); |
709 | return tup; | |
710 | } | |
711 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,wxTreeItemIdValue &cookie){ | |
712 | wxTreeItemId ritem = self->GetNextChild(item, cookie); | |
713 | wxPyBeginBlockThreads(); | |
714 | PyObject* tup = PyTuple_New(2); | |
e811c8ce RD |
715 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(&ritem, wxT("wxTreeItemId"), True)); |
716 | PyTuple_SET_ITEM(tup, 1, wxPyConstructObject(cookie, wxT("wxTreeItemIdValue"), True)); | |
d14a1e28 RD |
717 | wxPyEndBlockThreads(); |
718 | return tup; | |
719 | } | |
720 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
721 | wxRect rect; | |
722 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
723 | wxPyBeginBlockThreads(); | |
724 | wxRect* r = new wxRect(rect); | |
e811c8ce | 725 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
d14a1e28 RD |
726 | wxPyEndBlockThreads(); |
727 | return val; | |
728 | } | |
729 | else | |
730 | RETURN_NONE(); | |
731 | } | |
732 | ||
733 | DECLARE_DEF_STRING(DirDialogDefaultFolderStr); | |
734 | ||
735 | // C++ version of Python aware wxControl | |
736 | class wxPyControl : public wxControl | |
737 | { | |
738 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
739 | public: | |
740 | wxPyControl() : wxControl() {} | |
741 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
742 | const wxPoint& pos = wxDefaultPosition, | |
743 | const wxSize& size = wxDefaultSize, | |
744 | long style = 0, | |
745 | const wxValidator& validator=wxDefaultValidator, | |
746 | const wxString& name = wxPyControlNameStr) | |
747 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
748 | ||
749 | ||
750 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
751 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
752 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
753 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
754 | ||
755 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
756 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
757 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
758 | ||
759 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
760 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
761 | ||
762 | DEC_PYCALLBACK__(InitDialog); | |
763 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
764 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
765 | DEC_PYCALLBACK_BOOL_(Validate); | |
766 | ||
767 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
768 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
769 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
770 | ||
771 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
772 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
773 | ||
774 | PYPRIVATE; | |
775 | }; | |
776 | ||
777 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
778 | ||
779 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
780 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
781 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
782 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
783 | ||
784 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
785 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
786 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
787 | ||
788 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
789 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
790 | ||
791 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
792 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
793 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
794 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
795 | ||
796 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
797 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
798 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
799 | ||
800 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
801 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
802 | ||
803 | ||
804 | ||
805 | ||
806 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
e811c8ce RD |
807 | |
808 | #include <wx/generic/dragimgg.h> | |
809 | ||
d14a1e28 RD |
810 | #ifdef __cplusplus |
811 | extern "C" { | |
812 | #endif | |
813 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
814 | PyObject *resultobj; | |
815 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 816 | int arg2 ; |
d14a1e28 RD |
817 | wxString *arg3 = 0 ; |
818 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
819 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
820 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
821 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
822 | long arg6 = (long) 0 ; | |
823 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
824 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
825 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
826 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
827 | wxButton *result; | |
e811c8ce | 828 | bool temp3 = False ; |
d14a1e28 RD |
829 | wxPoint temp4 ; |
830 | wxSize temp5 ; | |
e811c8ce | 831 | bool temp8 = False ; |
d14a1e28 RD |
832 | PyObject * obj0 = 0 ; |
833 | PyObject * obj2 = 0 ; | |
834 | PyObject * obj3 = 0 ; | |
835 | PyObject * obj4 = 0 ; | |
836 | PyObject * obj6 = 0 ; | |
837 | PyObject * obj7 = 0 ; | |
838 | char *kwnames[] = { | |
839 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
840 | }; | |
841 | ||
842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_Button",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
844 | { | |
845 | arg3 = wxString_in_helper(obj2); | |
846 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 847 | temp3 = True; |
d14a1e28 RD |
848 | } |
849 | if (obj3) { | |
850 | { | |
851 | arg4 = &temp4; | |
852 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
853 | } | |
854 | } | |
855 | if (obj4) { | |
856 | { | |
857 | arg5 = &temp5; | |
858 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
859 | } | |
860 | } | |
861 | if (obj6) { | |
862 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
863 | if (arg7 == NULL) { | |
864 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
865 | } | |
866 | } | |
867 | if (obj7) { | |
868 | { | |
869 | arg8 = wxString_in_helper(obj7); | |
870 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 871 | temp8 = True; |
d14a1e28 RD |
872 | } |
873 | } | |
874 | { | |
875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
876 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
877 | ||
878 | wxPyEndAllowThreads(__tstate); | |
879 | if (PyErr_Occurred()) SWIG_fail; | |
880 | } | |
881 | { | |
882 | resultobj = wxPyMake_wxObject(result); | |
883 | } | |
884 | { | |
885 | if (temp3) | |
886 | delete arg3; | |
887 | } | |
888 | { | |
889 | if (temp8) | |
890 | delete arg8; | |
891 | } | |
892 | return resultobj; | |
893 | fail: | |
894 | { | |
895 | if (temp3) | |
896 | delete arg3; | |
897 | } | |
898 | { | |
899 | if (temp8) | |
900 | delete arg8; | |
901 | } | |
902 | return NULL; | |
903 | } | |
904 | ||
905 | ||
906 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
907 | PyObject *resultobj; | |
908 | wxButton *result; | |
909 | char *kwnames[] = { | |
910 | NULL | |
911 | }; | |
912 | ||
913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
914 | { | |
915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
916 | result = (wxButton *)new wxButton(); | |
917 | ||
918 | wxPyEndAllowThreads(__tstate); | |
919 | if (PyErr_Occurred()) SWIG_fail; | |
920 | } | |
921 | { | |
922 | resultobj = wxPyMake_wxObject(result); | |
923 | } | |
924 | return resultobj; | |
925 | fail: | |
926 | return NULL; | |
927 | } | |
928 | ||
929 | ||
930 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
931 | PyObject *resultobj; | |
932 | wxButton *arg1 = (wxButton *) 0 ; | |
933 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 934 | int arg3 ; |
d14a1e28 RD |
935 | wxString *arg4 = 0 ; |
936 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
937 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
938 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
939 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
940 | long arg7 = (long) 0 ; | |
941 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
942 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
943 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
944 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
945 | bool result; | |
e811c8ce | 946 | bool temp4 = False ; |
d14a1e28 RD |
947 | wxPoint temp5 ; |
948 | wxSize temp6 ; | |
e811c8ce | 949 | bool temp9 = False ; |
d14a1e28 RD |
950 | PyObject * obj0 = 0 ; |
951 | PyObject * obj1 = 0 ; | |
952 | PyObject * obj3 = 0 ; | |
953 | PyObject * obj4 = 0 ; | |
954 | PyObject * obj5 = 0 ; | |
955 | PyObject * obj7 = 0 ; | |
956 | PyObject * obj8 = 0 ; | |
957 | char *kwnames[] = { | |
958 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
959 | }; | |
960 | ||
961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:Button_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
963 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
964 | { | |
965 | arg4 = wxString_in_helper(obj3); | |
966 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 967 | temp4 = True; |
d14a1e28 RD |
968 | } |
969 | if (obj4) { | |
970 | { | |
971 | arg5 = &temp5; | |
972 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
973 | } | |
974 | } | |
975 | if (obj5) { | |
976 | { | |
977 | arg6 = &temp6; | |
978 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
979 | } | |
980 | } | |
981 | if (obj7) { | |
982 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
983 | if (arg8 == NULL) { | |
984 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
985 | } | |
986 | } | |
987 | if (obj8) { | |
988 | { | |
989 | arg9 = wxString_in_helper(obj8); | |
990 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 991 | temp9 = True; |
d14a1e28 RD |
992 | } |
993 | } | |
994 | { | |
995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
996 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
997 | ||
998 | wxPyEndAllowThreads(__tstate); | |
999 | if (PyErr_Occurred()) SWIG_fail; | |
1000 | } | |
1001 | resultobj = PyInt_FromLong((long)result); | |
1002 | { | |
1003 | if (temp4) | |
1004 | delete arg4; | |
1005 | } | |
1006 | { | |
1007 | if (temp9) | |
1008 | delete arg9; | |
1009 | } | |
1010 | return resultobj; | |
1011 | fail: | |
1012 | { | |
1013 | if (temp4) | |
1014 | delete arg4; | |
1015 | } | |
1016 | { | |
1017 | if (temp9) | |
1018 | delete arg9; | |
1019 | } | |
1020 | return NULL; | |
1021 | } | |
1022 | ||
1023 | ||
1024 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1025 | PyObject *resultobj; | |
1026 | wxButton *arg1 = (wxButton *) 0 ; | |
1027 | PyObject * obj0 = 0 ; | |
1028 | char *kwnames[] = { | |
1029 | (char *) "self", NULL | |
1030 | }; | |
1031 | ||
1032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1034 | { | |
1035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1036 | (arg1)->SetDefault(); | |
1037 | ||
1038 | wxPyEndAllowThreads(__tstate); | |
1039 | if (PyErr_Occurred()) SWIG_fail; | |
1040 | } | |
1041 | Py_INCREF(Py_None); resultobj = Py_None; | |
1042 | return resultobj; | |
1043 | fail: | |
1044 | return NULL; | |
1045 | } | |
1046 | ||
1047 | ||
1048 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1049 | PyObject *resultobj; | |
1050 | wxSize result; | |
1051 | char *kwnames[] = { | |
1052 | NULL | |
1053 | }; | |
1054 | ||
1055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1056 | { | |
1057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1058 | result = wxButton::GetDefaultSize(); | |
1059 | ||
1060 | wxPyEndAllowThreads(__tstate); | |
1061 | if (PyErr_Occurred()) SWIG_fail; | |
1062 | } | |
1063 | { | |
1064 | wxSize * resultptr; | |
1065 | resultptr = new wxSize((wxSize &) result); | |
1066 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1067 | } | |
1068 | return resultobj; | |
1069 | fail: | |
1070 | return NULL; | |
1071 | } | |
1072 | ||
1073 | ||
1074 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1075 | PyObject *obj; | |
1076 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1077 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1078 | Py_INCREF(obj); | |
1079 | return Py_BuildValue((char *)""); | |
1080 | } | |
1081 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1082 | PyObject *resultobj; | |
1083 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1084 | int arg2 ; |
d14a1e28 RD |
1085 | wxBitmap *arg3 = 0 ; |
1086 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1087 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1088 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1089 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1090 | long arg6 = (long) wxBU_AUTODRAW ; | |
1091 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1092 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1093 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1094 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1095 | wxBitmapButton *result; | |
1096 | wxPoint temp4 ; | |
1097 | wxSize temp5 ; | |
e811c8ce | 1098 | bool temp8 = False ; |
d14a1e28 RD |
1099 | PyObject * obj0 = 0 ; |
1100 | PyObject * obj2 = 0 ; | |
1101 | PyObject * obj3 = 0 ; | |
1102 | PyObject * obj4 = 0 ; | |
1103 | PyObject * obj6 = 0 ; | |
1104 | PyObject * obj7 = 0 ; | |
1105 | char *kwnames[] = { | |
1106 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1107 | }; | |
1108 | ||
1109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_BitmapButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
1110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1111 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1112 | if (arg3 == NULL) { | |
1113 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1114 | } | |
1115 | if (obj3) { | |
1116 | { | |
1117 | arg4 = &temp4; | |
1118 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1119 | } | |
1120 | } | |
1121 | if (obj4) { | |
1122 | { | |
1123 | arg5 = &temp5; | |
1124 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1125 | } | |
1126 | } | |
1127 | if (obj6) { | |
1128 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1129 | if (arg7 == NULL) { | |
1130 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1131 | } | |
1132 | } | |
1133 | if (obj7) { | |
1134 | { | |
1135 | arg8 = wxString_in_helper(obj7); | |
1136 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1137 | temp8 = True; |
d14a1e28 RD |
1138 | } |
1139 | } | |
1140 | { | |
1141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1142 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1143 | ||
1144 | wxPyEndAllowThreads(__tstate); | |
1145 | if (PyErr_Occurred()) SWIG_fail; | |
1146 | } | |
1147 | { | |
1148 | resultobj = wxPyMake_wxObject(result); | |
1149 | } | |
1150 | { | |
1151 | if (temp8) | |
1152 | delete arg8; | |
1153 | } | |
1154 | return resultobj; | |
1155 | fail: | |
1156 | { | |
1157 | if (temp8) | |
1158 | delete arg8; | |
1159 | } | |
1160 | return NULL; | |
1161 | } | |
1162 | ||
1163 | ||
1164 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1165 | PyObject *resultobj; | |
1166 | wxBitmapButton *result; | |
1167 | char *kwnames[] = { | |
1168 | NULL | |
1169 | }; | |
1170 | ||
1171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1172 | { | |
1173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1174 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1175 | ||
1176 | wxPyEndAllowThreads(__tstate); | |
1177 | if (PyErr_Occurred()) SWIG_fail; | |
1178 | } | |
1179 | { | |
1180 | resultobj = wxPyMake_wxObject(result); | |
1181 | } | |
1182 | return resultobj; | |
1183 | fail: | |
1184 | return NULL; | |
1185 | } | |
1186 | ||
1187 | ||
1188 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1189 | PyObject *resultobj; | |
1190 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1191 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1192 | int arg3 ; |
d14a1e28 RD |
1193 | wxBitmap *arg4 = 0 ; |
1194 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1195 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1196 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1197 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1198 | long arg7 = (long) wxBU_AUTODRAW ; | |
1199 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1200 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1201 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1202 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1203 | bool result; | |
1204 | wxPoint temp5 ; | |
1205 | wxSize temp6 ; | |
e811c8ce | 1206 | bool temp9 = False ; |
d14a1e28 RD |
1207 | PyObject * obj0 = 0 ; |
1208 | PyObject * obj1 = 0 ; | |
1209 | PyObject * obj3 = 0 ; | |
1210 | PyObject * obj4 = 0 ; | |
1211 | PyObject * obj5 = 0 ; | |
1212 | PyObject * obj7 = 0 ; | |
1213 | PyObject * obj8 = 0 ; | |
1214 | char *kwnames[] = { | |
1215 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1216 | }; | |
1217 | ||
1218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:BitmapButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
1219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1220 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1221 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1222 | if (arg4 == NULL) { | |
1223 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1224 | } | |
1225 | if (obj4) { | |
1226 | { | |
1227 | arg5 = &temp5; | |
1228 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1229 | } | |
1230 | } | |
1231 | if (obj5) { | |
1232 | { | |
1233 | arg6 = &temp6; | |
1234 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1235 | } | |
1236 | } | |
1237 | if (obj7) { | |
1238 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1239 | if (arg8 == NULL) { | |
1240 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1241 | } | |
1242 | } | |
1243 | if (obj8) { | |
1244 | { | |
1245 | arg9 = wxString_in_helper(obj8); | |
1246 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1247 | temp9 = True; |
d14a1e28 RD |
1248 | } |
1249 | } | |
1250 | { | |
1251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1252 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1253 | ||
1254 | wxPyEndAllowThreads(__tstate); | |
1255 | if (PyErr_Occurred()) SWIG_fail; | |
1256 | } | |
1257 | resultobj = PyInt_FromLong((long)result); | |
1258 | { | |
1259 | if (temp9) | |
1260 | delete arg9; | |
1261 | } | |
1262 | return resultobj; | |
1263 | fail: | |
1264 | { | |
1265 | if (temp9) | |
1266 | delete arg9; | |
1267 | } | |
1268 | return NULL; | |
1269 | } | |
1270 | ||
1271 | ||
1272 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1273 | PyObject *resultobj; | |
1274 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1275 | wxBitmap result; | |
1276 | PyObject * obj0 = 0 ; | |
1277 | char *kwnames[] = { | |
1278 | (char *) "self", NULL | |
1279 | }; | |
1280 | ||
1281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1283 | { | |
1284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1285 | result = (arg1)->GetBitmapLabel(); | |
1286 | ||
1287 | wxPyEndAllowThreads(__tstate); | |
1288 | if (PyErr_Occurred()) SWIG_fail; | |
1289 | } | |
1290 | { | |
1291 | wxBitmap * resultptr; | |
1292 | resultptr = new wxBitmap((wxBitmap &) result); | |
1293 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1294 | } | |
1295 | return resultobj; | |
1296 | fail: | |
1297 | return NULL; | |
1298 | } | |
1299 | ||
1300 | ||
1301 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1302 | PyObject *resultobj; | |
1303 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1304 | wxBitmap result; | |
1305 | PyObject * obj0 = 0 ; | |
1306 | char *kwnames[] = { | |
1307 | (char *) "self", NULL | |
1308 | }; | |
1309 | ||
1310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1312 | { | |
1313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1314 | result = (arg1)->GetBitmapDisabled(); | |
1315 | ||
1316 | wxPyEndAllowThreads(__tstate); | |
1317 | if (PyErr_Occurred()) SWIG_fail; | |
1318 | } | |
1319 | { | |
1320 | wxBitmap * resultptr; | |
1321 | resultptr = new wxBitmap((wxBitmap &) result); | |
1322 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1323 | } | |
1324 | return resultobj; | |
1325 | fail: | |
1326 | return NULL; | |
1327 | } | |
1328 | ||
1329 | ||
1330 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1331 | PyObject *resultobj; | |
1332 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1333 | wxBitmap result; | |
1334 | PyObject * obj0 = 0 ; | |
1335 | char *kwnames[] = { | |
1336 | (char *) "self", NULL | |
1337 | }; | |
1338 | ||
1339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1341 | { | |
1342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1343 | result = (arg1)->GetBitmapFocus(); | |
1344 | ||
1345 | wxPyEndAllowThreads(__tstate); | |
1346 | if (PyErr_Occurred()) SWIG_fail; | |
1347 | } | |
1348 | { | |
1349 | wxBitmap * resultptr; | |
1350 | resultptr = new wxBitmap((wxBitmap &) result); | |
1351 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1352 | } | |
1353 | return resultobj; | |
1354 | fail: | |
1355 | return NULL; | |
1356 | } | |
1357 | ||
1358 | ||
1359 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1360 | PyObject *resultobj; | |
1361 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1362 | wxBitmap result; | |
1363 | PyObject * obj0 = 0 ; | |
1364 | char *kwnames[] = { | |
1365 | (char *) "self", NULL | |
1366 | }; | |
1367 | ||
1368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1370 | { | |
1371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1372 | result = (arg1)->GetBitmapSelected(); | |
1373 | ||
1374 | wxPyEndAllowThreads(__tstate); | |
1375 | if (PyErr_Occurred()) SWIG_fail; | |
1376 | } | |
1377 | { | |
1378 | wxBitmap * resultptr; | |
1379 | resultptr = new wxBitmap((wxBitmap &) result); | |
1380 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1381 | } | |
1382 | return resultobj; | |
1383 | fail: | |
1384 | return NULL; | |
1385 | } | |
1386 | ||
1387 | ||
1388 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1389 | PyObject *resultobj; | |
1390 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1391 | wxBitmap *arg2 = 0 ; | |
1392 | PyObject * obj0 = 0 ; | |
1393 | PyObject * obj1 = 0 ; | |
1394 | char *kwnames[] = { | |
1395 | (char *) "self",(char *) "bitmap", NULL | |
1396 | }; | |
1397 | ||
1398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1400 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1401 | if (arg2 == NULL) { | |
1402 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1403 | } | |
1404 | { | |
1405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1406 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1407 | ||
1408 | wxPyEndAllowThreads(__tstate); | |
1409 | if (PyErr_Occurred()) SWIG_fail; | |
1410 | } | |
1411 | Py_INCREF(Py_None); resultobj = Py_None; | |
1412 | return resultobj; | |
1413 | fail: | |
1414 | return NULL; | |
1415 | } | |
1416 | ||
1417 | ||
1418 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1419 | PyObject *resultobj; | |
1420 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1421 | wxBitmap *arg2 = 0 ; | |
1422 | PyObject * obj0 = 0 ; | |
1423 | PyObject * obj1 = 0 ; | |
1424 | char *kwnames[] = { | |
1425 | (char *) "self",(char *) "bitmap", NULL | |
1426 | }; | |
1427 | ||
1428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1430 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1431 | if (arg2 == NULL) { | |
1432 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1433 | } | |
1434 | { | |
1435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1436 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1437 | ||
1438 | wxPyEndAllowThreads(__tstate); | |
1439 | if (PyErr_Occurred()) SWIG_fail; | |
1440 | } | |
1441 | Py_INCREF(Py_None); resultobj = Py_None; | |
1442 | return resultobj; | |
1443 | fail: | |
1444 | return NULL; | |
1445 | } | |
1446 | ||
1447 | ||
1448 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1449 | PyObject *resultobj; | |
1450 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1451 | wxBitmap *arg2 = 0 ; | |
1452 | PyObject * obj0 = 0 ; | |
1453 | PyObject * obj1 = 0 ; | |
1454 | char *kwnames[] = { | |
1455 | (char *) "self",(char *) "bitmap", NULL | |
1456 | }; | |
1457 | ||
1458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1460 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1461 | if (arg2 == NULL) { | |
1462 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1463 | } | |
1464 | { | |
1465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1466 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1467 | ||
1468 | wxPyEndAllowThreads(__tstate); | |
1469 | if (PyErr_Occurred()) SWIG_fail; | |
1470 | } | |
1471 | Py_INCREF(Py_None); resultobj = Py_None; | |
1472 | return resultobj; | |
1473 | fail: | |
1474 | return NULL; | |
1475 | } | |
1476 | ||
1477 | ||
1478 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1479 | PyObject *resultobj; | |
1480 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1481 | wxBitmap *arg2 = 0 ; | |
1482 | PyObject * obj0 = 0 ; | |
1483 | PyObject * obj1 = 0 ; | |
1484 | char *kwnames[] = { | |
1485 | (char *) "self",(char *) "bitmap", NULL | |
1486 | }; | |
1487 | ||
1488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1490 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1491 | if (arg2 == NULL) { | |
1492 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1493 | } | |
1494 | { | |
1495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1496 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1497 | ||
1498 | wxPyEndAllowThreads(__tstate); | |
1499 | if (PyErr_Occurred()) SWIG_fail; | |
1500 | } | |
1501 | Py_INCREF(Py_None); resultobj = Py_None; | |
1502 | return resultobj; | |
1503 | fail: | |
1504 | return NULL; | |
1505 | } | |
1506 | ||
1507 | ||
1508 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject *resultobj; | |
1510 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1511 | int arg2 ; | |
1512 | int arg3 ; | |
1513 | PyObject * obj0 = 0 ; | |
1514 | char *kwnames[] = { | |
1515 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1516 | }; | |
1517 | ||
1518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:BitmapButton_SetMargins",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1520 | { | |
1521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1522 | (arg1)->SetMargins(arg2,arg3); | |
1523 | ||
1524 | wxPyEndAllowThreads(__tstate); | |
1525 | if (PyErr_Occurred()) SWIG_fail; | |
1526 | } | |
1527 | Py_INCREF(Py_None); resultobj = Py_None; | |
1528 | return resultobj; | |
1529 | fail: | |
1530 | return NULL; | |
1531 | } | |
1532 | ||
1533 | ||
1534 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1535 | PyObject *resultobj; | |
1536 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1537 | int result; | |
1538 | PyObject * obj0 = 0 ; | |
1539 | char *kwnames[] = { | |
1540 | (char *) "self", NULL | |
1541 | }; | |
1542 | ||
1543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1545 | { | |
1546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1547 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1548 | ||
1549 | wxPyEndAllowThreads(__tstate); | |
1550 | if (PyErr_Occurred()) SWIG_fail; | |
1551 | } | |
1552 | resultobj = PyInt_FromLong((long)result); | |
1553 | return resultobj; | |
1554 | fail: | |
1555 | return NULL; | |
1556 | } | |
1557 | ||
1558 | ||
1559 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1560 | PyObject *resultobj; | |
1561 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1562 | int result; | |
1563 | PyObject * obj0 = 0 ; | |
1564 | char *kwnames[] = { | |
1565 | (char *) "self", NULL | |
1566 | }; | |
1567 | ||
1568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1570 | { | |
1571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1572 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1573 | ||
1574 | wxPyEndAllowThreads(__tstate); | |
1575 | if (PyErr_Occurred()) SWIG_fail; | |
1576 | } | |
1577 | resultobj = PyInt_FromLong((long)result); | |
1578 | return resultobj; | |
1579 | fail: | |
1580 | return NULL; | |
1581 | } | |
1582 | ||
1583 | ||
1584 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1585 | PyObject *obj; | |
1586 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1587 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1588 | Py_INCREF(obj); | |
1589 | return Py_BuildValue((char *)""); | |
1590 | } | |
1591 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1592 | PyObject *resultobj; | |
1593 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1594 | int arg2 ; |
d14a1e28 RD |
1595 | wxString *arg3 = 0 ; |
1596 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1597 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1598 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1599 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1600 | long arg6 = (long) 0 ; | |
1601 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1602 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1603 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1604 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1605 | wxCheckBox *result; | |
e811c8ce | 1606 | bool temp3 = False ; |
d14a1e28 RD |
1607 | wxPoint temp4 ; |
1608 | wxSize temp5 ; | |
e811c8ce | 1609 | bool temp8 = False ; |
d14a1e28 RD |
1610 | PyObject * obj0 = 0 ; |
1611 | PyObject * obj2 = 0 ; | |
1612 | PyObject * obj3 = 0 ; | |
1613 | PyObject * obj4 = 0 ; | |
1614 | PyObject * obj6 = 0 ; | |
1615 | PyObject * obj7 = 0 ; | |
1616 | char *kwnames[] = { | |
1617 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1618 | }; | |
1619 | ||
1620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_CheckBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
1621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1622 | { | |
1623 | arg3 = wxString_in_helper(obj2); | |
1624 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 1625 | temp3 = True; |
d14a1e28 RD |
1626 | } |
1627 | if (obj3) { | |
1628 | { | |
1629 | arg4 = &temp4; | |
1630 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1631 | } | |
1632 | } | |
1633 | if (obj4) { | |
1634 | { | |
1635 | arg5 = &temp5; | |
1636 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1637 | } | |
1638 | } | |
1639 | if (obj6) { | |
1640 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1641 | if (arg7 == NULL) { | |
1642 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1643 | } | |
1644 | } | |
1645 | if (obj7) { | |
1646 | { | |
1647 | arg8 = wxString_in_helper(obj7); | |
1648 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1649 | temp8 = True; |
d14a1e28 RD |
1650 | } |
1651 | } | |
1652 | { | |
1653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1654 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1655 | ||
1656 | wxPyEndAllowThreads(__tstate); | |
1657 | if (PyErr_Occurred()) SWIG_fail; | |
1658 | } | |
1659 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1660 | { | |
1661 | if (temp3) | |
1662 | delete arg3; | |
1663 | } | |
1664 | { | |
1665 | if (temp8) | |
1666 | delete arg8; | |
1667 | } | |
1668 | return resultobj; | |
1669 | fail: | |
1670 | { | |
1671 | if (temp3) | |
1672 | delete arg3; | |
1673 | } | |
1674 | { | |
1675 | if (temp8) | |
1676 | delete arg8; | |
1677 | } | |
1678 | return NULL; | |
1679 | } | |
1680 | ||
1681 | ||
1682 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1683 | PyObject *resultobj; | |
1684 | wxCheckBox *result; | |
1685 | char *kwnames[] = { | |
1686 | NULL | |
1687 | }; | |
1688 | ||
1689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
1690 | { | |
1691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1692 | result = (wxCheckBox *)new wxCheckBox(); | |
1693 | ||
1694 | wxPyEndAllowThreads(__tstate); | |
1695 | if (PyErr_Occurred()) SWIG_fail; | |
1696 | } | |
1697 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1698 | return resultobj; | |
1699 | fail: | |
1700 | return NULL; | |
1701 | } | |
1702 | ||
1703 | ||
1704 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1705 | PyObject *resultobj; | |
1706 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1707 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1708 | int arg3 ; |
d14a1e28 RD |
1709 | wxString *arg4 = 0 ; |
1710 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1711 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1712 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1713 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1714 | long arg7 = (long) 0 ; | |
1715 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1716 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1717 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
1718 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1719 | bool result; | |
e811c8ce | 1720 | bool temp4 = False ; |
d14a1e28 RD |
1721 | wxPoint temp5 ; |
1722 | wxSize temp6 ; | |
e811c8ce | 1723 | bool temp9 = False ; |
d14a1e28 RD |
1724 | PyObject * obj0 = 0 ; |
1725 | PyObject * obj1 = 0 ; | |
1726 | PyObject * obj3 = 0 ; | |
1727 | PyObject * obj4 = 0 ; | |
1728 | PyObject * obj5 = 0 ; | |
1729 | PyObject * obj7 = 0 ; | |
1730 | PyObject * obj8 = 0 ; | |
1731 | char *kwnames[] = { | |
1732 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1733 | }; | |
1734 | ||
1735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:CheckBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
1736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1737 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1738 | { | |
1739 | arg4 = wxString_in_helper(obj3); | |
1740 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 1741 | temp4 = True; |
d14a1e28 RD |
1742 | } |
1743 | if (obj4) { | |
1744 | { | |
1745 | arg5 = &temp5; | |
1746 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1747 | } | |
1748 | } | |
1749 | if (obj5) { | |
1750 | { | |
1751 | arg6 = &temp6; | |
1752 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1753 | } | |
1754 | } | |
1755 | if (obj7) { | |
1756 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1757 | if (arg8 == NULL) { | |
1758 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1759 | } | |
1760 | } | |
1761 | if (obj8) { | |
1762 | { | |
1763 | arg9 = wxString_in_helper(obj8); | |
1764 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1765 | temp9 = True; |
d14a1e28 RD |
1766 | } |
1767 | } | |
1768 | { | |
1769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1770 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1771 | ||
1772 | wxPyEndAllowThreads(__tstate); | |
1773 | if (PyErr_Occurred()) SWIG_fail; | |
1774 | } | |
1775 | resultobj = PyInt_FromLong((long)result); | |
1776 | { | |
1777 | if (temp4) | |
1778 | delete arg4; | |
1779 | } | |
1780 | { | |
1781 | if (temp9) | |
1782 | delete arg9; | |
1783 | } | |
1784 | return resultobj; | |
1785 | fail: | |
1786 | { | |
1787 | if (temp4) | |
1788 | delete arg4; | |
1789 | } | |
1790 | { | |
1791 | if (temp9) | |
1792 | delete arg9; | |
1793 | } | |
1794 | return NULL; | |
1795 | } | |
1796 | ||
1797 | ||
1798 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1799 | PyObject *resultobj; | |
1800 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1801 | bool result; | |
1802 | PyObject * obj0 = 0 ; | |
1803 | char *kwnames[] = { | |
1804 | (char *) "self", NULL | |
1805 | }; | |
1806 | ||
1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
1808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1809 | { | |
1810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1811 | result = (bool)(arg1)->GetValue(); | |
1812 | ||
1813 | wxPyEndAllowThreads(__tstate); | |
1814 | if (PyErr_Occurred()) SWIG_fail; | |
1815 | } | |
1816 | resultobj = PyInt_FromLong((long)result); | |
1817 | return resultobj; | |
1818 | fail: | |
1819 | return NULL; | |
1820 | } | |
1821 | ||
1822 | ||
1823 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1824 | PyObject *resultobj; | |
1825 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1826 | bool result; | |
1827 | PyObject * obj0 = 0 ; | |
1828 | char *kwnames[] = { | |
1829 | (char *) "self", NULL | |
1830 | }; | |
1831 | ||
1832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
1833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1834 | { | |
1835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1836 | result = (bool)(arg1)->IsChecked(); | |
1837 | ||
1838 | wxPyEndAllowThreads(__tstate); | |
1839 | if (PyErr_Occurred()) SWIG_fail; | |
1840 | } | |
1841 | resultobj = PyInt_FromLong((long)result); | |
1842 | return resultobj; | |
1843 | fail: | |
1844 | return NULL; | |
1845 | } | |
1846 | ||
1847 | ||
1848 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1849 | PyObject *resultobj; | |
1850 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1851 | bool arg2 ; | |
1852 | PyObject * obj0 = 0 ; | |
1853 | PyObject * obj1 = 0 ; | |
1854 | char *kwnames[] = { | |
1855 | (char *) "self",(char *) "state", NULL | |
1856 | }; | |
1857 | ||
1858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
1859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1860 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
1861 | if (PyErr_Occurred()) SWIG_fail; | |
1862 | { | |
1863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1864 | (arg1)->SetValue(arg2); | |
1865 | ||
1866 | wxPyEndAllowThreads(__tstate); | |
1867 | if (PyErr_Occurred()) SWIG_fail; | |
1868 | } | |
1869 | Py_INCREF(Py_None); resultobj = Py_None; | |
1870 | return resultobj; | |
1871 | fail: | |
1872 | return NULL; | |
1873 | } | |
1874 | ||
1875 | ||
1876 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1877 | PyObject *resultobj; | |
1878 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1879 | int result; | |
1880 | PyObject * obj0 = 0 ; | |
1881 | char *kwnames[] = { | |
1882 | (char *) "self", NULL | |
1883 | }; | |
1884 | ||
1885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
1886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1887 | { | |
1888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1889 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
1890 | ||
1891 | wxPyEndAllowThreads(__tstate); | |
1892 | if (PyErr_Occurred()) SWIG_fail; | |
1893 | } | |
1894 | resultobj = PyInt_FromLong((long)result); | |
1895 | return resultobj; | |
1896 | fail: | |
1897 | return NULL; | |
1898 | } | |
1899 | ||
1900 | ||
1901 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1902 | PyObject *resultobj; | |
1903 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1904 | int arg2 ; | |
1905 | PyObject * obj0 = 0 ; | |
1906 | char *kwnames[] = { | |
1907 | (char *) "self",(char *) "state", NULL | |
1908 | }; | |
1909 | ||
1910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CheckBox_Set3StateValue",kwnames,&obj0,&arg2)) goto fail; | |
1911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1912 | { | |
1913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1914 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
1915 | ||
1916 | wxPyEndAllowThreads(__tstate); | |
1917 | if (PyErr_Occurred()) SWIG_fail; | |
1918 | } | |
1919 | Py_INCREF(Py_None); resultobj = Py_None; | |
1920 | return resultobj; | |
1921 | fail: | |
1922 | return NULL; | |
1923 | } | |
1924 | ||
1925 | ||
1926 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1927 | PyObject *resultobj; | |
1928 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1929 | bool result; | |
1930 | PyObject * obj0 = 0 ; | |
1931 | char *kwnames[] = { | |
1932 | (char *) "self", NULL | |
1933 | }; | |
1934 | ||
1935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
1936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1937 | { | |
1938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1939 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
1940 | ||
1941 | wxPyEndAllowThreads(__tstate); | |
1942 | if (PyErr_Occurred()) SWIG_fail; | |
1943 | } | |
1944 | resultobj = PyInt_FromLong((long)result); | |
1945 | return resultobj; | |
1946 | fail: | |
1947 | return NULL; | |
1948 | } | |
1949 | ||
1950 | ||
1951 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1952 | PyObject *resultobj; | |
1953 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1954 | bool result; | |
1955 | PyObject * obj0 = 0 ; | |
1956 | char *kwnames[] = { | |
1957 | (char *) "self", NULL | |
1958 | }; | |
1959 | ||
1960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
1961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1962 | { | |
1963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1964 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
1965 | ||
1966 | wxPyEndAllowThreads(__tstate); | |
1967 | if (PyErr_Occurred()) SWIG_fail; | |
1968 | } | |
1969 | resultobj = PyInt_FromLong((long)result); | |
1970 | return resultobj; | |
1971 | fail: | |
1972 | return NULL; | |
1973 | } | |
1974 | ||
1975 | ||
1976 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
1977 | PyObject *obj; | |
1978 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1979 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
1980 | Py_INCREF(obj); | |
1981 | return Py_BuildValue((char *)""); | |
1982 | } | |
1983 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1984 | PyObject *resultobj; | |
1985 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1986 | int arg2 ; |
d14a1e28 RD |
1987 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
1988 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1989 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1990 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1991 | int arg5 = (int) 0 ; | |
1992 | wxString *arg6 = (wxString *) NULL ; | |
1993 | long arg7 = (long) 0 ; | |
1994 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1995 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1996 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
1997 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1998 | wxChoice *result; | |
1999 | wxPoint temp3 ; | |
2000 | wxSize temp4 ; | |
e811c8ce | 2001 | bool temp8 = False ; |
d14a1e28 RD |
2002 | PyObject * obj0 = 0 ; |
2003 | PyObject * obj2 = 0 ; | |
2004 | PyObject * obj3 = 0 ; | |
2005 | PyObject * obj4 = 0 ; | |
2006 | PyObject * obj6 = 0 ; | |
2007 | PyObject * obj7 = 0 ; | |
2008 | char *kwnames[] = { | |
2009 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2010 | }; | |
2011 | ||
2012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_Choice",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
2013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2014 | if (obj2) { | |
2015 | { | |
2016 | arg3 = &temp3; | |
2017 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2018 | } | |
2019 | } | |
2020 | if (obj3) { | |
2021 | { | |
2022 | arg4 = &temp4; | |
2023 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2024 | } | |
2025 | } | |
2026 | if (obj4) { | |
2027 | { | |
2028 | arg5 = PyList_Size(obj4); | |
2029 | arg6 = wxString_LIST_helper(obj4); | |
2030 | if (arg6 == NULL) SWIG_fail; | |
2031 | } | |
2032 | } | |
2033 | if (obj6) { | |
2034 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2035 | if (arg8 == NULL) { | |
2036 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2037 | } | |
2038 | } | |
2039 | if (obj7) { | |
2040 | { | |
2041 | arg9 = wxString_in_helper(obj7); | |
2042 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2043 | temp8 = True; |
d14a1e28 RD |
2044 | } |
2045 | } | |
2046 | { | |
2047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2048 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2049 | ||
2050 | wxPyEndAllowThreads(__tstate); | |
2051 | if (PyErr_Occurred()) SWIG_fail; | |
2052 | } | |
2053 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2054 | { | |
2055 | if (arg6) delete [] arg6; | |
2056 | } | |
2057 | { | |
2058 | if (temp8) | |
2059 | delete arg9; | |
2060 | } | |
2061 | return resultobj; | |
2062 | fail: | |
2063 | { | |
2064 | if (arg6) delete [] arg6; | |
2065 | } | |
2066 | { | |
2067 | if (temp8) | |
2068 | delete arg9; | |
2069 | } | |
2070 | return NULL; | |
2071 | } | |
2072 | ||
2073 | ||
2074 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2075 | PyObject *resultobj; | |
2076 | wxChoice *result; | |
2077 | char *kwnames[] = { | |
2078 | NULL | |
2079 | }; | |
2080 | ||
2081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2082 | { | |
2083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2084 | result = (wxChoice *)new wxChoice(); | |
2085 | ||
2086 | wxPyEndAllowThreads(__tstate); | |
2087 | if (PyErr_Occurred()) SWIG_fail; | |
2088 | } | |
2089 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2090 | return resultobj; | |
2091 | fail: | |
2092 | return NULL; | |
2093 | } | |
2094 | ||
2095 | ||
2096 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2097 | PyObject *resultobj; | |
2098 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2099 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 2100 | int arg3 ; |
d14a1e28 RD |
2101 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2102 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2103 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2104 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2105 | int arg6 = (int) 0 ; | |
2106 | wxString *arg7 = (wxString *) NULL ; | |
2107 | long arg8 = (long) 0 ; | |
2108 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2109 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2110 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
2111 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2112 | bool result; | |
2113 | wxPoint temp4 ; | |
2114 | wxSize temp5 ; | |
e811c8ce | 2115 | bool temp9 = False ; |
d14a1e28 RD |
2116 | PyObject * obj0 = 0 ; |
2117 | PyObject * obj1 = 0 ; | |
2118 | PyObject * obj3 = 0 ; | |
2119 | PyObject * obj4 = 0 ; | |
2120 | PyObject * obj5 = 0 ; | |
2121 | PyObject * obj7 = 0 ; | |
2122 | PyObject * obj8 = 0 ; | |
2123 | char *kwnames[] = { | |
2124 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2125 | }; | |
2126 | ||
2127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:Choice_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
2128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2129 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2130 | if (obj3) { | |
2131 | { | |
2132 | arg4 = &temp4; | |
2133 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2134 | } | |
2135 | } | |
2136 | if (obj4) { | |
2137 | { | |
2138 | arg5 = &temp5; | |
2139 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2140 | } | |
2141 | } | |
2142 | if (obj5) { | |
2143 | { | |
2144 | arg6 = PyList_Size(obj5); | |
2145 | arg7 = wxString_LIST_helper(obj5); | |
2146 | if (arg7 == NULL) SWIG_fail; | |
2147 | } | |
2148 | } | |
2149 | if (obj7) { | |
2150 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2151 | if (arg9 == NULL) { | |
2152 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2153 | } | |
2154 | } | |
2155 | if (obj8) { | |
2156 | { | |
2157 | arg10 = wxString_in_helper(obj8); | |
2158 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 2159 | temp9 = True; |
d14a1e28 RD |
2160 | } |
2161 | } | |
2162 | { | |
2163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2164 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
2165 | ||
2166 | wxPyEndAllowThreads(__tstate); | |
2167 | if (PyErr_Occurred()) SWIG_fail; | |
2168 | } | |
2169 | resultobj = PyInt_FromLong((long)result); | |
2170 | { | |
2171 | if (arg7) delete [] arg7; | |
2172 | } | |
2173 | { | |
2174 | if (temp9) | |
2175 | delete arg10; | |
2176 | } | |
2177 | return resultobj; | |
2178 | fail: | |
2179 | { | |
2180 | if (arg7) delete [] arg7; | |
2181 | } | |
2182 | { | |
2183 | if (temp9) | |
2184 | delete arg10; | |
2185 | } | |
2186 | return NULL; | |
2187 | } | |
2188 | ||
2189 | ||
2190 | static PyObject *_wrap_Choice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2191 | PyObject *resultobj; | |
2192 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2193 | int result; | |
2194 | PyObject * obj0 = 0 ; | |
2195 | char *kwnames[] = { | |
2196 | (char *) "self", NULL | |
2197 | }; | |
2198 | ||
2199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choice_GetColumns",kwnames,&obj0)) goto fail; | |
2200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2201 | { | |
2202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2203 | result = (int)(arg1)->GetColumns(); | |
2204 | ||
2205 | wxPyEndAllowThreads(__tstate); | |
2206 | if (PyErr_Occurred()) SWIG_fail; | |
2207 | } | |
2208 | resultobj = PyInt_FromLong((long)result); | |
2209 | return resultobj; | |
2210 | fail: | |
2211 | return NULL; | |
2212 | } | |
2213 | ||
2214 | ||
2215 | static PyObject *_wrap_Choice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2216 | PyObject *resultobj; | |
2217 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2218 | int arg2 = (int) (int)1 ; | |
2219 | PyObject * obj0 = 0 ; | |
2220 | char *kwnames[] = { | |
2221 | (char *) "self",(char *) "n", NULL | |
2222 | }; | |
2223 | ||
2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Choice_SetColumns",kwnames,&obj0,&arg2)) goto fail; | |
2225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2226 | { | |
2227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2228 | (arg1)->SetColumns(arg2); | |
2229 | ||
2230 | wxPyEndAllowThreads(__tstate); | |
2231 | if (PyErr_Occurred()) SWIG_fail; | |
2232 | } | |
2233 | Py_INCREF(Py_None); resultobj = Py_None; | |
2234 | return resultobj; | |
2235 | fail: | |
2236 | return NULL; | |
2237 | } | |
2238 | ||
2239 | ||
2240 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2241 | PyObject *resultobj; | |
2242 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2243 | int arg2 ; | |
2244 | PyObject * obj0 = 0 ; | |
2245 | char *kwnames[] = { | |
2246 | (char *) "self",(char *) "n", NULL | |
2247 | }; | |
2248 | ||
2249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Choice_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
2250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2251 | { | |
2252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2253 | (arg1)->SetSelection(arg2); | |
2254 | ||
2255 | wxPyEndAllowThreads(__tstate); | |
2256 | if (PyErr_Occurred()) SWIG_fail; | |
2257 | } | |
2258 | Py_INCREF(Py_None); resultobj = Py_None; | |
2259 | return resultobj; | |
2260 | fail: | |
2261 | return NULL; | |
2262 | } | |
2263 | ||
2264 | ||
2265 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2266 | PyObject *resultobj; | |
2267 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2268 | wxString *arg2 = 0 ; | |
e811c8ce | 2269 | bool temp2 = False ; |
d14a1e28 RD |
2270 | PyObject * obj0 = 0 ; |
2271 | PyObject * obj1 = 0 ; | |
2272 | char *kwnames[] = { | |
2273 | (char *) "self",(char *) "string", NULL | |
2274 | }; | |
2275 | ||
2276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2278 | { | |
2279 | arg2 = wxString_in_helper(obj1); | |
2280 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2281 | temp2 = True; |
d14a1e28 RD |
2282 | } |
2283 | { | |
2284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2285 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2286 | ||
2287 | wxPyEndAllowThreads(__tstate); | |
2288 | if (PyErr_Occurred()) SWIG_fail; | |
2289 | } | |
2290 | Py_INCREF(Py_None); resultobj = Py_None; | |
2291 | { | |
2292 | if (temp2) | |
2293 | delete arg2; | |
2294 | } | |
2295 | return resultobj; | |
2296 | fail: | |
2297 | { | |
2298 | if (temp2) | |
2299 | delete arg2; | |
2300 | } | |
2301 | return NULL; | |
2302 | } | |
2303 | ||
2304 | ||
2305 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2306 | PyObject *resultobj; | |
2307 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2308 | int arg2 ; | |
2309 | wxString *arg3 = 0 ; | |
e811c8ce | 2310 | bool temp3 = False ; |
d14a1e28 RD |
2311 | PyObject * obj0 = 0 ; |
2312 | PyObject * obj2 = 0 ; | |
2313 | char *kwnames[] = { | |
2314 | (char *) "self",(char *) "n",(char *) "s", NULL | |
2315 | }; | |
2316 | ||
2317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Choice_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
2318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2319 | { | |
2320 | arg3 = wxString_in_helper(obj2); | |
2321 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2322 | temp3 = True; |
d14a1e28 RD |
2323 | } |
2324 | { | |
2325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2326 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2327 | ||
2328 | wxPyEndAllowThreads(__tstate); | |
2329 | if (PyErr_Occurred()) SWIG_fail; | |
2330 | } | |
2331 | Py_INCREF(Py_None); resultobj = Py_None; | |
2332 | { | |
2333 | if (temp3) | |
2334 | delete arg3; | |
2335 | } | |
2336 | return resultobj; | |
2337 | fail: | |
2338 | { | |
2339 | if (temp3) | |
2340 | delete arg3; | |
2341 | } | |
2342 | return NULL; | |
2343 | } | |
2344 | ||
2345 | ||
2346 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2347 | PyObject *obj; | |
2348 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2349 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2350 | Py_INCREF(obj); | |
2351 | return Py_BuildValue((char *)""); | |
2352 | } | |
2353 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2354 | PyObject *resultobj; | |
2355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 2356 | int arg2 ; |
d14a1e28 RD |
2357 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2358 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2359 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2360 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2361 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2362 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2363 | int arg6 = (int) 0 ; | |
2364 | wxString *arg7 = (wxString *) NULL ; | |
2365 | long arg8 = (long) 0 ; | |
2366 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2367 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2368 | wxString const &arg10_defvalue = wxPyComboBoxNameStr ; | |
2369 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2370 | wxComboBox *result; | |
e811c8ce | 2371 | bool temp3 = False ; |
d14a1e28 RD |
2372 | wxPoint temp4 ; |
2373 | wxSize temp5 ; | |
e811c8ce | 2374 | bool temp9 = False ; |
d14a1e28 RD |
2375 | PyObject * obj0 = 0 ; |
2376 | PyObject * obj2 = 0 ; | |
2377 | PyObject * obj3 = 0 ; | |
2378 | PyObject * obj4 = 0 ; | |
2379 | PyObject * obj5 = 0 ; | |
2380 | PyObject * obj7 = 0 ; | |
2381 | PyObject * obj8 = 0 ; | |
2382 | char *kwnames[] = { | |
2383 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2384 | }; | |
2385 | ||
2386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOOlOO:new_ComboBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
2387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2388 | if (obj2) { | |
2389 | { | |
2390 | arg3 = wxString_in_helper(obj2); | |
2391 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2392 | temp3 = True; |
d14a1e28 RD |
2393 | } |
2394 | } | |
2395 | if (obj3) { | |
2396 | { | |
2397 | arg4 = &temp4; | |
2398 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2399 | } | |
2400 | } | |
2401 | if (obj4) { | |
2402 | { | |
2403 | arg5 = &temp5; | |
2404 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2405 | } | |
2406 | } | |
2407 | if (obj5) { | |
2408 | { | |
2409 | arg6 = PyList_Size(obj5); | |
2410 | arg7 = wxString_LIST_helper(obj5); | |
2411 | if (arg7 == NULL) SWIG_fail; | |
2412 | } | |
2413 | } | |
2414 | if (obj7) { | |
2415 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2416 | if (arg9 == NULL) { | |
2417 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2418 | } | |
2419 | } | |
2420 | if (obj8) { | |
2421 | { | |
2422 | arg10 = wxString_in_helper(obj8); | |
2423 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 2424 | temp9 = True; |
d14a1e28 RD |
2425 | } |
2426 | } | |
2427 | { | |
2428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2429 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
2430 | ||
2431 | wxPyEndAllowThreads(__tstate); | |
2432 | if (PyErr_Occurred()) SWIG_fail; | |
2433 | } | |
2434 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2435 | { | |
2436 | if (temp3) | |
2437 | delete arg3; | |
2438 | } | |
2439 | { | |
2440 | if (arg7) delete [] arg7; | |
2441 | } | |
2442 | { | |
2443 | if (temp9) | |
2444 | delete arg10; | |
2445 | } | |
2446 | return resultobj; | |
2447 | fail: | |
2448 | { | |
2449 | if (temp3) | |
2450 | delete arg3; | |
2451 | } | |
2452 | { | |
2453 | if (arg7) delete [] arg7; | |
2454 | } | |
2455 | { | |
2456 | if (temp9) | |
2457 | delete arg10; | |
2458 | } | |
2459 | return NULL; | |
2460 | } | |
2461 | ||
2462 | ||
2463 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2464 | PyObject *resultobj; | |
2465 | wxComboBox *result; | |
2466 | char *kwnames[] = { | |
2467 | NULL | |
2468 | }; | |
2469 | ||
2470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2471 | { | |
2472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2473 | result = (wxComboBox *)new wxComboBox(); | |
2474 | ||
2475 | wxPyEndAllowThreads(__tstate); | |
2476 | if (PyErr_Occurred()) SWIG_fail; | |
2477 | } | |
2478 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2479 | return resultobj; | |
2480 | fail: | |
2481 | return NULL; | |
2482 | } | |
2483 | ||
2484 | ||
2485 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2486 | PyObject *resultobj; | |
2487 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2488 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 2489 | int arg3 ; |
d14a1e28 RD |
2490 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2491 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2492 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2493 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2494 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2495 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2496 | int arg7 = (int) 0 ; | |
2497 | wxString *arg8 = (wxString *) NULL ; | |
2498 | long arg9 = (long) 0 ; | |
2499 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
2500 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
2501 | wxString const &arg11_defvalue = wxPyComboBoxNameStr ; | |
2502 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
2503 | bool result; | |
e811c8ce | 2504 | bool temp4 = False ; |
d14a1e28 RD |
2505 | wxPoint temp5 ; |
2506 | wxSize temp6 ; | |
e811c8ce | 2507 | bool temp10 = False ; |
d14a1e28 RD |
2508 | PyObject * obj0 = 0 ; |
2509 | PyObject * obj1 = 0 ; | |
2510 | PyObject * obj3 = 0 ; | |
2511 | PyObject * obj4 = 0 ; | |
2512 | PyObject * obj5 = 0 ; | |
2513 | PyObject * obj6 = 0 ; | |
2514 | PyObject * obj8 = 0 ; | |
2515 | PyObject * obj9 = 0 ; | |
2516 | char *kwnames[] = { | |
2517 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2518 | }; | |
2519 | ||
2520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOOlOO:ComboBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&obj6,&arg9,&obj8,&obj9)) goto fail; | |
2521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2522 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2523 | if (obj3) { | |
2524 | { | |
2525 | arg4 = wxString_in_helper(obj3); | |
2526 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2527 | temp4 = True; |
d14a1e28 RD |
2528 | } |
2529 | } | |
2530 | if (obj4) { | |
2531 | { | |
2532 | arg5 = &temp5; | |
2533 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2534 | } | |
2535 | } | |
2536 | if (obj5) { | |
2537 | { | |
2538 | arg6 = &temp6; | |
2539 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2540 | } | |
2541 | } | |
2542 | if (obj6) { | |
2543 | { | |
2544 | arg7 = PyList_Size(obj6); | |
2545 | arg8 = wxString_LIST_helper(obj6); | |
2546 | if (arg8 == NULL) SWIG_fail; | |
2547 | } | |
2548 | } | |
2549 | if (obj8) { | |
2550 | if ((SWIG_ConvertPtr(obj8,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2551 | if (arg10 == NULL) { | |
2552 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2553 | } | |
2554 | } | |
2555 | if (obj9) { | |
2556 | { | |
2557 | arg11 = wxString_in_helper(obj9); | |
2558 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 2559 | temp10 = True; |
d14a1e28 RD |
2560 | } |
2561 | } | |
2562 | { | |
2563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2564 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
2565 | ||
2566 | wxPyEndAllowThreads(__tstate); | |
2567 | if (PyErr_Occurred()) SWIG_fail; | |
2568 | } | |
2569 | resultobj = PyInt_FromLong((long)result); | |
2570 | { | |
2571 | if (temp4) | |
2572 | delete arg4; | |
2573 | } | |
2574 | { | |
2575 | if (arg8) delete [] arg8; | |
2576 | } | |
2577 | { | |
2578 | if (temp10) | |
2579 | delete arg11; | |
2580 | } | |
2581 | return resultobj; | |
2582 | fail: | |
2583 | { | |
2584 | if (temp4) | |
2585 | delete arg4; | |
2586 | } | |
2587 | { | |
2588 | if (arg8) delete [] arg8; | |
2589 | } | |
2590 | { | |
2591 | if (temp10) | |
2592 | delete arg11; | |
2593 | } | |
2594 | return NULL; | |
2595 | } | |
2596 | ||
2597 | ||
2598 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2599 | PyObject *resultobj; | |
2600 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2601 | wxString result; | |
2602 | PyObject * obj0 = 0 ; | |
2603 | char *kwnames[] = { | |
2604 | (char *) "self", NULL | |
2605 | }; | |
2606 | ||
2607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2609 | { | |
2610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2611 | result = ((wxComboBox const *)arg1)->GetValue(); | |
2612 | ||
2613 | wxPyEndAllowThreads(__tstate); | |
2614 | if (PyErr_Occurred()) SWIG_fail; | |
2615 | } | |
2616 | { | |
2617 | #if wxUSE_UNICODE | |
2618 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2619 | #else | |
2620 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2621 | #endif | |
2622 | } | |
2623 | return resultobj; | |
2624 | fail: | |
2625 | return NULL; | |
2626 | } | |
2627 | ||
2628 | ||
2629 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2630 | PyObject *resultobj; | |
2631 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2632 | wxString *arg2 = 0 ; | |
e811c8ce | 2633 | bool temp2 = False ; |
d14a1e28 RD |
2634 | PyObject * obj0 = 0 ; |
2635 | PyObject * obj1 = 0 ; | |
2636 | char *kwnames[] = { | |
2637 | (char *) "self",(char *) "value", NULL | |
2638 | }; | |
2639 | ||
2640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2642 | { | |
2643 | arg2 = wxString_in_helper(obj1); | |
2644 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2645 | temp2 = True; |
d14a1e28 RD |
2646 | } |
2647 | { | |
2648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2649 | (arg1)->SetValue((wxString const &)*arg2); | |
2650 | ||
2651 | wxPyEndAllowThreads(__tstate); | |
2652 | if (PyErr_Occurred()) SWIG_fail; | |
2653 | } | |
2654 | Py_INCREF(Py_None); resultobj = Py_None; | |
2655 | { | |
2656 | if (temp2) | |
2657 | delete arg2; | |
2658 | } | |
2659 | return resultobj; | |
2660 | fail: | |
2661 | { | |
2662 | if (temp2) | |
2663 | delete arg2; | |
2664 | } | |
2665 | return NULL; | |
2666 | } | |
2667 | ||
2668 | ||
2669 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2670 | PyObject *resultobj; | |
2671 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2672 | PyObject * obj0 = 0 ; | |
2673 | char *kwnames[] = { | |
2674 | (char *) "self", NULL | |
2675 | }; | |
2676 | ||
2677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
2678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2679 | { | |
2680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2681 | (arg1)->Copy(); | |
2682 | ||
2683 | wxPyEndAllowThreads(__tstate); | |
2684 | if (PyErr_Occurred()) SWIG_fail; | |
2685 | } | |
2686 | Py_INCREF(Py_None); resultobj = Py_None; | |
2687 | return resultobj; | |
2688 | fail: | |
2689 | return NULL; | |
2690 | } | |
2691 | ||
2692 | ||
2693 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2694 | PyObject *resultobj; | |
2695 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2696 | PyObject * obj0 = 0 ; | |
2697 | char *kwnames[] = { | |
2698 | (char *) "self", NULL | |
2699 | }; | |
2700 | ||
2701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
2702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2703 | { | |
2704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2705 | (arg1)->Cut(); | |
2706 | ||
2707 | wxPyEndAllowThreads(__tstate); | |
2708 | if (PyErr_Occurred()) SWIG_fail; | |
2709 | } | |
2710 | Py_INCREF(Py_None); resultobj = Py_None; | |
2711 | return resultobj; | |
2712 | fail: | |
2713 | return NULL; | |
2714 | } | |
2715 | ||
2716 | ||
2717 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2718 | PyObject *resultobj; | |
2719 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2720 | PyObject * obj0 = 0 ; | |
2721 | char *kwnames[] = { | |
2722 | (char *) "self", NULL | |
2723 | }; | |
2724 | ||
2725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
2726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2727 | { | |
2728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2729 | (arg1)->Paste(); | |
2730 | ||
2731 | wxPyEndAllowThreads(__tstate); | |
2732 | if (PyErr_Occurred()) SWIG_fail; | |
2733 | } | |
2734 | Py_INCREF(Py_None); resultobj = Py_None; | |
2735 | return resultobj; | |
2736 | fail: | |
2737 | return NULL; | |
2738 | } | |
2739 | ||
2740 | ||
2741 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2742 | PyObject *resultobj; | |
2743 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2744 | long arg2 ; | |
2745 | PyObject * obj0 = 0 ; | |
2746 | char *kwnames[] = { | |
2747 | (char *) "self",(char *) "pos", NULL | |
2748 | }; | |
2749 | ||
2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ComboBox_SetInsertionPoint",kwnames,&obj0,&arg2)) goto fail; | |
2751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2752 | { | |
2753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2754 | (arg1)->SetInsertionPoint(arg2); | |
2755 | ||
2756 | wxPyEndAllowThreads(__tstate); | |
2757 | if (PyErr_Occurred()) SWIG_fail; | |
2758 | } | |
2759 | Py_INCREF(Py_None); resultobj = Py_None; | |
2760 | return resultobj; | |
2761 | fail: | |
2762 | return NULL; | |
2763 | } | |
2764 | ||
2765 | ||
2766 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2767 | PyObject *resultobj; | |
2768 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2769 | long result; | |
2770 | PyObject * obj0 = 0 ; | |
2771 | char *kwnames[] = { | |
2772 | (char *) "self", NULL | |
2773 | }; | |
2774 | ||
2775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
2776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2777 | { | |
2778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2779 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
2780 | ||
2781 | wxPyEndAllowThreads(__tstate); | |
2782 | if (PyErr_Occurred()) SWIG_fail; | |
2783 | } | |
2784 | resultobj = PyInt_FromLong((long)result); | |
2785 | return resultobj; | |
2786 | fail: | |
2787 | return NULL; | |
2788 | } | |
2789 | ||
2790 | ||
2791 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2792 | PyObject *resultobj; | |
2793 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2794 | long result; | |
2795 | PyObject * obj0 = 0 ; | |
2796 | char *kwnames[] = { | |
2797 | (char *) "self", NULL | |
2798 | }; | |
2799 | ||
2800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
2801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2802 | { | |
2803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2804 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
2805 | ||
2806 | wxPyEndAllowThreads(__tstate); | |
2807 | if (PyErr_Occurred()) SWIG_fail; | |
2808 | } | |
2809 | resultobj = PyInt_FromLong((long)result); | |
2810 | return resultobj; | |
2811 | fail: | |
2812 | return NULL; | |
2813 | } | |
2814 | ||
2815 | ||
2816 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2817 | PyObject *resultobj; | |
2818 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2819 | long arg2 ; | |
2820 | long arg3 ; | |
2821 | wxString *arg4 = 0 ; | |
e811c8ce | 2822 | bool temp4 = False ; |
d14a1e28 RD |
2823 | PyObject * obj0 = 0 ; |
2824 | PyObject * obj3 = 0 ; | |
2825 | char *kwnames[] = { | |
2826 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
2827 | }; | |
2828 | ||
2829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:ComboBox_Replace",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
2830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2831 | { | |
2832 | arg4 = wxString_in_helper(obj3); | |
2833 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2834 | temp4 = True; |
d14a1e28 RD |
2835 | } |
2836 | { | |
2837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2838 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
2839 | ||
2840 | wxPyEndAllowThreads(__tstate); | |
2841 | if (PyErr_Occurred()) SWIG_fail; | |
2842 | } | |
2843 | Py_INCREF(Py_None); resultobj = Py_None; | |
2844 | { | |
2845 | if (temp4) | |
2846 | delete arg4; | |
2847 | } | |
2848 | return resultobj; | |
2849 | fail: | |
2850 | { | |
2851 | if (temp4) | |
2852 | delete arg4; | |
2853 | } | |
2854 | return NULL; | |
2855 | } | |
2856 | ||
2857 | ||
2858 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2859 | PyObject *resultobj; | |
2860 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2861 | long arg2 ; | |
2862 | long arg3 ; | |
2863 | PyObject * obj0 = 0 ; | |
2864 | char *kwnames[] = { | |
2865 | (char *) "self",(char *) "from",(char *) "to", NULL | |
2866 | }; | |
2867 | ||
2868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ComboBox_SetMark",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2870 | { | |
2871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2872 | (arg1)->SetSelection(arg2,arg3); | |
2873 | ||
2874 | wxPyEndAllowThreads(__tstate); | |
2875 | if (PyErr_Occurred()) SWIG_fail; | |
2876 | } | |
2877 | Py_INCREF(Py_None); resultobj = Py_None; | |
2878 | return resultobj; | |
2879 | fail: | |
2880 | return NULL; | |
2881 | } | |
2882 | ||
2883 | ||
2884 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2885 | PyObject *resultobj; | |
2886 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2887 | bool arg2 ; | |
2888 | PyObject * obj0 = 0 ; | |
2889 | PyObject * obj1 = 0 ; | |
2890 | char *kwnames[] = { | |
2891 | (char *) "self",(char *) "editable", NULL | |
2892 | }; | |
2893 | ||
2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
2895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2896 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
2897 | if (PyErr_Occurred()) SWIG_fail; | |
2898 | { | |
2899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2900 | (arg1)->SetEditable(arg2); | |
2901 | ||
2902 | wxPyEndAllowThreads(__tstate); | |
2903 | if (PyErr_Occurred()) SWIG_fail; | |
2904 | } | |
2905 | Py_INCREF(Py_None); resultobj = Py_None; | |
2906 | return resultobj; | |
2907 | fail: | |
2908 | return NULL; | |
2909 | } | |
2910 | ||
2911 | ||
2912 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2913 | PyObject *resultobj; | |
2914 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2915 | PyObject * obj0 = 0 ; | |
2916 | char *kwnames[] = { | |
2917 | (char *) "self", NULL | |
2918 | }; | |
2919 | ||
2920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
2921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2922 | { | |
2923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2924 | (arg1)->SetInsertionPointEnd(); | |
2925 | ||
2926 | wxPyEndAllowThreads(__tstate); | |
2927 | if (PyErr_Occurred()) SWIG_fail; | |
2928 | } | |
2929 | Py_INCREF(Py_None); resultobj = Py_None; | |
2930 | return resultobj; | |
2931 | fail: | |
2932 | return NULL; | |
2933 | } | |
2934 | ||
2935 | ||
2936 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2937 | PyObject *resultobj; | |
2938 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2939 | long arg2 ; | |
2940 | long arg3 ; | |
2941 | PyObject * obj0 = 0 ; | |
2942 | char *kwnames[] = { | |
2943 | (char *) "self",(char *) "from",(char *) "to", NULL | |
2944 | }; | |
2945 | ||
2946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ComboBox_Remove",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2948 | { | |
2949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2950 | (arg1)->Remove(arg2,arg3); | |
2951 | ||
2952 | wxPyEndAllowThreads(__tstate); | |
2953 | if (PyErr_Occurred()) SWIG_fail; | |
2954 | } | |
2955 | Py_INCREF(Py_None); resultobj = Py_None; | |
2956 | return resultobj; | |
2957 | fail: | |
2958 | return NULL; | |
2959 | } | |
2960 | ||
2961 | ||
2962 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
2963 | PyObject *obj; | |
2964 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2965 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
2966 | Py_INCREF(obj); | |
2967 | return Py_BuildValue((char *)""); | |
2968 | } | |
2969 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2970 | PyObject *resultobj; | |
2971 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 2972 | int arg2 ; |
d14a1e28 RD |
2973 | int arg3 ; |
2974 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2975 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2976 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2977 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2978 | long arg6 = (long) wxGA_HORIZONTAL ; | |
2979 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2980 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2981 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
2982 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2983 | wxGauge *result; | |
2984 | wxPoint temp4 ; | |
2985 | wxSize temp5 ; | |
e811c8ce | 2986 | bool temp8 = False ; |
d14a1e28 RD |
2987 | PyObject * obj0 = 0 ; |
2988 | PyObject * obj3 = 0 ; | |
2989 | PyObject * obj4 = 0 ; | |
2990 | PyObject * obj6 = 0 ; | |
2991 | PyObject * obj7 = 0 ; | |
2992 | char *kwnames[] = { | |
2993 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2994 | }; | |
2995 | ||
2996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|OOlOO:new_Gauge",kwnames,&obj0,&arg2,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
2997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2998 | if (obj3) { | |
2999 | { | |
3000 | arg4 = &temp4; | |
3001 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3002 | } | |
3003 | } | |
3004 | if (obj4) { | |
3005 | { | |
3006 | arg5 = &temp5; | |
3007 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3008 | } | |
3009 | } | |
3010 | if (obj6) { | |
3011 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3012 | if (arg7 == NULL) { | |
3013 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3014 | } | |
3015 | } | |
3016 | if (obj7) { | |
3017 | { | |
3018 | arg8 = wxString_in_helper(obj7); | |
3019 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3020 | temp8 = True; |
d14a1e28 RD |
3021 | } |
3022 | } | |
3023 | { | |
3024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3025 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3026 | ||
3027 | wxPyEndAllowThreads(__tstate); | |
3028 | if (PyErr_Occurred()) SWIG_fail; | |
3029 | } | |
3030 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3031 | { | |
3032 | if (temp8) | |
3033 | delete arg8; | |
3034 | } | |
3035 | return resultobj; | |
3036 | fail: | |
3037 | { | |
3038 | if (temp8) | |
3039 | delete arg8; | |
3040 | } | |
3041 | return NULL; | |
3042 | } | |
3043 | ||
3044 | ||
3045 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3046 | PyObject *resultobj; | |
3047 | wxGauge *result; | |
3048 | char *kwnames[] = { | |
3049 | NULL | |
3050 | }; | |
3051 | ||
3052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3053 | { | |
3054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3055 | result = (wxGauge *)new wxGauge(); | |
3056 | ||
3057 | wxPyEndAllowThreads(__tstate); | |
3058 | if (PyErr_Occurred()) SWIG_fail; | |
3059 | } | |
3060 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3061 | return resultobj; | |
3062 | fail: | |
3063 | return NULL; | |
3064 | } | |
3065 | ||
3066 | ||
3067 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3068 | PyObject *resultobj; | |
3069 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3070 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3071 | int arg3 ; |
d14a1e28 RD |
3072 | int arg4 ; |
3073 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3074 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3075 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3076 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3077 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3078 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3079 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3080 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3081 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3082 | bool result; | |
3083 | wxPoint temp5 ; | |
3084 | wxSize temp6 ; | |
e811c8ce | 3085 | bool temp9 = False ; |
d14a1e28 RD |
3086 | PyObject * obj0 = 0 ; |
3087 | PyObject * obj1 = 0 ; | |
3088 | PyObject * obj4 = 0 ; | |
3089 | PyObject * obj5 = 0 ; | |
3090 | PyObject * obj7 = 0 ; | |
3091 | PyObject * obj8 = 0 ; | |
3092 | char *kwnames[] = { | |
3093 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3094 | }; | |
3095 | ||
3096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|OOlOO:Gauge_Create",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
3097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3098 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3099 | if (obj4) { | |
3100 | { | |
3101 | arg5 = &temp5; | |
3102 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3103 | } | |
3104 | } | |
3105 | if (obj5) { | |
3106 | { | |
3107 | arg6 = &temp6; | |
3108 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3109 | } | |
3110 | } | |
3111 | if (obj7) { | |
3112 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3113 | if (arg8 == NULL) { | |
3114 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3115 | } | |
3116 | } | |
3117 | if (obj8) { | |
3118 | { | |
3119 | arg9 = wxString_in_helper(obj8); | |
3120 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 3121 | temp9 = True; |
d14a1e28 RD |
3122 | } |
3123 | } | |
3124 | { | |
3125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3126 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3127 | ||
3128 | wxPyEndAllowThreads(__tstate); | |
3129 | if (PyErr_Occurred()) SWIG_fail; | |
3130 | } | |
3131 | resultobj = PyInt_FromLong((long)result); | |
3132 | { | |
3133 | if (temp9) | |
3134 | delete arg9; | |
3135 | } | |
3136 | return resultobj; | |
3137 | fail: | |
3138 | { | |
3139 | if (temp9) | |
3140 | delete arg9; | |
3141 | } | |
3142 | return NULL; | |
3143 | } | |
3144 | ||
3145 | ||
3146 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3147 | PyObject *resultobj; | |
3148 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3149 | int arg2 ; | |
3150 | PyObject * obj0 = 0 ; | |
3151 | char *kwnames[] = { | |
3152 | (char *) "self",(char *) "range", NULL | |
3153 | }; | |
3154 | ||
3155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetRange",kwnames,&obj0,&arg2)) goto fail; | |
3156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3157 | { | |
3158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3159 | (arg1)->SetRange(arg2); | |
3160 | ||
3161 | wxPyEndAllowThreads(__tstate); | |
3162 | if (PyErr_Occurred()) SWIG_fail; | |
3163 | } | |
3164 | Py_INCREF(Py_None); resultobj = Py_None; | |
3165 | return resultobj; | |
3166 | fail: | |
3167 | return NULL; | |
3168 | } | |
3169 | ||
3170 | ||
3171 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3172 | PyObject *resultobj; | |
3173 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3174 | int result; | |
3175 | PyObject * obj0 = 0 ; | |
3176 | char *kwnames[] = { | |
3177 | (char *) "self", NULL | |
3178 | }; | |
3179 | ||
3180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3182 | { | |
3183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3184 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3185 | ||
3186 | wxPyEndAllowThreads(__tstate); | |
3187 | if (PyErr_Occurred()) SWIG_fail; | |
3188 | } | |
3189 | resultobj = PyInt_FromLong((long)result); | |
3190 | return resultobj; | |
3191 | fail: | |
3192 | return NULL; | |
3193 | } | |
3194 | ||
3195 | ||
3196 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3197 | PyObject *resultobj; | |
3198 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3199 | int arg2 ; | |
3200 | PyObject * obj0 = 0 ; | |
3201 | char *kwnames[] = { | |
3202 | (char *) "self",(char *) "pos", NULL | |
3203 | }; | |
3204 | ||
3205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
3206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3207 | { | |
3208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3209 | (arg1)->SetValue(arg2); | |
3210 | ||
3211 | wxPyEndAllowThreads(__tstate); | |
3212 | if (PyErr_Occurred()) SWIG_fail; | |
3213 | } | |
3214 | Py_INCREF(Py_None); resultobj = Py_None; | |
3215 | return resultobj; | |
3216 | fail: | |
3217 | return NULL; | |
3218 | } | |
3219 | ||
3220 | ||
3221 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3222 | PyObject *resultobj; | |
3223 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3224 | int result; | |
3225 | PyObject * obj0 = 0 ; | |
3226 | char *kwnames[] = { | |
3227 | (char *) "self", NULL | |
3228 | }; | |
3229 | ||
3230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3232 | { | |
3233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3234 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3235 | ||
3236 | wxPyEndAllowThreads(__tstate); | |
3237 | if (PyErr_Occurred()) SWIG_fail; | |
3238 | } | |
3239 | resultobj = PyInt_FromLong((long)result); | |
3240 | return resultobj; | |
3241 | fail: | |
3242 | return NULL; | |
3243 | } | |
3244 | ||
3245 | ||
3246 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3247 | PyObject *resultobj; | |
3248 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3249 | bool result; | |
3250 | PyObject * obj0 = 0 ; | |
3251 | char *kwnames[] = { | |
3252 | (char *) "self", NULL | |
3253 | }; | |
3254 | ||
3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3257 | { | |
3258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3259 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3260 | ||
3261 | wxPyEndAllowThreads(__tstate); | |
3262 | if (PyErr_Occurred()) SWIG_fail; | |
3263 | } | |
3264 | resultobj = PyInt_FromLong((long)result); | |
3265 | return resultobj; | |
3266 | fail: | |
3267 | return NULL; | |
3268 | } | |
3269 | ||
3270 | ||
3271 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3272 | PyObject *resultobj; | |
3273 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3274 | int arg2 ; | |
3275 | PyObject * obj0 = 0 ; | |
3276 | char *kwnames[] = { | |
3277 | (char *) "self",(char *) "w", NULL | |
3278 | }; | |
3279 | ||
3280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetShadowWidth",kwnames,&obj0,&arg2)) goto fail; | |
3281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3282 | { | |
3283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3284 | (arg1)->SetShadowWidth(arg2); | |
3285 | ||
3286 | wxPyEndAllowThreads(__tstate); | |
3287 | if (PyErr_Occurred()) SWIG_fail; | |
3288 | } | |
3289 | Py_INCREF(Py_None); resultobj = Py_None; | |
3290 | return resultobj; | |
3291 | fail: | |
3292 | return NULL; | |
3293 | } | |
3294 | ||
3295 | ||
3296 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3297 | PyObject *resultobj; | |
3298 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3299 | int result; | |
3300 | PyObject * obj0 = 0 ; | |
3301 | char *kwnames[] = { | |
3302 | (char *) "self", NULL | |
3303 | }; | |
3304 | ||
3305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
3306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3307 | { | |
3308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3309 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3310 | ||
3311 | wxPyEndAllowThreads(__tstate); | |
3312 | if (PyErr_Occurred()) SWIG_fail; | |
3313 | } | |
3314 | resultobj = PyInt_FromLong((long)result); | |
3315 | return resultobj; | |
3316 | fail: | |
3317 | return NULL; | |
3318 | } | |
3319 | ||
3320 | ||
3321 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3322 | PyObject *resultobj; | |
3323 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3324 | int arg2 ; | |
3325 | PyObject * obj0 = 0 ; | |
3326 | char *kwnames[] = { | |
3327 | (char *) "self",(char *) "w", NULL | |
3328 | }; | |
3329 | ||
3330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetBezelFace",kwnames,&obj0,&arg2)) goto fail; | |
3331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3332 | { | |
3333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3334 | (arg1)->SetBezelFace(arg2); | |
3335 | ||
3336 | wxPyEndAllowThreads(__tstate); | |
3337 | if (PyErr_Occurred()) SWIG_fail; | |
3338 | } | |
3339 | Py_INCREF(Py_None); resultobj = Py_None; | |
3340 | return resultobj; | |
3341 | fail: | |
3342 | return NULL; | |
3343 | } | |
3344 | ||
3345 | ||
3346 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3347 | PyObject *resultobj; | |
3348 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3349 | int result; | |
3350 | PyObject * obj0 = 0 ; | |
3351 | char *kwnames[] = { | |
3352 | (char *) "self", NULL | |
3353 | }; | |
3354 | ||
3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3357 | { | |
3358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3359 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3360 | ||
3361 | wxPyEndAllowThreads(__tstate); | |
3362 | if (PyErr_Occurred()) SWIG_fail; | |
3363 | } | |
3364 | resultobj = PyInt_FromLong((long)result); | |
3365 | return resultobj; | |
3366 | fail: | |
3367 | return NULL; | |
3368 | } | |
3369 | ||
3370 | ||
3371 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3372 | PyObject *obj; | |
3373 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3374 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3375 | Py_INCREF(obj); | |
3376 | return Py_BuildValue((char *)""); | |
3377 | } | |
3378 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3379 | PyObject *resultobj; | |
3380 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3381 | int arg2 ; |
d14a1e28 RD |
3382 | wxString *arg3 = 0 ; |
3383 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3384 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3385 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3386 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3387 | long arg6 = (long) 0 ; | |
3388 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
3389 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3390 | wxStaticBox *result; | |
e811c8ce | 3391 | bool temp3 = False ; |
d14a1e28 RD |
3392 | wxPoint temp4 ; |
3393 | wxSize temp5 ; | |
e811c8ce | 3394 | bool temp7 = False ; |
d14a1e28 RD |
3395 | PyObject * obj0 = 0 ; |
3396 | PyObject * obj2 = 0 ; | |
3397 | PyObject * obj3 = 0 ; | |
3398 | PyObject * obj4 = 0 ; | |
3399 | PyObject * obj6 = 0 ; | |
3400 | char *kwnames[] = { | |
3401 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3402 | }; | |
3403 | ||
3404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3406 | { | |
3407 | arg3 = wxString_in_helper(obj2); | |
3408 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3409 | temp3 = True; |
d14a1e28 RD |
3410 | } |
3411 | if (obj3) { | |
3412 | { | |
3413 | arg4 = &temp4; | |
3414 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3415 | } | |
3416 | } | |
3417 | if (obj4) { | |
3418 | { | |
3419 | arg5 = &temp5; | |
3420 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3421 | } | |
3422 | } | |
3423 | if (obj6) { | |
3424 | { | |
3425 | arg7 = wxString_in_helper(obj6); | |
3426 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 3427 | temp7 = True; |
d14a1e28 RD |
3428 | } |
3429 | } | |
3430 | { | |
3431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3432 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3433 | ||
3434 | wxPyEndAllowThreads(__tstate); | |
3435 | if (PyErr_Occurred()) SWIG_fail; | |
3436 | } | |
3437 | { | |
3438 | resultobj = wxPyMake_wxObject(result); | |
3439 | } | |
3440 | { | |
3441 | if (temp3) | |
3442 | delete arg3; | |
3443 | } | |
3444 | { | |
3445 | if (temp7) | |
3446 | delete arg7; | |
3447 | } | |
3448 | return resultobj; | |
3449 | fail: | |
3450 | { | |
3451 | if (temp3) | |
3452 | delete arg3; | |
3453 | } | |
3454 | { | |
3455 | if (temp7) | |
3456 | delete arg7; | |
3457 | } | |
3458 | return NULL; | |
3459 | } | |
3460 | ||
3461 | ||
3462 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3463 | PyObject *resultobj; | |
3464 | wxStaticBox *result; | |
3465 | char *kwnames[] = { | |
3466 | NULL | |
3467 | }; | |
3468 | ||
3469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
3470 | { | |
3471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3472 | result = (wxStaticBox *)new wxStaticBox(); | |
3473 | ||
3474 | wxPyEndAllowThreads(__tstate); | |
3475 | if (PyErr_Occurred()) SWIG_fail; | |
3476 | } | |
3477 | { | |
3478 | resultobj = wxPyMake_wxObject(result); | |
3479 | } | |
3480 | return resultobj; | |
3481 | fail: | |
3482 | return NULL; | |
3483 | } | |
3484 | ||
3485 | ||
3486 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3487 | PyObject *resultobj; | |
3488 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
3489 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3490 | int arg3 ; |
d14a1e28 RD |
3491 | wxString *arg4 = 0 ; |
3492 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3493 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3494 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3495 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3496 | long arg7 = (long) 0 ; | |
3497 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
3498 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3499 | bool result; | |
e811c8ce | 3500 | bool temp4 = False ; |
d14a1e28 RD |
3501 | wxPoint temp5 ; |
3502 | wxSize temp6 ; | |
e811c8ce | 3503 | bool temp8 = False ; |
d14a1e28 RD |
3504 | PyObject * obj0 = 0 ; |
3505 | PyObject * obj1 = 0 ; | |
3506 | PyObject * obj3 = 0 ; | |
3507 | PyObject * obj4 = 0 ; | |
3508 | PyObject * obj5 = 0 ; | |
3509 | PyObject * obj7 = 0 ; | |
3510 | char *kwnames[] = { | |
3511 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3512 | }; | |
3513 | ||
3514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
3515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3516 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3517 | { | |
3518 | arg4 = wxString_in_helper(obj3); | |
3519 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3520 | temp4 = True; |
d14a1e28 RD |
3521 | } |
3522 | if (obj4) { | |
3523 | { | |
3524 | arg5 = &temp5; | |
3525 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3526 | } | |
3527 | } | |
3528 | if (obj5) { | |
3529 | { | |
3530 | arg6 = &temp6; | |
3531 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3532 | } | |
3533 | } | |
3534 | if (obj7) { | |
3535 | { | |
3536 | arg8 = wxString_in_helper(obj7); | |
3537 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3538 | temp8 = True; |
d14a1e28 RD |
3539 | } |
3540 | } | |
3541 | { | |
3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3543 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3544 | ||
3545 | wxPyEndAllowThreads(__tstate); | |
3546 | if (PyErr_Occurred()) SWIG_fail; | |
3547 | } | |
3548 | resultobj = PyInt_FromLong((long)result); | |
3549 | { | |
3550 | if (temp4) | |
3551 | delete arg4; | |
3552 | } | |
3553 | { | |
3554 | if (temp8) | |
3555 | delete arg8; | |
3556 | } | |
3557 | return resultobj; | |
3558 | fail: | |
3559 | { | |
3560 | if (temp4) | |
3561 | delete arg4; | |
3562 | } | |
3563 | { | |
3564 | if (temp8) | |
3565 | delete arg8; | |
3566 | } | |
3567 | return NULL; | |
3568 | } | |
3569 | ||
3570 | ||
3571 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
3572 | PyObject *obj; | |
3573 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3574 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
3575 | Py_INCREF(obj); | |
3576 | return Py_BuildValue((char *)""); | |
3577 | } | |
3578 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3579 | PyObject *resultobj; | |
3580 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3581 | int arg2 ; |
d14a1e28 RD |
3582 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
3583 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3584 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3585 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3586 | long arg5 = (long) wxLI_HORIZONTAL ; | |
3587 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
3588 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
3589 | wxStaticLine *result; | |
3590 | wxPoint temp3 ; | |
3591 | wxSize temp4 ; | |
e811c8ce | 3592 | bool temp6 = False ; |
d14a1e28 RD |
3593 | PyObject * obj0 = 0 ; |
3594 | PyObject * obj2 = 0 ; | |
3595 | PyObject * obj3 = 0 ; | |
3596 | PyObject * obj5 = 0 ; | |
3597 | char *kwnames[] = { | |
3598 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3599 | }; | |
3600 | ||
3601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_StaticLine",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
3602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3603 | if (obj2) { | |
3604 | { | |
3605 | arg3 = &temp3; | |
3606 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
3607 | } | |
3608 | } | |
3609 | if (obj3) { | |
3610 | { | |
3611 | arg4 = &temp4; | |
3612 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
3613 | } | |
3614 | } | |
3615 | if (obj5) { | |
3616 | { | |
3617 | arg6 = wxString_in_helper(obj5); | |
3618 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 3619 | temp6 = True; |
d14a1e28 RD |
3620 | } |
3621 | } | |
3622 | { | |
3623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3624 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
3625 | ||
3626 | wxPyEndAllowThreads(__tstate); | |
3627 | if (PyErr_Occurred()) SWIG_fail; | |
3628 | } | |
3629 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
3630 | { | |
3631 | if (temp6) | |
3632 | delete arg6; | |
3633 | } | |
3634 | return resultobj; | |
3635 | fail: | |
3636 | { | |
3637 | if (temp6) | |
3638 | delete arg6; | |
3639 | } | |
3640 | return NULL; | |
3641 | } | |
3642 | ||
3643 | ||
3644 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3645 | PyObject *resultobj; | |
3646 | wxStaticLine *result; | |
3647 | char *kwnames[] = { | |
3648 | NULL | |
3649 | }; | |
3650 | ||
3651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
3652 | { | |
3653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3654 | result = (wxStaticLine *)new wxStaticLine(); | |
3655 | ||
3656 | wxPyEndAllowThreads(__tstate); | |
3657 | if (PyErr_Occurred()) SWIG_fail; | |
3658 | } | |
3659 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
3660 | return resultobj; | |
3661 | fail: | |
3662 | return NULL; | |
3663 | } | |
3664 | ||
3665 | ||
3666 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3667 | PyObject *resultobj; | |
3668 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
3669 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3670 | int arg3 ; |
d14a1e28 RD |
3671 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3672 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3673 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3674 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3675 | long arg6 = (long) wxLI_HORIZONTAL ; | |
3676 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
3677 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3678 | bool result; | |
3679 | wxPoint temp4 ; | |
3680 | wxSize temp5 ; | |
e811c8ce | 3681 | bool temp7 = False ; |
d14a1e28 RD |
3682 | PyObject * obj0 = 0 ; |
3683 | PyObject * obj1 = 0 ; | |
3684 | PyObject * obj3 = 0 ; | |
3685 | PyObject * obj4 = 0 ; | |
3686 | PyObject * obj6 = 0 ; | |
3687 | char *kwnames[] = { | |
3688 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3689 | }; | |
3690 | ||
3691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:StaticLine_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3693 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3694 | if (obj3) { | |
3695 | { | |
3696 | arg4 = &temp4; | |
3697 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3698 | } | |
3699 | } | |
3700 | if (obj4) { | |
3701 | { | |
3702 | arg5 = &temp5; | |
3703 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3704 | } | |
3705 | } | |
3706 | if (obj6) { | |
3707 | { | |
3708 | arg7 = wxString_in_helper(obj6); | |
3709 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 3710 | temp7 = True; |
d14a1e28 RD |
3711 | } |
3712 | } | |
3713 | { | |
3714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3715 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3716 | ||
3717 | wxPyEndAllowThreads(__tstate); | |
3718 | if (PyErr_Occurred()) SWIG_fail; | |
3719 | } | |
3720 | resultobj = PyInt_FromLong((long)result); | |
3721 | { | |
3722 | if (temp7) | |
3723 | delete arg7; | |
3724 | } | |
3725 | return resultobj; | |
3726 | fail: | |
3727 | { | |
3728 | if (temp7) | |
3729 | delete arg7; | |
3730 | } | |
3731 | return NULL; | |
3732 | } | |
3733 | ||
3734 | ||
3735 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3736 | PyObject *resultobj; | |
3737 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
3738 | bool result; | |
3739 | PyObject * obj0 = 0 ; | |
3740 | char *kwnames[] = { | |
3741 | (char *) "self", NULL | |
3742 | }; | |
3743 | ||
3744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
3745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3746 | { | |
3747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3748 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
3749 | ||
3750 | wxPyEndAllowThreads(__tstate); | |
3751 | if (PyErr_Occurred()) SWIG_fail; | |
3752 | } | |
3753 | resultobj = PyInt_FromLong((long)result); | |
3754 | return resultobj; | |
3755 | fail: | |
3756 | return NULL; | |
3757 | } | |
3758 | ||
3759 | ||
3760 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3761 | PyObject *resultobj; | |
3762 | int result; | |
3763 | char *kwnames[] = { | |
3764 | NULL | |
3765 | }; | |
3766 | ||
3767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
3768 | { | |
3769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3770 | result = (int)wxStaticLine::GetDefaultSize(); | |
3771 | ||
3772 | wxPyEndAllowThreads(__tstate); | |
3773 | if (PyErr_Occurred()) SWIG_fail; | |
3774 | } | |
3775 | resultobj = PyInt_FromLong((long)result); | |
3776 | return resultobj; | |
3777 | fail: | |
3778 | return NULL; | |
3779 | } | |
3780 | ||
3781 | ||
3782 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
3783 | PyObject *obj; | |
3784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3785 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
3786 | Py_INCREF(obj); | |
3787 | return Py_BuildValue((char *)""); | |
3788 | } | |
3789 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3790 | PyObject *resultobj; | |
3791 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3792 | int arg2 ; |
d14a1e28 RD |
3793 | wxString *arg3 = 0 ; |
3794 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3795 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3796 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3797 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3798 | long arg6 = (long) 0 ; | |
3799 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
3800 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3801 | wxStaticText *result; | |
e811c8ce | 3802 | bool temp3 = False ; |
d14a1e28 RD |
3803 | wxPoint temp4 ; |
3804 | wxSize temp5 ; | |
e811c8ce | 3805 | bool temp7 = False ; |
d14a1e28 RD |
3806 | PyObject * obj0 = 0 ; |
3807 | PyObject * obj2 = 0 ; | |
3808 | PyObject * obj3 = 0 ; | |
3809 | PyObject * obj4 = 0 ; | |
3810 | PyObject * obj6 = 0 ; | |
3811 | char *kwnames[] = { | |
3812 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3813 | }; | |
3814 | ||
3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticText",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3817 | { | |
3818 | arg3 = wxString_in_helper(obj2); | |
3819 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3820 | temp3 = True; |
d14a1e28 RD |
3821 | } |
3822 | if (obj3) { | |
3823 | { | |
3824 | arg4 = &temp4; | |
3825 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3826 | } | |
3827 | } | |
3828 | if (obj4) { | |
3829 | { | |
3830 | arg5 = &temp5; | |
3831 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3832 | } | |
3833 | } | |
3834 | if (obj6) { | |
3835 | { | |
3836 | arg7 = wxString_in_helper(obj6); | |
3837 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 3838 | temp7 = True; |
d14a1e28 RD |
3839 | } |
3840 | } | |
3841 | { | |
3842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3843 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3844 | ||
3845 | wxPyEndAllowThreads(__tstate); | |
3846 | if (PyErr_Occurred()) SWIG_fail; | |
3847 | } | |
3848 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
3849 | { | |
3850 | if (temp3) | |
3851 | delete arg3; | |
3852 | } | |
3853 | { | |
3854 | if (temp7) | |
3855 | delete arg7; | |
3856 | } | |
3857 | return resultobj; | |
3858 | fail: | |
3859 | { | |
3860 | if (temp3) | |
3861 | delete arg3; | |
3862 | } | |
3863 | { | |
3864 | if (temp7) | |
3865 | delete arg7; | |
3866 | } | |
3867 | return NULL; | |
3868 | } | |
3869 | ||
3870 | ||
3871 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject *resultobj; | |
3873 | wxStaticText *result; | |
3874 | char *kwnames[] = { | |
3875 | NULL | |
3876 | }; | |
3877 | ||
3878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
3879 | { | |
3880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3881 | result = (wxStaticText *)new wxStaticText(); | |
3882 | ||
3883 | wxPyEndAllowThreads(__tstate); | |
3884 | if (PyErr_Occurred()) SWIG_fail; | |
3885 | } | |
3886 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
3887 | return resultobj; | |
3888 | fail: | |
3889 | return NULL; | |
3890 | } | |
3891 | ||
3892 | ||
3893 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3894 | PyObject *resultobj; | |
3895 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
3896 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3897 | int arg3 ; |
d14a1e28 RD |
3898 | wxString *arg4 = 0 ; |
3899 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3900 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3901 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3902 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3903 | long arg7 = (long) 0 ; | |
3904 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
3905 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3906 | bool result; | |
e811c8ce | 3907 | bool temp4 = False ; |
d14a1e28 RD |
3908 | wxPoint temp5 ; |
3909 | wxSize temp6 ; | |
e811c8ce | 3910 | bool temp8 = False ; |
d14a1e28 RD |
3911 | PyObject * obj0 = 0 ; |
3912 | PyObject * obj1 = 0 ; | |
3913 | PyObject * obj3 = 0 ; | |
3914 | PyObject * obj4 = 0 ; | |
3915 | PyObject * obj5 = 0 ; | |
3916 | PyObject * obj7 = 0 ; | |
3917 | char *kwnames[] = { | |
3918 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3919 | }; | |
3920 | ||
3921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticText_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
3922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3923 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3924 | { | |
3925 | arg4 = wxString_in_helper(obj3); | |
3926 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3927 | temp4 = True; |
d14a1e28 RD |
3928 | } |
3929 | if (obj4) { | |
3930 | { | |
3931 | arg5 = &temp5; | |
3932 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3933 | } | |
3934 | } | |
3935 | if (obj5) { | |
3936 | { | |
3937 | arg6 = &temp6; | |
3938 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3939 | } | |
3940 | } | |
3941 | if (obj7) { | |
3942 | { | |
3943 | arg8 = wxString_in_helper(obj7); | |
3944 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3945 | temp8 = True; |
d14a1e28 RD |
3946 | } |
3947 | } | |
3948 | { | |
3949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3950 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3951 | ||
3952 | wxPyEndAllowThreads(__tstate); | |
3953 | if (PyErr_Occurred()) SWIG_fail; | |
3954 | } | |
3955 | resultobj = PyInt_FromLong((long)result); | |
3956 | { | |
3957 | if (temp4) | |
3958 | delete arg4; | |
3959 | } | |
3960 | { | |
3961 | if (temp8) | |
3962 | delete arg8; | |
3963 | } | |
3964 | return resultobj; | |
3965 | fail: | |
3966 | { | |
3967 | if (temp4) | |
3968 | delete arg4; | |
3969 | } | |
3970 | { | |
3971 | if (temp8) | |
3972 | delete arg8; | |
3973 | } | |
3974 | return NULL; | |
3975 | } | |
3976 | ||
3977 | ||
3978 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
3979 | PyObject *obj; | |
3980 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3981 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
3982 | Py_INCREF(obj); | |
3983 | return Py_BuildValue((char *)""); | |
3984 | } | |
3985 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3986 | PyObject *resultobj; | |
3987 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3988 | int arg2 ; |
d14a1e28 RD |
3989 | wxBitmap *arg3 = 0 ; |
3990 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3991 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3992 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3993 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3994 | long arg6 = (long) 0 ; | |
3995 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
3996 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3997 | wxStaticBitmap *result; | |
3998 | wxPoint temp4 ; | |
3999 | wxSize temp5 ; | |
e811c8ce | 4000 | bool temp7 = False ; |
d14a1e28 RD |
4001 | PyObject * obj0 = 0 ; |
4002 | PyObject * obj2 = 0 ; | |
4003 | PyObject * obj3 = 0 ; | |
4004 | PyObject * obj4 = 0 ; | |
4005 | PyObject * obj6 = 0 ; | |
4006 | char *kwnames[] = { | |
4007 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4008 | }; | |
4009 | ||
4010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticBitmap",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
4011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4012 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4013 | if (arg3 == NULL) { | |
4014 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4015 | } | |
4016 | if (obj3) { | |
4017 | { | |
4018 | arg4 = &temp4; | |
4019 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4020 | } | |
4021 | } | |
4022 | if (obj4) { | |
4023 | { | |
4024 | arg5 = &temp5; | |
4025 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4026 | } | |
4027 | } | |
4028 | if (obj6) { | |
4029 | { | |
4030 | arg7 = wxString_in_helper(obj6); | |
4031 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4032 | temp7 = True; |
d14a1e28 RD |
4033 | } |
4034 | } | |
4035 | { | |
4036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4037 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4038 | ||
4039 | wxPyEndAllowThreads(__tstate); | |
4040 | if (PyErr_Occurred()) SWIG_fail; | |
4041 | } | |
4042 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4043 | { | |
4044 | if (temp7) | |
4045 | delete arg7; | |
4046 | } | |
4047 | return resultobj; | |
4048 | fail: | |
4049 | { | |
4050 | if (temp7) | |
4051 | delete arg7; | |
4052 | } | |
4053 | return NULL; | |
4054 | } | |
4055 | ||
4056 | ||
4057 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4058 | PyObject *resultobj; | |
4059 | wxStaticBitmap *result; | |
4060 | char *kwnames[] = { | |
4061 | NULL | |
4062 | }; | |
4063 | ||
4064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4065 | { | |
4066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4067 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4068 | ||
4069 | wxPyEndAllowThreads(__tstate); | |
4070 | if (PyErr_Occurred()) SWIG_fail; | |
4071 | } | |
4072 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4073 | return resultobj; | |
4074 | fail: | |
4075 | return NULL; | |
4076 | } | |
4077 | ||
4078 | ||
4079 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4080 | PyObject *resultobj; | |
4081 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4082 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4083 | int arg3 ; |
d14a1e28 RD |
4084 | wxBitmap *arg4 = 0 ; |
4085 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4086 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4087 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4088 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4089 | long arg7 = (long) 0 ; | |
4090 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4091 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4092 | bool result; | |
4093 | wxPoint temp5 ; | |
4094 | wxSize temp6 ; | |
e811c8ce | 4095 | bool temp8 = False ; |
d14a1e28 RD |
4096 | PyObject * obj0 = 0 ; |
4097 | PyObject * obj1 = 0 ; | |
4098 | PyObject * obj3 = 0 ; | |
4099 | PyObject * obj4 = 0 ; | |
4100 | PyObject * obj5 = 0 ; | |
4101 | PyObject * obj7 = 0 ; | |
4102 | char *kwnames[] = { | |
4103 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4104 | }; | |
4105 | ||
4106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticBitmap_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
4107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4108 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4109 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4110 | if (arg4 == NULL) { | |
4111 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4112 | } | |
4113 | if (obj4) { | |
4114 | { | |
4115 | arg5 = &temp5; | |
4116 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4117 | } | |
4118 | } | |
4119 | if (obj5) { | |
4120 | { | |
4121 | arg6 = &temp6; | |
4122 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4123 | } | |
4124 | } | |
4125 | if (obj7) { | |
4126 | { | |
4127 | arg8 = wxString_in_helper(obj7); | |
4128 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4129 | temp8 = True; |
d14a1e28 RD |
4130 | } |
4131 | } | |
4132 | { | |
4133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4134 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4135 | ||
4136 | wxPyEndAllowThreads(__tstate); | |
4137 | if (PyErr_Occurred()) SWIG_fail; | |
4138 | } | |
4139 | resultobj = PyInt_FromLong((long)result); | |
4140 | { | |
4141 | if (temp8) | |
4142 | delete arg8; | |
4143 | } | |
4144 | return resultobj; | |
4145 | fail: | |
4146 | { | |
4147 | if (temp8) | |
4148 | delete arg8; | |
4149 | } | |
4150 | return NULL; | |
4151 | } | |
4152 | ||
4153 | ||
4154 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4155 | PyObject *resultobj; | |
4156 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4157 | wxBitmap result; | |
4158 | PyObject * obj0 = 0 ; | |
4159 | char *kwnames[] = { | |
4160 | (char *) "self", NULL | |
4161 | }; | |
4162 | ||
4163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4165 | { | |
4166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4167 | result = (arg1)->GetBitmap(); | |
4168 | ||
4169 | wxPyEndAllowThreads(__tstate); | |
4170 | if (PyErr_Occurred()) SWIG_fail; | |
4171 | } | |
4172 | { | |
4173 | wxBitmap * resultptr; | |
4174 | resultptr = new wxBitmap((wxBitmap &) result); | |
4175 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4176 | } | |
4177 | return resultobj; | |
4178 | fail: | |
4179 | return NULL; | |
4180 | } | |
4181 | ||
4182 | ||
4183 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4184 | PyObject *resultobj; | |
4185 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4186 | wxBitmap *arg2 = 0 ; | |
4187 | PyObject * obj0 = 0 ; | |
4188 | PyObject * obj1 = 0 ; | |
4189 | char *kwnames[] = { | |
4190 | (char *) "self",(char *) "bitmap", NULL | |
4191 | }; | |
4192 | ||
4193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4195 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4196 | if (arg2 == NULL) { | |
4197 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4198 | } | |
4199 | { | |
4200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4201 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4202 | ||
4203 | wxPyEndAllowThreads(__tstate); | |
4204 | if (PyErr_Occurred()) SWIG_fail; | |
4205 | } | |
4206 | Py_INCREF(Py_None); resultobj = Py_None; | |
4207 | return resultobj; | |
4208 | fail: | |
4209 | return NULL; | |
4210 | } | |
4211 | ||
4212 | ||
4213 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4214 | PyObject *resultobj; | |
4215 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4216 | wxIcon *arg2 = 0 ; | |
4217 | PyObject * obj0 = 0 ; | |
4218 | PyObject * obj1 = 0 ; | |
4219 | char *kwnames[] = { | |
4220 | (char *) "self",(char *) "icon", NULL | |
4221 | }; | |
4222 | ||
4223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4225 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4226 | if (arg2 == NULL) { | |
4227 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4228 | } | |
4229 | { | |
4230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4231 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
4232 | ||
4233 | wxPyEndAllowThreads(__tstate); | |
4234 | if (PyErr_Occurred()) SWIG_fail; | |
4235 | } | |
4236 | Py_INCREF(Py_None); resultobj = Py_None; | |
4237 | return resultobj; | |
4238 | fail: | |
4239 | return NULL; | |
4240 | } | |
4241 | ||
4242 | ||
4243 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
4244 | PyObject *obj; | |
4245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4246 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
4247 | Py_INCREF(obj); | |
4248 | return Py_BuildValue((char *)""); | |
4249 | } | |
4250 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4251 | PyObject *resultobj; | |
4252 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4253 | int arg2 ; |
d14a1e28 RD |
4254 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4255 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4256 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4257 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4258 | int arg5 = (int) 0 ; | |
4259 | wxString *arg6 = (wxString *) NULL ; | |
4260 | long arg7 = (long) 0 ; | |
4261 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4262 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4263 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
4264 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4265 | wxListBox *result; | |
4266 | wxPoint temp3 ; | |
4267 | wxSize temp4 ; | |
e811c8ce | 4268 | bool temp8 = False ; |
d14a1e28 RD |
4269 | PyObject * obj0 = 0 ; |
4270 | PyObject * obj2 = 0 ; | |
4271 | PyObject * obj3 = 0 ; | |
4272 | PyObject * obj4 = 0 ; | |
4273 | PyObject * obj6 = 0 ; | |
4274 | PyObject * obj7 = 0 ; | |
4275 | char *kwnames[] = { | |
4276 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4277 | }; | |
4278 | ||
4279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_ListBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
4280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4281 | if (obj2) { | |
4282 | { | |
4283 | arg3 = &temp3; | |
4284 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4285 | } | |
4286 | } | |
4287 | if (obj3) { | |
4288 | { | |
4289 | arg4 = &temp4; | |
4290 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4291 | } | |
4292 | } | |
4293 | if (obj4) { | |
4294 | { | |
4295 | arg5 = PyList_Size(obj4); | |
4296 | arg6 = wxString_LIST_helper(obj4); | |
4297 | if (arg6 == NULL) SWIG_fail; | |
4298 | } | |
4299 | } | |
4300 | if (obj6) { | |
4301 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4302 | if (arg8 == NULL) { | |
4303 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4304 | } | |
4305 | } | |
4306 | if (obj7) { | |
4307 | { | |
4308 | arg9 = wxString_in_helper(obj7); | |
4309 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 4310 | temp8 = True; |
d14a1e28 RD |
4311 | } |
4312 | } | |
4313 | { | |
4314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4315 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4316 | ||
4317 | wxPyEndAllowThreads(__tstate); | |
4318 | if (PyErr_Occurred()) SWIG_fail; | |
4319 | } | |
4320 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4321 | { | |
4322 | if (arg6) delete [] arg6; | |
4323 | } | |
4324 | { | |
4325 | if (temp8) | |
4326 | delete arg9; | |
4327 | } | |
4328 | return resultobj; | |
4329 | fail: | |
4330 | { | |
4331 | if (arg6) delete [] arg6; | |
4332 | } | |
4333 | { | |
4334 | if (temp8) | |
4335 | delete arg9; | |
4336 | } | |
4337 | return NULL; | |
4338 | } | |
4339 | ||
4340 | ||
4341 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4342 | PyObject *resultobj; | |
4343 | wxListBox *result; | |
4344 | char *kwnames[] = { | |
4345 | NULL | |
4346 | }; | |
4347 | ||
4348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
4349 | { | |
4350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4351 | result = (wxListBox *)new wxListBox(); | |
4352 | ||
4353 | wxPyEndAllowThreads(__tstate); | |
4354 | if (PyErr_Occurred()) SWIG_fail; | |
4355 | } | |
4356 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4357 | return resultobj; | |
4358 | fail: | |
4359 | return NULL; | |
4360 | } | |
4361 | ||
4362 | ||
4363 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4364 | PyObject *resultobj; | |
4365 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4366 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4367 | int arg3 ; |
d14a1e28 RD |
4368 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4369 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4370 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4371 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4372 | int arg6 = (int) 0 ; | |
4373 | wxString *arg7 = (wxString *) NULL ; | |
4374 | long arg8 = (long) 0 ; | |
4375 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
4376 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
4377 | wxString const &arg10_defvalue = wxPyListBoxNameStr ; | |
4378 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
4379 | bool result; | |
4380 | wxPoint temp4 ; | |
4381 | wxSize temp5 ; | |
e811c8ce | 4382 | bool temp9 = False ; |
d14a1e28 RD |
4383 | PyObject * obj0 = 0 ; |
4384 | PyObject * obj1 = 0 ; | |
4385 | PyObject * obj3 = 0 ; | |
4386 | PyObject * obj4 = 0 ; | |
4387 | PyObject * obj5 = 0 ; | |
4388 | PyObject * obj7 = 0 ; | |
4389 | PyObject * obj8 = 0 ; | |
4390 | char *kwnames[] = { | |
4391 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4392 | }; | |
4393 | ||
4394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:ListBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
4395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4396 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4397 | if (obj3) { | |
4398 | { | |
4399 | arg4 = &temp4; | |
4400 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4401 | } | |
4402 | } | |
4403 | if (obj4) { | |
4404 | { | |
4405 | arg5 = &temp5; | |
4406 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4407 | } | |
4408 | } | |
4409 | if (obj5) { | |
4410 | { | |
4411 | arg6 = PyList_Size(obj5); | |
4412 | arg7 = wxString_LIST_helper(obj5); | |
4413 | if (arg7 == NULL) SWIG_fail; | |
4414 | } | |
4415 | } | |
4416 | if (obj7) { | |
4417 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4418 | if (arg9 == NULL) { | |
4419 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4420 | } | |
4421 | } | |
4422 | if (obj8) { | |
4423 | { | |
4424 | arg10 = wxString_in_helper(obj8); | |
4425 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 4426 | temp9 = True; |
d14a1e28 RD |
4427 | } |
4428 | } | |
4429 | { | |
4430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4431 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
4432 | ||
4433 | wxPyEndAllowThreads(__tstate); | |
4434 | if (PyErr_Occurred()) SWIG_fail; | |
4435 | } | |
4436 | resultobj = PyInt_FromLong((long)result); | |
4437 | { | |
4438 | if (arg7) delete [] arg7; | |
4439 | } | |
4440 | { | |
4441 | if (temp9) | |
4442 | delete arg10; | |
4443 | } | |
4444 | return resultobj; | |
4445 | fail: | |
4446 | { | |
4447 | if (arg7) delete [] arg7; | |
4448 | } | |
4449 | { | |
4450 | if (temp9) | |
4451 | delete arg10; | |
4452 | } | |
4453 | return NULL; | |
4454 | } | |
4455 | ||
4456 | ||
4457 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4458 | PyObject *resultobj; | |
4459 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4460 | wxString *arg2 = 0 ; | |
4461 | int arg3 ; | |
4462 | PyObject *arg4 = (PyObject *) NULL ; | |
e811c8ce | 4463 | bool temp2 = False ; |
d14a1e28 RD |
4464 | PyObject * obj0 = 0 ; |
4465 | PyObject * obj1 = 0 ; | |
4466 | PyObject * obj3 = 0 ; | |
4467 | char *kwnames[] = { | |
4468 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
4469 | }; | |
4470 | ||
4471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:ListBox_Insert",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
4472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4473 | { | |
4474 | arg2 = wxString_in_helper(obj1); | |
4475 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4476 | temp2 = True; |
d14a1e28 RD |
4477 | } |
4478 | if (obj3) { | |
4479 | arg4 = obj3; | |
4480 | } | |
4481 | { | |
4482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4483 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
4484 | ||
4485 | wxPyEndAllowThreads(__tstate); | |
4486 | if (PyErr_Occurred()) SWIG_fail; | |
4487 | } | |
4488 | Py_INCREF(Py_None); resultobj = Py_None; | |
4489 | { | |
4490 | if (temp2) | |
4491 | delete arg2; | |
4492 | } | |
4493 | return resultobj; | |
4494 | fail: | |
4495 | { | |
4496 | if (temp2) | |
4497 | delete arg2; | |
4498 | } | |
4499 | return NULL; | |
4500 | } | |
4501 | ||
4502 | ||
4503 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4504 | PyObject *resultobj; | |
4505 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4506 | wxArrayString *arg2 = 0 ; | |
4507 | int arg3 ; | |
4508 | PyObject * obj0 = 0 ; | |
4509 | PyObject * obj1 = 0 ; | |
4510 | char *kwnames[] = { | |
4511 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
4512 | }; | |
4513 | ||
4514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListBox_InsertItems",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
4515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4516 | { | |
4517 | if (! PySequence_Check(obj1)) { | |
4518 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4519 | SWIG_fail; | |
4520 | } | |
4521 | arg2 = new wxArrayString; | |
4522 | int i, len=PySequence_Length(obj1); | |
4523 | for (i=0; i<len; i++) { | |
4524 | PyObject* item = PySequence_GetItem(obj1, i); | |
4525 | #if wxUSE_UNICODE | |
4526 | PyObject* str = PyObject_Unicode(item); | |
4527 | #else | |
4528 | PyObject* str = PyObject_Str(item); | |
4529 | #endif | |
4530 | arg2->Add(Py2wxString(str)); | |
4531 | Py_DECREF(item); | |
4532 | Py_DECREF(str); | |
4533 | } | |
4534 | } | |
4535 | { | |
4536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4537 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
4538 | ||
4539 | wxPyEndAllowThreads(__tstate); | |
4540 | if (PyErr_Occurred()) SWIG_fail; | |
4541 | } | |
4542 | Py_INCREF(Py_None); resultobj = Py_None; | |
4543 | { | |
4544 | if (arg2) delete arg2; | |
4545 | } | |
4546 | return resultobj; | |
4547 | fail: | |
4548 | { | |
4549 | if (arg2) delete arg2; | |
4550 | } | |
4551 | return NULL; | |
4552 | } | |
4553 | ||
4554 | ||
4555 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4556 | PyObject *resultobj; | |
4557 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4558 | wxArrayString *arg2 = 0 ; | |
4559 | PyObject * obj0 = 0 ; | |
4560 | PyObject * obj1 = 0 ; | |
4561 | char *kwnames[] = { | |
4562 | (char *) "self",(char *) "items", NULL | |
4563 | }; | |
4564 | ||
4565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
4566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4567 | { | |
4568 | if (! PySequence_Check(obj1)) { | |
4569 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4570 | SWIG_fail; | |
4571 | } | |
4572 | arg2 = new wxArrayString; | |
4573 | int i, len=PySequence_Length(obj1); | |
4574 | for (i=0; i<len; i++) { | |
4575 | PyObject* item = PySequence_GetItem(obj1, i); | |
4576 | #if wxUSE_UNICODE | |
4577 | PyObject* str = PyObject_Unicode(item); | |
4578 | #else | |
4579 | PyObject* str = PyObject_Str(item); | |
4580 | #endif | |
4581 | arg2->Add(Py2wxString(str)); | |
4582 | Py_DECREF(item); | |
4583 | Py_DECREF(str); | |
4584 | } | |
4585 | } | |
4586 | { | |
4587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4588 | (arg1)->Set((wxArrayString const &)*arg2); | |
4589 | ||
4590 | wxPyEndAllowThreads(__tstate); | |
4591 | if (PyErr_Occurred()) SWIG_fail; | |
4592 | } | |
4593 | Py_INCREF(Py_None); resultobj = Py_None; | |
4594 | { | |
4595 | if (arg2) delete arg2; | |
4596 | } | |
4597 | return resultobj; | |
4598 | fail: | |
4599 | { | |
4600 | if (arg2) delete arg2; | |
4601 | } | |
4602 | return NULL; | |
4603 | } | |
4604 | ||
4605 | ||
4606 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4607 | PyObject *resultobj; | |
4608 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4609 | int arg2 ; | |
4610 | bool result; | |
4611 | PyObject * obj0 = 0 ; | |
4612 | char *kwnames[] = { | |
4613 | (char *) "self",(char *) "n", NULL | |
4614 | }; | |
4615 | ||
4616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_IsSelected",kwnames,&obj0,&arg2)) goto fail; | |
4617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4618 | { | |
4619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4620 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
4621 | ||
4622 | wxPyEndAllowThreads(__tstate); | |
4623 | if (PyErr_Occurred()) SWIG_fail; | |
4624 | } | |
4625 | resultobj = PyInt_FromLong((long)result); | |
4626 | return resultobj; | |
4627 | fail: | |
4628 | return NULL; | |
4629 | } | |
4630 | ||
4631 | ||
4632 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4633 | PyObject *resultobj; | |
4634 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4635 | int arg2 ; | |
e811c8ce | 4636 | bool arg3 = (bool) True ; |
d14a1e28 RD |
4637 | PyObject * obj0 = 0 ; |
4638 | PyObject * obj2 = 0 ; | |
4639 | char *kwnames[] = { | |
4640 | (char *) "self",(char *) "n",(char *) "select", NULL | |
4641 | }; | |
4642 | ||
4643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:ListBox_SetSelection",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
4644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4645 | if (obj2) { | |
4646 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
4647 | if (PyErr_Occurred()) SWIG_fail; | |
4648 | } | |
4649 | { | |
4650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4651 | (arg1)->SetSelection(arg2,arg3); | |
4652 | ||
4653 | wxPyEndAllowThreads(__tstate); | |
4654 | if (PyErr_Occurred()) SWIG_fail; | |
4655 | } | |
4656 | Py_INCREF(Py_None); resultobj = Py_None; | |
4657 | return resultobj; | |
4658 | fail: | |
4659 | return NULL; | |
4660 | } | |
4661 | ||
4662 | ||
4663 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4664 | PyObject *resultobj; | |
4665 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4666 | int arg2 ; | |
4667 | PyObject * obj0 = 0 ; | |
4668 | char *kwnames[] = { | |
4669 | (char *) "self",(char *) "n", NULL | |
4670 | }; | |
4671 | ||
4672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_Select",kwnames,&obj0,&arg2)) goto fail; | |
4673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4674 | { | |
4675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4676 | (arg1)->Select(arg2); | |
4677 | ||
4678 | wxPyEndAllowThreads(__tstate); | |
4679 | if (PyErr_Occurred()) SWIG_fail; | |
4680 | } | |
4681 | Py_INCREF(Py_None); resultobj = Py_None; | |
4682 | return resultobj; | |
4683 | fail: | |
4684 | return NULL; | |
4685 | } | |
4686 | ||
4687 | ||
4688 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4689 | PyObject *resultobj; | |
4690 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4691 | int arg2 ; | |
4692 | PyObject * obj0 = 0 ; | |
4693 | char *kwnames[] = { | |
4694 | (char *) "self",(char *) "n", NULL | |
4695 | }; | |
4696 | ||
4697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_Deselect",kwnames,&obj0,&arg2)) goto fail; | |
4698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4699 | { | |
4700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4701 | (arg1)->Deselect(arg2); | |
4702 | ||
4703 | wxPyEndAllowThreads(__tstate); | |
4704 | if (PyErr_Occurred()) SWIG_fail; | |
4705 | } | |
4706 | Py_INCREF(Py_None); resultobj = Py_None; | |
4707 | return resultobj; | |
4708 | fail: | |
4709 | return NULL; | |
4710 | } | |
4711 | ||
4712 | ||
4713 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4714 | PyObject *resultobj; | |
4715 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4716 | int arg2 = (int) -1 ; | |
4717 | PyObject * obj0 = 0 ; | |
4718 | char *kwnames[] = { | |
4719 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
4720 | }; | |
4721 | ||
4722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:ListBox_DeselectAll",kwnames,&obj0,&arg2)) goto fail; | |
4723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4724 | { | |
4725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4726 | (arg1)->DeselectAll(arg2); | |
4727 | ||
4728 | wxPyEndAllowThreads(__tstate); | |
4729 | if (PyErr_Occurred()) SWIG_fail; | |
4730 | } | |
4731 | Py_INCREF(Py_None); resultobj = Py_None; | |
4732 | return resultobj; | |
4733 | fail: | |
4734 | return NULL; | |
4735 | } | |
4736 | ||
4737 | ||
4738 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4739 | PyObject *resultobj; | |
4740 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4741 | wxString *arg2 = 0 ; | |
e811c8ce | 4742 | bool arg3 = (bool) True ; |
d14a1e28 | 4743 | bool result; |
e811c8ce | 4744 | bool temp2 = False ; |
d14a1e28 RD |
4745 | PyObject * obj0 = 0 ; |
4746 | PyObject * obj1 = 0 ; | |
4747 | PyObject * obj2 = 0 ; | |
4748 | char *kwnames[] = { | |
4749 | (char *) "self",(char *) "s",(char *) "select", NULL | |
4750 | }; | |
4751 | ||
4752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4754 | { | |
4755 | arg2 = wxString_in_helper(obj1); | |
4756 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4757 | temp2 = True; |
d14a1e28 RD |
4758 | } |
4759 | if (obj2) { | |
4760 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
4761 | if (PyErr_Occurred()) SWIG_fail; | |
4762 | } | |
4763 | { | |
4764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4765 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
4766 | ||
4767 | wxPyEndAllowThreads(__tstate); | |
4768 | if (PyErr_Occurred()) SWIG_fail; | |
4769 | } | |
4770 | resultobj = PyInt_FromLong((long)result); | |
4771 | { | |
4772 | if (temp2) | |
4773 | delete arg2; | |
4774 | } | |
4775 | return resultobj; | |
4776 | fail: | |
4777 | { | |
4778 | if (temp2) | |
4779 | delete arg2; | |
4780 | } | |
4781 | return NULL; | |
4782 | } | |
4783 | ||
4784 | ||
4785 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4786 | PyObject *resultobj; | |
4787 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4788 | PyObject *result; | |
4789 | PyObject * obj0 = 0 ; | |
4790 | char *kwnames[] = { | |
4791 | (char *) "self", NULL | |
4792 | }; | |
4793 | ||
4794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
4795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4796 | { | |
4797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4798 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
4799 | ||
4800 | wxPyEndAllowThreads(__tstate); | |
4801 | if (PyErr_Occurred()) SWIG_fail; | |
4802 | } | |
4803 | resultobj = result; | |
4804 | return resultobj; | |
4805 | fail: | |
4806 | return NULL; | |
4807 | } | |
4808 | ||
4809 | ||
4810 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4811 | PyObject *resultobj; | |
4812 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4813 | int arg2 ; | |
4814 | PyObject * obj0 = 0 ; | |
4815 | char *kwnames[] = { | |
4816 | (char *) "self",(char *) "n", NULL | |
4817 | }; | |
4818 | ||
4819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_SetFirstItem",kwnames,&obj0,&arg2)) goto fail; | |
4820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4821 | { | |
4822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4823 | (arg1)->SetFirstItem(arg2); | |
4824 | ||
4825 | wxPyEndAllowThreads(__tstate); | |
4826 | if (PyErr_Occurred()) SWIG_fail; | |
4827 | } | |
4828 | Py_INCREF(Py_None); resultobj = Py_None; | |
4829 | return resultobj; | |
4830 | fail: | |
4831 | return NULL; | |
4832 | } | |
4833 | ||
4834 | ||
4835 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4836 | PyObject *resultobj; | |
4837 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4838 | wxString *arg2 = 0 ; | |
e811c8ce | 4839 | bool temp2 = False ; |
d14a1e28 RD |
4840 | PyObject * obj0 = 0 ; |
4841 | PyObject * obj1 = 0 ; | |
4842 | char *kwnames[] = { | |
4843 | (char *) "self",(char *) "s", NULL | |
4844 | }; | |
4845 | ||
4846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
4847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4848 | { | |
4849 | arg2 = wxString_in_helper(obj1); | |
4850 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4851 | temp2 = True; |
d14a1e28 RD |
4852 | } |
4853 | { | |
4854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4855 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
4856 | ||
4857 | wxPyEndAllowThreads(__tstate); | |
4858 | if (PyErr_Occurred()) SWIG_fail; | |
4859 | } | |
4860 | Py_INCREF(Py_None); resultobj = Py_None; | |
4861 | { | |
4862 | if (temp2) | |
4863 | delete arg2; | |
4864 | } | |
4865 | return resultobj; | |
4866 | fail: | |
4867 | { | |
4868 | if (temp2) | |
4869 | delete arg2; | |
4870 | } | |
4871 | return NULL; | |
4872 | } | |
4873 | ||
4874 | ||
4875 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4876 | PyObject *resultobj; | |
4877 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4878 | int arg2 ; | |
4879 | PyObject * obj0 = 0 ; | |
4880 | char *kwnames[] = { | |
4881 | (char *) "self",(char *) "n", NULL | |
4882 | }; | |
4883 | ||
4884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_EnsureVisible",kwnames,&obj0,&arg2)) goto fail; | |
4885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4886 | { | |
4887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4888 | (arg1)->EnsureVisible(arg2); | |
4889 | ||
4890 | wxPyEndAllowThreads(__tstate); | |
4891 | if (PyErr_Occurred()) SWIG_fail; | |
4892 | } | |
4893 | Py_INCREF(Py_None); resultobj = Py_None; | |
4894 | return resultobj; | |
4895 | fail: | |
4896 | return NULL; | |
4897 | } | |
4898 | ||
4899 | ||
4900 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4901 | PyObject *resultobj; | |
4902 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4903 | wxString *arg2 = 0 ; | |
e811c8ce | 4904 | bool temp2 = False ; |
d14a1e28 RD |
4905 | PyObject * obj0 = 0 ; |
4906 | PyObject * obj1 = 0 ; | |
4907 | char *kwnames[] = { | |
4908 | (char *) "self",(char *) "s", NULL | |
4909 | }; | |
4910 | ||
4911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
4912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4913 | { | |
4914 | arg2 = wxString_in_helper(obj1); | |
4915 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4916 | temp2 = True; |
d14a1e28 RD |
4917 | } |
4918 | { | |
4919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4920 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
4921 | ||
4922 | wxPyEndAllowThreads(__tstate); | |
4923 | if (PyErr_Occurred()) SWIG_fail; | |
4924 | } | |
4925 | Py_INCREF(Py_None); resultobj = Py_None; | |
4926 | { | |
4927 | if (temp2) | |
4928 | delete arg2; | |
4929 | } | |
4930 | return resultobj; | |
4931 | fail: | |
4932 | { | |
4933 | if (temp2) | |
4934 | delete arg2; | |
4935 | } | |
4936 | return NULL; | |
4937 | } | |
4938 | ||
4939 | ||
4940 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4941 | PyObject *resultobj; | |
4942 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4943 | bool result; | |
4944 | PyObject * obj0 = 0 ; | |
4945 | char *kwnames[] = { | |
4946 | (char *) "self", NULL | |
4947 | }; | |
4948 | ||
4949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
4950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4951 | { | |
4952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4953 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
4954 | ||
4955 | wxPyEndAllowThreads(__tstate); | |
4956 | if (PyErr_Occurred()) SWIG_fail; | |
4957 | } | |
4958 | resultobj = PyInt_FromLong((long)result); | |
4959 | return resultobj; | |
4960 | fail: | |
4961 | return NULL; | |
4962 | } | |
4963 | ||
4964 | ||
4965 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { | |
4966 | PyObject *obj; | |
4967 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4968 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
4969 | Py_INCREF(obj); | |
4970 | return Py_BuildValue((char *)""); | |
4971 | } | |
4972 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4973 | PyObject *resultobj; | |
4974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4975 | int arg2 ; |
d14a1e28 RD |
4976 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4977 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4978 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4979 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4980 | int arg5 = (int) 0 ; | |
4981 | wxString *arg6 = (wxString *) NULL ; | |
4982 | long arg7 = (long) 0 ; | |
4983 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4984 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4985 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
4986 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4987 | wxCheckListBox *result; | |
4988 | wxPoint temp3 ; | |
4989 | wxSize temp4 ; | |
e811c8ce | 4990 | bool temp8 = False ; |
d14a1e28 RD |
4991 | PyObject * obj0 = 0 ; |
4992 | PyObject * obj2 = 0 ; | |
4993 | PyObject * obj3 = 0 ; | |
4994 | PyObject * obj4 = 0 ; | |
4995 | PyObject * obj6 = 0 ; | |
4996 | PyObject * obj7 = 0 ; | |
4997 | char *kwnames[] = { | |
4998 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4999 | }; | |
5000 | ||
5001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_CheckListBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
5002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5003 | if (obj2) { | |
5004 | { | |
5005 | arg3 = &temp3; | |
5006 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5007 | } | |
5008 | } | |
5009 | if (obj3) { | |
5010 | { | |
5011 | arg4 = &temp4; | |
5012 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5013 | } | |
5014 | } | |
5015 | if (obj4) { | |
5016 | { | |
5017 | arg5 = PyList_Size(obj4); | |
5018 | arg6 = wxString_LIST_helper(obj4); | |
5019 | if (arg6 == NULL) SWIG_fail; | |
5020 | } | |
5021 | } | |
5022 | if (obj6) { | |
5023 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5024 | if (arg8 == NULL) { | |
5025 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5026 | } | |
5027 | } | |
5028 | if (obj7) { | |
5029 | { | |
5030 | arg9 = wxString_in_helper(obj7); | |
5031 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 5032 | temp8 = True; |
d14a1e28 RD |
5033 | } |
5034 | } | |
5035 | { | |
5036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5037 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5038 | ||
5039 | wxPyEndAllowThreads(__tstate); | |
5040 | if (PyErr_Occurred()) SWIG_fail; | |
5041 | } | |
5042 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5043 | { | |
5044 | if (arg6) delete [] arg6; | |
5045 | } | |
5046 | { | |
5047 | if (temp8) | |
5048 | delete arg9; | |
5049 | } | |
5050 | return resultobj; | |
5051 | fail: | |
5052 | { | |
5053 | if (arg6) delete [] arg6; | |
5054 | } | |
5055 | { | |
5056 | if (temp8) | |
5057 | delete arg9; | |
5058 | } | |
5059 | return NULL; | |
5060 | } | |
5061 | ||
5062 | ||
5063 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5064 | PyObject *resultobj; | |
5065 | wxCheckListBox *result; | |
5066 | char *kwnames[] = { | |
5067 | NULL | |
5068 | }; | |
5069 | ||
5070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
5071 | { | |
5072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5073 | result = (wxCheckListBox *)new wxCheckListBox(); | |
5074 | ||
5075 | wxPyEndAllowThreads(__tstate); | |
5076 | if (PyErr_Occurred()) SWIG_fail; | |
5077 | } | |
5078 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5079 | return resultobj; | |
5080 | fail: | |
5081 | return NULL; | |
5082 | } | |
5083 | ||
5084 | ||
5085 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5086 | PyObject *resultobj; | |
5087 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5088 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 5089 | int arg3 ; |
d14a1e28 RD |
5090 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5091 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5092 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5093 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5094 | int arg6 = (int) 0 ; | |
5095 | wxString *arg7 = (wxString *) NULL ; | |
5096 | long arg8 = (long) 0 ; | |
5097 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5098 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5099 | wxString const &arg10_defvalue = wxPyListBoxNameStr ; | |
5100 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5101 | bool result; | |
5102 | wxPoint temp4 ; | |
5103 | wxSize temp5 ; | |
e811c8ce | 5104 | bool temp9 = False ; |
d14a1e28 RD |
5105 | PyObject * obj0 = 0 ; |
5106 | PyObject * obj1 = 0 ; | |
5107 | PyObject * obj3 = 0 ; | |
5108 | PyObject * obj4 = 0 ; | |
5109 | PyObject * obj5 = 0 ; | |
5110 | PyObject * obj7 = 0 ; | |
5111 | PyObject * obj8 = 0 ; | |
5112 | char *kwnames[] = { | |
5113 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5114 | }; | |
5115 | ||
5116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:CheckListBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
5117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5118 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5119 | if (obj3) { | |
5120 | { | |
5121 | arg4 = &temp4; | |
5122 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5123 | } | |
5124 | } | |
5125 | if (obj4) { | |
5126 | { | |
5127 | arg5 = &temp5; | |
5128 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5129 | } | |
5130 | } | |
5131 | if (obj5) { | |
5132 | { | |
5133 | arg6 = PyList_Size(obj5); | |
5134 | arg7 = wxString_LIST_helper(obj5); | |
5135 | if (arg7 == NULL) SWIG_fail; | |
5136 | } | |
5137 | } | |
5138 | if (obj7) { | |
5139 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5140 | if (arg9 == NULL) { | |
5141 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5142 | } | |
5143 | } | |
5144 | if (obj8) { | |
5145 | { | |
5146 | arg10 = wxString_in_helper(obj8); | |
5147 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 5148 | temp9 = True; |
d14a1e28 RD |
5149 | } |
5150 | } | |
5151 | { | |
5152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5153 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
5154 | ||
5155 | wxPyEndAllowThreads(__tstate); | |
5156 | if (PyErr_Occurred()) SWIG_fail; | |
5157 | } | |
5158 | resultobj = PyInt_FromLong((long)result); | |
5159 | { | |
5160 | if (arg7) delete [] arg7; | |
5161 | } | |
5162 | { | |
5163 | if (temp9) | |
5164 | delete arg10; | |
5165 | } | |
5166 | return resultobj; | |
5167 | fail: | |
5168 | { | |
5169 | if (arg7) delete [] arg7; | |
5170 | } | |
5171 | { | |
5172 | if (temp9) | |
5173 | delete arg10; | |
5174 | } | |
5175 | return NULL; | |
5176 | } | |
5177 | ||
5178 | ||
5179 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5180 | PyObject *resultobj; | |
5181 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5182 | int arg2 ; | |
5183 | bool result; | |
5184 | PyObject * obj0 = 0 ; | |
5185 | char *kwnames[] = { | |
5186 | (char *) "self",(char *) "index", NULL | |
5187 | }; | |
5188 | ||
5189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CheckListBox_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
5190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5191 | { | |
5192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5193 | result = (bool)(arg1)->IsChecked(arg2); | |
5194 | ||
5195 | wxPyEndAllowThreads(__tstate); | |
5196 | if (PyErr_Occurred()) SWIG_fail; | |
5197 | } | |
5198 | resultobj = PyInt_FromLong((long)result); | |
5199 | return resultobj; | |
5200 | fail: | |
5201 | return NULL; | |
5202 | } | |
5203 | ||
5204 | ||
5205 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5206 | PyObject *resultobj; | |
5207 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5208 | int arg2 ; | |
e811c8ce | 5209 | int arg3 = (int) True ; |
d14a1e28 RD |
5210 | PyObject * obj0 = 0 ; |
5211 | char *kwnames[] = { | |
5212 | (char *) "self",(char *) "index",(char *) "check", NULL | |
5213 | }; | |
5214 | ||
5215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:CheckListBox_Check",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5217 | { | |
5218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5219 | (arg1)->Check(arg2,arg3); | |
5220 | ||
5221 | wxPyEndAllowThreads(__tstate); | |
5222 | if (PyErr_Occurred()) SWIG_fail; | |
5223 | } | |
5224 | Py_INCREF(Py_None); resultobj = Py_None; | |
5225 | return resultobj; | |
5226 | fail: | |
5227 | return NULL; | |
5228 | } | |
5229 | ||
5230 | ||
5231 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5232 | PyObject *resultobj; | |
5233 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5234 | int result; | |
5235 | PyObject * obj0 = 0 ; | |
5236 | char *kwnames[] = { | |
5237 | (char *) "self", NULL | |
5238 | }; | |
5239 | ||
5240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
5241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5242 | { | |
5243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5244 | result = (int)(arg1)->GetItemHeight(); | |
5245 | ||
5246 | wxPyEndAllowThreads(__tstate); | |
5247 | if (PyErr_Occurred()) SWIG_fail; | |
5248 | } | |
5249 | resultobj = PyInt_FromLong((long)result); | |
5250 | return resultobj; | |
5251 | fail: | |
5252 | return NULL; | |
5253 | } | |
5254 | ||
5255 | ||
5256 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5257 | PyObject *resultobj; | |
5258 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5259 | wxPoint *arg2 = 0 ; | |
5260 | int result; | |
5261 | wxPoint temp2 ; | |
5262 | PyObject * obj0 = 0 ; | |
5263 | PyObject * obj1 = 0 ; | |
5264 | char *kwnames[] = { | |
5265 | (char *) "self",(char *) "pt", NULL | |
5266 | }; | |
5267 | ||
5268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
5269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5270 | { | |
5271 | arg2 = &temp2; | |
5272 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5273 | } | |
5274 | { | |
5275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5276 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
5277 | ||
5278 | wxPyEndAllowThreads(__tstate); | |
5279 | if (PyErr_Occurred()) SWIG_fail; | |
5280 | } | |
5281 | resultobj = PyInt_FromLong((long)result); | |
5282 | return resultobj; | |
5283 | fail: | |
5284 | return NULL; | |
5285 | } | |
5286 | ||
5287 | ||
5288 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5289 | PyObject *resultobj; | |
5290 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
5291 | int arg2 ; |
5292 | int arg3 ; | |
d14a1e28 RD |
5293 | int result; |
5294 | PyObject * obj0 = 0 ; | |
5295 | char *kwnames[] = { | |
5296 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5297 | }; | |
5298 | ||
5299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:CheckListBox_HitTestXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5301 | { | |
5302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5303 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
5304 | ||
5305 | wxPyEndAllowThreads(__tstate); | |
5306 | if (PyErr_Occurred()) SWIG_fail; | |
5307 | } | |
5308 | resultobj = PyInt_FromLong((long)result); | |
5309 | return resultobj; | |
5310 | fail: | |
5311 | return NULL; | |
5312 | } | |
5313 | ||
5314 | ||
5315 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
5316 | PyObject *obj; | |
5317 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5318 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
5319 | Py_INCREF(obj); | |
5320 | return Py_BuildValue((char *)""); | |
5321 | } | |
5322 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { | |
5323 | PyObject *resultobj; | |
5324 | wxTextAttr *result; | |
5325 | ||
5326 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
5327 | { | |
5328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5329 | result = (wxTextAttr *)new wxTextAttr(); | |
5330 | ||
5331 | wxPyEndAllowThreads(__tstate); | |
5332 | if (PyErr_Occurred()) SWIG_fail; | |
5333 | } | |
5334 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
5335 | return resultobj; | |
5336 | fail: | |
5337 | return NULL; | |
5338 | } | |
5339 | ||
5340 | ||
5341 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
5342 | PyObject *resultobj; | |
5343 | wxColour *arg1 = 0 ; | |
5344 | wxColour const &arg2_defvalue = wxNullColour ; | |
5345 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
5346 | wxFont const &arg3_defvalue = wxNullFont ; | |
5347 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
5348 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
5349 | wxTextAttr *result; | |
5350 | wxColour temp1 ; | |
5351 | wxColour temp2 ; | |
5352 | PyObject * obj0 = 0 ; | |
5353 | PyObject * obj1 = 0 ; | |
5354 | PyObject * obj2 = 0 ; | |
5355 | ||
5356 | if(!PyArg_ParseTuple(args,(char *)"O|OOi:new_TextAttr",&obj0,&obj1,&obj2,&arg4)) goto fail; | |
5357 | { | |
5358 | arg1 = &temp1; | |
5359 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5360 | } | |
5361 | if (obj1) { | |
5362 | { | |
5363 | arg2 = &temp2; | |
5364 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5365 | } | |
5366 | } | |
5367 | if (obj2) { | |
5368 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5369 | if (arg3 == NULL) { | |
5370 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5371 | } | |
5372 | } | |
5373 | { | |
5374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5375 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
5376 | ||
5377 | wxPyEndAllowThreads(__tstate); | |
5378 | if (PyErr_Occurred()) SWIG_fail; | |
5379 | } | |
5380 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
5381 | return resultobj; | |
5382 | fail: | |
5383 | return NULL; | |
5384 | } | |
5385 | ||
5386 | ||
5387 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
5388 | int argc; | |
5389 | PyObject *argv[5]; | |
5390 | int ii; | |
5391 | ||
5392 | argc = PyObject_Length(args); | |
5393 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
5394 | argv[ii] = PyTuple_GetItem(args,ii); | |
5395 | } | |
5396 | if (argc == 0) { | |
5397 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
5398 | } | |
5399 | if ((argc >= 1) && (argc <= 4)) { | |
5400 | int _v; | |
5401 | { | |
5402 | _v = wxColour_typecheck(argv[0]); | |
5403 | } | |
5404 | if (_v) { | |
5405 | if (argc <= 1) { | |
5406 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5407 | } | |
5408 | { | |
5409 | _v = wxColour_typecheck(argv[1]); | |
5410 | } | |
5411 | if (_v) { | |
5412 | if (argc <= 2) { | |
5413 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5414 | } | |
5415 | { | |
5416 | void *ptr; | |
5417 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
5418 | _v = 0; | |
5419 | PyErr_Clear(); | |
5420 | } else { | |
5421 | _v = 1; | |
5422 | } | |
5423 | } | |
5424 | if (_v) { | |
5425 | if (argc <= 3) { | |
5426 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5427 | } | |
5428 | { | |
5429 | _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0; | |
5430 | } | |
5431 | if (_v) { | |
5432 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5433 | } | |
5434 | } | |
5435 | } | |
5436 | } | |
5437 | } | |
5438 | ||
5439 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
5440 | return NULL; | |
5441 | } | |
5442 | ||
5443 | ||
5444 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5445 | PyObject *resultobj; | |
5446 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5447 | PyObject * obj0 = 0 ; | |
5448 | char *kwnames[] = { | |
5449 | (char *) "self", NULL | |
5450 | }; | |
5451 | ||
5452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
5453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5454 | { | |
5455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5456 | (arg1)->Init(); | |
5457 | ||
5458 | wxPyEndAllowThreads(__tstate); | |
5459 | if (PyErr_Occurred()) SWIG_fail; | |
5460 | } | |
5461 | Py_INCREF(Py_None); resultobj = Py_None; | |
5462 | return resultobj; | |
5463 | fail: | |
5464 | return NULL; | |
5465 | } | |
5466 | ||
5467 | ||
5468 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5469 | PyObject *resultobj; | |
5470 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5471 | wxColour *arg2 = 0 ; | |
5472 | wxColour temp2 ; | |
5473 | PyObject * obj0 = 0 ; | |
5474 | PyObject * obj1 = 0 ; | |
5475 | char *kwnames[] = { | |
5476 | (char *) "self",(char *) "colText", NULL | |
5477 | }; | |
5478 | ||
5479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
5480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5481 | { | |
5482 | arg2 = &temp2; | |
5483 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5484 | } | |
5485 | { | |
5486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5487 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
5488 | ||
5489 | wxPyEndAllowThreads(__tstate); | |
5490 | if (PyErr_Occurred()) SWIG_fail; | |
5491 | } | |
5492 | Py_INCREF(Py_None); resultobj = Py_None; | |
5493 | return resultobj; | |
5494 | fail: | |
5495 | return NULL; | |
5496 | } | |
5497 | ||
5498 | ||
5499 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5500 | PyObject *resultobj; | |
5501 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5502 | wxColour *arg2 = 0 ; | |
5503 | wxColour temp2 ; | |
5504 | PyObject * obj0 = 0 ; | |
5505 | PyObject * obj1 = 0 ; | |
5506 | char *kwnames[] = { | |
5507 | (char *) "self",(char *) "colBack", NULL | |
5508 | }; | |
5509 | ||
5510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
5511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5512 | { | |
5513 | arg2 = &temp2; | |
5514 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5515 | } | |
5516 | { | |
5517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5518 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
5519 | ||
5520 | wxPyEndAllowThreads(__tstate); | |
5521 | if (PyErr_Occurred()) SWIG_fail; | |
5522 | } | |
5523 | Py_INCREF(Py_None); resultobj = Py_None; | |
5524 | return resultobj; | |
5525 | fail: | |
5526 | return NULL; | |
5527 | } | |
5528 | ||
5529 | ||
5530 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5531 | PyObject *resultobj; | |
5532 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5533 | wxFont *arg2 = 0 ; | |
5534 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
5535 | PyObject * obj0 = 0 ; | |
5536 | PyObject * obj1 = 0 ; | |
5537 | char *kwnames[] = { | |
5538 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
5539 | }; | |
5540 | ||
5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:TextAttr_SetFont",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5543 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5544 | if (arg2 == NULL) { | |
5545 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5546 | } | |
5547 | { | |
5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5549 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
5550 | ||
5551 | wxPyEndAllowThreads(__tstate); | |
5552 | if (PyErr_Occurred()) SWIG_fail; | |
5553 | } | |
5554 | Py_INCREF(Py_None); resultobj = Py_None; | |
5555 | return resultobj; | |
5556 | fail: | |
5557 | return NULL; | |
5558 | } | |
5559 | ||
5560 | ||
5561 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5562 | PyObject *resultobj; | |
5563 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5564 | int arg2 ; | |
5565 | PyObject * obj0 = 0 ; | |
5566 | char *kwnames[] = { | |
5567 | (char *) "self",(char *) "alignment", NULL | |
5568 | }; | |
5569 | ||
5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetAlignment",kwnames,&obj0,&arg2)) goto fail; | |
5571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5572 | { | |
5573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5574 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
5575 | ||
5576 | wxPyEndAllowThreads(__tstate); | |
5577 | if (PyErr_Occurred()) SWIG_fail; | |
5578 | } | |
5579 | Py_INCREF(Py_None); resultobj = Py_None; | |
5580 | return resultobj; | |
5581 | fail: | |
5582 | return NULL; | |
5583 | } | |
5584 | ||
5585 | ||
5586 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5587 | PyObject *resultobj; | |
5588 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5589 | wxArrayInt *arg2 = 0 ; | |
5590 | PyObject * obj0 = 0 ; | |
5591 | PyObject * obj1 = 0 ; | |
5592 | char *kwnames[] = { | |
5593 | (char *) "self",(char *) "tabs", NULL | |
5594 | }; | |
5595 | ||
5596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
5597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5598 | { | |
5599 | if (! PySequence_Check(obj1)) { | |
5600 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
5601 | SWIG_fail; | |
5602 | } | |
5603 | arg2 = new wxArrayInt; | |
5604 | int i, len=PySequence_Length(obj1); | |
5605 | for (i=0; i<len; i++) { | |
5606 | PyObject* item = PySequence_GetItem(obj1, i); | |
5607 | PyObject* number = PyNumber_Int(item); | |
5608 | arg2->Add(PyInt_AS_LONG(number)); | |
5609 | Py_DECREF(item); | |
5610 | Py_DECREF(number); | |
5611 | } | |
5612 | } | |
5613 | { | |
5614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5615 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
5616 | ||
5617 | wxPyEndAllowThreads(__tstate); | |
5618 | if (PyErr_Occurred()) SWIG_fail; | |
5619 | } | |
5620 | Py_INCREF(Py_None); resultobj = Py_None; | |
5621 | { | |
5622 | if (arg2) delete arg2; | |
5623 | } | |
5624 | return resultobj; | |
5625 | fail: | |
5626 | { | |
5627 | if (arg2) delete arg2; | |
5628 | } | |
5629 | return NULL; | |
5630 | } | |
5631 | ||
5632 | ||
5633 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5634 | PyObject *resultobj; | |
5635 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5636 | int arg2 ; | |
5637 | PyObject * obj0 = 0 ; | |
5638 | char *kwnames[] = { | |
5639 | (char *) "self",(char *) "indent", NULL | |
5640 | }; | |
5641 | ||
5642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetLeftIndent",kwnames,&obj0,&arg2)) goto fail; | |
5643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5644 | { | |
5645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5646 | (arg1)->SetLeftIndent(arg2); | |
5647 | ||
5648 | wxPyEndAllowThreads(__tstate); | |
5649 | if (PyErr_Occurred()) SWIG_fail; | |
5650 | } | |
5651 | Py_INCREF(Py_None); resultobj = Py_None; | |
5652 | return resultobj; | |
5653 | fail: | |
5654 | return NULL; | |
5655 | } | |
5656 | ||
5657 | ||
5658 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5659 | PyObject *resultobj; | |
5660 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5661 | int arg2 ; | |
5662 | PyObject * obj0 = 0 ; | |
5663 | char *kwnames[] = { | |
5664 | (char *) "self",(char *) "indent", NULL | |
5665 | }; | |
5666 | ||
5667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetRightIndent",kwnames,&obj0,&arg2)) goto fail; | |
5668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5669 | { | |
5670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5671 | (arg1)->SetRightIndent(arg2); | |
5672 | ||
5673 | wxPyEndAllowThreads(__tstate); | |
5674 | if (PyErr_Occurred()) SWIG_fail; | |
5675 | } | |
5676 | Py_INCREF(Py_None); resultobj = Py_None; | |
5677 | return resultobj; | |
5678 | fail: | |
5679 | return NULL; | |
5680 | } | |
5681 | ||
5682 | ||
5683 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5684 | PyObject *resultobj; | |
5685 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5686 | long arg2 ; | |
5687 | PyObject * obj0 = 0 ; | |
5688 | char *kwnames[] = { | |
5689 | (char *) "self",(char *) "flags", NULL | |
5690 | }; | |
5691 | ||
5692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextAttr_SetFlags",kwnames,&obj0,&arg2)) goto fail; | |
5693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5694 | { | |
5695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5696 | (arg1)->SetFlags(arg2); | |
5697 | ||
5698 | wxPyEndAllowThreads(__tstate); | |
5699 | if (PyErr_Occurred()) SWIG_fail; | |
5700 | } | |
5701 | Py_INCREF(Py_None); resultobj = Py_None; | |
5702 | return resultobj; | |
5703 | fail: | |
5704 | return NULL; | |
5705 | } | |
5706 | ||
5707 | ||
5708 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5709 | PyObject *resultobj; | |
5710 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5711 | bool result; | |
5712 | PyObject * obj0 = 0 ; | |
5713 | char *kwnames[] = { | |
5714 | (char *) "self", NULL | |
5715 | }; | |
5716 | ||
5717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
5718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5719 | { | |
5720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5721 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
5722 | ||
5723 | wxPyEndAllowThreads(__tstate); | |
5724 | if (PyErr_Occurred()) SWIG_fail; | |
5725 | } | |
5726 | resultobj = PyInt_FromLong((long)result); | |
5727 | return resultobj; | |
5728 | fail: | |
5729 | return NULL; | |
5730 | } | |
5731 | ||
5732 | ||
5733 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5734 | PyObject *resultobj; | |
5735 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5736 | bool result; | |
5737 | PyObject * obj0 = 0 ; | |
5738 | char *kwnames[] = { | |
5739 | (char *) "self", NULL | |
5740 | }; | |
5741 | ||
5742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
5743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5744 | { | |
5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5746 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
5747 | ||
5748 | wxPyEndAllowThreads(__tstate); | |
5749 | if (PyErr_Occurred()) SWIG_fail; | |
5750 | } | |
5751 | resultobj = PyInt_FromLong((long)result); | |
5752 | return resultobj; | |
5753 | fail: | |
5754 | return NULL; | |
5755 | } | |
5756 | ||
5757 | ||
5758 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5759 | PyObject *resultobj; | |
5760 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5761 | bool result; | |
5762 | PyObject * obj0 = 0 ; | |
5763 | char *kwnames[] = { | |
5764 | (char *) "self", NULL | |
5765 | }; | |
5766 | ||
5767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
5768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5769 | { | |
5770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5771 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
5772 | ||
5773 | wxPyEndAllowThreads(__tstate); | |
5774 | if (PyErr_Occurred()) SWIG_fail; | |
5775 | } | |
5776 | resultobj = PyInt_FromLong((long)result); | |
5777 | return resultobj; | |
5778 | fail: | |
5779 | return NULL; | |
5780 | } | |
5781 | ||
5782 | ||
5783 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5784 | PyObject *resultobj; | |
5785 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5786 | bool result; | |
5787 | PyObject * obj0 = 0 ; | |
5788 | char *kwnames[] = { | |
5789 | (char *) "self", NULL | |
5790 | }; | |
5791 | ||
5792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
5793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5794 | { | |
5795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5796 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
5797 | ||
5798 | wxPyEndAllowThreads(__tstate); | |
5799 | if (PyErr_Occurred()) SWIG_fail; | |
5800 | } | |
5801 | resultobj = PyInt_FromLong((long)result); | |
5802 | return resultobj; | |
5803 | fail: | |
5804 | return NULL; | |
5805 | } | |
5806 | ||
5807 | ||
5808 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5809 | PyObject *resultobj; | |
5810 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5811 | bool result; | |
5812 | PyObject * obj0 = 0 ; | |
5813 | char *kwnames[] = { | |
5814 | (char *) "self", NULL | |
5815 | }; | |
5816 | ||
5817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
5818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5819 | { | |
5820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5821 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
5822 | ||
5823 | wxPyEndAllowThreads(__tstate); | |
5824 | if (PyErr_Occurred()) SWIG_fail; | |
5825 | } | |
5826 | resultobj = PyInt_FromLong((long)result); | |
5827 | return resultobj; | |
5828 | fail: | |
5829 | return NULL; | |
5830 | } | |
5831 | ||
5832 | ||
5833 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5834 | PyObject *resultobj; | |
5835 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5836 | bool result; | |
5837 | PyObject * obj0 = 0 ; | |
5838 | char *kwnames[] = { | |
5839 | (char *) "self", NULL | |
5840 | }; | |
5841 | ||
5842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
5843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5844 | { | |
5845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5846 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
5847 | ||
5848 | wxPyEndAllowThreads(__tstate); | |
5849 | if (PyErr_Occurred()) SWIG_fail; | |
5850 | } | |
5851 | resultobj = PyInt_FromLong((long)result); | |
5852 | return resultobj; | |
5853 | fail: | |
5854 | return NULL; | |
5855 | } | |
5856 | ||
5857 | ||
5858 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5859 | PyObject *resultobj; | |
5860 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5861 | bool result; | |
5862 | PyObject * obj0 = 0 ; | |
5863 | char *kwnames[] = { | |
5864 | (char *) "self", NULL | |
5865 | }; | |
5866 | ||
5867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
5868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5869 | { | |
5870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5871 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
5872 | ||
5873 | wxPyEndAllowThreads(__tstate); | |
5874 | if (PyErr_Occurred()) SWIG_fail; | |
5875 | } | |
5876 | resultobj = PyInt_FromLong((long)result); | |
5877 | return resultobj; | |
5878 | fail: | |
5879 | return NULL; | |
5880 | } | |
5881 | ||
5882 | ||
5883 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5884 | PyObject *resultobj; | |
5885 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5886 | long arg2 ; | |
5887 | bool result; | |
5888 | PyObject * obj0 = 0 ; | |
5889 | char *kwnames[] = { | |
5890 | (char *) "self",(char *) "flag", NULL | |
5891 | }; | |
5892 | ||
5893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextAttr_HasFlag",kwnames,&obj0,&arg2)) goto fail; | |
5894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5895 | { | |
5896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5897 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
5898 | ||
5899 | wxPyEndAllowThreads(__tstate); | |
5900 | if (PyErr_Occurred()) SWIG_fail; | |
5901 | } | |
5902 | resultobj = PyInt_FromLong((long)result); | |
5903 | return resultobj; | |
5904 | fail: | |
5905 | return NULL; | |
5906 | } | |
5907 | ||
5908 | ||
5909 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5910 | PyObject *resultobj; | |
5911 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5912 | wxColour *result; | |
5913 | PyObject * obj0 = 0 ; | |
5914 | char *kwnames[] = { | |
5915 | (char *) "self", NULL | |
5916 | }; | |
5917 | ||
5918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
5919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5920 | { | |
5921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5922 | { | |
5923 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
5924 | result = (wxColour *) &_result_ref; | |
5925 | } | |
5926 | ||
5927 | wxPyEndAllowThreads(__tstate); | |
5928 | if (PyErr_Occurred()) SWIG_fail; | |
5929 | } | |
5930 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
5931 | return resultobj; | |
5932 | fail: | |
5933 | return NULL; | |
5934 | } | |
5935 | ||
5936 | ||
5937 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5938 | PyObject *resultobj; | |
5939 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5940 | wxColour *result; | |
5941 | PyObject * obj0 = 0 ; | |
5942 | char *kwnames[] = { | |
5943 | (char *) "self", NULL | |
5944 | }; | |
5945 | ||
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
5947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5948 | { | |
5949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5950 | { | |
5951 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
5952 | result = (wxColour *) &_result_ref; | |
5953 | } | |
5954 | ||
5955 | wxPyEndAllowThreads(__tstate); | |
5956 | if (PyErr_Occurred()) SWIG_fail; | |
5957 | } | |
5958 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
5959 | return resultobj; | |
5960 | fail: | |
5961 | return NULL; | |
5962 | } | |
5963 | ||
5964 | ||
5965 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5966 | PyObject *resultobj; | |
5967 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5968 | wxFont *result; | |
5969 | PyObject * obj0 = 0 ; | |
5970 | char *kwnames[] = { | |
5971 | (char *) "self", NULL | |
5972 | }; | |
5973 | ||
5974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
5975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5976 | { | |
5977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5978 | { | |
5979 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
5980 | result = (wxFont *) &_result_ref; | |
5981 | } | |
5982 | ||
5983 | wxPyEndAllowThreads(__tstate); | |
5984 | if (PyErr_Occurred()) SWIG_fail; | |
5985 | } | |
5986 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
5987 | return resultobj; | |
5988 | fail: | |
5989 | return NULL; | |
5990 | } | |
5991 | ||
5992 | ||
5993 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5994 | PyObject *resultobj; | |
5995 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5996 | int result; | |
5997 | PyObject * obj0 = 0 ; | |
5998 | char *kwnames[] = { | |
5999 | (char *) "self", NULL | |
6000 | }; | |
6001 | ||
6002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
6003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6004 | { | |
6005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6006 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
6007 | ||
6008 | wxPyEndAllowThreads(__tstate); | |
6009 | if (PyErr_Occurred()) SWIG_fail; | |
6010 | } | |
6011 | resultobj = PyInt_FromLong((long)result); | |
6012 | return resultobj; | |
6013 | fail: | |
6014 | return NULL; | |
6015 | } | |
6016 | ||
6017 | ||
6018 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6019 | PyObject *resultobj; | |
6020 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6021 | wxArrayInt *result; | |
6022 | PyObject * obj0 = 0 ; | |
6023 | char *kwnames[] = { | |
6024 | (char *) "self", NULL | |
6025 | }; | |
6026 | ||
6027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
6028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6029 | { | |
6030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6031 | { | |
6032 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
6033 | result = (wxArrayInt *) &_result_ref; | |
6034 | } | |
6035 | ||
6036 | wxPyEndAllowThreads(__tstate); | |
6037 | if (PyErr_Occurred()) SWIG_fail; | |
6038 | } | |
6039 | { | |
6040 | resultobj = PyList_New(0); | |
6041 | size_t idx; | |
6042 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
6043 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
6044 | PyList_Append(resultobj, val); | |
6045 | Py_DECREF(val); | |
6046 | } | |
6047 | } | |
6048 | return resultobj; | |
6049 | fail: | |
6050 | return NULL; | |
6051 | } | |
6052 | ||
6053 | ||
6054 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6055 | PyObject *resultobj; | |
6056 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6057 | long result; | |
6058 | PyObject * obj0 = 0 ; | |
6059 | char *kwnames[] = { | |
6060 | (char *) "self", NULL | |
6061 | }; | |
6062 | ||
6063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
6064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6065 | { | |
6066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6067 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
6068 | ||
6069 | wxPyEndAllowThreads(__tstate); | |
6070 | if (PyErr_Occurred()) SWIG_fail; | |
6071 | } | |
6072 | resultobj = PyInt_FromLong((long)result); | |
6073 | return resultobj; | |
6074 | fail: | |
6075 | return NULL; | |
6076 | } | |
6077 | ||
6078 | ||
6079 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6080 | PyObject *resultobj; | |
6081 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6082 | long result; | |
6083 | PyObject * obj0 = 0 ; | |
6084 | char *kwnames[] = { | |
6085 | (char *) "self", NULL | |
6086 | }; | |
6087 | ||
6088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
6089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6090 | { | |
6091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6092 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
6093 | ||
6094 | wxPyEndAllowThreads(__tstate); | |
6095 | if (PyErr_Occurred()) SWIG_fail; | |
6096 | } | |
6097 | resultobj = PyInt_FromLong((long)result); | |
6098 | return resultobj; | |
6099 | fail: | |
6100 | return NULL; | |
6101 | } | |
6102 | ||
6103 | ||
6104 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6105 | PyObject *resultobj; | |
6106 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6107 | long result; | |
6108 | PyObject * obj0 = 0 ; | |
6109 | char *kwnames[] = { | |
6110 | (char *) "self", NULL | |
6111 | }; | |
6112 | ||
6113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
6114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6115 | { | |
6116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6117 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
6118 | ||
6119 | wxPyEndAllowThreads(__tstate); | |
6120 | if (PyErr_Occurred()) SWIG_fail; | |
6121 | } | |
6122 | resultobj = PyInt_FromLong((long)result); | |
6123 | return resultobj; | |
6124 | fail: | |
6125 | return NULL; | |
6126 | } | |
6127 | ||
6128 | ||
6129 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6130 | PyObject *resultobj; | |
6131 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6132 | bool result; | |
6133 | PyObject * obj0 = 0 ; | |
6134 | char *kwnames[] = { | |
6135 | (char *) "self", NULL | |
6136 | }; | |
6137 | ||
6138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
6139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6140 | { | |
6141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6142 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
6143 | ||
6144 | wxPyEndAllowThreads(__tstate); | |
6145 | if (PyErr_Occurred()) SWIG_fail; | |
6146 | } | |
6147 | resultobj = PyInt_FromLong((long)result); | |
6148 | return resultobj; | |
6149 | fail: | |
6150 | return NULL; | |
6151 | } | |
6152 | ||
6153 | ||
6154 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6155 | PyObject *resultobj; | |
6156 | wxTextAttr *arg1 = 0 ; | |
6157 | wxTextAttr *arg2 = 0 ; | |
6158 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
6159 | wxTextAttr result; | |
6160 | PyObject * obj0 = 0 ; | |
6161 | PyObject * obj1 = 0 ; | |
6162 | PyObject * obj2 = 0 ; | |
6163 | char *kwnames[] = { | |
6164 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
6165 | }; | |
6166 | ||
6167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6169 | if (arg1 == NULL) { | |
6170 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6171 | } | |
6172 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6173 | if (arg2 == NULL) { | |
6174 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6175 | } | |
6176 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6177 | { | |
6178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6179 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
6180 | ||
6181 | wxPyEndAllowThreads(__tstate); | |
6182 | if (PyErr_Occurred()) SWIG_fail; | |
6183 | } | |
6184 | { | |
6185 | wxTextAttr * resultptr; | |
6186 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
6187 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
6188 | } | |
6189 | return resultobj; | |
6190 | fail: | |
6191 | return NULL; | |
6192 | } | |
6193 | ||
6194 | ||
6195 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
6196 | PyObject *obj; | |
6197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6198 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
6199 | Py_INCREF(obj); | |
6200 | return Py_BuildValue((char *)""); | |
6201 | } | |
6202 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6203 | PyObject *resultobj; | |
6204 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 6205 | int arg2 ; |
d14a1e28 RD |
6206 | wxString const &arg3_defvalue = wxPyEmptyString ; |
6207 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6208 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6209 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6210 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6211 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6212 | long arg6 = (long) 0 ; | |
6213 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6214 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6215 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
6216 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6217 | wxTextCtrl *result; | |
e811c8ce | 6218 | bool temp3 = False ; |
d14a1e28 RD |
6219 | wxPoint temp4 ; |
6220 | wxSize temp5 ; | |
e811c8ce | 6221 | bool temp8 = False ; |
d14a1e28 RD |
6222 | PyObject * obj0 = 0 ; |
6223 | PyObject * obj2 = 0 ; | |
6224 | PyObject * obj3 = 0 ; | |
6225 | PyObject * obj4 = 0 ; | |
6226 | PyObject * obj6 = 0 ; | |
6227 | PyObject * obj7 = 0 ; | |
6228 | char *kwnames[] = { | |
6229 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6230 | }; | |
6231 | ||
6232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_TextCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
6233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6234 | if (obj2) { | |
6235 | { | |
6236 | arg3 = wxString_in_helper(obj2); | |
6237 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6238 | temp3 = True; |
d14a1e28 RD |
6239 | } |
6240 | } | |
6241 | if (obj3) { | |
6242 | { | |
6243 | arg4 = &temp4; | |
6244 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6245 | } | |
6246 | } | |
6247 | if (obj4) { | |
6248 | { | |
6249 | arg5 = &temp5; | |
6250 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6251 | } | |
6252 | } | |
6253 | if (obj6) { | |
6254 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6255 | if (arg7 == NULL) { | |
6256 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6257 | } | |
6258 | } | |
6259 | if (obj7) { | |
6260 | { | |
6261 | arg8 = wxString_in_helper(obj7); | |
6262 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 6263 | temp8 = True; |
d14a1e28 RD |
6264 | } |
6265 | } | |
6266 | { | |
6267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6268 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6269 | ||
6270 | wxPyEndAllowThreads(__tstate); | |
6271 | if (PyErr_Occurred()) SWIG_fail; | |
6272 | } | |
6273 | { | |
6274 | resultobj = wxPyMake_wxObject(result); | |
6275 | } | |
6276 | { | |
6277 | if (temp3) | |
6278 | delete arg3; | |
6279 | } | |
6280 | { | |
6281 | if (temp8) | |
6282 | delete arg8; | |
6283 | } | |
6284 | return resultobj; | |
6285 | fail: | |
6286 | { | |
6287 | if (temp3) | |
6288 | delete arg3; | |
6289 | } | |
6290 | { | |
6291 | if (temp8) | |
6292 | delete arg8; | |
6293 | } | |
6294 | return NULL; | |
6295 | } | |
6296 | ||
6297 | ||
6298 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6299 | PyObject *resultobj; | |
6300 | wxTextCtrl *result; | |
6301 | char *kwnames[] = { | |
6302 | NULL | |
6303 | }; | |
6304 | ||
6305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
6306 | { | |
6307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6308 | result = (wxTextCtrl *)new wxTextCtrl(); | |
6309 | ||
6310 | wxPyEndAllowThreads(__tstate); | |
6311 | if (PyErr_Occurred()) SWIG_fail; | |
6312 | } | |
6313 | { | |
6314 | resultobj = wxPyMake_wxObject(result); | |
6315 | } | |
6316 | return resultobj; | |
6317 | fail: | |
6318 | return NULL; | |
6319 | } | |
6320 | ||
6321 | ||
6322 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6323 | PyObject *resultobj; | |
6324 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6325 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 6326 | int arg3 ; |
d14a1e28 RD |
6327 | wxString const &arg4_defvalue = wxPyEmptyString ; |
6328 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6329 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6330 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6331 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6332 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6333 | long arg7 = (long) 0 ; | |
6334 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6335 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6336 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
6337 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6338 | bool result; | |
e811c8ce | 6339 | bool temp4 = False ; |
d14a1e28 RD |
6340 | wxPoint temp5 ; |
6341 | wxSize temp6 ; | |
e811c8ce | 6342 | bool temp9 = False ; |
d14a1e28 RD |
6343 | PyObject * obj0 = 0 ; |
6344 | PyObject * obj1 = 0 ; | |
6345 | PyObject * obj3 = 0 ; | |
6346 | PyObject * obj4 = 0 ; | |
6347 | PyObject * obj5 = 0 ; | |
6348 | PyObject * obj7 = 0 ; | |
6349 | PyObject * obj8 = 0 ; | |
6350 | char *kwnames[] = { | |
6351 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6352 | }; | |
6353 | ||
6354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:TextCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
6355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6356 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6357 | if (obj3) { | |
6358 | { | |
6359 | arg4 = wxString_in_helper(obj3); | |
6360 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 6361 | temp4 = True; |
d14a1e28 RD |
6362 | } |
6363 | } | |
6364 | if (obj4) { | |
6365 | { | |
6366 | arg5 = &temp5; | |
6367 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6368 | } | |
6369 | } | |
6370 | if (obj5) { | |
6371 | { | |
6372 | arg6 = &temp6; | |
6373 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6374 | } | |
6375 | } | |
6376 | if (obj7) { | |
6377 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6378 | if (arg8 == NULL) { | |
6379 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6380 | } | |
6381 | } | |
6382 | if (obj8) { | |
6383 | { | |
6384 | arg9 = wxString_in_helper(obj8); | |
6385 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 6386 | temp9 = True; |
d14a1e28 RD |
6387 | } |
6388 | } | |
6389 | { | |
6390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6391 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6392 | ||
6393 | wxPyEndAllowThreads(__tstate); | |
6394 | if (PyErr_Occurred()) SWIG_fail; | |
6395 | } | |
6396 | resultobj = PyInt_FromLong((long)result); | |
6397 | { | |
6398 | if (temp4) | |
6399 | delete arg4; | |
6400 | } | |
6401 | { | |
6402 | if (temp9) | |
6403 | delete arg9; | |
6404 | } | |
6405 | return resultobj; | |
6406 | fail: | |
6407 | { | |
6408 | if (temp4) | |
6409 | delete arg4; | |
6410 | } | |
6411 | { | |
6412 | if (temp9) | |
6413 | delete arg9; | |
6414 | } | |
6415 | return NULL; | |
6416 | } | |
6417 | ||
6418 | ||
6419 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6420 | PyObject *resultobj; | |
6421 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6422 | wxString result; | |
6423 | PyObject * obj0 = 0 ; | |
6424 | char *kwnames[] = { | |
6425 | (char *) "self", NULL | |
6426 | }; | |
6427 | ||
6428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
6429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6430 | { | |
6431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6432 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
6433 | ||
6434 | wxPyEndAllowThreads(__tstate); | |
6435 | if (PyErr_Occurred()) SWIG_fail; | |
6436 | } | |
6437 | { | |
6438 | #if wxUSE_UNICODE | |
6439 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6440 | #else | |
6441 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6442 | #endif | |
6443 | } | |
6444 | return resultobj; | |
6445 | fail: | |
6446 | return NULL; | |
6447 | } | |
6448 | ||
6449 | ||
6450 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6451 | PyObject *resultobj; | |
6452 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6453 | wxString *arg2 = 0 ; | |
e811c8ce | 6454 | bool temp2 = False ; |
d14a1e28 RD |
6455 | PyObject * obj0 = 0 ; |
6456 | PyObject * obj1 = 0 ; | |
6457 | char *kwnames[] = { | |
6458 | (char *) "self",(char *) "value", NULL | |
6459 | }; | |
6460 | ||
6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
6462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6463 | { | |
6464 | arg2 = wxString_in_helper(obj1); | |
6465 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6466 | temp2 = True; |
d14a1e28 RD |
6467 | } |
6468 | { | |
6469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6470 | (arg1)->SetValue((wxString const &)*arg2); | |
6471 | ||
6472 | wxPyEndAllowThreads(__tstate); | |
6473 | if (PyErr_Occurred()) SWIG_fail; | |
6474 | } | |
6475 | Py_INCREF(Py_None); resultobj = Py_None; | |
6476 | { | |
6477 | if (temp2) | |
6478 | delete arg2; | |
6479 | } | |
6480 | return resultobj; | |
6481 | fail: | |
6482 | { | |
6483 | if (temp2) | |
6484 | delete arg2; | |
6485 | } | |
6486 | return NULL; | |
6487 | } | |
6488 | ||
6489 | ||
6490 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6491 | PyObject *resultobj; | |
6492 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6493 | long arg2 ; | |
6494 | long arg3 ; | |
6495 | wxString result; | |
6496 | PyObject * obj0 = 0 ; | |
6497 | char *kwnames[] = { | |
6498 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6499 | }; | |
6500 | ||
6501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_GetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
6502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6503 | { | |
6504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6505 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
6506 | ||
6507 | wxPyEndAllowThreads(__tstate); | |
6508 | if (PyErr_Occurred()) SWIG_fail; | |
6509 | } | |
6510 | { | |
6511 | #if wxUSE_UNICODE | |
6512 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6513 | #else | |
6514 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6515 | #endif | |
6516 | } | |
6517 | return resultobj; | |
6518 | fail: | |
6519 | return NULL; | |
6520 | } | |
6521 | ||
6522 | ||
6523 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6524 | PyObject *resultobj; | |
6525 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6526 | long arg2 ; | |
6527 | int result; | |
6528 | PyObject * obj0 = 0 ; | |
6529 | char *kwnames[] = { | |
6530 | (char *) "self",(char *) "lineNo", NULL | |
6531 | }; | |
6532 | ||
6533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_GetLineLength",kwnames,&obj0,&arg2)) goto fail; | |
6534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6535 | { | |
6536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6537 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
6538 | ||
6539 | wxPyEndAllowThreads(__tstate); | |
6540 | if (PyErr_Occurred()) SWIG_fail; | |
6541 | } | |
6542 | resultobj = PyInt_FromLong((long)result); | |
6543 | return resultobj; | |
6544 | fail: | |
6545 | return NULL; | |
6546 | } | |
6547 | ||
6548 | ||
6549 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6550 | PyObject *resultobj; | |
6551 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6552 | long arg2 ; | |
6553 | wxString result; | |
6554 | PyObject * obj0 = 0 ; | |
6555 | char *kwnames[] = { | |
6556 | (char *) "self",(char *) "lineNo", NULL | |
6557 | }; | |
6558 | ||
6559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_GetLineText",kwnames,&obj0,&arg2)) goto fail; | |
6560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6561 | { | |
6562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6563 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
6564 | ||
6565 | wxPyEndAllowThreads(__tstate); | |
6566 | if (PyErr_Occurred()) SWIG_fail; | |
6567 | } | |
6568 | { | |
6569 | #if wxUSE_UNICODE | |
6570 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6571 | #else | |
6572 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6573 | #endif | |
6574 | } | |
6575 | return resultobj; | |
6576 | fail: | |
6577 | return NULL; | |
6578 | } | |
6579 | ||
6580 | ||
6581 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6582 | PyObject *resultobj; | |
6583 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6584 | int result; | |
6585 | PyObject * obj0 = 0 ; | |
6586 | char *kwnames[] = { | |
6587 | (char *) "self", NULL | |
6588 | }; | |
6589 | ||
6590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
6591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6592 | { | |
6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6594 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
6595 | ||
6596 | wxPyEndAllowThreads(__tstate); | |
6597 | if (PyErr_Occurred()) SWIG_fail; | |
6598 | } | |
6599 | resultobj = PyInt_FromLong((long)result); | |
6600 | return resultobj; | |
6601 | fail: | |
6602 | return NULL; | |
6603 | } | |
6604 | ||
6605 | ||
6606 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6607 | PyObject *resultobj; | |
6608 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6609 | bool result; | |
6610 | PyObject * obj0 = 0 ; | |
6611 | char *kwnames[] = { | |
6612 | (char *) "self", NULL | |
6613 | }; | |
6614 | ||
6615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
6616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6617 | { | |
6618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6619 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
6620 | ||
6621 | wxPyEndAllowThreads(__tstate); | |
6622 | if (PyErr_Occurred()) SWIG_fail; | |
6623 | } | |
6624 | resultobj = PyInt_FromLong((long)result); | |
6625 | return resultobj; | |
6626 | fail: | |
6627 | return NULL; | |
6628 | } | |
6629 | ||
6630 | ||
6631 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6632 | PyObject *resultobj; | |
6633 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6634 | bool result; | |
6635 | PyObject * obj0 = 0 ; | |
6636 | char *kwnames[] = { | |
6637 | (char *) "self", NULL | |
6638 | }; | |
6639 | ||
6640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
6641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6642 | { | |
6643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6644 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
6645 | ||
6646 | wxPyEndAllowThreads(__tstate); | |
6647 | if (PyErr_Occurred()) SWIG_fail; | |
6648 | } | |
6649 | resultobj = PyInt_FromLong((long)result); | |
6650 | return resultobj; | |
6651 | fail: | |
6652 | return NULL; | |
6653 | } | |
6654 | ||
6655 | ||
6656 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6657 | PyObject *resultobj; | |
6658 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6659 | bool result; | |
6660 | PyObject * obj0 = 0 ; | |
6661 | char *kwnames[] = { | |
6662 | (char *) "self", NULL | |
6663 | }; | |
6664 | ||
6665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
6666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6667 | { | |
6668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6669 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
6670 | ||
6671 | wxPyEndAllowThreads(__tstate); | |
6672 | if (PyErr_Occurred()) SWIG_fail; | |
6673 | } | |
6674 | resultobj = PyInt_FromLong((long)result); | |
6675 | return resultobj; | |
6676 | fail: | |
6677 | return NULL; | |
6678 | } | |
6679 | ||
6680 | ||
6681 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6682 | PyObject *resultobj; | |
6683 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6684 | bool result; | |
6685 | PyObject * obj0 = 0 ; | |
6686 | char *kwnames[] = { | |
6687 | (char *) "self", NULL | |
6688 | }; | |
6689 | ||
6690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
6691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6692 | { | |
6693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6694 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
6695 | ||
6696 | wxPyEndAllowThreads(__tstate); | |
6697 | if (PyErr_Occurred()) SWIG_fail; | |
6698 | } | |
6699 | resultobj = PyInt_FromLong((long)result); | |
6700 | return resultobj; | |
6701 | fail: | |
6702 | return NULL; | |
6703 | } | |
6704 | ||
6705 | ||
6706 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6707 | PyObject *resultobj; | |
6708 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6709 | long *arg2 = (long *) 0 ; | |
6710 | long *arg3 = (long *) 0 ; | |
6711 | long temp2 ; | |
6712 | long temp3 ; | |
6713 | PyObject * obj0 = 0 ; | |
6714 | char *kwnames[] = { | |
6715 | (char *) "self", NULL | |
6716 | }; | |
6717 | ||
6718 | arg2 = &temp2; | |
6719 | arg3 = &temp3; | |
6720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
6721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6722 | { | |
6723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6724 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
6725 | ||
6726 | wxPyEndAllowThreads(__tstate); | |
6727 | if (PyErr_Occurred()) SWIG_fail; | |
6728 | } | |
6729 | Py_INCREF(Py_None); resultobj = Py_None; | |
6730 | { | |
6731 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
6732 | resultobj = t_output_helper(resultobj,o); | |
6733 | } | |
6734 | { | |
6735 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
6736 | resultobj = t_output_helper(resultobj,o); | |
6737 | } | |
6738 | return resultobj; | |
6739 | fail: | |
6740 | return NULL; | |
6741 | } | |
6742 | ||
6743 | ||
6744 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6745 | PyObject *resultobj; | |
6746 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6747 | wxString result; | |
6748 | PyObject * obj0 = 0 ; | |
6749 | char *kwnames[] = { | |
6750 | (char *) "self", NULL | |
6751 | }; | |
6752 | ||
6753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
6754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6755 | { | |
6756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6757 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
6758 | ||
6759 | wxPyEndAllowThreads(__tstate); | |
6760 | if (PyErr_Occurred()) SWIG_fail; | |
6761 | } | |
6762 | { | |
6763 | #if wxUSE_UNICODE | |
6764 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6765 | #else | |
6766 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6767 | #endif | |
6768 | } | |
6769 | return resultobj; | |
6770 | fail: | |
6771 | return NULL; | |
6772 | } | |
6773 | ||
6774 | ||
6775 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6776 | PyObject *resultobj; | |
6777 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6778 | PyObject * obj0 = 0 ; | |
6779 | char *kwnames[] = { | |
6780 | (char *) "self", NULL | |
6781 | }; | |
6782 | ||
6783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
6784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6785 | { | |
6786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6787 | (arg1)->Clear(); | |
6788 | ||
6789 | wxPyEndAllowThreads(__tstate); | |
6790 | if (PyErr_Occurred()) SWIG_fail; | |
6791 | } | |
6792 | Py_INCREF(Py_None); resultobj = Py_None; | |
6793 | return resultobj; | |
6794 | fail: | |
6795 | return NULL; | |
6796 | } | |
6797 | ||
6798 | ||
6799 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6800 | PyObject *resultobj; | |
6801 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6802 | long arg2 ; | |
6803 | long arg3 ; | |
6804 | wxString *arg4 = 0 ; | |
e811c8ce | 6805 | bool temp4 = False ; |
d14a1e28 RD |
6806 | PyObject * obj0 = 0 ; |
6807 | PyObject * obj3 = 0 ; | |
6808 | char *kwnames[] = { | |
6809 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
6810 | }; | |
6811 | ||
6812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:TextCtrl_Replace",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
6813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6814 | { | |
6815 | arg4 = wxString_in_helper(obj3); | |
6816 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 6817 | temp4 = True; |
d14a1e28 RD |
6818 | } |
6819 | { | |
6820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6821 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6822 | ||
6823 | wxPyEndAllowThreads(__tstate); | |
6824 | if (PyErr_Occurred()) SWIG_fail; | |
6825 | } | |
6826 | Py_INCREF(Py_None); resultobj = Py_None; | |
6827 | { | |
6828 | if (temp4) | |
6829 | delete arg4; | |
6830 | } | |
6831 | return resultobj; | |
6832 | fail: | |
6833 | { | |
6834 | if (temp4) | |
6835 | delete arg4; | |
6836 | } | |
6837 | return NULL; | |
6838 | } | |
6839 | ||
6840 | ||
6841 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6842 | PyObject *resultobj; | |
6843 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6844 | long arg2 ; | |
6845 | long arg3 ; | |
6846 | PyObject * obj0 = 0 ; | |
6847 | char *kwnames[] = { | |
6848 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6849 | }; | |
6850 | ||
6851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_Remove",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
6852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6853 | { | |
6854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6855 | (arg1)->Remove(arg2,arg3); | |
6856 | ||
6857 | wxPyEndAllowThreads(__tstate); | |
6858 | if (PyErr_Occurred()) SWIG_fail; | |
6859 | } | |
6860 | Py_INCREF(Py_None); resultobj = Py_None; | |
6861 | return resultobj; | |
6862 | fail: | |
6863 | return NULL; | |
6864 | } | |
6865 | ||
6866 | ||
6867 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6868 | PyObject *resultobj; | |
6869 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6870 | wxString *arg2 = 0 ; | |
6871 | bool result; | |
e811c8ce | 6872 | bool temp2 = False ; |
d14a1e28 RD |
6873 | PyObject * obj0 = 0 ; |
6874 | PyObject * obj1 = 0 ; | |
6875 | char *kwnames[] = { | |
6876 | (char *) "self",(char *) "file", NULL | |
6877 | }; | |
6878 | ||
6879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
6880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6881 | { | |
6882 | arg2 = wxString_in_helper(obj1); | |
6883 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6884 | temp2 = True; |
d14a1e28 RD |
6885 | } |
6886 | { | |
6887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6888 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
6889 | ||
6890 | wxPyEndAllowThreads(__tstate); | |
6891 | if (PyErr_Occurred()) SWIG_fail; | |
6892 | } | |
6893 | resultobj = PyInt_FromLong((long)result); | |
6894 | { | |
6895 | if (temp2) | |
6896 | delete arg2; | |
6897 | } | |
6898 | return resultobj; | |
6899 | fail: | |
6900 | { | |
6901 | if (temp2) | |
6902 | delete arg2; | |
6903 | } | |
6904 | return NULL; | |
6905 | } | |
6906 | ||
6907 | ||
6908 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6909 | PyObject *resultobj; | |
6910 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6911 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6912 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6913 | bool result; | |
e811c8ce | 6914 | bool temp2 = False ; |
d14a1e28 RD |
6915 | PyObject * obj0 = 0 ; |
6916 | PyObject * obj1 = 0 ; | |
6917 | char *kwnames[] = { | |
6918 | (char *) "self",(char *) "file", NULL | |
6919 | }; | |
6920 | ||
6921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
6922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6923 | if (obj1) { | |
6924 | { | |
6925 | arg2 = wxString_in_helper(obj1); | |
6926 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6927 | temp2 = True; |
d14a1e28 RD |
6928 | } |
6929 | } | |
6930 | { | |
6931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6932 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
6933 | ||
6934 | wxPyEndAllowThreads(__tstate); | |
6935 | if (PyErr_Occurred()) SWIG_fail; | |
6936 | } | |
6937 | resultobj = PyInt_FromLong((long)result); | |
6938 | { | |
6939 | if (temp2) | |
6940 | delete arg2; | |
6941 | } | |
6942 | return resultobj; | |
6943 | fail: | |
6944 | { | |
6945 | if (temp2) | |
6946 | delete arg2; | |
6947 | } | |
6948 | return NULL; | |
6949 | } | |
6950 | ||
6951 | ||
6952 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6953 | PyObject *resultobj; | |
6954 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6955 | PyObject * obj0 = 0 ; | |
6956 | char *kwnames[] = { | |
6957 | (char *) "self", NULL | |
6958 | }; | |
6959 | ||
6960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
6961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6962 | { | |
6963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6964 | (arg1)->MarkDirty(); | |
6965 | ||
6966 | wxPyEndAllowThreads(__tstate); | |
6967 | if (PyErr_Occurred()) SWIG_fail; | |
6968 | } | |
6969 | Py_INCREF(Py_None); resultobj = Py_None; | |
6970 | return resultobj; | |
6971 | fail: | |
6972 | return NULL; | |
6973 | } | |
6974 | ||
6975 | ||
6976 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6977 | PyObject *resultobj; | |
6978 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6979 | PyObject * obj0 = 0 ; | |
6980 | char *kwnames[] = { | |
6981 | (char *) "self", NULL | |
6982 | }; | |
6983 | ||
6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
6985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6986 | { | |
6987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6988 | (arg1)->DiscardEdits(); | |
6989 | ||
6990 | wxPyEndAllowThreads(__tstate); | |
6991 | if (PyErr_Occurred()) SWIG_fail; | |
6992 | } | |
6993 | Py_INCREF(Py_None); resultobj = Py_None; | |
6994 | return resultobj; | |
6995 | fail: | |
6996 | return NULL; | |
6997 | } | |
6998 | ||
6999 | ||
7000 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7001 | PyObject *resultobj; | |
7002 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7003 | unsigned long arg2 ; | |
7004 | PyObject * obj0 = 0 ; | |
7005 | PyObject * obj1 = 0 ; | |
7006 | char *kwnames[] = { | |
7007 | (char *) "self",(char *) "len", NULL | |
7008 | }; | |
7009 | ||
7010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
7011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7012 | arg2 = (unsigned long) PyInt_AsLong(obj1); | |
7013 | if (PyErr_Occurred()) SWIG_fail; | |
7014 | { | |
7015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7016 | (arg1)->SetMaxLength(arg2); | |
7017 | ||
7018 | wxPyEndAllowThreads(__tstate); | |
7019 | if (PyErr_Occurred()) SWIG_fail; | |
7020 | } | |
7021 | Py_INCREF(Py_None); resultobj = Py_None; | |
7022 | return resultobj; | |
7023 | fail: | |
7024 | return NULL; | |
7025 | } | |
7026 | ||
7027 | ||
7028 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7029 | PyObject *resultobj; | |
7030 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7031 | wxString *arg2 = 0 ; | |
e811c8ce | 7032 | bool temp2 = False ; |
d14a1e28 RD |
7033 | PyObject * obj0 = 0 ; |
7034 | PyObject * obj1 = 0 ; | |
7035 | char *kwnames[] = { | |
7036 | (char *) "self",(char *) "text", NULL | |
7037 | }; | |
7038 | ||
7039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
7040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7041 | { | |
7042 | arg2 = wxString_in_helper(obj1); | |
7043 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7044 | temp2 = True; |
d14a1e28 RD |
7045 | } |
7046 | { | |
7047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7048 | (arg1)->WriteText((wxString const &)*arg2); | |
7049 | ||
7050 | wxPyEndAllowThreads(__tstate); | |
7051 | if (PyErr_Occurred()) SWIG_fail; | |
7052 | } | |
7053 | Py_INCREF(Py_None); resultobj = Py_None; | |
7054 | { | |
7055 | if (temp2) | |
7056 | delete arg2; | |
7057 | } | |
7058 | return resultobj; | |
7059 | fail: | |
7060 | { | |
7061 | if (temp2) | |
7062 | delete arg2; | |
7063 | } | |
7064 | return NULL; | |
7065 | } | |
7066 | ||
7067 | ||
7068 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7069 | PyObject *resultobj; | |
7070 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7071 | wxString *arg2 = 0 ; | |
e811c8ce | 7072 | bool temp2 = False ; |
d14a1e28 RD |
7073 | PyObject * obj0 = 0 ; |
7074 | PyObject * obj1 = 0 ; | |
7075 | char *kwnames[] = { | |
7076 | (char *) "self",(char *) "text", NULL | |
7077 | }; | |
7078 | ||
7079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
7080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7081 | { | |
7082 | arg2 = wxString_in_helper(obj1); | |
7083 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7084 | temp2 = True; |
d14a1e28 RD |
7085 | } |
7086 | { | |
7087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7088 | (arg1)->AppendText((wxString const &)*arg2); | |
7089 | ||
7090 | wxPyEndAllowThreads(__tstate); | |
7091 | if (PyErr_Occurred()) SWIG_fail; | |
7092 | } | |
7093 | Py_INCREF(Py_None); resultobj = Py_None; | |
7094 | { | |
7095 | if (temp2) | |
7096 | delete arg2; | |
7097 | } | |
7098 | return resultobj; | |
7099 | fail: | |
7100 | { | |
7101 | if (temp2) | |
7102 | delete arg2; | |
7103 | } | |
7104 | return NULL; | |
7105 | } | |
7106 | ||
7107 | ||
7108 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7109 | PyObject *resultobj; | |
7110 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7111 | wxKeyEvent *arg2 = 0 ; | |
7112 | bool result; | |
7113 | PyObject * obj0 = 0 ; | |
7114 | PyObject * obj1 = 0 ; | |
7115 | char *kwnames[] = { | |
7116 | (char *) "self",(char *) "event", NULL | |
7117 | }; | |
7118 | ||
7119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
7120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7121 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7122 | if (arg2 == NULL) { | |
7123 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7124 | } | |
7125 | { | |
7126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7127 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
7128 | ||
7129 | wxPyEndAllowThreads(__tstate); | |
7130 | if (PyErr_Occurred()) SWIG_fail; | |
7131 | } | |
7132 | resultobj = PyInt_FromLong((long)result); | |
7133 | return resultobj; | |
7134 | fail: | |
7135 | return NULL; | |
7136 | } | |
7137 | ||
7138 | ||
7139 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7140 | PyObject *resultobj; | |
7141 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7142 | long arg2 ; | |
7143 | long arg3 ; | |
7144 | wxTextAttr *arg4 = 0 ; | |
7145 | bool result; | |
7146 | PyObject * obj0 = 0 ; | |
7147 | PyObject * obj3 = 0 ; | |
7148 | char *kwnames[] = { | |
7149 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
7150 | }; | |
7151 | ||
7152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:TextCtrl_SetStyle",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
7153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7154 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7155 | if (arg4 == NULL) { | |
7156 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7157 | } | |
7158 | { | |
7159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7160 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
7161 | ||
7162 | wxPyEndAllowThreads(__tstate); | |
7163 | if (PyErr_Occurred()) SWIG_fail; | |
7164 | } | |
7165 | resultobj = PyInt_FromLong((long)result); | |
7166 | return resultobj; | |
7167 | fail: | |
7168 | return NULL; | |
7169 | } | |
7170 | ||
7171 | ||
7172 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7173 | PyObject *resultobj; | |
7174 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7175 | long arg2 ; | |
7176 | wxTextAttr *arg3 = 0 ; | |
7177 | bool result; | |
7178 | PyObject * obj0 = 0 ; | |
7179 | PyObject * obj2 = 0 ; | |
7180 | char *kwnames[] = { | |
7181 | (char *) "self",(char *) "position",(char *) "style", NULL | |
7182 | }; | |
7183 | ||
7184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:TextCtrl_GetStyle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
7185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7186 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7187 | if (arg3 == NULL) { | |
7188 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7189 | } | |
7190 | { | |
7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7192 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
7193 | ||
7194 | wxPyEndAllowThreads(__tstate); | |
7195 | if (PyErr_Occurred()) SWIG_fail; | |
7196 | } | |
7197 | resultobj = PyInt_FromLong((long)result); | |
7198 | return resultobj; | |
7199 | fail: | |
7200 | return NULL; | |
7201 | } | |
7202 | ||
7203 | ||
7204 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7205 | PyObject *resultobj; | |
7206 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7207 | wxTextAttr *arg2 = 0 ; | |
7208 | bool result; | |
7209 | PyObject * obj0 = 0 ; | |
7210 | PyObject * obj1 = 0 ; | |
7211 | char *kwnames[] = { | |
7212 | (char *) "self",(char *) "style", NULL | |
7213 | }; | |
7214 | ||
7215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
7216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7217 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7218 | if (arg2 == NULL) { | |
7219 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7220 | } | |
7221 | { | |
7222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7223 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
7224 | ||
7225 | wxPyEndAllowThreads(__tstate); | |
7226 | if (PyErr_Occurred()) SWIG_fail; | |
7227 | } | |
7228 | resultobj = PyInt_FromLong((long)result); | |
7229 | return resultobj; | |
7230 | fail: | |
7231 | return NULL; | |
7232 | } | |
7233 | ||
7234 | ||
7235 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7236 | PyObject *resultobj; | |
7237 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7238 | wxTextAttr *result; | |
7239 | PyObject * obj0 = 0 ; | |
7240 | char *kwnames[] = { | |
7241 | (char *) "self", NULL | |
7242 | }; | |
7243 | ||
7244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
7245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7246 | { | |
7247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7248 | { | |
7249 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
7250 | result = (wxTextAttr *) &_result_ref; | |
7251 | } | |
7252 | ||
7253 | wxPyEndAllowThreads(__tstate); | |
7254 | if (PyErr_Occurred()) SWIG_fail; | |
7255 | } | |
7256 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
7257 | return resultobj; | |
7258 | fail: | |
7259 | return NULL; | |
7260 | } | |
7261 | ||
7262 | ||
7263 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7264 | PyObject *resultobj; | |
7265 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7266 | long arg2 ; | |
7267 | long arg3 ; | |
7268 | long result; | |
7269 | PyObject * obj0 = 0 ; | |
7270 | char *kwnames[] = { | |
7271 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7272 | }; | |
7273 | ||
7274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_XYToPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7276 | { | |
7277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7278 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
7279 | ||
7280 | wxPyEndAllowThreads(__tstate); | |
7281 | if (PyErr_Occurred()) SWIG_fail; | |
7282 | } | |
7283 | resultobj = PyInt_FromLong((long)result); | |
7284 | return resultobj; | |
7285 | fail: | |
7286 | return NULL; | |
7287 | } | |
7288 | ||
7289 | ||
7290 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7291 | PyObject *resultobj; | |
7292 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7293 | long arg2 ; | |
7294 | long *arg3 = (long *) 0 ; | |
7295 | long *arg4 = (long *) 0 ; | |
7296 | long temp3 ; | |
7297 | long temp4 ; | |
7298 | PyObject * obj0 = 0 ; | |
7299 | char *kwnames[] = { | |
7300 | (char *) "self",(char *) "pos", NULL | |
7301 | }; | |
7302 | ||
7303 | arg3 = &temp3; | |
7304 | arg4 = &temp4; | |
7305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_PositionToXY",kwnames,&obj0,&arg2)) goto fail; | |
7306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7307 | { | |
7308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7309 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
7310 | ||
7311 | wxPyEndAllowThreads(__tstate); | |
7312 | if (PyErr_Occurred()) SWIG_fail; | |
7313 | } | |
7314 | Py_INCREF(Py_None); resultobj = Py_None; | |
7315 | { | |
7316 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7317 | resultobj = t_output_helper(resultobj,o); | |
7318 | } | |
7319 | { | |
7320 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
7321 | resultobj = t_output_helper(resultobj,o); | |
7322 | } | |
7323 | return resultobj; | |
7324 | fail: | |
7325 | return NULL; | |
7326 | } | |
7327 | ||
7328 | ||
7329 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7330 | PyObject *resultobj; | |
7331 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7332 | long arg2 ; | |
7333 | PyObject * obj0 = 0 ; | |
7334 | char *kwnames[] = { | |
7335 | (char *) "self",(char *) "pos", NULL | |
7336 | }; | |
7337 | ||
7338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_ShowPosition",kwnames,&obj0,&arg2)) goto fail; | |
7339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7340 | { | |
7341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7342 | (arg1)->ShowPosition(arg2); | |
7343 | ||
7344 | wxPyEndAllowThreads(__tstate); | |
7345 | if (PyErr_Occurred()) SWIG_fail; | |
7346 | } | |
7347 | Py_INCREF(Py_None); resultobj = Py_None; | |
7348 | return resultobj; | |
7349 | fail: | |
7350 | return NULL; | |
7351 | } | |
7352 | ||
7353 | ||
7354 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7355 | PyObject *resultobj; | |
7356 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7357 | PyObject * obj0 = 0 ; | |
7358 | char *kwnames[] = { | |
7359 | (char *) "self", NULL | |
7360 | }; | |
7361 | ||
7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
7363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7364 | { | |
7365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7366 | (arg1)->Copy(); | |
7367 | ||
7368 | wxPyEndAllowThreads(__tstate); | |
7369 | if (PyErr_Occurred()) SWIG_fail; | |
7370 | } | |
7371 | Py_INCREF(Py_None); resultobj = Py_None; | |
7372 | return resultobj; | |
7373 | fail: | |
7374 | return NULL; | |
7375 | } | |
7376 | ||
7377 | ||
7378 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7379 | PyObject *resultobj; | |
7380 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7381 | PyObject * obj0 = 0 ; | |
7382 | char *kwnames[] = { | |
7383 | (char *) "self", NULL | |
7384 | }; | |
7385 | ||
7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
7387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7388 | { | |
7389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7390 | (arg1)->Cut(); | |
7391 | ||
7392 | wxPyEndAllowThreads(__tstate); | |
7393 | if (PyErr_Occurred()) SWIG_fail; | |
7394 | } | |
7395 | Py_INCREF(Py_None); resultobj = Py_None; | |
7396 | return resultobj; | |
7397 | fail: | |
7398 | return NULL; | |
7399 | } | |
7400 | ||
7401 | ||
7402 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7403 | PyObject *resultobj; | |
7404 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7405 | PyObject * obj0 = 0 ; | |
7406 | char *kwnames[] = { | |
7407 | (char *) "self", NULL | |
7408 | }; | |
7409 | ||
7410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
7411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7412 | { | |
7413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7414 | (arg1)->Paste(); | |
7415 | ||
7416 | wxPyEndAllowThreads(__tstate); | |
7417 | if (PyErr_Occurred()) SWIG_fail; | |
7418 | } | |
7419 | Py_INCREF(Py_None); resultobj = Py_None; | |
7420 | return resultobj; | |
7421 | fail: | |
7422 | return NULL; | |
7423 | } | |
7424 | ||
7425 | ||
7426 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7427 | PyObject *resultobj; | |
7428 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7429 | bool result; | |
7430 | PyObject * obj0 = 0 ; | |
7431 | char *kwnames[] = { | |
7432 | (char *) "self", NULL | |
7433 | }; | |
7434 | ||
7435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
7436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7437 | { | |
7438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7439 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
7440 | ||
7441 | wxPyEndAllowThreads(__tstate); | |
7442 | if (PyErr_Occurred()) SWIG_fail; | |
7443 | } | |
7444 | resultobj = PyInt_FromLong((long)result); | |
7445 | return resultobj; | |
7446 | fail: | |
7447 | return NULL; | |
7448 | } | |
7449 | ||
7450 | ||
7451 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7452 | PyObject *resultobj; | |
7453 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7454 | bool result; | |
7455 | PyObject * obj0 = 0 ; | |
7456 | char *kwnames[] = { | |
7457 | (char *) "self", NULL | |
7458 | }; | |
7459 | ||
7460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
7461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7462 | { | |
7463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7464 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
7465 | ||
7466 | wxPyEndAllowThreads(__tstate); | |
7467 | if (PyErr_Occurred()) SWIG_fail; | |
7468 | } | |
7469 | resultobj = PyInt_FromLong((long)result); | |
7470 | return resultobj; | |
7471 | fail: | |
7472 | return NULL; | |
7473 | } | |
7474 | ||
7475 | ||
7476 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7477 | PyObject *resultobj; | |
7478 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7479 | bool result; | |
7480 | PyObject * obj0 = 0 ; | |
7481 | char *kwnames[] = { | |
7482 | (char *) "self", NULL | |
7483 | }; | |
7484 | ||
7485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
7486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7487 | { | |
7488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7489 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
7490 | ||
7491 | wxPyEndAllowThreads(__tstate); | |
7492 | if (PyErr_Occurred()) SWIG_fail; | |
7493 | } | |
7494 | resultobj = PyInt_FromLong((long)result); | |
7495 | return resultobj; | |
7496 | fail: | |
7497 | return NULL; | |
7498 | } | |
7499 | ||
7500 | ||
7501 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7502 | PyObject *resultobj; | |
7503 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7504 | PyObject * obj0 = 0 ; | |
7505 | char *kwnames[] = { | |
7506 | (char *) "self", NULL | |
7507 | }; | |
7508 | ||
7509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
7510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7511 | { | |
7512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7513 | (arg1)->Undo(); | |
7514 | ||
7515 | wxPyEndAllowThreads(__tstate); | |
7516 | if (PyErr_Occurred()) SWIG_fail; | |
7517 | } | |
7518 | Py_INCREF(Py_None); resultobj = Py_None; | |
7519 | return resultobj; | |
7520 | fail: | |
7521 | return NULL; | |
7522 | } | |
7523 | ||
7524 | ||
7525 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7526 | PyObject *resultobj; | |
7527 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7528 | PyObject * obj0 = 0 ; | |
7529 | char *kwnames[] = { | |
7530 | (char *) "self", NULL | |
7531 | }; | |
7532 | ||
7533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
7534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7535 | { | |
7536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7537 | (arg1)->Redo(); | |
7538 | ||
7539 | wxPyEndAllowThreads(__tstate); | |
7540 | if (PyErr_Occurred()) SWIG_fail; | |
7541 | } | |
7542 | Py_INCREF(Py_None); resultobj = Py_None; | |
7543 | return resultobj; | |
7544 | fail: | |
7545 | return NULL; | |
7546 | } | |
7547 | ||
7548 | ||
7549 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7550 | PyObject *resultobj; | |
7551 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7552 | bool result; | |
7553 | PyObject * obj0 = 0 ; | |
7554 | char *kwnames[] = { | |
7555 | (char *) "self", NULL | |
7556 | }; | |
7557 | ||
7558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
7559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7560 | { | |
7561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7562 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
7563 | ||
7564 | wxPyEndAllowThreads(__tstate); | |
7565 | if (PyErr_Occurred()) SWIG_fail; | |
7566 | } | |
7567 | resultobj = PyInt_FromLong((long)result); | |
7568 | return resultobj; | |
7569 | fail: | |
7570 | return NULL; | |
7571 | } | |
7572 | ||
7573 | ||
7574 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7575 | PyObject *resultobj; | |
7576 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7577 | bool result; | |
7578 | PyObject * obj0 = 0 ; | |
7579 | char *kwnames[] = { | |
7580 | (char *) "self", NULL | |
7581 | }; | |
7582 | ||
7583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
7584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7585 | { | |
7586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7587 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
7588 | ||
7589 | wxPyEndAllowThreads(__tstate); | |
7590 | if (PyErr_Occurred()) SWIG_fail; | |
7591 | } | |
7592 | resultobj = PyInt_FromLong((long)result); | |
7593 | return resultobj; | |
7594 | fail: | |
7595 | return NULL; | |
7596 | } | |
7597 | ||
7598 | ||
7599 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7600 | PyObject *resultobj; | |
7601 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7602 | long arg2 ; | |
7603 | PyObject * obj0 = 0 ; | |
7604 | char *kwnames[] = { | |
7605 | (char *) "self",(char *) "pos", NULL | |
7606 | }; | |
7607 | ||
7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_SetInsertionPoint",kwnames,&obj0,&arg2)) goto fail; | |
7609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7610 | { | |
7611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7612 | (arg1)->SetInsertionPoint(arg2); | |
7613 | ||
7614 | wxPyEndAllowThreads(__tstate); | |
7615 | if (PyErr_Occurred()) SWIG_fail; | |
7616 | } | |
7617 | Py_INCREF(Py_None); resultobj = Py_None; | |
7618 | return resultobj; | |
7619 | fail: | |
7620 | return NULL; | |
7621 | } | |
7622 | ||
7623 | ||
7624 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(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_SetInsertionPointEnd",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)->SetInsertionPointEnd(); | |
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_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7649 | PyObject *resultobj; | |
7650 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7651 | long result; | |
7652 | PyObject * obj0 = 0 ; | |
7653 | char *kwnames[] = { | |
7654 | (char *) "self", NULL | |
7655 | }; | |
7656 | ||
7657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
7658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7659 | { | |
7660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7661 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
7662 | ||
7663 | wxPyEndAllowThreads(__tstate); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | } | |
7666 | resultobj = PyInt_FromLong((long)result); | |
7667 | return resultobj; | |
7668 | fail: | |
7669 | return NULL; | |
7670 | } | |
7671 | ||
7672 | ||
7673 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7674 | PyObject *resultobj; | |
7675 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7676 | long result; | |
7677 | PyObject * obj0 = 0 ; | |
7678 | char *kwnames[] = { | |
7679 | (char *) "self", NULL | |
7680 | }; | |
7681 | ||
7682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
7683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7684 | { | |
7685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7686 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
7687 | ||
7688 | wxPyEndAllowThreads(__tstate); | |
7689 | if (PyErr_Occurred()) SWIG_fail; | |
7690 | } | |
7691 | resultobj = PyInt_FromLong((long)result); | |
7692 | return resultobj; | |
7693 | fail: | |
7694 | return NULL; | |
7695 | } | |
7696 | ||
7697 | ||
7698 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7699 | PyObject *resultobj; | |
7700 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7701 | long arg2 ; | |
7702 | long arg3 ; | |
7703 | PyObject * obj0 = 0 ; | |
7704 | char *kwnames[] = { | |
7705 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7706 | }; | |
7707 | ||
7708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7710 | { | |
7711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7712 | (arg1)->SetSelection(arg2,arg3); | |
7713 | ||
7714 | wxPyEndAllowThreads(__tstate); | |
7715 | if (PyErr_Occurred()) SWIG_fail; | |
7716 | } | |
7717 | Py_INCREF(Py_None); resultobj = Py_None; | |
7718 | return resultobj; | |
7719 | fail: | |
7720 | return NULL; | |
7721 | } | |
7722 | ||
7723 | ||
7724 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7725 | PyObject *resultobj; | |
7726 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7727 | PyObject * obj0 = 0 ; | |
7728 | char *kwnames[] = { | |
7729 | (char *) "self", NULL | |
7730 | }; | |
7731 | ||
7732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
7733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7734 | { | |
7735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7736 | (arg1)->SelectAll(); | |
7737 | ||
7738 | wxPyEndAllowThreads(__tstate); | |
7739 | if (PyErr_Occurred()) SWIG_fail; | |
7740 | } | |
7741 | Py_INCREF(Py_None); resultobj = Py_None; | |
7742 | return resultobj; | |
7743 | fail: | |
7744 | return NULL; | |
7745 | } | |
7746 | ||
7747 | ||
7748 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7749 | PyObject *resultobj; | |
7750 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7751 | bool arg2 ; | |
7752 | PyObject * obj0 = 0 ; | |
7753 | PyObject * obj1 = 0 ; | |
7754 | char *kwnames[] = { | |
7755 | (char *) "self",(char *) "editable", NULL | |
7756 | }; | |
7757 | ||
7758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
7759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7760 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7761 | if (PyErr_Occurred()) SWIG_fail; | |
7762 | { | |
7763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7764 | (arg1)->SetEditable(arg2); | |
7765 | ||
7766 | wxPyEndAllowThreads(__tstate); | |
7767 | if (PyErr_Occurred()) SWIG_fail; | |
7768 | } | |
7769 | Py_INCREF(Py_None); resultobj = Py_None; | |
7770 | return resultobj; | |
7771 | fail: | |
7772 | return NULL; | |
7773 | } | |
7774 | ||
7775 | ||
7776 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7777 | PyObject *resultobj; | |
7778 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7779 | wxString *arg2 = 0 ; | |
e811c8ce | 7780 | bool temp2 = False ; |
d14a1e28 RD |
7781 | PyObject * obj0 = 0 ; |
7782 | PyObject * obj1 = 0 ; | |
7783 | char *kwnames[] = { | |
7784 | (char *) "self",(char *) "text", NULL | |
7785 | }; | |
7786 | ||
7787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
7788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7789 | { | |
7790 | arg2 = wxString_in_helper(obj1); | |
7791 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7792 | temp2 = True; |
d14a1e28 RD |
7793 | } |
7794 | { | |
7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7796 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
7797 | ||
7798 | wxPyEndAllowThreads(__tstate); | |
7799 | if (PyErr_Occurred()) SWIG_fail; | |
7800 | } | |
7801 | Py_INCREF(Py_None); resultobj = Py_None; | |
7802 | { | |
7803 | if (temp2) | |
7804 | delete arg2; | |
7805 | } | |
7806 | return resultobj; | |
7807 | fail: | |
7808 | { | |
7809 | if (temp2) | |
7810 | delete arg2; | |
7811 | } | |
7812 | return NULL; | |
7813 | } | |
7814 | ||
7815 | ||
7816 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7817 | PyObject *resultobj; | |
7818 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7819 | long arg2 ; | |
7820 | long arg3 ; | |
7821 | wxString result; | |
7822 | PyObject * obj0 = 0 ; | |
7823 | char *kwnames[] = { | |
7824 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7825 | }; | |
7826 | ||
7827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_GetString",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7829 | { | |
7830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7831 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
7832 | ||
7833 | wxPyEndAllowThreads(__tstate); | |
7834 | if (PyErr_Occurred()) SWIG_fail; | |
7835 | } | |
7836 | { | |
7837 | #if wxUSE_UNICODE | |
7838 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7839 | #else | |
7840 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7841 | #endif | |
7842 | } | |
7843 | return resultobj; | |
7844 | fail: | |
7845 | return NULL; | |
7846 | } | |
7847 | ||
7848 | ||
7849 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7850 | PyObject *obj; | |
7851 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7852 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
7853 | Py_INCREF(obj); | |
7854 | return Py_BuildValue((char *)""); | |
7855 | } | |
7856 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7857 | PyObject *resultobj; | |
7858 | int arg1 ; | |
7859 | wxMouseEvent *arg2 = 0 ; | |
7860 | long arg3 ; | |
7861 | long arg4 ; | |
7862 | wxTextUrlEvent *result; | |
7863 | PyObject * obj1 = 0 ; | |
7864 | char *kwnames[] = { | |
7865 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
7866 | }; | |
7867 | ||
7868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOll:new_TextUrlEvent",kwnames,&arg1,&obj1,&arg3,&arg4)) goto fail; | |
7869 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7870 | if (arg2 == NULL) { | |
7871 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7872 | } | |
7873 | { | |
7874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7875 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
7876 | ||
7877 | wxPyEndAllowThreads(__tstate); | |
7878 | if (PyErr_Occurred()) SWIG_fail; | |
7879 | } | |
7880 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
7881 | return resultobj; | |
7882 | fail: | |
7883 | return NULL; | |
7884 | } | |
7885 | ||
7886 | ||
7887 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7888 | PyObject *resultobj; | |
7889 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
7890 | wxMouseEvent *result; | |
7891 | PyObject * obj0 = 0 ; | |
7892 | char *kwnames[] = { | |
7893 | (char *) "self", NULL | |
7894 | }; | |
7895 | ||
7896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
7897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7898 | { | |
7899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7900 | { | |
7901 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
7902 | result = (wxMouseEvent *) &_result_ref; | |
7903 | } | |
7904 | ||
7905 | wxPyEndAllowThreads(__tstate); | |
7906 | if (PyErr_Occurred()) SWIG_fail; | |
7907 | } | |
7908 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
7909 | return resultobj; | |
7910 | fail: | |
7911 | return NULL; | |
7912 | } | |
7913 | ||
7914 | ||
7915 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7916 | PyObject *resultobj; | |
7917 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
7918 | long result; | |
7919 | PyObject * obj0 = 0 ; | |
7920 | char *kwnames[] = { | |
7921 | (char *) "self", NULL | |
7922 | }; | |
7923 | ||
7924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
7925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7926 | { | |
7927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7928 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
7929 | ||
7930 | wxPyEndAllowThreads(__tstate); | |
7931 | if (PyErr_Occurred()) SWIG_fail; | |
7932 | } | |
7933 | resultobj = PyInt_FromLong((long)result); | |
7934 | return resultobj; | |
7935 | fail: | |
7936 | return NULL; | |
7937 | } | |
7938 | ||
7939 | ||
7940 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7941 | PyObject *resultobj; | |
7942 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
7943 | long result; | |
7944 | PyObject * obj0 = 0 ; | |
7945 | char *kwnames[] = { | |
7946 | (char *) "self", NULL | |
7947 | }; | |
7948 | ||
7949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
7950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7951 | { | |
7952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7953 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
7954 | ||
7955 | wxPyEndAllowThreads(__tstate); | |
7956 | if (PyErr_Occurred()) SWIG_fail; | |
7957 | } | |
7958 | resultobj = PyInt_FromLong((long)result); | |
7959 | return resultobj; | |
7960 | fail: | |
7961 | return NULL; | |
7962 | } | |
7963 | ||
7964 | ||
7965 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
7966 | PyObject *obj; | |
7967 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7968 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
7969 | Py_INCREF(obj); | |
7970 | return Py_BuildValue((char *)""); | |
7971 | } | |
7972 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7973 | PyObject *resultobj; | |
7974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 7975 | int arg2 = (int) -1 ; |
d14a1e28 RD |
7976 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
7977 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7978 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7979 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7980 | long arg5 = (long) wxSB_HORIZONTAL ; | |
7981 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
7982 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
7983 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
7984 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7985 | wxScrollBar *result; | |
7986 | wxPoint temp3 ; | |
7987 | wxSize temp4 ; | |
e811c8ce | 7988 | bool temp7 = False ; |
d14a1e28 RD |
7989 | PyObject * obj0 = 0 ; |
7990 | PyObject * obj2 = 0 ; | |
7991 | PyObject * obj3 = 0 ; | |
7992 | PyObject * obj5 = 0 ; | |
7993 | PyObject * obj6 = 0 ; | |
7994 | char *kwnames[] = { | |
7995 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7996 | }; | |
7997 | ||
7998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ScrollBar",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
7999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8000 | if (obj2) { | |
8001 | { | |
8002 | arg3 = &temp3; | |
8003 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8004 | } | |
8005 | } | |
8006 | if (obj3) { | |
8007 | { | |
8008 | arg4 = &temp4; | |
8009 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8010 | } | |
8011 | } | |
8012 | if (obj5) { | |
8013 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8014 | if (arg6 == NULL) { | |
8015 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8016 | } | |
8017 | } | |
8018 | if (obj6) { | |
8019 | { | |
8020 | arg7 = wxString_in_helper(obj6); | |
8021 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 8022 | temp7 = True; |
d14a1e28 RD |
8023 | } |
8024 | } | |
8025 | { | |
8026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8027 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
8028 | ||
8029 | wxPyEndAllowThreads(__tstate); | |
8030 | if (PyErr_Occurred()) SWIG_fail; | |
8031 | } | |
8032 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
8033 | { | |
8034 | if (temp7) | |
8035 | delete arg7; | |
8036 | } | |
8037 | return resultobj; | |
8038 | fail: | |
8039 | { | |
8040 | if (temp7) | |
8041 | delete arg7; | |
8042 | } | |
8043 | return NULL; | |
8044 | } | |
8045 | ||
8046 | ||
8047 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8048 | PyObject *resultobj; | |
8049 | wxScrollBar *result; | |
8050 | char *kwnames[] = { | |
8051 | NULL | |
8052 | }; | |
8053 | ||
8054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
8055 | { | |
8056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8057 | result = (wxScrollBar *)new wxScrollBar(); | |
8058 | ||
8059 | wxPyEndAllowThreads(__tstate); | |
8060 | if (PyErr_Occurred()) SWIG_fail; | |
8061 | } | |
8062 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
8063 | return resultobj; | |
8064 | fail: | |
8065 | return NULL; | |
8066 | } | |
8067 | ||
8068 | ||
8069 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8070 | PyObject *resultobj; | |
8071 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8072 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 8073 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8074 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8075 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8076 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8077 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8078 | long arg6 = (long) wxSB_HORIZONTAL ; | |
8079 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8080 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8081 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
8082 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8083 | bool result; | |
8084 | wxPoint temp4 ; | |
8085 | wxSize temp5 ; | |
e811c8ce | 8086 | bool temp8 = False ; |
d14a1e28 RD |
8087 | PyObject * obj0 = 0 ; |
8088 | PyObject * obj1 = 0 ; | |
8089 | PyObject * obj3 = 0 ; | |
8090 | PyObject * obj4 = 0 ; | |
8091 | PyObject * obj6 = 0 ; | |
8092 | PyObject * obj7 = 0 ; | |
8093 | char *kwnames[] = { | |
8094 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8095 | }; | |
8096 | ||
8097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ScrollBar_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
8098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8099 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8100 | if (obj3) { | |
8101 | { | |
8102 | arg4 = &temp4; | |
8103 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8104 | } | |
8105 | } | |
8106 | if (obj4) { | |
8107 | { | |
8108 | arg5 = &temp5; | |
8109 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8110 | } | |
8111 | } | |
8112 | if (obj6) { | |
8113 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8114 | if (arg7 == NULL) { | |
8115 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8116 | } | |
8117 | } | |
8118 | if (obj7) { | |
8119 | { | |
8120 | arg8 = wxString_in_helper(obj7); | |
8121 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 8122 | temp8 = True; |
d14a1e28 RD |
8123 | } |
8124 | } | |
8125 | { | |
8126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8127 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8128 | ||
8129 | wxPyEndAllowThreads(__tstate); | |
8130 | if (PyErr_Occurred()) SWIG_fail; | |
8131 | } | |
8132 | resultobj = PyInt_FromLong((long)result); | |
8133 | { | |
8134 | if (temp8) | |
8135 | delete arg8; | |
8136 | } | |
8137 | return resultobj; | |
8138 | fail: | |
8139 | { | |
8140 | if (temp8) | |
8141 | delete arg8; | |
8142 | } | |
8143 | return NULL; | |
8144 | } | |
8145 | ||
8146 | ||
8147 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8148 | PyObject *resultobj; | |
8149 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8150 | int result; | |
8151 | PyObject * obj0 = 0 ; | |
8152 | char *kwnames[] = { | |
8153 | (char *) "self", NULL | |
8154 | }; | |
8155 | ||
8156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
8157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8158 | { | |
8159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8160 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
8161 | ||
8162 | wxPyEndAllowThreads(__tstate); | |
8163 | if (PyErr_Occurred()) SWIG_fail; | |
8164 | } | |
8165 | resultobj = PyInt_FromLong((long)result); | |
8166 | return resultobj; | |
8167 | fail: | |
8168 | return NULL; | |
8169 | } | |
8170 | ||
8171 | ||
8172 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8173 | PyObject *resultobj; | |
8174 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8175 | int result; | |
8176 | PyObject * obj0 = 0 ; | |
8177 | char *kwnames[] = { | |
8178 | (char *) "self", NULL | |
8179 | }; | |
8180 | ||
8181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
8182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8183 | { | |
8184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8185 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
8186 | ||
8187 | wxPyEndAllowThreads(__tstate); | |
8188 | if (PyErr_Occurred()) SWIG_fail; | |
8189 | } | |
8190 | resultobj = PyInt_FromLong((long)result); | |
8191 | return resultobj; | |
8192 | fail: | |
8193 | return NULL; | |
8194 | } | |
8195 | ||
8196 | ||
8197 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8198 | PyObject *resultobj; | |
8199 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8200 | int result; | |
8201 | PyObject * obj0 = 0 ; | |
8202 | char *kwnames[] = { | |
8203 | (char *) "self", NULL | |
8204 | }; | |
8205 | ||
8206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
8207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8208 | { | |
8209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8210 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
8211 | ||
8212 | wxPyEndAllowThreads(__tstate); | |
8213 | if (PyErr_Occurred()) SWIG_fail; | |
8214 | } | |
8215 | resultobj = PyInt_FromLong((long)result); | |
8216 | return resultobj; | |
8217 | fail: | |
8218 | return NULL; | |
8219 | } | |
8220 | ||
8221 | ||
8222 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8223 | PyObject *resultobj; | |
8224 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8225 | int result; | |
8226 | PyObject * obj0 = 0 ; | |
8227 | char *kwnames[] = { | |
8228 | (char *) "self", NULL | |
8229 | }; | |
8230 | ||
8231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
8232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8233 | { | |
8234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8235 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
8236 | ||
8237 | wxPyEndAllowThreads(__tstate); | |
8238 | if (PyErr_Occurred()) SWIG_fail; | |
8239 | } | |
8240 | resultobj = PyInt_FromLong((long)result); | |
8241 | return resultobj; | |
8242 | fail: | |
8243 | return NULL; | |
8244 | } | |
8245 | ||
8246 | ||
8247 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8248 | PyObject *resultobj; | |
8249 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8250 | bool result; | |
8251 | PyObject * obj0 = 0 ; | |
8252 | char *kwnames[] = { | |
8253 | (char *) "self", NULL | |
8254 | }; | |
8255 | ||
8256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
8257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8258 | { | |
8259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8260 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
8261 | ||
8262 | wxPyEndAllowThreads(__tstate); | |
8263 | if (PyErr_Occurred()) SWIG_fail; | |
8264 | } | |
8265 | resultobj = PyInt_FromLong((long)result); | |
8266 | return resultobj; | |
8267 | fail: | |
8268 | return NULL; | |
8269 | } | |
8270 | ||
8271 | ||
8272 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8273 | PyObject *resultobj; | |
8274 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8275 | int arg2 ; | |
8276 | PyObject * obj0 = 0 ; | |
8277 | char *kwnames[] = { | |
8278 | (char *) "self",(char *) "viewStart", NULL | |
8279 | }; | |
8280 | ||
8281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollBar_SetThumbPosition",kwnames,&obj0,&arg2)) goto fail; | |
8282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8283 | { | |
8284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8285 | (arg1)->SetThumbPosition(arg2); | |
8286 | ||
8287 | wxPyEndAllowThreads(__tstate); | |
8288 | if (PyErr_Occurred()) SWIG_fail; | |
8289 | } | |
8290 | Py_INCREF(Py_None); resultobj = Py_None; | |
8291 | return resultobj; | |
8292 | fail: | |
8293 | return NULL; | |
8294 | } | |
8295 | ||
8296 | ||
8297 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8298 | PyObject *resultobj; | |
8299 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8300 | int arg2 ; | |
8301 | int arg3 ; | |
8302 | int arg4 ; | |
8303 | int arg5 ; | |
e811c8ce | 8304 | bool arg6 = (bool) True ; |
d14a1e28 RD |
8305 | PyObject * obj0 = 0 ; |
8306 | PyObject * obj5 = 0 ; | |
8307 | char *kwnames[] = { | |
8308 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
8309 | }; | |
8310 | ||
8311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|O:ScrollBar_SetScrollbar",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
8312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8313 | if (obj5) { | |
8314 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
8315 | if (PyErr_Occurred()) SWIG_fail; | |
8316 | } | |
8317 | { | |
8318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8319 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
8320 | ||
8321 | wxPyEndAllowThreads(__tstate); | |
8322 | if (PyErr_Occurred()) SWIG_fail; | |
8323 | } | |
8324 | Py_INCREF(Py_None); resultobj = Py_None; | |
8325 | return resultobj; | |
8326 | fail: | |
8327 | return NULL; | |
8328 | } | |
8329 | ||
8330 | ||
8331 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
8332 | PyObject *obj; | |
8333 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8334 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
8335 | Py_INCREF(obj); | |
8336 | return Py_BuildValue((char *)""); | |
8337 | } | |
8338 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8339 | PyObject *resultobj; | |
8340 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 8341 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8342 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8343 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8344 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8345 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8346 | long arg5 = (long) wxSP_HORIZONTAL ; | |
8347 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
8348 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8349 | wxSpinButton *result; | |
8350 | wxPoint temp3 ; | |
8351 | wxSize temp4 ; | |
e811c8ce | 8352 | bool temp6 = False ; |
d14a1e28 RD |
8353 | PyObject * obj0 = 0 ; |
8354 | PyObject * obj2 = 0 ; | |
8355 | PyObject * obj3 = 0 ; | |
8356 | PyObject * obj5 = 0 ; | |
8357 | char *kwnames[] = { | |
8358 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8359 | }; | |
8360 | ||
8361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlO:new_SpinButton",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
8362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8363 | if (obj2) { | |
8364 | { | |
8365 | arg3 = &temp3; | |
8366 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8367 | } | |
8368 | } | |
8369 | if (obj3) { | |
8370 | { | |
8371 | arg4 = &temp4; | |
8372 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8373 | } | |
8374 | } | |
8375 | if (obj5) { | |
8376 | { | |
8377 | arg6 = wxString_in_helper(obj5); | |
8378 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 8379 | temp6 = True; |
d14a1e28 RD |
8380 | } |
8381 | } | |
8382 | { | |
8383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8384 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8385 | ||
8386 | wxPyEndAllowThreads(__tstate); | |
8387 | if (PyErr_Occurred()) SWIG_fail; | |
8388 | } | |
8389 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
8390 | { | |
8391 | if (temp6) | |
8392 | delete arg6; | |
8393 | } | |
8394 | return resultobj; | |
8395 | fail: | |
8396 | { | |
8397 | if (temp6) | |
8398 | delete arg6; | |
8399 | } | |
8400 | return NULL; | |
8401 | } | |
8402 | ||
8403 | ||
8404 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8405 | PyObject *resultobj; | |
8406 | wxSpinButton *result; | |
8407 | char *kwnames[] = { | |
8408 | NULL | |
8409 | }; | |
8410 | ||
8411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
8412 | { | |
8413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8414 | result = (wxSpinButton *)new wxSpinButton(); | |
8415 | ||
8416 | wxPyEndAllowThreads(__tstate); | |
8417 | if (PyErr_Occurred()) SWIG_fail; | |
8418 | } | |
8419 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
8420 | return resultobj; | |
8421 | fail: | |
8422 | return NULL; | |
8423 | } | |
8424 | ||
8425 | ||
8426 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8427 | PyObject *resultobj; | |
8428 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8429 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 8430 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8431 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8432 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8433 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8434 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8435 | long arg6 = (long) wxSP_HORIZONTAL ; | |
8436 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
8437 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8438 | bool result; | |
8439 | wxPoint temp4 ; | |
8440 | wxSize temp5 ; | |
e811c8ce | 8441 | bool temp7 = False ; |
d14a1e28 RD |
8442 | PyObject * obj0 = 0 ; |
8443 | PyObject * obj1 = 0 ; | |
8444 | PyObject * obj3 = 0 ; | |
8445 | PyObject * obj4 = 0 ; | |
8446 | PyObject * obj6 = 0 ; | |
8447 | char *kwnames[] = { | |
8448 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8449 | }; | |
8450 | ||
8451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlO:SpinButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
8452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8453 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8454 | if (obj3) { | |
8455 | { | |
8456 | arg4 = &temp4; | |
8457 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8458 | } | |
8459 | } | |
8460 | if (obj4) { | |
8461 | { | |
8462 | arg5 = &temp5; | |
8463 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8464 | } | |
8465 | } | |
8466 | if (obj6) { | |
8467 | { | |
8468 | arg7 = wxString_in_helper(obj6); | |
8469 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 8470 | temp7 = True; |
d14a1e28 RD |
8471 | } |
8472 | } | |
8473 | { | |
8474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8475 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8476 | ||
8477 | wxPyEndAllowThreads(__tstate); | |
8478 | if (PyErr_Occurred()) SWIG_fail; | |
8479 | } | |
8480 | resultobj = PyInt_FromLong((long)result); | |
8481 | { | |
8482 | if (temp7) | |
8483 | delete arg7; | |
8484 | } | |
8485 | return resultobj; | |
8486 | fail: | |
8487 | { | |
8488 | if (temp7) | |
8489 | delete arg7; | |
8490 | } | |
8491 | return NULL; | |
8492 | } | |
8493 | ||
8494 | ||
8495 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8496 | PyObject *resultobj; | |
8497 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8498 | int result; | |
8499 | PyObject * obj0 = 0 ; | |
8500 | char *kwnames[] = { | |
8501 | (char *) "self", NULL | |
8502 | }; | |
8503 | ||
8504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
8505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8506 | { | |
8507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8508 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
8509 | ||
8510 | wxPyEndAllowThreads(__tstate); | |
8511 | if (PyErr_Occurred()) SWIG_fail; | |
8512 | } | |
8513 | resultobj = PyInt_FromLong((long)result); | |
8514 | return resultobj; | |
8515 | fail: | |
8516 | return NULL; | |
8517 | } | |
8518 | ||
8519 | ||
8520 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8521 | PyObject *resultobj; | |
8522 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8523 | int result; | |
8524 | PyObject * obj0 = 0 ; | |
8525 | char *kwnames[] = { | |
8526 | (char *) "self", NULL | |
8527 | }; | |
8528 | ||
8529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
8530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8531 | { | |
8532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8533 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
8534 | ||
8535 | wxPyEndAllowThreads(__tstate); | |
8536 | if (PyErr_Occurred()) SWIG_fail; | |
8537 | } | |
8538 | resultobj = PyInt_FromLong((long)result); | |
8539 | return resultobj; | |
8540 | fail: | |
8541 | return NULL; | |
8542 | } | |
8543 | ||
8544 | ||
8545 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8546 | PyObject *resultobj; | |
8547 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8548 | int result; | |
8549 | PyObject * obj0 = 0 ; | |
8550 | char *kwnames[] = { | |
8551 | (char *) "self", NULL | |
8552 | }; | |
8553 | ||
8554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
8555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8556 | { | |
8557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8558 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
8559 | ||
8560 | wxPyEndAllowThreads(__tstate); | |
8561 | if (PyErr_Occurred()) SWIG_fail; | |
8562 | } | |
8563 | resultobj = PyInt_FromLong((long)result); | |
8564 | return resultobj; | |
8565 | fail: | |
8566 | return NULL; | |
8567 | } | |
8568 | ||
8569 | ||
8570 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8571 | PyObject *resultobj; | |
8572 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8573 | int arg2 ; | |
8574 | PyObject * obj0 = 0 ; | |
8575 | char *kwnames[] = { | |
8576 | (char *) "self",(char *) "val", NULL | |
8577 | }; | |
8578 | ||
8579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
8580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8581 | { | |
8582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8583 | (arg1)->SetValue(arg2); | |
8584 | ||
8585 | wxPyEndAllowThreads(__tstate); | |
8586 | if (PyErr_Occurred()) SWIG_fail; | |
8587 | } | |
8588 | Py_INCREF(Py_None); resultobj = Py_None; | |
8589 | return resultobj; | |
8590 | fail: | |
8591 | return NULL; | |
8592 | } | |
8593 | ||
8594 | ||
8595 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8596 | PyObject *resultobj; | |
8597 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8598 | int arg2 ; | |
8599 | PyObject * obj0 = 0 ; | |
8600 | char *kwnames[] = { | |
8601 | (char *) "self",(char *) "minVal", NULL | |
8602 | }; | |
8603 | ||
8604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetMin",kwnames,&obj0,&arg2)) goto fail; | |
8605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8606 | { | |
8607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8608 | (arg1)->SetMin(arg2); | |
8609 | ||
8610 | wxPyEndAllowThreads(__tstate); | |
8611 | if (PyErr_Occurred()) SWIG_fail; | |
8612 | } | |
8613 | Py_INCREF(Py_None); resultobj = Py_None; | |
8614 | return resultobj; | |
8615 | fail: | |
8616 | return NULL; | |
8617 | } | |
8618 | ||
8619 | ||
8620 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8621 | PyObject *resultobj; | |
8622 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8623 | int arg2 ; | |
8624 | PyObject * obj0 = 0 ; | |
8625 | char *kwnames[] = { | |
8626 | (char *) "self",(char *) "maxVal", NULL | |
8627 | }; | |
8628 | ||
8629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetMax",kwnames,&obj0,&arg2)) goto fail; | |
8630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8631 | { | |
8632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8633 | (arg1)->SetMax(arg2); | |
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_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8646 | PyObject *resultobj; | |
8647 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8648 | int arg2 ; | |
8649 | int arg3 ; | |
8650 | PyObject * obj0 = 0 ; | |
8651 | char *kwnames[] = { | |
8652 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
8653 | }; | |
8654 | ||
8655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SpinButton_SetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8657 | { | |
8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8659 | (arg1)->SetRange(arg2,arg3); | |
8660 | ||
8661 | wxPyEndAllowThreads(__tstate); | |
8662 | if (PyErr_Occurred()) SWIG_fail; | |
8663 | } | |
8664 | Py_INCREF(Py_None); resultobj = Py_None; | |
8665 | return resultobj; | |
8666 | fail: | |
8667 | return NULL; | |
8668 | } | |
8669 | ||
8670 | ||
8671 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8672 | PyObject *resultobj; | |
8673 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8674 | bool result; | |
8675 | PyObject * obj0 = 0 ; | |
8676 | char *kwnames[] = { | |
8677 | (char *) "self", NULL | |
8678 | }; | |
8679 | ||
8680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
8681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8682 | { | |
8683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8684 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
8685 | ||
8686 | wxPyEndAllowThreads(__tstate); | |
8687 | if (PyErr_Occurred()) SWIG_fail; | |
8688 | } | |
8689 | resultobj = PyInt_FromLong((long)result); | |
8690 | return resultobj; | |
8691 | fail: | |
8692 | return NULL; | |
8693 | } | |
8694 | ||
8695 | ||
8696 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
8697 | PyObject *obj; | |
8698 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8699 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
8700 | Py_INCREF(obj); | |
8701 | return Py_BuildValue((char *)""); | |
8702 | } | |
8703 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8704 | PyObject *resultobj; | |
8705 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 8706 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8707 | wxString const &arg3_defvalue = wxPyEmptyString ; |
8708 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8709 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8710 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8711 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8712 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8713 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
8714 | int arg7 = (int) 0 ; | |
8715 | int arg8 = (int) 100 ; | |
8716 | int arg9 = (int) 0 ; | |
8717 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
8718 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
8719 | wxSpinCtrl *result; | |
e811c8ce | 8720 | bool temp3 = False ; |
d14a1e28 RD |
8721 | wxPoint temp4 ; |
8722 | wxSize temp5 ; | |
e811c8ce | 8723 | bool temp10 = False ; |
d14a1e28 RD |
8724 | PyObject * obj0 = 0 ; |
8725 | PyObject * obj2 = 0 ; | |
8726 | PyObject * obj3 = 0 ; | |
8727 | PyObject * obj4 = 0 ; | |
8728 | PyObject * obj9 = 0 ; | |
8729 | char *kwnames[] = { | |
8730 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
8731 | }; | |
8732 | ||
8733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOOliiiO:new_SpinCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&arg7,&arg8,&arg9,&obj9)) goto fail; | |
8734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8735 | if (obj2) { | |
8736 | { | |
8737 | arg3 = wxString_in_helper(obj2); | |
8738 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8739 | temp3 = True; |
d14a1e28 RD |
8740 | } |
8741 | } | |
8742 | if (obj3) { | |
8743 | { | |
8744 | arg4 = &temp4; | |
8745 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8746 | } | |
8747 | } | |
8748 | if (obj4) { | |
8749 | { | |
8750 | arg5 = &temp5; | |
8751 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8752 | } | |
8753 | } | |
8754 | if (obj9) { | |
8755 | { | |
8756 | arg10 = wxString_in_helper(obj9); | |
8757 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 8758 | temp10 = True; |
d14a1e28 RD |
8759 | } |
8760 | } | |
8761 | { | |
8762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8763 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
8764 | ||
8765 | wxPyEndAllowThreads(__tstate); | |
8766 | if (PyErr_Occurred()) SWIG_fail; | |
8767 | } | |
8768 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
8769 | { | |
8770 | if (temp3) | |
8771 | delete arg3; | |
8772 | } | |
8773 | { | |
8774 | if (temp10) | |
8775 | delete arg10; | |
8776 | } | |
8777 | return resultobj; | |
8778 | fail: | |
8779 | { | |
8780 | if (temp3) | |
8781 | delete arg3; | |
8782 | } | |
8783 | { | |
8784 | if (temp10) | |
8785 | delete arg10; | |
8786 | } | |
8787 | return NULL; | |
8788 | } | |
8789 | ||
8790 | ||
8791 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8792 | PyObject *resultobj; | |
8793 | wxSpinCtrl *result; | |
8794 | char *kwnames[] = { | |
8795 | NULL | |
8796 | }; | |
8797 | ||
8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
8799 | { | |
8800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8801 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
8802 | ||
8803 | wxPyEndAllowThreads(__tstate); | |
8804 | if (PyErr_Occurred()) SWIG_fail; | |
8805 | } | |
8806 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
8807 | return resultobj; | |
8808 | fail: | |
8809 | return NULL; | |
8810 | } | |
8811 | ||
8812 | ||
8813 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8814 | PyObject *resultobj; | |
8815 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
8816 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 8817 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8818 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8819 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8820 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8821 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8822 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8823 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8824 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
8825 | int arg8 = (int) 0 ; | |
8826 | int arg9 = (int) 100 ; | |
8827 | int arg10 = (int) 0 ; | |
8828 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
8829 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
8830 | bool result; | |
e811c8ce | 8831 | bool temp4 = False ; |
d14a1e28 RD |
8832 | wxPoint temp5 ; |
8833 | wxSize temp6 ; | |
e811c8ce | 8834 | bool temp11 = False ; |
d14a1e28 RD |
8835 | PyObject * obj0 = 0 ; |
8836 | PyObject * obj1 = 0 ; | |
8837 | PyObject * obj3 = 0 ; | |
8838 | PyObject * obj4 = 0 ; | |
8839 | PyObject * obj5 = 0 ; | |
8840 | PyObject * obj10 = 0 ; | |
8841 | char *kwnames[] = { | |
8842 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
8843 | }; | |
8844 | ||
8845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOOliiiO:SpinCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&arg8,&arg9,&arg10,&obj10)) goto fail; | |
8846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8847 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8848 | if (obj3) { | |
8849 | { | |
8850 | arg4 = wxString_in_helper(obj3); | |
8851 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8852 | temp4 = True; |
d14a1e28 RD |
8853 | } |
8854 | } | |
8855 | if (obj4) { | |
8856 | { | |
8857 | arg5 = &temp5; | |
8858 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8859 | } | |
8860 | } | |
8861 | if (obj5) { | |
8862 | { | |
8863 | arg6 = &temp6; | |
8864 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8865 | } | |
8866 | } | |
8867 | if (obj10) { | |
8868 | { | |
8869 | arg11 = wxString_in_helper(obj10); | |
8870 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 8871 | temp11 = True; |
d14a1e28 RD |
8872 | } |
8873 | } | |
8874 | { | |
8875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8876 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
8877 | ||
8878 | wxPyEndAllowThreads(__tstate); | |
8879 | if (PyErr_Occurred()) SWIG_fail; | |
8880 | } | |
8881 | resultobj = PyInt_FromLong((long)result); | |
8882 | { | |
8883 | if (temp4) | |
8884 | delete arg4; | |
8885 | } | |
8886 | { | |
8887 | if (temp11) | |
8888 | delete arg11; | |
8889 | } | |
8890 | return resultobj; | |
8891 | fail: | |
8892 | { | |
8893 | if (temp4) | |
8894 | delete arg4; | |
8895 | } | |
8896 | { | |
8897 | if (temp11) | |
8898 | delete arg11; | |
8899 | } | |
8900 | return NULL; | |
8901 | } | |
8902 | ||
8903 | ||
8904 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8905 | PyObject *resultobj; | |
8906 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
8907 | int result; | |
8908 | PyObject * obj0 = 0 ; | |
8909 | char *kwnames[] = { | |
8910 | (char *) "self", NULL | |
8911 | }; | |
8912 | ||
8913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
8914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8915 | { | |
8916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8917 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
8918 | ||
8919 | wxPyEndAllowThreads(__tstate); | |
8920 | if (PyErr_Occurred()) SWIG_fail; | |
8921 | } | |
8922 | resultobj = PyInt_FromLong((long)result); | |
8923 | return resultobj; | |
8924 | fail: | |
8925 | return NULL; | |
8926 | } | |
8927 | ||
8928 | ||
8929 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8930 | PyObject *resultobj; | |
8931 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
8932 | int arg2 ; | |
8933 | PyObject * obj0 = 0 ; | |
8934 | char *kwnames[] = { | |
8935 | (char *) "self",(char *) "value", NULL | |
8936 | }; | |
8937 | ||
8938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinCtrl_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
8939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8940 | { | |
8941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8942 | (arg1)->SetValue(arg2); | |
8943 | ||
8944 | wxPyEndAllowThreads(__tstate); | |
8945 | if (PyErr_Occurred()) SWIG_fail; | |
8946 | } | |
8947 | Py_INCREF(Py_None); resultobj = Py_None; | |
8948 | return resultobj; | |
8949 | fail: | |
8950 | return NULL; | |
8951 | } | |
8952 | ||
8953 | ||
8954 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8955 | PyObject *resultobj; | |
8956 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
8957 | wxString *arg2 = 0 ; | |
e811c8ce | 8958 | bool temp2 = False ; |
d14a1e28 RD |
8959 | PyObject * obj0 = 0 ; |
8960 | PyObject * obj1 = 0 ; | |
8961 | char *kwnames[] = { | |
8962 | (char *) "self",(char *) "text", NULL | |
8963 | }; | |
8964 | ||
8965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
8966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8967 | { | |
8968 | arg2 = wxString_in_helper(obj1); | |
8969 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8970 | temp2 = True; |
d14a1e28 RD |
8971 | } |
8972 | { | |
8973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8974 | (arg1)->SetValue((wxString const &)*arg2); | |
8975 | ||
8976 | wxPyEndAllowThreads(__tstate); | |
8977 | if (PyErr_Occurred()) SWIG_fail; | |
8978 | } | |
8979 | Py_INCREF(Py_None); resultobj = Py_None; | |
8980 | { | |
8981 | if (temp2) | |
8982 | delete arg2; | |
8983 | } | |
8984 | return resultobj; | |
8985 | fail: | |
8986 | { | |
8987 | if (temp2) | |
8988 | delete arg2; | |
8989 | } | |
8990 | return NULL; | |
8991 | } | |
8992 | ||
8993 | ||
8994 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8995 | PyObject *resultobj; | |
8996 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
8997 | int arg2 ; | |
8998 | int arg3 ; | |
8999 | PyObject * obj0 = 0 ; | |
9000 | char *kwnames[] = { | |
9001 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
9002 | }; | |
9003 | ||
9004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SpinCtrl_SetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9006 | { | |
9007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9008 | (arg1)->SetRange(arg2,arg3); | |
9009 | ||
9010 | wxPyEndAllowThreads(__tstate); | |
9011 | if (PyErr_Occurred()) SWIG_fail; | |
9012 | } | |
9013 | Py_INCREF(Py_None); resultobj = Py_None; | |
9014 | return resultobj; | |
9015 | fail: | |
9016 | return NULL; | |
9017 | } | |
9018 | ||
9019 | ||
9020 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9021 | PyObject *resultobj; | |
9022 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9023 | int result; | |
9024 | PyObject * obj0 = 0 ; | |
9025 | char *kwnames[] = { | |
9026 | (char *) "self", NULL | |
9027 | }; | |
9028 | ||
9029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
9030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9031 | { | |
9032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9033 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
9034 | ||
9035 | wxPyEndAllowThreads(__tstate); | |
9036 | if (PyErr_Occurred()) SWIG_fail; | |
9037 | } | |
9038 | resultobj = PyInt_FromLong((long)result); | |
9039 | return resultobj; | |
9040 | fail: | |
9041 | return NULL; | |
9042 | } | |
9043 | ||
9044 | ||
9045 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9046 | PyObject *resultobj; | |
9047 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9048 | int result; | |
9049 | PyObject * obj0 = 0 ; | |
9050 | char *kwnames[] = { | |
9051 | (char *) "self", NULL | |
9052 | }; | |
9053 | ||
9054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
9055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9056 | { | |
9057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9058 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
9059 | ||
9060 | wxPyEndAllowThreads(__tstate); | |
9061 | if (PyErr_Occurred()) SWIG_fail; | |
9062 | } | |
9063 | resultobj = PyInt_FromLong((long)result); | |
9064 | return resultobj; | |
9065 | fail: | |
9066 | return NULL; | |
9067 | } | |
9068 | ||
9069 | ||
9070 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9071 | PyObject *resultobj; | |
9072 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9073 | long arg2 ; | |
9074 | long arg3 ; | |
9075 | PyObject * obj0 = 0 ; | |
9076 | char *kwnames[] = { | |
9077 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9078 | }; | |
9079 | ||
9080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:SpinCtrl_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9082 | { | |
9083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9084 | wxSpinCtrl_SetSelection(arg1,arg2,arg3); | |
9085 | ||
9086 | wxPyEndAllowThreads(__tstate); | |
9087 | if (PyErr_Occurred()) SWIG_fail; | |
9088 | } | |
9089 | Py_INCREF(Py_None); resultobj = Py_None; | |
9090 | return resultobj; | |
9091 | fail: | |
9092 | return NULL; | |
9093 | } | |
9094 | ||
9095 | ||
9096 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
9097 | PyObject *obj; | |
9098 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9099 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
9100 | Py_INCREF(obj); | |
9101 | return Py_BuildValue((char *)""); | |
9102 | } | |
9103 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9104 | PyObject *resultobj; | |
9105 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 9106 | int arg2 ; |
d14a1e28 RD |
9107 | wxString *arg3 = 0 ; |
9108 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9109 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9110 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9111 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9112 | int arg6 = (int) 0 ; | |
9113 | wxString *arg7 = (wxString *) NULL ; | |
9114 | int arg8 = (int) 0 ; | |
9115 | long arg9 = (long) wxRA_HORIZONTAL ; | |
9116 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
9117 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
9118 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
9119 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
9120 | wxRadioBox *result; | |
e811c8ce | 9121 | bool temp3 = False ; |
d14a1e28 RD |
9122 | wxPoint temp4 ; |
9123 | wxSize temp5 ; | |
e811c8ce | 9124 | bool temp10 = False ; |
d14a1e28 RD |
9125 | PyObject * obj0 = 0 ; |
9126 | PyObject * obj2 = 0 ; | |
9127 | PyObject * obj3 = 0 ; | |
9128 | PyObject * obj4 = 0 ; | |
9129 | PyObject * obj5 = 0 ; | |
9130 | PyObject * obj8 = 0 ; | |
9131 | PyObject * obj9 = 0 ; | |
9132 | char *kwnames[] = { | |
9133 | (char *) "parent",(char *) "id",(char *) "label",(char *) "point",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9134 | }; | |
9135 | ||
9136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOOilOO:new_RadioBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&arg8,&arg9,&obj8,&obj9)) goto fail; | |
9137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9138 | { | |
9139 | arg3 = wxString_in_helper(obj2); | |
9140 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9141 | temp3 = True; |
d14a1e28 RD |
9142 | } |
9143 | if (obj3) { | |
9144 | { | |
9145 | arg4 = &temp4; | |
9146 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9147 | } | |
9148 | } | |
9149 | if (obj4) { | |
9150 | { | |
9151 | arg5 = &temp5; | |
9152 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9153 | } | |
9154 | } | |
9155 | if (obj5) { | |
9156 | { | |
9157 | arg6 = PyList_Size(obj5); | |
9158 | arg7 = wxString_LIST_helper(obj5); | |
9159 | if (arg7 == NULL) SWIG_fail; | |
9160 | } | |
9161 | } | |
9162 | if (obj8) { | |
9163 | if ((SWIG_ConvertPtr(obj8,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9164 | if (arg10 == NULL) { | |
9165 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9166 | } | |
9167 | } | |
9168 | if (obj9) { | |
9169 | { | |
9170 | arg11 = wxString_in_helper(obj9); | |
9171 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 9172 | temp10 = True; |
d14a1e28 RD |
9173 | } |
9174 | } | |
9175 | { | |
9176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9177 | 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); | |
9178 | ||
9179 | wxPyEndAllowThreads(__tstate); | |
9180 | if (PyErr_Occurred()) SWIG_fail; | |
9181 | } | |
9182 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
9183 | { | |
9184 | if (temp3) | |
9185 | delete arg3; | |
9186 | } | |
9187 | { | |
9188 | if (arg7) delete [] arg7; | |
9189 | } | |
9190 | { | |
9191 | if (temp10) | |
9192 | delete arg11; | |
9193 | } | |
9194 | return resultobj; | |
9195 | fail: | |
9196 | { | |
9197 | if (temp3) | |
9198 | delete arg3; | |
9199 | } | |
9200 | { | |
9201 | if (arg7) delete [] arg7; | |
9202 | } | |
9203 | { | |
9204 | if (temp10) | |
9205 | delete arg11; | |
9206 | } | |
9207 | return NULL; | |
9208 | } | |
9209 | ||
9210 | ||
9211 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9212 | PyObject *resultobj; | |
9213 | wxRadioBox *result; | |
9214 | char *kwnames[] = { | |
9215 | NULL | |
9216 | }; | |
9217 | ||
9218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
9219 | { | |
9220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9221 | result = (wxRadioBox *)new wxRadioBox(); | |
9222 | ||
9223 | wxPyEndAllowThreads(__tstate); | |
9224 | if (PyErr_Occurred()) SWIG_fail; | |
9225 | } | |
9226 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
9227 | return resultobj; | |
9228 | fail: | |
9229 | return NULL; | |
9230 | } | |
9231 | ||
9232 | ||
9233 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9234 | PyObject *resultobj; | |
9235 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9236 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 9237 | int arg3 ; |
d14a1e28 RD |
9238 | wxString *arg4 = 0 ; |
9239 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9240 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9241 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9242 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9243 | int arg7 = (int) 0 ; | |
9244 | wxString *arg8 = (wxString *) NULL ; | |
9245 | int arg9 = (int) 0 ; | |
9246 | long arg10 = (long) wxRA_HORIZONTAL ; | |
9247 | wxValidator const &arg11_defvalue = wxDefaultValidator ; | |
9248 | wxValidator *arg11 = (wxValidator *) &arg11_defvalue ; | |
9249 | wxString const &arg12_defvalue = wxPyRadioBoxNameStr ; | |
9250 | wxString *arg12 = (wxString *) &arg12_defvalue ; | |
9251 | bool result; | |
e811c8ce | 9252 | bool temp4 = False ; |
d14a1e28 RD |
9253 | wxPoint temp5 ; |
9254 | wxSize temp6 ; | |
e811c8ce | 9255 | bool temp11 = False ; |
d14a1e28 RD |
9256 | PyObject * obj0 = 0 ; |
9257 | PyObject * obj1 = 0 ; | |
9258 | PyObject * obj3 = 0 ; | |
9259 | PyObject * obj4 = 0 ; | |
9260 | PyObject * obj5 = 0 ; | |
9261 | PyObject * obj6 = 0 ; | |
9262 | PyObject * obj9 = 0 ; | |
9263 | PyObject * obj10 = 0 ; | |
9264 | char *kwnames[] = { | |
9265 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "point",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9266 | }; | |
9267 | ||
9268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOOilOO:RadioBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&obj6,&arg9,&arg10,&obj9,&obj10)) goto fail; | |
9269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9270 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9271 | { | |
9272 | arg4 = wxString_in_helper(obj3); | |
9273 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 9274 | temp4 = True; |
d14a1e28 RD |
9275 | } |
9276 | if (obj4) { | |
9277 | { | |
9278 | arg5 = &temp5; | |
9279 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9280 | } | |
9281 | } | |
9282 | if (obj5) { | |
9283 | { | |
9284 | arg6 = &temp6; | |
9285 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9286 | } | |
9287 | } | |
9288 | if (obj6) { | |
9289 | { | |
9290 | arg7 = PyList_Size(obj6); | |
9291 | arg8 = wxString_LIST_helper(obj6); | |
9292 | if (arg8 == NULL) SWIG_fail; | |
9293 | } | |
9294 | } | |
9295 | if (obj9) { | |
9296 | if ((SWIG_ConvertPtr(obj9,(void **) &arg11, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9297 | if (arg11 == NULL) { | |
9298 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9299 | } | |
9300 | } | |
9301 | if (obj10) { | |
9302 | { | |
9303 | arg12 = wxString_in_helper(obj10); | |
9304 | if (arg12 == NULL) SWIG_fail; | |
e811c8ce | 9305 | temp11 = True; |
d14a1e28 RD |
9306 | } |
9307 | } | |
9308 | { | |
9309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9310 | 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); | |
9311 | ||
9312 | wxPyEndAllowThreads(__tstate); | |
9313 | if (PyErr_Occurred()) SWIG_fail; | |
9314 | } | |
9315 | resultobj = PyInt_FromLong((long)result); | |
9316 | { | |
9317 | if (temp4) | |
9318 | delete arg4; | |
9319 | } | |
9320 | { | |
9321 | if (arg8) delete [] arg8; | |
9322 | } | |
9323 | { | |
9324 | if (temp11) | |
9325 | delete arg12; | |
9326 | } | |
9327 | return resultobj; | |
9328 | fail: | |
9329 | { | |
9330 | if (temp4) | |
9331 | delete arg4; | |
9332 | } | |
9333 | { | |
9334 | if (arg8) delete [] arg8; | |
9335 | } | |
9336 | { | |
9337 | if (temp11) | |
9338 | delete arg12; | |
9339 | } | |
9340 | return NULL; | |
9341 | } | |
9342 | ||
9343 | ||
9344 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9345 | PyObject *resultobj; | |
9346 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9347 | int arg2 ; | |
9348 | PyObject * obj0 = 0 ; | |
9349 | char *kwnames[] = { | |
9350 | (char *) "self",(char *) "n", NULL | |
9351 | }; | |
9352 | ||
9353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:RadioBox_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
9354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9355 | { | |
9356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9357 | (arg1)->SetSelection(arg2); | |
9358 | ||
9359 | wxPyEndAllowThreads(__tstate); | |
9360 | if (PyErr_Occurred()) SWIG_fail; | |
9361 | } | |
9362 | Py_INCREF(Py_None); resultobj = Py_None; | |
9363 | return resultobj; | |
9364 | fail: | |
9365 | return NULL; | |
9366 | } | |
9367 | ||
9368 | ||
9369 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9370 | PyObject *resultobj; | |
9371 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9372 | int result; | |
9373 | PyObject * obj0 = 0 ; | |
9374 | char *kwnames[] = { | |
9375 | (char *) "self", NULL | |
9376 | }; | |
9377 | ||
9378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
9379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9380 | { | |
9381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9382 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
9383 | ||
9384 | wxPyEndAllowThreads(__tstate); | |
9385 | if (PyErr_Occurred()) SWIG_fail; | |
9386 | } | |
9387 | resultobj = PyInt_FromLong((long)result); | |
9388 | return resultobj; | |
9389 | fail: | |
9390 | return NULL; | |
9391 | } | |
9392 | ||
9393 | ||
9394 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9395 | PyObject *resultobj; | |
9396 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9397 | wxString result; | |
9398 | PyObject * obj0 = 0 ; | |
9399 | char *kwnames[] = { | |
9400 | (char *) "self", NULL | |
9401 | }; | |
9402 | ||
9403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
9404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9405 | { | |
9406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9407 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
9408 | ||
9409 | wxPyEndAllowThreads(__tstate); | |
9410 | if (PyErr_Occurred()) SWIG_fail; | |
9411 | } | |
9412 | { | |
9413 | #if wxUSE_UNICODE | |
9414 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9415 | #else | |
9416 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9417 | #endif | |
9418 | } | |
9419 | return resultobj; | |
9420 | fail: | |
9421 | return NULL; | |
9422 | } | |
9423 | ||
9424 | ||
9425 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9426 | PyObject *resultobj; | |
9427 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9428 | wxString *arg2 = 0 ; | |
9429 | bool result; | |
e811c8ce | 9430 | bool temp2 = False ; |
d14a1e28 RD |
9431 | PyObject * obj0 = 0 ; |
9432 | PyObject * obj1 = 0 ; | |
9433 | char *kwnames[] = { | |
9434 | (char *) "self",(char *) "s", NULL | |
9435 | }; | |
9436 | ||
9437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
9438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9439 | { | |
9440 | arg2 = wxString_in_helper(obj1); | |
9441 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9442 | temp2 = True; |
d14a1e28 RD |
9443 | } |
9444 | { | |
9445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9446 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
9447 | ||
9448 | wxPyEndAllowThreads(__tstate); | |
9449 | if (PyErr_Occurred()) SWIG_fail; | |
9450 | } | |
9451 | resultobj = PyInt_FromLong((long)result); | |
9452 | { | |
9453 | if (temp2) | |
9454 | delete arg2; | |
9455 | } | |
9456 | return resultobj; | |
9457 | fail: | |
9458 | { | |
9459 | if (temp2) | |
9460 | delete arg2; | |
9461 | } | |
9462 | return NULL; | |
9463 | } | |
9464 | ||
9465 | ||
9466 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9467 | PyObject *resultobj; | |
9468 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9469 | int result; | |
9470 | PyObject * obj0 = 0 ; | |
9471 | char *kwnames[] = { | |
9472 | (char *) "self", NULL | |
9473 | }; | |
9474 | ||
9475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
9476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9477 | { | |
9478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9479 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
9480 | ||
9481 | wxPyEndAllowThreads(__tstate); | |
9482 | if (PyErr_Occurred()) SWIG_fail; | |
9483 | } | |
9484 | resultobj = PyInt_FromLong((long)result); | |
9485 | return resultobj; | |
9486 | fail: | |
9487 | return NULL; | |
9488 | } | |
9489 | ||
9490 | ||
9491 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9492 | PyObject *resultobj; | |
9493 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9494 | wxString *arg2 = 0 ; | |
9495 | int result; | |
e811c8ce | 9496 | bool temp2 = False ; |
d14a1e28 RD |
9497 | PyObject * obj0 = 0 ; |
9498 | PyObject * obj1 = 0 ; | |
9499 | char *kwnames[] = { | |
9500 | (char *) "self",(char *) "s", NULL | |
9501 | }; | |
9502 | ||
9503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
9504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9505 | { | |
9506 | arg2 = wxString_in_helper(obj1); | |
9507 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9508 | temp2 = True; |
d14a1e28 RD |
9509 | } |
9510 | { | |
9511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9512 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
9513 | ||
9514 | wxPyEndAllowThreads(__tstate); | |
9515 | if (PyErr_Occurred()) SWIG_fail; | |
9516 | } | |
9517 | resultobj = PyInt_FromLong((long)result); | |
9518 | { | |
9519 | if (temp2) | |
9520 | delete arg2; | |
9521 | } | |
9522 | return resultobj; | |
9523 | fail: | |
9524 | { | |
9525 | if (temp2) | |
9526 | delete arg2; | |
9527 | } | |
9528 | return NULL; | |
9529 | } | |
9530 | ||
9531 | ||
9532 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9533 | PyObject *resultobj; | |
9534 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9535 | int arg2 ; | |
9536 | wxString result; | |
9537 | PyObject * obj0 = 0 ; | |
9538 | char *kwnames[] = { | |
9539 | (char *) "self",(char *) "n", NULL | |
9540 | }; | |
9541 | ||
9542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:RadioBox_GetString",kwnames,&obj0,&arg2)) goto fail; | |
9543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9544 | { | |
9545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9546 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
9547 | ||
9548 | wxPyEndAllowThreads(__tstate); | |
9549 | if (PyErr_Occurred()) SWIG_fail; | |
9550 | } | |
9551 | { | |
9552 | #if wxUSE_UNICODE | |
9553 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9554 | #else | |
9555 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9556 | #endif | |
9557 | } | |
9558 | return resultobj; | |
9559 | fail: | |
9560 | return NULL; | |
9561 | } | |
9562 | ||
9563 | ||
9564 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9565 | PyObject *resultobj; | |
9566 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9567 | int arg2 ; | |
9568 | wxString *arg3 = 0 ; | |
e811c8ce | 9569 | bool temp3 = False ; |
d14a1e28 RD |
9570 | PyObject * obj0 = 0 ; |
9571 | PyObject * obj2 = 0 ; | |
9572 | char *kwnames[] = { | |
9573 | (char *) "self",(char *) "n",(char *) "label", NULL | |
9574 | }; | |
9575 | ||
9576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:RadioBox_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
9577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9578 | { | |
9579 | arg3 = wxString_in_helper(obj2); | |
9580 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9581 | temp3 = True; |
d14a1e28 RD |
9582 | } |
9583 | { | |
9584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9585 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
9586 | ||
9587 | wxPyEndAllowThreads(__tstate); | |
9588 | if (PyErr_Occurred()) SWIG_fail; | |
9589 | } | |
9590 | Py_INCREF(Py_None); resultobj = Py_None; | |
9591 | { | |
9592 | if (temp3) | |
9593 | delete arg3; | |
9594 | } | |
9595 | return resultobj; | |
9596 | fail: | |
9597 | { | |
9598 | if (temp3) | |
9599 | delete arg3; | |
9600 | } | |
9601 | return NULL; | |
9602 | } | |
9603 | ||
9604 | ||
9605 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9606 | PyObject *resultobj; | |
9607 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9608 | int arg2 ; | |
e811c8ce | 9609 | bool arg3 = (bool) True ; |
d14a1e28 RD |
9610 | PyObject * obj0 = 0 ; |
9611 | PyObject * obj2 = 0 ; | |
9612 | char *kwnames[] = { | |
9613 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
9614 | }; | |
9615 | ||
9616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:RadioBox_EnableItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
9617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9618 | if (obj2) { | |
9619 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
9620 | if (PyErr_Occurred()) SWIG_fail; | |
9621 | } | |
9622 | { | |
9623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9624 | (arg1)->Enable(arg2,arg3); | |
9625 | ||
9626 | wxPyEndAllowThreads(__tstate); | |
9627 | if (PyErr_Occurred()) SWIG_fail; | |
9628 | } | |
9629 | Py_INCREF(Py_None); resultobj = Py_None; | |
9630 | return resultobj; | |
9631 | fail: | |
9632 | return NULL; | |
9633 | } | |
9634 | ||
9635 | ||
9636 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9637 | PyObject *resultobj; | |
9638 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9639 | int arg2 ; | |
e811c8ce | 9640 | bool arg3 = (bool) True ; |
d14a1e28 RD |
9641 | PyObject * obj0 = 0 ; |
9642 | PyObject * obj2 = 0 ; | |
9643 | char *kwnames[] = { | |
9644 | (char *) "self",(char *) "n",(char *) "show", NULL | |
9645 | }; | |
9646 | ||
9647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:RadioBox_ShowItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
9648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9649 | if (obj2) { | |
9650 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
9651 | if (PyErr_Occurred()) SWIG_fail; | |
9652 | } | |
9653 | { | |
9654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9655 | (arg1)->Show(arg2,arg3); | |
9656 | ||
9657 | wxPyEndAllowThreads(__tstate); | |
9658 | if (PyErr_Occurred()) SWIG_fail; | |
9659 | } | |
9660 | Py_INCREF(Py_None); resultobj = Py_None; | |
9661 | return resultobj; | |
9662 | fail: | |
9663 | return NULL; | |
9664 | } | |
9665 | ||
9666 | ||
9667 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9668 | PyObject *resultobj; | |
9669 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9670 | int result; | |
9671 | PyObject * obj0 = 0 ; | |
9672 | char *kwnames[] = { | |
9673 | (char *) "self", NULL | |
9674 | }; | |
9675 | ||
9676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
9677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9678 | { | |
9679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9680 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
9681 | ||
9682 | wxPyEndAllowThreads(__tstate); | |
9683 | if (PyErr_Occurred()) SWIG_fail; | |
9684 | } | |
9685 | resultobj = PyInt_FromLong((long)result); | |
9686 | return resultobj; | |
9687 | fail: | |
9688 | return NULL; | |
9689 | } | |
9690 | ||
9691 | ||
9692 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9693 | PyObject *resultobj; | |
9694 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9695 | int result; | |
9696 | PyObject * obj0 = 0 ; | |
9697 | char *kwnames[] = { | |
9698 | (char *) "self", NULL | |
9699 | }; | |
9700 | ||
9701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
9702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9703 | { | |
9704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9705 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
9706 | ||
9707 | wxPyEndAllowThreads(__tstate); | |
9708 | if (PyErr_Occurred()) SWIG_fail; | |
9709 | } | |
9710 | resultobj = PyInt_FromLong((long)result); | |
9711 | return resultobj; | |
9712 | fail: | |
9713 | return NULL; | |
9714 | } | |
9715 | ||
9716 | ||
9717 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9718 | PyObject *resultobj; | |
9719 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9720 | int arg2 ; | |
9721 | int arg3 ; | |
9722 | long arg4 ; | |
9723 | int result; | |
9724 | PyObject * obj0 = 0 ; | |
9725 | char *kwnames[] = { | |
9726 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
9727 | }; | |
9728 | ||
9729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiil:RadioBox_GetNextItem",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
9730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9731 | { | |
9732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9733 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
9734 | ||
9735 | wxPyEndAllowThreads(__tstate); | |
9736 | if (PyErr_Occurred()) SWIG_fail; | |
9737 | } | |
9738 | resultobj = PyInt_FromLong((long)result); | |
9739 | return resultobj; | |
9740 | fail: | |
9741 | return NULL; | |
9742 | } | |
9743 | ||
9744 | ||
9745 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
9746 | PyObject *obj; | |
9747 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9748 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
9749 | Py_INCREF(obj); | |
9750 | return Py_BuildValue((char *)""); | |
9751 | } | |
9752 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9753 | PyObject *resultobj; | |
9754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 9755 | int arg2 ; |
d14a1e28 RD |
9756 | wxString *arg3 = 0 ; |
9757 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9758 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9759 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9760 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9761 | long arg6 = (long) 0 ; | |
9762 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9763 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9764 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
9765 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9766 | wxRadioButton *result; | |
e811c8ce | 9767 | bool temp3 = False ; |
d14a1e28 RD |
9768 | wxPoint temp4 ; |
9769 | wxSize temp5 ; | |
e811c8ce | 9770 | bool temp8 = False ; |
d14a1e28 RD |
9771 | PyObject * obj0 = 0 ; |
9772 | PyObject * obj2 = 0 ; | |
9773 | PyObject * obj3 = 0 ; | |
9774 | PyObject * obj4 = 0 ; | |
9775 | PyObject * obj6 = 0 ; | |
9776 | PyObject * obj7 = 0 ; | |
9777 | char *kwnames[] = { | |
9778 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9779 | }; | |
9780 | ||
9781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_RadioButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
9782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9783 | { | |
9784 | arg3 = wxString_in_helper(obj2); | |
9785 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9786 | temp3 = True; |
d14a1e28 RD |
9787 | } |
9788 | if (obj3) { | |
9789 | { | |
9790 | arg4 = &temp4; | |
9791 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9792 | } | |
9793 | } | |
9794 | if (obj4) { | |
9795 | { | |
9796 | arg5 = &temp5; | |
9797 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9798 | } | |
9799 | } | |
9800 | if (obj6) { | |
9801 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9802 | if (arg7 == NULL) { | |
9803 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9804 | } | |
9805 | } | |
9806 | if (obj7) { | |
9807 | { | |
9808 | arg8 = wxString_in_helper(obj7); | |
9809 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 9810 | temp8 = True; |
d14a1e28 RD |
9811 | } |
9812 | } | |
9813 | { | |
9814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9815 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9816 | ||
9817 | wxPyEndAllowThreads(__tstate); | |
9818 | if (PyErr_Occurred()) SWIG_fail; | |
9819 | } | |
9820 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
9821 | { | |
9822 | if (temp3) | |
9823 | delete arg3; | |
9824 | } | |
9825 | { | |
9826 | if (temp8) | |
9827 | delete arg8; | |
9828 | } | |
9829 | return resultobj; | |
9830 | fail: | |
9831 | { | |
9832 | if (temp3) | |
9833 | delete arg3; | |
9834 | } | |
9835 | { | |
9836 | if (temp8) | |
9837 | delete arg8; | |
9838 | } | |
9839 | return NULL; | |
9840 | } | |
9841 | ||
9842 | ||
9843 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9844 | PyObject *resultobj; | |
9845 | wxRadioButton *result; | |
9846 | char *kwnames[] = { | |
9847 | NULL | |
9848 | }; | |
9849 | ||
9850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
9851 | { | |
9852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9853 | result = (wxRadioButton *)new wxRadioButton(); | |
9854 | ||
9855 | wxPyEndAllowThreads(__tstate); | |
9856 | if (PyErr_Occurred()) SWIG_fail; | |
9857 | } | |
9858 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
9859 | return resultobj; | |
9860 | fail: | |
9861 | return NULL; | |
9862 | } | |
9863 | ||
9864 | ||
9865 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9866 | PyObject *resultobj; | |
9867 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
9868 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 9869 | int arg3 ; |
d14a1e28 RD |
9870 | wxString *arg4 = 0 ; |
9871 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9872 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9873 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9874 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9875 | long arg7 = (long) 0 ; | |
9876 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
9877 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
9878 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
9879 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
9880 | bool result; | |
e811c8ce | 9881 | bool temp4 = False ; |
d14a1e28 RD |
9882 | wxPoint temp5 ; |
9883 | wxSize temp6 ; | |
e811c8ce | 9884 | bool temp9 = False ; |
d14a1e28 RD |
9885 | PyObject * obj0 = 0 ; |
9886 | PyObject * obj1 = 0 ; | |
9887 | PyObject * obj3 = 0 ; | |
9888 | PyObject * obj4 = 0 ; | |
9889 | PyObject * obj5 = 0 ; | |
9890 | PyObject * obj7 = 0 ; | |
9891 | PyObject * obj8 = 0 ; | |
9892 | char *kwnames[] = { | |
9893 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9894 | }; | |
9895 | ||
9896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:RadioButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
9897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9898 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9899 | { | |
9900 | arg4 = wxString_in_helper(obj3); | |
9901 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 9902 | temp4 = True; |
d14a1e28 RD |
9903 | } |
9904 | if (obj4) { | |
9905 | { | |
9906 | arg5 = &temp5; | |
9907 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9908 | } | |
9909 | } | |
9910 | if (obj5) { | |
9911 | { | |
9912 | arg6 = &temp6; | |
9913 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9914 | } | |
9915 | } | |
9916 | if (obj7) { | |
9917 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9918 | if (arg8 == NULL) { | |
9919 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9920 | } | |
9921 | } | |
9922 | if (obj8) { | |
9923 | { | |
9924 | arg9 = wxString_in_helper(obj8); | |
9925 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 9926 | temp9 = True; |
d14a1e28 RD |
9927 | } |
9928 | } | |
9929 | { | |
9930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9931 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9932 | ||
9933 | wxPyEndAllowThreads(__tstate); | |
9934 | if (PyErr_Occurred()) SWIG_fail; | |
9935 | } | |
9936 | resultobj = PyInt_FromLong((long)result); | |
9937 | { | |
9938 | if (temp4) | |
9939 | delete arg4; | |
9940 | } | |
9941 | { | |
9942 | if (temp9) | |
9943 | delete arg9; | |
9944 | } | |
9945 | return resultobj; | |
9946 | fail: | |
9947 | { | |
9948 | if (temp4) | |
9949 | delete arg4; | |
9950 | } | |
9951 | { | |
9952 | if (temp9) | |
9953 | delete arg9; | |
9954 | } | |
9955 | return NULL; | |
9956 | } | |
9957 | ||
9958 | ||
9959 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9960 | PyObject *resultobj; | |
9961 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
9962 | bool result; | |
9963 | PyObject * obj0 = 0 ; | |
9964 | char *kwnames[] = { | |
9965 | (char *) "self", NULL | |
9966 | }; | |
9967 | ||
9968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
9969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9970 | { | |
9971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9972 | result = (bool)(arg1)->GetValue(); | |
9973 | ||
9974 | wxPyEndAllowThreads(__tstate); | |
9975 | if (PyErr_Occurred()) SWIG_fail; | |
9976 | } | |
9977 | resultobj = PyInt_FromLong((long)result); | |
9978 | return resultobj; | |
9979 | fail: | |
9980 | return NULL; | |
9981 | } | |
9982 | ||
9983 | ||
9984 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9985 | PyObject *resultobj; | |
9986 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
9987 | bool arg2 ; | |
9988 | PyObject * obj0 = 0 ; | |
9989 | PyObject * obj1 = 0 ; | |
9990 | char *kwnames[] = { | |
9991 | (char *) "self",(char *) "value", NULL | |
9992 | }; | |
9993 | ||
9994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
9995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9996 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
9997 | if (PyErr_Occurred()) SWIG_fail; | |
9998 | { | |
9999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10000 | (arg1)->SetValue(arg2); | |
10001 | ||
10002 | wxPyEndAllowThreads(__tstate); | |
10003 | if (PyErr_Occurred()) SWIG_fail; | |
10004 | } | |
10005 | Py_INCREF(Py_None); resultobj = Py_None; | |
10006 | return resultobj; | |
10007 | fail: | |
10008 | return NULL; | |
10009 | } | |
10010 | ||
10011 | ||
10012 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
10013 | PyObject *obj; | |
10014 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10015 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
10016 | Py_INCREF(obj); | |
10017 | return Py_BuildValue((char *)""); | |
10018 | } | |
10019 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10020 | PyObject *resultobj; | |
10021 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10022 | int arg2 ; |
d14a1e28 RD |
10023 | int arg3 ; |
10024 | int arg4 ; | |
10025 | int arg5 ; | |
10026 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
10027 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
10028 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
10029 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
10030 | long arg8 = (long) wxSL_HORIZONTAL ; | |
10031 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10032 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10033 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
10034 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10035 | wxSlider *result; | |
10036 | wxPoint temp6 ; | |
10037 | wxSize temp7 ; | |
e811c8ce | 10038 | bool temp10 = False ; |
d14a1e28 RD |
10039 | PyObject * obj0 = 0 ; |
10040 | PyObject * obj5 = 0 ; | |
10041 | PyObject * obj6 = 0 ; | |
10042 | PyObject * obj8 = 0 ; | |
10043 | PyObject * obj9 = 0 ; | |
10044 | char *kwnames[] = { | |
10045 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "point",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10046 | }; | |
10047 | ||
10048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOlOO:new_Slider",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8,&obj8,&obj9)) goto fail; | |
10049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10050 | if (obj5) { | |
10051 | { | |
10052 | arg6 = &temp6; | |
10053 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
10054 | } | |
10055 | } | |
10056 | if (obj6) { | |
10057 | { | |
10058 | arg7 = &temp7; | |
10059 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
10060 | } | |
10061 | } | |
10062 | if (obj8) { | |
10063 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10064 | if (arg9 == NULL) { | |
10065 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10066 | } | |
10067 | } | |
10068 | if (obj9) { | |
10069 | { | |
10070 | arg10 = wxString_in_helper(obj9); | |
10071 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 10072 | temp10 = True; |
d14a1e28 RD |
10073 | } |
10074 | } | |
10075 | { | |
10076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10077 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
10078 | ||
10079 | wxPyEndAllowThreads(__tstate); | |
10080 | if (PyErr_Occurred()) SWIG_fail; | |
10081 | } | |
10082 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
10083 | { | |
10084 | if (temp10) | |
10085 | delete arg10; | |
10086 | } | |
10087 | return resultobj; | |
10088 | fail: | |
10089 | { | |
10090 | if (temp10) | |
10091 | delete arg10; | |
10092 | } | |
10093 | return NULL; | |
10094 | } | |
10095 | ||
10096 | ||
10097 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10098 | PyObject *resultobj; | |
10099 | wxSlider *result; | |
10100 | char *kwnames[] = { | |
10101 | NULL | |
10102 | }; | |
10103 | ||
10104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
10105 | { | |
10106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10107 | result = (wxSlider *)new wxSlider(); | |
10108 | ||
10109 | wxPyEndAllowThreads(__tstate); | |
10110 | if (PyErr_Occurred()) SWIG_fail; | |
10111 | } | |
10112 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
10113 | return resultobj; | |
10114 | fail: | |
10115 | return NULL; | |
10116 | } | |
10117 | ||
10118 | ||
10119 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10120 | PyObject *resultobj; | |
10121 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10122 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10123 | int arg3 ; |
d14a1e28 RD |
10124 | int arg4 ; |
10125 | int arg5 ; | |
10126 | int arg6 ; | |
10127 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
10128 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
10129 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
10130 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
10131 | long arg9 = (long) wxSL_HORIZONTAL ; | |
10132 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
10133 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
10134 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
10135 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10136 | bool result; | |
10137 | wxPoint temp7 ; | |
10138 | wxSize temp8 ; | |
e811c8ce | 10139 | bool temp11 = False ; |
d14a1e28 RD |
10140 | PyObject * obj0 = 0 ; |
10141 | PyObject * obj1 = 0 ; | |
10142 | PyObject * obj6 = 0 ; | |
10143 | PyObject * obj7 = 0 ; | |
10144 | PyObject * obj9 = 0 ; | |
10145 | PyObject * obj10 = 0 ; | |
10146 | char *kwnames[] = { | |
10147 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "point",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10148 | }; | |
10149 | ||
10150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiiii|OOlOO:Slider_Create",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6,&obj7,&arg9,&obj9,&obj10)) goto fail; | |
10151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10152 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10153 | if (obj6) { | |
10154 | { | |
10155 | arg7 = &temp7; | |
10156 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
10157 | } | |
10158 | } | |
10159 | if (obj7) { | |
10160 | { | |
10161 | arg8 = &temp8; | |
10162 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
10163 | } | |
10164 | } | |
10165 | if (obj9) { | |
10166 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10167 | if (arg10 == NULL) { | |
10168 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10169 | } | |
10170 | } | |
10171 | if (obj10) { | |
10172 | { | |
10173 | arg11 = wxString_in_helper(obj10); | |
10174 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 10175 | temp11 = True; |
d14a1e28 RD |
10176 | } |
10177 | } | |
10178 | { | |
10179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10180 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
10181 | ||
10182 | wxPyEndAllowThreads(__tstate); | |
10183 | if (PyErr_Occurred()) SWIG_fail; | |
10184 | } | |
10185 | resultobj = PyInt_FromLong((long)result); | |
10186 | { | |
10187 | if (temp11) | |
10188 | delete arg11; | |
10189 | } | |
10190 | return resultobj; | |
10191 | fail: | |
10192 | { | |
10193 | if (temp11) | |
10194 | delete arg11; | |
10195 | } | |
10196 | return NULL; | |
10197 | } | |
10198 | ||
10199 | ||
10200 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10201 | PyObject *resultobj; | |
10202 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10203 | int result; | |
10204 | PyObject * obj0 = 0 ; | |
10205 | char *kwnames[] = { | |
10206 | (char *) "self", NULL | |
10207 | }; | |
10208 | ||
10209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
10210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10211 | { | |
10212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10213 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
10214 | ||
10215 | wxPyEndAllowThreads(__tstate); | |
10216 | if (PyErr_Occurred()) SWIG_fail; | |
10217 | } | |
10218 | resultobj = PyInt_FromLong((long)result); | |
10219 | return resultobj; | |
10220 | fail: | |
10221 | return NULL; | |
10222 | } | |
10223 | ||
10224 | ||
10225 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10226 | PyObject *resultobj; | |
10227 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10228 | int arg2 ; | |
10229 | PyObject * obj0 = 0 ; | |
10230 | char *kwnames[] = { | |
10231 | (char *) "self",(char *) "value", NULL | |
10232 | }; | |
10233 | ||
10234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
10235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10236 | { | |
10237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10238 | (arg1)->SetValue(arg2); | |
10239 | ||
10240 | wxPyEndAllowThreads(__tstate); | |
10241 | if (PyErr_Occurred()) SWIG_fail; | |
10242 | } | |
10243 | Py_INCREF(Py_None); resultobj = Py_None; | |
10244 | return resultobj; | |
10245 | fail: | |
10246 | return NULL; | |
10247 | } | |
10248 | ||
10249 | ||
10250 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10251 | PyObject *resultobj; | |
10252 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10253 | int arg2 ; | |
10254 | int arg3 ; | |
10255 | PyObject * obj0 = 0 ; | |
10256 | char *kwnames[] = { | |
10257 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
10258 | }; | |
10259 | ||
10260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10262 | { | |
10263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10264 | (arg1)->SetRange(arg2,arg3); | |
10265 | ||
10266 | wxPyEndAllowThreads(__tstate); | |
10267 | if (PyErr_Occurred()) SWIG_fail; | |
10268 | } | |
10269 | Py_INCREF(Py_None); resultobj = Py_None; | |
10270 | return resultobj; | |
10271 | fail: | |
10272 | return NULL; | |
10273 | } | |
10274 | ||
10275 | ||
10276 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10277 | PyObject *resultobj; | |
10278 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10279 | int result; | |
10280 | PyObject * obj0 = 0 ; | |
10281 | char *kwnames[] = { | |
10282 | (char *) "self", NULL | |
10283 | }; | |
10284 | ||
10285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
10286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10287 | { | |
10288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10289 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
10290 | ||
10291 | wxPyEndAllowThreads(__tstate); | |
10292 | if (PyErr_Occurred()) SWIG_fail; | |
10293 | } | |
10294 | resultobj = PyInt_FromLong((long)result); | |
10295 | return resultobj; | |
10296 | fail: | |
10297 | return NULL; | |
10298 | } | |
10299 | ||
10300 | ||
10301 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10302 | PyObject *resultobj; | |
10303 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10304 | int result; | |
10305 | PyObject * obj0 = 0 ; | |
10306 | char *kwnames[] = { | |
10307 | (char *) "self", NULL | |
10308 | }; | |
10309 | ||
10310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
10311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10312 | { | |
10313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10314 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
10315 | ||
10316 | wxPyEndAllowThreads(__tstate); | |
10317 | if (PyErr_Occurred()) SWIG_fail; | |
10318 | } | |
10319 | resultobj = PyInt_FromLong((long)result); | |
10320 | return resultobj; | |
10321 | fail: | |
10322 | return NULL; | |
10323 | } | |
10324 | ||
10325 | ||
10326 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10327 | PyObject *resultobj; | |
10328 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10329 | int arg2 ; | |
10330 | PyObject * obj0 = 0 ; | |
10331 | char *kwnames[] = { | |
10332 | (char *) "self",(char *) "minValue", NULL | |
10333 | }; | |
10334 | ||
10335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetMin",kwnames,&obj0,&arg2)) goto fail; | |
10336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10337 | { | |
10338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10339 | (arg1)->SetMin(arg2); | |
10340 | ||
10341 | wxPyEndAllowThreads(__tstate); | |
10342 | if (PyErr_Occurred()) SWIG_fail; | |
10343 | } | |
10344 | Py_INCREF(Py_None); resultobj = Py_None; | |
10345 | return resultobj; | |
10346 | fail: | |
10347 | return NULL; | |
10348 | } | |
10349 | ||
10350 | ||
10351 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10352 | PyObject *resultobj; | |
10353 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10354 | int arg2 ; | |
10355 | PyObject * obj0 = 0 ; | |
10356 | char *kwnames[] = { | |
10357 | (char *) "self",(char *) "maxValue", NULL | |
10358 | }; | |
10359 | ||
10360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetMax",kwnames,&obj0,&arg2)) goto fail; | |
10361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10362 | { | |
10363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10364 | (arg1)->SetMax(arg2); | |
10365 | ||
10366 | wxPyEndAllowThreads(__tstate); | |
10367 | if (PyErr_Occurred()) SWIG_fail; | |
10368 | } | |
10369 | Py_INCREF(Py_None); resultobj = Py_None; | |
10370 | return resultobj; | |
10371 | fail: | |
10372 | return NULL; | |
10373 | } | |
10374 | ||
10375 | ||
10376 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10377 | PyObject *resultobj; | |
10378 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10379 | int arg2 ; | |
10380 | PyObject * obj0 = 0 ; | |
10381 | char *kwnames[] = { | |
10382 | (char *) "self",(char *) "lineSize", NULL | |
10383 | }; | |
10384 | ||
10385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetLineSize",kwnames,&obj0,&arg2)) goto fail; | |
10386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10387 | { | |
10388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10389 | (arg1)->SetLineSize(arg2); | |
10390 | ||
10391 | wxPyEndAllowThreads(__tstate); | |
10392 | if (PyErr_Occurred()) SWIG_fail; | |
10393 | } | |
10394 | Py_INCREF(Py_None); resultobj = Py_None; | |
10395 | return resultobj; | |
10396 | fail: | |
10397 | return NULL; | |
10398 | } | |
10399 | ||
10400 | ||
10401 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10402 | PyObject *resultobj; | |
10403 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10404 | int arg2 ; | |
10405 | PyObject * obj0 = 0 ; | |
10406 | char *kwnames[] = { | |
10407 | (char *) "self",(char *) "pageSize", NULL | |
10408 | }; | |
10409 | ||
10410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetPageSize",kwnames,&obj0,&arg2)) goto fail; | |
10411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10412 | { | |
10413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10414 | (arg1)->SetPageSize(arg2); | |
10415 | ||
10416 | wxPyEndAllowThreads(__tstate); | |
10417 | if (PyErr_Occurred()) SWIG_fail; | |
10418 | } | |
10419 | Py_INCREF(Py_None); resultobj = Py_None; | |
10420 | return resultobj; | |
10421 | fail: | |
10422 | return NULL; | |
10423 | } | |
10424 | ||
10425 | ||
10426 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10427 | PyObject *resultobj; | |
10428 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10429 | int result; | |
10430 | PyObject * obj0 = 0 ; | |
10431 | char *kwnames[] = { | |
10432 | (char *) "self", NULL | |
10433 | }; | |
10434 | ||
10435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
10436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10437 | { | |
10438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10439 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
10440 | ||
10441 | wxPyEndAllowThreads(__tstate); | |
10442 | if (PyErr_Occurred()) SWIG_fail; | |
10443 | } | |
10444 | resultobj = PyInt_FromLong((long)result); | |
10445 | return resultobj; | |
10446 | fail: | |
10447 | return NULL; | |
10448 | } | |
10449 | ||
10450 | ||
10451 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10452 | PyObject *resultobj; | |
10453 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10454 | int result; | |
10455 | PyObject * obj0 = 0 ; | |
10456 | char *kwnames[] = { | |
10457 | (char *) "self", NULL | |
10458 | }; | |
10459 | ||
10460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
10461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10462 | { | |
10463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10464 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
10465 | ||
10466 | wxPyEndAllowThreads(__tstate); | |
10467 | if (PyErr_Occurred()) SWIG_fail; | |
10468 | } | |
10469 | resultobj = PyInt_FromLong((long)result); | |
10470 | return resultobj; | |
10471 | fail: | |
10472 | return NULL; | |
10473 | } | |
10474 | ||
10475 | ||
10476 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10477 | PyObject *resultobj; | |
10478 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10479 | int arg2 ; | |
10480 | PyObject * obj0 = 0 ; | |
10481 | char *kwnames[] = { | |
10482 | (char *) "self",(char *) "lenPixels", NULL | |
10483 | }; | |
10484 | ||
10485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetThumbLength",kwnames,&obj0,&arg2)) goto fail; | |
10486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10487 | { | |
10488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10489 | (arg1)->SetThumbLength(arg2); | |
10490 | ||
10491 | wxPyEndAllowThreads(__tstate); | |
10492 | if (PyErr_Occurred()) SWIG_fail; | |
10493 | } | |
10494 | Py_INCREF(Py_None); resultobj = Py_None; | |
10495 | return resultobj; | |
10496 | fail: | |
10497 | return NULL; | |
10498 | } | |
10499 | ||
10500 | ||
10501 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10502 | PyObject *resultobj; | |
10503 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10504 | int result; | |
10505 | PyObject * obj0 = 0 ; | |
10506 | char *kwnames[] = { | |
10507 | (char *) "self", NULL | |
10508 | }; | |
10509 | ||
10510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
10511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10512 | { | |
10513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10514 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
10515 | ||
10516 | wxPyEndAllowThreads(__tstate); | |
10517 | if (PyErr_Occurred()) SWIG_fail; | |
10518 | } | |
10519 | resultobj = PyInt_FromLong((long)result); | |
10520 | return resultobj; | |
10521 | fail: | |
10522 | return NULL; | |
10523 | } | |
10524 | ||
10525 | ||
10526 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10527 | PyObject *resultobj; | |
10528 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10529 | int arg2 ; | |
10530 | int arg3 ; | |
10531 | PyObject * obj0 = 0 ; | |
10532 | char *kwnames[] = { | |
10533 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
10534 | }; | |
10535 | ||
10536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetTickFreq",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10538 | { | |
10539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10540 | (arg1)->SetTickFreq(arg2,arg3); | |
10541 | ||
10542 | wxPyEndAllowThreads(__tstate); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
10545 | Py_INCREF(Py_None); resultobj = Py_None; | |
10546 | return resultobj; | |
10547 | fail: | |
10548 | return NULL; | |
10549 | } | |
10550 | ||
10551 | ||
10552 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10553 | PyObject *resultobj; | |
10554 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10555 | int result; | |
10556 | PyObject * obj0 = 0 ; | |
10557 | char *kwnames[] = { | |
10558 | (char *) "self", NULL | |
10559 | }; | |
10560 | ||
10561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
10562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10563 | { | |
10564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10565 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
10566 | ||
10567 | wxPyEndAllowThreads(__tstate); | |
10568 | if (PyErr_Occurred()) SWIG_fail; | |
10569 | } | |
10570 | resultobj = PyInt_FromLong((long)result); | |
10571 | return resultobj; | |
10572 | fail: | |
10573 | return NULL; | |
10574 | } | |
10575 | ||
10576 | ||
10577 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10578 | PyObject *resultobj; | |
10579 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10580 | PyObject * obj0 = 0 ; | |
10581 | char *kwnames[] = { | |
10582 | (char *) "self", NULL | |
10583 | }; | |
10584 | ||
10585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
10586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10587 | { | |
10588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10589 | (arg1)->ClearTicks(); | |
10590 | ||
10591 | wxPyEndAllowThreads(__tstate); | |
10592 | if (PyErr_Occurred()) SWIG_fail; | |
10593 | } | |
10594 | Py_INCREF(Py_None); resultobj = Py_None; | |
10595 | return resultobj; | |
10596 | fail: | |
10597 | return NULL; | |
10598 | } | |
10599 | ||
10600 | ||
10601 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10602 | PyObject *resultobj; | |
10603 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10604 | int arg2 ; | |
10605 | PyObject * obj0 = 0 ; | |
10606 | char *kwnames[] = { | |
10607 | (char *) "self",(char *) "tickPos", NULL | |
10608 | }; | |
10609 | ||
10610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetTick",kwnames,&obj0,&arg2)) goto fail; | |
10611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10612 | { | |
10613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10614 | (arg1)->SetTick(arg2); | |
10615 | ||
10616 | wxPyEndAllowThreads(__tstate); | |
10617 | if (PyErr_Occurred()) SWIG_fail; | |
10618 | } | |
10619 | Py_INCREF(Py_None); resultobj = Py_None; | |
10620 | return resultobj; | |
10621 | fail: | |
10622 | return NULL; | |
10623 | } | |
10624 | ||
10625 | ||
10626 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10627 | PyObject *resultobj; | |
10628 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10629 | PyObject * obj0 = 0 ; | |
10630 | char *kwnames[] = { | |
10631 | (char *) "self", NULL | |
10632 | }; | |
10633 | ||
10634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
10635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10636 | { | |
10637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10638 | (arg1)->ClearSel(); | |
10639 | ||
10640 | wxPyEndAllowThreads(__tstate); | |
10641 | if (PyErr_Occurred()) SWIG_fail; | |
10642 | } | |
10643 | Py_INCREF(Py_None); resultobj = Py_None; | |
10644 | return resultobj; | |
10645 | fail: | |
10646 | return NULL; | |
10647 | } | |
10648 | ||
10649 | ||
10650 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10651 | PyObject *resultobj; | |
10652 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10653 | int result; | |
10654 | PyObject * obj0 = 0 ; | |
10655 | char *kwnames[] = { | |
10656 | (char *) "self", NULL | |
10657 | }; | |
10658 | ||
10659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
10660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10661 | { | |
10662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10663 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
10664 | ||
10665 | wxPyEndAllowThreads(__tstate); | |
10666 | if (PyErr_Occurred()) SWIG_fail; | |
10667 | } | |
10668 | resultobj = PyInt_FromLong((long)result); | |
10669 | return resultobj; | |
10670 | fail: | |
10671 | return NULL; | |
10672 | } | |
10673 | ||
10674 | ||
10675 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10676 | PyObject *resultobj; | |
10677 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10678 | int result; | |
10679 | PyObject * obj0 = 0 ; | |
10680 | char *kwnames[] = { | |
10681 | (char *) "self", NULL | |
10682 | }; | |
10683 | ||
10684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
10685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10686 | { | |
10687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10688 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
10689 | ||
10690 | wxPyEndAllowThreads(__tstate); | |
10691 | if (PyErr_Occurred()) SWIG_fail; | |
10692 | } | |
10693 | resultobj = PyInt_FromLong((long)result); | |
10694 | return resultobj; | |
10695 | fail: | |
10696 | return NULL; | |
10697 | } | |
10698 | ||
10699 | ||
10700 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10701 | PyObject *resultobj; | |
10702 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10703 | int arg2 ; | |
10704 | int arg3 ; | |
10705 | PyObject * obj0 = 0 ; | |
10706 | char *kwnames[] = { | |
10707 | (char *) "self",(char *) "min",(char *) "max", NULL | |
10708 | }; | |
10709 | ||
10710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10712 | { | |
10713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10714 | (arg1)->SetSelection(arg2,arg3); | |
10715 | ||
10716 | wxPyEndAllowThreads(__tstate); | |
10717 | if (PyErr_Occurred()) SWIG_fail; | |
10718 | } | |
10719 | Py_INCREF(Py_None); resultobj = Py_None; | |
10720 | return resultobj; | |
10721 | fail: | |
10722 | return NULL; | |
10723 | } | |
10724 | ||
10725 | ||
10726 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
10727 | PyObject *obj; | |
10728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10729 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
10730 | Py_INCREF(obj); | |
10731 | return Py_BuildValue((char *)""); | |
10732 | } | |
10733 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10734 | PyObject *resultobj; | |
10735 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10736 | int arg2 ; |
d14a1e28 RD |
10737 | wxString *arg3 = 0 ; |
10738 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10739 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10740 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10741 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10742 | long arg6 = (long) 0 ; | |
10743 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10744 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10745 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
10746 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10747 | wxToggleButton *result; | |
e811c8ce | 10748 | bool temp3 = False ; |
d14a1e28 RD |
10749 | wxPoint temp4 ; |
10750 | wxSize temp5 ; | |
e811c8ce | 10751 | bool temp8 = False ; |
d14a1e28 RD |
10752 | PyObject * obj0 = 0 ; |
10753 | PyObject * obj2 = 0 ; | |
10754 | PyObject * obj3 = 0 ; | |
10755 | PyObject * obj4 = 0 ; | |
10756 | PyObject * obj6 = 0 ; | |
10757 | PyObject * obj7 = 0 ; | |
10758 | char *kwnames[] = { | |
10759 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10760 | }; | |
10761 | ||
10762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_ToggleButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
10763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10764 | { | |
10765 | arg3 = wxString_in_helper(obj2); | |
10766 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10767 | temp3 = True; |
d14a1e28 RD |
10768 | } |
10769 | if (obj3) { | |
10770 | { | |
10771 | arg4 = &temp4; | |
10772 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10773 | } | |
10774 | } | |
10775 | if (obj4) { | |
10776 | { | |
10777 | arg5 = &temp5; | |
10778 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10779 | } | |
10780 | } | |
10781 | if (obj6) { | |
10782 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10783 | if (arg7 == NULL) { | |
10784 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10785 | } | |
10786 | } | |
10787 | if (obj7) { | |
10788 | { | |
10789 | arg8 = wxString_in_helper(obj7); | |
10790 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 10791 | temp8 = True; |
d14a1e28 RD |
10792 | } |
10793 | } | |
10794 | { | |
10795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10796 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10797 | ||
10798 | wxPyEndAllowThreads(__tstate); | |
10799 | if (PyErr_Occurred()) SWIG_fail; | |
10800 | } | |
10801 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
10802 | { | |
10803 | if (temp3) | |
10804 | delete arg3; | |
10805 | } | |
10806 | { | |
10807 | if (temp8) | |
10808 | delete arg8; | |
10809 | } | |
10810 | return resultobj; | |
10811 | fail: | |
10812 | { | |
10813 | if (temp3) | |
10814 | delete arg3; | |
10815 | } | |
10816 | { | |
10817 | if (temp8) | |
10818 | delete arg8; | |
10819 | } | |
10820 | return NULL; | |
10821 | } | |
10822 | ||
10823 | ||
10824 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10825 | PyObject *resultobj; | |
10826 | wxToggleButton *result; | |
10827 | char *kwnames[] = { | |
10828 | NULL | |
10829 | }; | |
10830 | ||
10831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
10832 | { | |
10833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10834 | result = (wxToggleButton *)new wxToggleButton(); | |
10835 | ||
10836 | wxPyEndAllowThreads(__tstate); | |
10837 | if (PyErr_Occurred()) SWIG_fail; | |
10838 | } | |
10839 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
10840 | return resultobj; | |
10841 | fail: | |
10842 | return NULL; | |
10843 | } | |
10844 | ||
10845 | ||
10846 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10847 | PyObject *resultobj; | |
10848 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
10849 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10850 | int arg3 ; |
d14a1e28 RD |
10851 | wxString *arg4 = 0 ; |
10852 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10853 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10854 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10855 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10856 | long arg7 = (long) 0 ; | |
10857 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
10858 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
10859 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
10860 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
10861 | bool result; | |
e811c8ce | 10862 | bool temp4 = False ; |
d14a1e28 RD |
10863 | wxPoint temp5 ; |
10864 | wxSize temp6 ; | |
e811c8ce | 10865 | bool temp9 = False ; |
d14a1e28 RD |
10866 | PyObject * obj0 = 0 ; |
10867 | PyObject * obj1 = 0 ; | |
10868 | PyObject * obj3 = 0 ; | |
10869 | PyObject * obj4 = 0 ; | |
10870 | PyObject * obj5 = 0 ; | |
10871 | PyObject * obj7 = 0 ; | |
10872 | PyObject * obj8 = 0 ; | |
10873 | char *kwnames[] = { | |
10874 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10875 | }; | |
10876 | ||
10877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:ToggleButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
10878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10879 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10880 | { | |
10881 | arg4 = wxString_in_helper(obj3); | |
10882 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 10883 | temp4 = True; |
d14a1e28 RD |
10884 | } |
10885 | if (obj4) { | |
10886 | { | |
10887 | arg5 = &temp5; | |
10888 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10889 | } | |
10890 | } | |
10891 | if (obj5) { | |
10892 | { | |
10893 | arg6 = &temp6; | |
10894 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10895 | } | |
10896 | } | |
10897 | if (obj7) { | |
10898 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10899 | if (arg8 == NULL) { | |
10900 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10901 | } | |
10902 | } | |
10903 | if (obj8) { | |
10904 | { | |
10905 | arg9 = wxString_in_helper(obj8); | |
10906 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 10907 | temp9 = True; |
d14a1e28 RD |
10908 | } |
10909 | } | |
10910 | { | |
10911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10912 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10913 | ||
10914 | wxPyEndAllowThreads(__tstate); | |
10915 | if (PyErr_Occurred()) SWIG_fail; | |
10916 | } | |
10917 | resultobj = PyInt_FromLong((long)result); | |
10918 | { | |
10919 | if (temp4) | |
10920 | delete arg4; | |
10921 | } | |
10922 | { | |
10923 | if (temp9) | |
10924 | delete arg9; | |
10925 | } | |
10926 | return resultobj; | |
10927 | fail: | |
10928 | { | |
10929 | if (temp4) | |
10930 | delete arg4; | |
10931 | } | |
10932 | { | |
10933 | if (temp9) | |
10934 | delete arg9; | |
10935 | } | |
10936 | return NULL; | |
10937 | } | |
10938 | ||
10939 | ||
10940 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10941 | PyObject *resultobj; | |
10942 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
10943 | bool arg2 ; | |
10944 | PyObject * obj0 = 0 ; | |
10945 | PyObject * obj1 = 0 ; | |
10946 | char *kwnames[] = { | |
10947 | (char *) "self",(char *) "value", NULL | |
10948 | }; | |
10949 | ||
10950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10952 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10953 | if (PyErr_Occurred()) SWIG_fail; | |
10954 | { | |
10955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10956 | (arg1)->SetValue(arg2); | |
10957 | ||
10958 | wxPyEndAllowThreads(__tstate); | |
10959 | if (PyErr_Occurred()) SWIG_fail; | |
10960 | } | |
10961 | Py_INCREF(Py_None); resultobj = Py_None; | |
10962 | return resultobj; | |
10963 | fail: | |
10964 | return NULL; | |
10965 | } | |
10966 | ||
10967 | ||
10968 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10969 | PyObject *resultobj; | |
10970 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
10971 | bool result; | |
10972 | PyObject * obj0 = 0 ; | |
10973 | char *kwnames[] = { | |
10974 | (char *) "self", NULL | |
10975 | }; | |
10976 | ||
10977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
10978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10979 | { | |
10980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10981 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
10982 | ||
10983 | wxPyEndAllowThreads(__tstate); | |
10984 | if (PyErr_Occurred()) SWIG_fail; | |
10985 | } | |
10986 | resultobj = PyInt_FromLong((long)result); | |
10987 | return resultobj; | |
10988 | fail: | |
10989 | return NULL; | |
10990 | } | |
10991 | ||
10992 | ||
10993 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10994 | PyObject *resultobj; | |
10995 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
10996 | wxString *arg2 = 0 ; | |
e811c8ce | 10997 | bool temp2 = False ; |
d14a1e28 RD |
10998 | PyObject * obj0 = 0 ; |
10999 | PyObject * obj1 = 0 ; | |
11000 | char *kwnames[] = { | |
11001 | (char *) "self",(char *) "label", NULL | |
11002 | }; | |
11003 | ||
11004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
11005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11006 | { | |
11007 | arg2 = wxString_in_helper(obj1); | |
11008 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11009 | temp2 = True; |
d14a1e28 RD |
11010 | } |
11011 | { | |
11012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11013 | (arg1)->SetLabel((wxString const &)*arg2); | |
11014 | ||
11015 | wxPyEndAllowThreads(__tstate); | |
11016 | if (PyErr_Occurred()) SWIG_fail; | |
11017 | } | |
11018 | Py_INCREF(Py_None); resultobj = Py_None; | |
11019 | { | |
11020 | if (temp2) | |
11021 | delete arg2; | |
11022 | } | |
11023 | return resultobj; | |
11024 | fail: | |
11025 | { | |
11026 | if (temp2) | |
11027 | delete arg2; | |
11028 | } | |
11029 | return NULL; | |
11030 | } | |
11031 | ||
11032 | ||
11033 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
11034 | PyObject *obj; | |
11035 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11036 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
11037 | Py_INCREF(obj); | |
11038 | return Py_BuildValue((char *)""); | |
11039 | } | |
11040 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11041 | PyObject *resultobj; | |
11042 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11043 | size_t result; | |
11044 | PyObject * obj0 = 0 ; | |
11045 | char *kwnames[] = { | |
11046 | (char *) "self", NULL | |
11047 | }; | |
11048 | ||
11049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
11050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11051 | { | |
11052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11053 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
11054 | ||
11055 | wxPyEndAllowThreads(__tstate); | |
11056 | if (PyErr_Occurred()) SWIG_fail; | |
11057 | } | |
11058 | resultobj = PyInt_FromLong((long)result); | |
11059 | return resultobj; | |
11060 | fail: | |
11061 | return NULL; | |
11062 | } | |
11063 | ||
11064 | ||
11065 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11066 | PyObject *resultobj; | |
11067 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11068 | size_t arg2 ; | |
11069 | wxWindow *result; | |
11070 | PyObject * obj0 = 0 ; | |
11071 | PyObject * obj1 = 0 ; | |
11072 | char *kwnames[] = { | |
11073 | (char *) "self",(char *) "n", NULL | |
11074 | }; | |
11075 | ||
11076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
11077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11078 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11079 | if (PyErr_Occurred()) SWIG_fail; | |
11080 | { | |
11081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11082 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
11083 | ||
11084 | wxPyEndAllowThreads(__tstate); | |
11085 | if (PyErr_Occurred()) SWIG_fail; | |
11086 | } | |
11087 | { | |
11088 | resultobj = wxPyMake_wxObject(result); | |
11089 | } | |
11090 | return resultobj; | |
11091 | fail: | |
11092 | return NULL; | |
11093 | } | |
11094 | ||
11095 | ||
11096 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11097 | PyObject *resultobj; | |
11098 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11099 | int result; | |
11100 | PyObject * obj0 = 0 ; | |
11101 | char *kwnames[] = { | |
11102 | (char *) "self", NULL | |
11103 | }; | |
11104 | ||
11105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
11106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11107 | { | |
11108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11109 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
11110 | ||
11111 | wxPyEndAllowThreads(__tstate); | |
11112 | if (PyErr_Occurred()) SWIG_fail; | |
11113 | } | |
11114 | resultobj = PyInt_FromLong((long)result); | |
11115 | return resultobj; | |
11116 | fail: | |
11117 | return NULL; | |
11118 | } | |
11119 | ||
11120 | ||
11121 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11122 | PyObject *resultobj; | |
11123 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11124 | size_t arg2 ; | |
11125 | wxString *arg3 = 0 ; | |
11126 | bool result; | |
e811c8ce | 11127 | bool temp3 = False ; |
d14a1e28 RD |
11128 | PyObject * obj0 = 0 ; |
11129 | PyObject * obj1 = 0 ; | |
11130 | PyObject * obj2 = 0 ; | |
11131 | char *kwnames[] = { | |
11132 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
11133 | }; | |
11134 | ||
11135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11137 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11138 | if (PyErr_Occurred()) SWIG_fail; | |
11139 | { | |
11140 | arg3 = wxString_in_helper(obj2); | |
11141 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11142 | temp3 = True; |
d14a1e28 RD |
11143 | } |
11144 | { | |
11145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11146 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
11147 | ||
11148 | wxPyEndAllowThreads(__tstate); | |
11149 | if (PyErr_Occurred()) SWIG_fail; | |
11150 | } | |
11151 | resultobj = PyInt_FromLong((long)result); | |
11152 | { | |
11153 | if (temp3) | |
11154 | delete arg3; | |
11155 | } | |
11156 | return resultobj; | |
11157 | fail: | |
11158 | { | |
11159 | if (temp3) | |
11160 | delete arg3; | |
11161 | } | |
11162 | return NULL; | |
11163 | } | |
11164 | ||
11165 | ||
11166 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11167 | PyObject *resultobj; | |
11168 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11169 | size_t arg2 ; | |
11170 | wxString result; | |
11171 | PyObject * obj0 = 0 ; | |
11172 | PyObject * obj1 = 0 ; | |
11173 | char *kwnames[] = { | |
11174 | (char *) "self",(char *) "n", NULL | |
11175 | }; | |
11176 | ||
11177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
11178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11179 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11180 | if (PyErr_Occurred()) SWIG_fail; | |
11181 | { | |
11182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11183 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
11184 | ||
11185 | wxPyEndAllowThreads(__tstate); | |
11186 | if (PyErr_Occurred()) SWIG_fail; | |
11187 | } | |
11188 | { | |
11189 | #if wxUSE_UNICODE | |
11190 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11191 | #else | |
11192 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11193 | #endif | |
11194 | } | |
11195 | return resultobj; | |
11196 | fail: | |
11197 | return NULL; | |
11198 | } | |
11199 | ||
11200 | ||
11201 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11202 | PyObject *resultobj; | |
11203 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11204 | wxImageList *arg2 = (wxImageList *) 0 ; | |
11205 | PyObject * obj0 = 0 ; | |
11206 | PyObject * obj1 = 0 ; | |
11207 | char *kwnames[] = { | |
11208 | (char *) "self",(char *) "imageList", NULL | |
11209 | }; | |
11210 | ||
11211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
11212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11213 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11214 | { | |
11215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11216 | (arg1)->SetImageList(arg2); | |
11217 | ||
11218 | wxPyEndAllowThreads(__tstate); | |
11219 | if (PyErr_Occurred()) SWIG_fail; | |
11220 | } | |
11221 | Py_INCREF(Py_None); resultobj = Py_None; | |
11222 | return resultobj; | |
11223 | fail: | |
11224 | return NULL; | |
11225 | } | |
11226 | ||
11227 | ||
11228 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11229 | PyObject *resultobj; | |
11230 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11231 | wxImageList *arg2 = (wxImageList *) 0 ; | |
11232 | PyObject * obj0 = 0 ; | |
11233 | PyObject * obj1 = 0 ; | |
11234 | char *kwnames[] = { | |
11235 | (char *) "self",(char *) "imageList", NULL | |
11236 | }; | |
11237 | ||
11238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
11239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11240 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11241 | { | |
11242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11243 | (arg1)->AssignImageList(arg2); | |
11244 | ||
11245 | wxPyEndAllowThreads(__tstate); | |
11246 | if (PyErr_Occurred()) SWIG_fail; | |
11247 | } | |
11248 | Py_INCREF(Py_None); resultobj = Py_None; | |
11249 | return resultobj; | |
11250 | fail: | |
11251 | return NULL; | |
11252 | } | |
11253 | ||
11254 | ||
11255 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11256 | PyObject *resultobj; | |
11257 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11258 | wxImageList *result; | |
11259 | PyObject * obj0 = 0 ; | |
11260 | char *kwnames[] = { | |
11261 | (char *) "self", NULL | |
11262 | }; | |
11263 | ||
11264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
11265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11266 | { | |
11267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11268 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
11269 | ||
11270 | wxPyEndAllowThreads(__tstate); | |
11271 | if (PyErr_Occurred()) SWIG_fail; | |
11272 | } | |
11273 | { | |
11274 | resultobj = wxPyMake_wxObject(result); | |
11275 | } | |
11276 | return resultobj; | |
11277 | fail: | |
11278 | return NULL; | |
11279 | } | |
11280 | ||
11281 | ||
11282 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11283 | PyObject *resultobj; | |
11284 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11285 | size_t arg2 ; | |
11286 | int result; | |
11287 | PyObject * obj0 = 0 ; | |
11288 | PyObject * obj1 = 0 ; | |
11289 | char *kwnames[] = { | |
11290 | (char *) "self",(char *) "n", NULL | |
11291 | }; | |
11292 | ||
11293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
11294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11295 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11296 | if (PyErr_Occurred()) SWIG_fail; | |
11297 | { | |
11298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11299 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
11300 | ||
11301 | wxPyEndAllowThreads(__tstate); | |
11302 | if (PyErr_Occurred()) SWIG_fail; | |
11303 | } | |
11304 | resultobj = PyInt_FromLong((long)result); | |
11305 | return resultobj; | |
11306 | fail: | |
11307 | return NULL; | |
11308 | } | |
11309 | ||
11310 | ||
11311 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11312 | PyObject *resultobj; | |
11313 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11314 | size_t arg2 ; | |
11315 | int arg3 ; | |
11316 | bool result; | |
11317 | PyObject * obj0 = 0 ; | |
11318 | PyObject * obj1 = 0 ; | |
11319 | char *kwnames[] = { | |
11320 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
11321 | }; | |
11322 | ||
11323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
11324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11325 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11326 | if (PyErr_Occurred()) SWIG_fail; | |
11327 | { | |
11328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11329 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
11330 | ||
11331 | wxPyEndAllowThreads(__tstate); | |
11332 | if (PyErr_Occurred()) SWIG_fail; | |
11333 | } | |
11334 | resultobj = PyInt_FromLong((long)result); | |
11335 | return resultobj; | |
11336 | fail: | |
11337 | return NULL; | |
11338 | } | |
11339 | ||
11340 | ||
11341 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11342 | PyObject *resultobj; | |
11343 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11344 | wxSize *arg2 = 0 ; | |
11345 | wxSize temp2 ; | |
11346 | PyObject * obj0 = 0 ; | |
11347 | PyObject * obj1 = 0 ; | |
11348 | char *kwnames[] = { | |
11349 | (char *) "self",(char *) "size", NULL | |
11350 | }; | |
11351 | ||
11352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
11353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11354 | { | |
11355 | arg2 = &temp2; | |
11356 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11357 | } | |
11358 | { | |
11359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11360 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
11361 | ||
11362 | wxPyEndAllowThreads(__tstate); | |
11363 | if (PyErr_Occurred()) SWIG_fail; | |
11364 | } | |
11365 | Py_INCREF(Py_None); resultobj = Py_None; | |
11366 | return resultobj; | |
11367 | fail: | |
11368 | return NULL; | |
11369 | } | |
11370 | ||
11371 | ||
11372 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11373 | PyObject *resultobj; | |
11374 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11375 | wxSize *arg2 = 0 ; | |
11376 | wxSize result; | |
11377 | wxSize temp2 ; | |
11378 | PyObject * obj0 = 0 ; | |
11379 | PyObject * obj1 = 0 ; | |
11380 | char *kwnames[] = { | |
11381 | (char *) "self",(char *) "sizePage", NULL | |
11382 | }; | |
11383 | ||
11384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
11385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11386 | { | |
11387 | arg2 = &temp2; | |
11388 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11389 | } | |
11390 | { | |
11391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11392 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
11393 | ||
11394 | wxPyEndAllowThreads(__tstate); | |
11395 | if (PyErr_Occurred()) SWIG_fail; | |
11396 | } | |
11397 | { | |
11398 | wxSize * resultptr; | |
11399 | resultptr = new wxSize((wxSize &) result); | |
11400 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11401 | } | |
11402 | return resultobj; | |
11403 | fail: | |
11404 | return NULL; | |
11405 | } | |
11406 | ||
11407 | ||
11408 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11409 | PyObject *resultobj; | |
11410 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11411 | size_t arg2 ; | |
11412 | bool result; | |
11413 | PyObject * obj0 = 0 ; | |
11414 | PyObject * obj1 = 0 ; | |
11415 | char *kwnames[] = { | |
11416 | (char *) "self",(char *) "n", NULL | |
11417 | }; | |
11418 | ||
11419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
11420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11421 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11422 | if (PyErr_Occurred()) SWIG_fail; | |
11423 | { | |
11424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11425 | result = (bool)(arg1)->DeletePage(arg2); | |
11426 | ||
11427 | wxPyEndAllowThreads(__tstate); | |
11428 | if (PyErr_Occurred()) SWIG_fail; | |
11429 | } | |
11430 | resultobj = PyInt_FromLong((long)result); | |
11431 | return resultobj; | |
11432 | fail: | |
11433 | return NULL; | |
11434 | } | |
11435 | ||
11436 | ||
11437 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11438 | PyObject *resultobj; | |
11439 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11440 | size_t arg2 ; | |
11441 | bool result; | |
11442 | PyObject * obj0 = 0 ; | |
11443 | PyObject * obj1 = 0 ; | |
11444 | char *kwnames[] = { | |
11445 | (char *) "self",(char *) "n", NULL | |
11446 | }; | |
11447 | ||
11448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
11449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11450 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11451 | if (PyErr_Occurred()) SWIG_fail; | |
11452 | { | |
11453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11454 | result = (bool)(arg1)->RemovePage(arg2); | |
11455 | ||
11456 | wxPyEndAllowThreads(__tstate); | |
11457 | if (PyErr_Occurred()) SWIG_fail; | |
11458 | } | |
11459 | resultobj = PyInt_FromLong((long)result); | |
11460 | return resultobj; | |
11461 | fail: | |
11462 | return NULL; | |
11463 | } | |
11464 | ||
11465 | ||
11466 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11467 | PyObject *resultobj; | |
11468 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11469 | bool result; | |
11470 | PyObject * obj0 = 0 ; | |
11471 | char *kwnames[] = { | |
11472 | (char *) "self", NULL | |
11473 | }; | |
11474 | ||
11475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
11476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11477 | { | |
11478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11479 | result = (bool)(arg1)->DeleteAllPages(); | |
11480 | ||
11481 | wxPyEndAllowThreads(__tstate); | |
11482 | if (PyErr_Occurred()) SWIG_fail; | |
11483 | } | |
11484 | resultobj = PyInt_FromLong((long)result); | |
11485 | return resultobj; | |
11486 | fail: | |
11487 | return NULL; | |
11488 | } | |
11489 | ||
11490 | ||
11491 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11492 | PyObject *resultobj; | |
11493 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11494 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11495 | wxString *arg3 = 0 ; | |
e811c8ce | 11496 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11497 | int arg5 = (int) -1 ; |
11498 | bool result; | |
e811c8ce | 11499 | bool temp3 = False ; |
d14a1e28 RD |
11500 | PyObject * obj0 = 0 ; |
11501 | PyObject * obj1 = 0 ; | |
11502 | PyObject * obj2 = 0 ; | |
11503 | PyObject * obj3 = 0 ; | |
11504 | char *kwnames[] = { | |
11505 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
11506 | }; | |
11507 | ||
11508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|Oi:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
11509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11510 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11511 | { | |
11512 | arg3 = wxString_in_helper(obj2); | |
11513 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11514 | temp3 = True; |
d14a1e28 RD |
11515 | } |
11516 | if (obj3) { | |
11517 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
11518 | if (PyErr_Occurred()) SWIG_fail; | |
11519 | } | |
11520 | { | |
11521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11522 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
11523 | ||
11524 | wxPyEndAllowThreads(__tstate); | |
11525 | if (PyErr_Occurred()) SWIG_fail; | |
11526 | } | |
11527 | resultobj = PyInt_FromLong((long)result); | |
11528 | { | |
11529 | if (temp3) | |
11530 | delete arg3; | |
11531 | } | |
11532 | return resultobj; | |
11533 | fail: | |
11534 | { | |
11535 | if (temp3) | |
11536 | delete arg3; | |
11537 | } | |
11538 | return NULL; | |
11539 | } | |
11540 | ||
11541 | ||
11542 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11543 | PyObject *resultobj; | |
11544 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11545 | size_t arg2 ; | |
11546 | wxWindow *arg3 = (wxWindow *) 0 ; | |
11547 | wxString *arg4 = 0 ; | |
e811c8ce | 11548 | bool arg5 = (bool) False ; |
d14a1e28 RD |
11549 | int arg6 = (int) -1 ; |
11550 | bool result; | |
e811c8ce | 11551 | bool temp4 = False ; |
d14a1e28 RD |
11552 | PyObject * obj0 = 0 ; |
11553 | PyObject * obj1 = 0 ; | |
11554 | PyObject * obj2 = 0 ; | |
11555 | PyObject * obj3 = 0 ; | |
11556 | PyObject * obj4 = 0 ; | |
11557 | char *kwnames[] = { | |
11558 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
11559 | }; | |
11560 | ||
11561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|Oi:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6)) goto fail; | |
11562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11563 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11564 | if (PyErr_Occurred()) SWIG_fail; | |
11565 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11566 | { | |
11567 | arg4 = wxString_in_helper(obj3); | |
11568 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11569 | temp4 = True; |
d14a1e28 RD |
11570 | } |
11571 | if (obj4) { | |
11572 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
11573 | if (PyErr_Occurred()) SWIG_fail; | |
11574 | } | |
11575 | { | |
11576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11577 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
11578 | ||
11579 | wxPyEndAllowThreads(__tstate); | |
11580 | if (PyErr_Occurred()) SWIG_fail; | |
11581 | } | |
11582 | resultobj = PyInt_FromLong((long)result); | |
11583 | { | |
11584 | if (temp4) | |
11585 | delete arg4; | |
11586 | } | |
11587 | return resultobj; | |
11588 | fail: | |
11589 | { | |
11590 | if (temp4) | |
11591 | delete arg4; | |
11592 | } | |
11593 | return NULL; | |
11594 | } | |
11595 | ||
11596 | ||
11597 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11598 | PyObject *resultobj; | |
11599 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11600 | size_t arg2 ; | |
11601 | int result; | |
11602 | PyObject * obj0 = 0 ; | |
11603 | PyObject * obj1 = 0 ; | |
11604 | char *kwnames[] = { | |
11605 | (char *) "self",(char *) "n", NULL | |
11606 | }; | |
11607 | ||
11608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
11609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11610 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11611 | if (PyErr_Occurred()) SWIG_fail; | |
11612 | { | |
11613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11614 | result = (int)(arg1)->SetSelection(arg2); | |
11615 | ||
11616 | wxPyEndAllowThreads(__tstate); | |
11617 | if (PyErr_Occurred()) SWIG_fail; | |
11618 | } | |
11619 | resultobj = PyInt_FromLong((long)result); | |
11620 | return resultobj; | |
11621 | fail: | |
11622 | return NULL; | |
11623 | } | |
11624 | ||
11625 | ||
11626 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11627 | PyObject *resultobj; | |
11628 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
e811c8ce | 11629 | bool arg2 = (bool) True ; |
d14a1e28 RD |
11630 | PyObject * obj0 = 0 ; |
11631 | PyObject * obj1 = 0 ; | |
11632 | char *kwnames[] = { | |
11633 | (char *) "self",(char *) "forward", NULL | |
11634 | }; | |
11635 | ||
11636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
11637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11638 | if (obj1) { | |
11639 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
11640 | if (PyErr_Occurred()) SWIG_fail; | |
11641 | } | |
11642 | { | |
11643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11644 | (arg1)->AdvanceSelection(arg2); | |
11645 | ||
11646 | wxPyEndAllowThreads(__tstate); | |
11647 | if (PyErr_Occurred()) SWIG_fail; | |
11648 | } | |
11649 | Py_INCREF(Py_None); resultobj = Py_None; | |
11650 | return resultobj; | |
11651 | fail: | |
11652 | return NULL; | |
11653 | } | |
11654 | ||
11655 | ||
11656 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
11657 | PyObject *obj; | |
11658 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11659 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
11660 | Py_INCREF(obj); | |
11661 | return Py_BuildValue((char *)""); | |
11662 | } | |
11663 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11664 | PyObject *resultobj; | |
11665 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11666 | int arg2 = (int) 0 ; | |
11667 | int arg3 = (int) -1 ; | |
11668 | int arg4 = (int) -1 ; | |
11669 | wxBookCtrlEvent *result; | |
11670 | char *kwnames[] = { | |
11671 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
11672 | }; | |
11673 | ||
11674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_BookCtrlEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
11675 | { | |
11676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11677 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
11678 | ||
11679 | wxPyEndAllowThreads(__tstate); | |
11680 | if (PyErr_Occurred()) SWIG_fail; | |
11681 | } | |
11682 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
11683 | return resultobj; | |
11684 | fail: | |
11685 | return NULL; | |
11686 | } | |
11687 | ||
11688 | ||
11689 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11690 | PyObject *resultobj; | |
11691 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11692 | int result; | |
11693 | PyObject * obj0 = 0 ; | |
11694 | char *kwnames[] = { | |
11695 | (char *) "self", NULL | |
11696 | }; | |
11697 | ||
11698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
11699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11700 | { | |
11701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11702 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
11703 | ||
11704 | wxPyEndAllowThreads(__tstate); | |
11705 | if (PyErr_Occurred()) SWIG_fail; | |
11706 | } | |
11707 | resultobj = PyInt_FromLong((long)result); | |
11708 | return resultobj; | |
11709 | fail: | |
11710 | return NULL; | |
11711 | } | |
11712 | ||
11713 | ||
11714 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11715 | PyObject *resultobj; | |
11716 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11717 | int arg2 ; | |
11718 | PyObject * obj0 = 0 ; | |
11719 | char *kwnames[] = { | |
11720 | (char *) "self",(char *) "nSel", NULL | |
11721 | }; | |
11722 | ||
11723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BookCtrlEvent_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
11724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11725 | { | |
11726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11727 | (arg1)->SetSelection(arg2); | |
11728 | ||
11729 | wxPyEndAllowThreads(__tstate); | |
11730 | if (PyErr_Occurred()) SWIG_fail; | |
11731 | } | |
11732 | Py_INCREF(Py_None); resultobj = Py_None; | |
11733 | return resultobj; | |
11734 | fail: | |
11735 | return NULL; | |
11736 | } | |
11737 | ||
11738 | ||
11739 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11740 | PyObject *resultobj; | |
11741 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11742 | int result; | |
11743 | PyObject * obj0 = 0 ; | |
11744 | char *kwnames[] = { | |
11745 | (char *) "self", NULL | |
11746 | }; | |
11747 | ||
11748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
11749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11750 | { | |
11751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11752 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
11753 | ||
11754 | wxPyEndAllowThreads(__tstate); | |
11755 | if (PyErr_Occurred()) SWIG_fail; | |
11756 | } | |
11757 | resultobj = PyInt_FromLong((long)result); | |
11758 | return resultobj; | |
11759 | fail: | |
11760 | return NULL; | |
11761 | } | |
11762 | ||
11763 | ||
11764 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11765 | PyObject *resultobj; | |
11766 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11767 | int arg2 ; | |
11768 | PyObject * obj0 = 0 ; | |
11769 | char *kwnames[] = { | |
11770 | (char *) "self",(char *) "nOldSel", NULL | |
11771 | }; | |
11772 | ||
11773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&arg2)) goto fail; | |
11774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11775 | { | |
11776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11777 | (arg1)->SetOldSelection(arg2); | |
11778 | ||
11779 | wxPyEndAllowThreads(__tstate); | |
11780 | if (PyErr_Occurred()) SWIG_fail; | |
11781 | } | |
11782 | Py_INCREF(Py_None); resultobj = Py_None; | |
11783 | return resultobj; | |
11784 | fail: | |
11785 | return NULL; | |
11786 | } | |
11787 | ||
11788 | ||
11789 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
11790 | PyObject *obj; | |
11791 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11792 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
11793 | Py_INCREF(obj); | |
11794 | return Py_BuildValue((char *)""); | |
11795 | } | |
11796 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11797 | PyObject *resultobj; | |
11798 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11799 | int arg2 ; |
d14a1e28 RD |
11800 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
11801 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
11802 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
11803 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
11804 | long arg5 = (long) 0 ; | |
11805 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
11806 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
11807 | wxNotebook *result; | |
11808 | wxPoint temp3 ; | |
11809 | wxSize temp4 ; | |
e811c8ce | 11810 | bool temp6 = False ; |
d14a1e28 RD |
11811 | PyObject * obj0 = 0 ; |
11812 | PyObject * obj2 = 0 ; | |
11813 | PyObject * obj3 = 0 ; | |
11814 | PyObject * obj5 = 0 ; | |
11815 | char *kwnames[] = { | |
11816 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
11817 | }; | |
11818 | ||
11819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Notebook",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
11820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11821 | if (obj2) { | |
11822 | { | |
11823 | arg3 = &temp3; | |
11824 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11825 | } | |
11826 | } | |
11827 | if (obj3) { | |
11828 | { | |
11829 | arg4 = &temp4; | |
11830 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
11831 | } | |
11832 | } | |
11833 | if (obj5) { | |
11834 | { | |
11835 | arg6 = wxString_in_helper(obj5); | |
11836 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 11837 | temp6 = True; |
d14a1e28 RD |
11838 | } |
11839 | } | |
11840 | { | |
11841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11842 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
11843 | ||
11844 | wxPyEndAllowThreads(__tstate); | |
11845 | if (PyErr_Occurred()) SWIG_fail; | |
11846 | } | |
11847 | { | |
11848 | resultobj = wxPyMake_wxObject(result); | |
11849 | } | |
11850 | { | |
11851 | if (temp6) | |
11852 | delete arg6; | |
11853 | } | |
11854 | return resultobj; | |
11855 | fail: | |
11856 | { | |
11857 | if (temp6) | |
11858 | delete arg6; | |
11859 | } | |
11860 | return NULL; | |
11861 | } | |
11862 | ||
11863 | ||
11864 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11865 | PyObject *resultobj; | |
11866 | wxNotebook *result; | |
11867 | char *kwnames[] = { | |
11868 | NULL | |
11869 | }; | |
11870 | ||
11871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
11872 | { | |
11873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11874 | result = (wxNotebook *)new wxNotebook(); | |
11875 | ||
11876 | wxPyEndAllowThreads(__tstate); | |
11877 | if (PyErr_Occurred()) SWIG_fail; | |
11878 | } | |
11879 | { | |
11880 | resultobj = wxPyMake_wxObject(result); | |
11881 | } | |
11882 | return resultobj; | |
11883 | fail: | |
11884 | return NULL; | |
11885 | } | |
11886 | ||
11887 | ||
11888 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11889 | PyObject *resultobj; | |
11890 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
11891 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11892 | int arg3 ; |
d14a1e28 RD |
11893 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11894 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11895 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11896 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11897 | long arg6 = (long) 0 ; | |
11898 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
11899 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11900 | bool result; | |
11901 | wxPoint temp4 ; | |
11902 | wxSize temp5 ; | |
e811c8ce | 11903 | bool temp7 = False ; |
d14a1e28 RD |
11904 | PyObject * obj0 = 0 ; |
11905 | PyObject * obj1 = 0 ; | |
11906 | PyObject * obj3 = 0 ; | |
11907 | PyObject * obj4 = 0 ; | |
11908 | PyObject * obj6 = 0 ; | |
11909 | char *kwnames[] = { | |
11910 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
11911 | }; | |
11912 | ||
11913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Notebook_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
11914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11915 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11916 | if (obj3) { | |
11917 | { | |
11918 | arg4 = &temp4; | |
11919 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11920 | } | |
11921 | } | |
11922 | if (obj4) { | |
11923 | { | |
11924 | arg5 = &temp5; | |
11925 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11926 | } | |
11927 | } | |
11928 | if (obj6) { | |
11929 | { | |
11930 | arg7 = wxString_in_helper(obj6); | |
11931 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 11932 | temp7 = True; |
d14a1e28 RD |
11933 | } |
11934 | } | |
11935 | { | |
11936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11937 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
11938 | ||
11939 | wxPyEndAllowThreads(__tstate); | |
11940 | if (PyErr_Occurred()) SWIG_fail; | |
11941 | } | |
11942 | resultobj = PyInt_FromLong((long)result); | |
11943 | { | |
11944 | if (temp7) | |
11945 | delete arg7; | |
11946 | } | |
11947 | return resultobj; | |
11948 | fail: | |
11949 | { | |
11950 | if (temp7) | |
11951 | delete arg7; | |
11952 | } | |
11953 | return NULL; | |
11954 | } | |
11955 | ||
11956 | ||
11957 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11958 | PyObject *resultobj; | |
11959 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
11960 | int result; | |
11961 | PyObject * obj0 = 0 ; | |
11962 | char *kwnames[] = { | |
11963 | (char *) "self", NULL | |
11964 | }; | |
11965 | ||
11966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
11967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11968 | { | |
11969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11970 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
11971 | ||
11972 | wxPyEndAllowThreads(__tstate); | |
11973 | if (PyErr_Occurred()) SWIG_fail; | |
11974 | } | |
11975 | resultobj = PyInt_FromLong((long)result); | |
11976 | return resultobj; | |
11977 | fail: | |
11978 | return NULL; | |
11979 | } | |
11980 | ||
11981 | ||
11982 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11983 | PyObject *resultobj; | |
11984 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
11985 | wxSize *arg2 = 0 ; | |
11986 | wxSize temp2 ; | |
11987 | PyObject * obj0 = 0 ; | |
11988 | PyObject * obj1 = 0 ; | |
11989 | char *kwnames[] = { | |
11990 | (char *) "self",(char *) "padding", NULL | |
11991 | }; | |
11992 | ||
11993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
11994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11995 | { | |
11996 | arg2 = &temp2; | |
11997 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11998 | } | |
11999 | { | |
12000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12001 | (arg1)->SetPadding((wxSize const &)*arg2); | |
12002 | ||
12003 | wxPyEndAllowThreads(__tstate); | |
12004 | if (PyErr_Occurred()) SWIG_fail; | |
12005 | } | |
12006 | Py_INCREF(Py_None); resultobj = Py_None; | |
12007 | return resultobj; | |
12008 | fail: | |
12009 | return NULL; | |
12010 | } | |
12011 | ||
12012 | ||
12013 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12014 | PyObject *resultobj; | |
12015 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12016 | wxSize *arg2 = 0 ; | |
12017 | wxSize temp2 ; | |
12018 | PyObject * obj0 = 0 ; | |
12019 | PyObject * obj1 = 0 ; | |
12020 | char *kwnames[] = { | |
12021 | (char *) "self",(char *) "sz", NULL | |
12022 | }; | |
12023 | ||
12024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
12025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12026 | { | |
12027 | arg2 = &temp2; | |
12028 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12029 | } | |
12030 | { | |
12031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12032 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
12033 | ||
12034 | wxPyEndAllowThreads(__tstate); | |
12035 | if (PyErr_Occurred()) SWIG_fail; | |
12036 | } | |
12037 | Py_INCREF(Py_None); resultobj = Py_None; | |
12038 | return resultobj; | |
12039 | fail: | |
12040 | return NULL; | |
12041 | } | |
12042 | ||
12043 | ||
12044 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12045 | PyObject *resultobj; | |
12046 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12047 | wxPoint *arg2 = 0 ; | |
12048 | long *arg3 = (long *) 0 ; | |
12049 | int result; | |
12050 | wxPoint temp2 ; | |
12051 | long temp3 ; | |
12052 | PyObject * obj0 = 0 ; | |
12053 | PyObject * obj1 = 0 ; | |
12054 | char *kwnames[] = { | |
12055 | (char *) "self",(char *) "pt", NULL | |
12056 | }; | |
12057 | ||
12058 | arg3 = &temp3; | |
12059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
12060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12061 | { | |
12062 | arg2 = &temp2; | |
12063 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12064 | } | |
12065 | { | |
12066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12067 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
12068 | ||
12069 | wxPyEndAllowThreads(__tstate); | |
12070 | if (PyErr_Occurred()) SWIG_fail; | |
12071 | } | |
12072 | resultobj = PyInt_FromLong((long)result); | |
12073 | { | |
12074 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12075 | resultobj = t_output_helper(resultobj,o); | |
12076 | } | |
12077 | return resultobj; | |
12078 | fail: | |
12079 | return NULL; | |
12080 | } | |
12081 | ||
12082 | ||
12083 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12084 | PyObject *resultobj; | |
12085 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12086 | wxSize *arg2 = 0 ; | |
12087 | wxSize result; | |
12088 | wxSize temp2 ; | |
12089 | PyObject * obj0 = 0 ; | |
12090 | PyObject * obj1 = 0 ; | |
12091 | char *kwnames[] = { | |
12092 | (char *) "self",(char *) "sizePage", NULL | |
12093 | }; | |
12094 | ||
12095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
12096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12097 | { | |
12098 | arg2 = &temp2; | |
12099 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12100 | } | |
12101 | { | |
12102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12103 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
12104 | ||
12105 | wxPyEndAllowThreads(__tstate); | |
12106 | if (PyErr_Occurred()) SWIG_fail; | |
12107 | } | |
12108 | { | |
12109 | wxSize * resultptr; | |
12110 | resultptr = new wxSize((wxSize &) result); | |
12111 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12112 | } | |
12113 | return resultobj; | |
12114 | fail: | |
12115 | return NULL; | |
12116 | } | |
12117 | ||
12118 | ||
12119 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
12120 | PyObject *obj; | |
12121 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12122 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
12123 | Py_INCREF(obj); | |
12124 | return Py_BuildValue((char *)""); | |
12125 | } | |
12126 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12127 | PyObject *resultobj; | |
12128 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12129 | int arg2 = (int) 0 ; | |
12130 | int arg3 = (int) -1 ; | |
12131 | int arg4 = (int) -1 ; | |
12132 | wxNotebookEvent *result; | |
12133 | char *kwnames[] = { | |
12134 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
12135 | }; | |
12136 | ||
12137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_NotebookEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
12138 | { | |
12139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12140 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
12141 | ||
12142 | wxPyEndAllowThreads(__tstate); | |
12143 | if (PyErr_Occurred()) SWIG_fail; | |
12144 | } | |
12145 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
12146 | return resultobj; | |
12147 | fail: | |
12148 | return NULL; | |
12149 | } | |
12150 | ||
12151 | ||
12152 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
12153 | PyObject *obj; | |
12154 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12155 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
12156 | Py_INCREF(obj); | |
12157 | return Py_BuildValue((char *)""); | |
12158 | } | |
12159 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12160 | PyObject *resultobj; | |
12161 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12162 | int arg2 ; |
d14a1e28 RD |
12163 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12164 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12165 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12166 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12167 | long arg5 = (long) 0 ; | |
12168 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
12169 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12170 | wxListbook *result; | |
12171 | wxPoint temp3 ; | |
12172 | wxSize temp4 ; | |
e811c8ce | 12173 | bool temp6 = False ; |
d14a1e28 RD |
12174 | PyObject * obj0 = 0 ; |
12175 | PyObject * obj2 = 0 ; | |
12176 | PyObject * obj3 = 0 ; | |
12177 | PyObject * obj5 = 0 ; | |
12178 | char *kwnames[] = { | |
12179 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12180 | }; | |
12181 | ||
12182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Listbook",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
12183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12184 | if (obj2) { | |
12185 | { | |
12186 | arg3 = &temp3; | |
12187 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12188 | } | |
12189 | } | |
12190 | if (obj3) { | |
12191 | { | |
12192 | arg4 = &temp4; | |
12193 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12194 | } | |
12195 | } | |
12196 | if (obj5) { | |
12197 | { | |
12198 | arg6 = wxString_in_helper(obj5); | |
12199 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 12200 | temp6 = True; |
d14a1e28 RD |
12201 | } |
12202 | } | |
12203 | { | |
12204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12205 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12206 | ||
12207 | wxPyEndAllowThreads(__tstate); | |
12208 | if (PyErr_Occurred()) SWIG_fail; | |
12209 | } | |
12210 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
12211 | { | |
12212 | if (temp6) | |
12213 | delete arg6; | |
12214 | } | |
12215 | return resultobj; | |
12216 | fail: | |
12217 | { | |
12218 | if (temp6) | |
12219 | delete arg6; | |
12220 | } | |
12221 | return NULL; | |
12222 | } | |
12223 | ||
12224 | ||
12225 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12226 | PyObject *resultobj; | |
12227 | wxListbook *result; | |
12228 | char *kwnames[] = { | |
12229 | NULL | |
12230 | }; | |
12231 | ||
12232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
12233 | { | |
12234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12235 | result = (wxListbook *)new wxListbook(); | |
12236 | ||
12237 | wxPyEndAllowThreads(__tstate); | |
12238 | if (PyErr_Occurred()) SWIG_fail; | |
12239 | } | |
12240 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
12241 | return resultobj; | |
12242 | fail: | |
12243 | return NULL; | |
12244 | } | |
12245 | ||
12246 | ||
12247 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12248 | PyObject *resultobj; | |
12249 | wxListbook *arg1 = (wxListbook *) 0 ; | |
12250 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12251 | int arg3 ; |
d14a1e28 RD |
12252 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12253 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12254 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12255 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12256 | long arg6 = (long) 0 ; | |
12257 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
12258 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12259 | bool result; | |
12260 | wxPoint temp4 ; | |
12261 | wxSize temp5 ; | |
e811c8ce | 12262 | bool temp7 = False ; |
d14a1e28 RD |
12263 | PyObject * obj0 = 0 ; |
12264 | PyObject * obj1 = 0 ; | |
12265 | PyObject * obj3 = 0 ; | |
12266 | PyObject * obj4 = 0 ; | |
12267 | PyObject * obj6 = 0 ; | |
12268 | char *kwnames[] = { | |
12269 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12270 | }; | |
12271 | ||
12272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Listbook_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
12273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12274 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12275 | if (obj3) { | |
12276 | { | |
12277 | arg4 = &temp4; | |
12278 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12279 | } | |
12280 | } | |
12281 | if (obj4) { | |
12282 | { | |
12283 | arg5 = &temp5; | |
12284 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12285 | } | |
12286 | } | |
12287 | if (obj6) { | |
12288 | { | |
12289 | arg7 = wxString_in_helper(obj6); | |
12290 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 12291 | temp7 = True; |
d14a1e28 RD |
12292 | } |
12293 | } | |
12294 | { | |
12295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12296 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12297 | ||
12298 | wxPyEndAllowThreads(__tstate); | |
12299 | if (PyErr_Occurred()) SWIG_fail; | |
12300 | } | |
12301 | resultobj = PyInt_FromLong((long)result); | |
12302 | { | |
12303 | if (temp7) | |
12304 | delete arg7; | |
12305 | } | |
12306 | return resultobj; | |
12307 | fail: | |
12308 | { | |
12309 | if (temp7) | |
12310 | delete arg7; | |
12311 | } | |
12312 | return NULL; | |
12313 | } | |
12314 | ||
12315 | ||
12316 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12317 | PyObject *resultobj; | |
12318 | wxListbook *arg1 = (wxListbook *) 0 ; | |
12319 | bool result; | |
12320 | PyObject * obj0 = 0 ; | |
12321 | char *kwnames[] = { | |
12322 | (char *) "self", NULL | |
12323 | }; | |
12324 | ||
12325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
12326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12327 | { | |
12328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12329 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
12330 | ||
12331 | wxPyEndAllowThreads(__tstate); | |
12332 | if (PyErr_Occurred()) SWIG_fail; | |
12333 | } | |
12334 | resultobj = PyInt_FromLong((long)result); | |
12335 | return resultobj; | |
12336 | fail: | |
12337 | return NULL; | |
12338 | } | |
12339 | ||
12340 | ||
12341 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
12342 | PyObject *obj; | |
12343 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12344 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
12345 | Py_INCREF(obj); | |
12346 | return Py_BuildValue((char *)""); | |
12347 | } | |
12348 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12349 | PyObject *resultobj; | |
12350 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12351 | int arg2 = (int) 0 ; | |
12352 | int arg3 = (int) -1 ; | |
12353 | int arg4 = (int) -1 ; | |
12354 | wxListbookEvent *result; | |
12355 | char *kwnames[] = { | |
12356 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
12357 | }; | |
12358 | ||
12359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_ListbookEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
12360 | { | |
12361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12362 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
12363 | ||
12364 | wxPyEndAllowThreads(__tstate); | |
12365 | if (PyErr_Occurred()) SWIG_fail; | |
12366 | } | |
12367 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
12368 | return resultobj; | |
12369 | fail: | |
12370 | return NULL; | |
12371 | } | |
12372 | ||
12373 | ||
12374 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
12375 | PyObject *obj; | |
12376 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12377 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
12378 | Py_INCREF(obj); | |
12379 | return Py_BuildValue((char *)""); | |
12380 | } | |
12381 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12382 | PyObject *resultobj; | |
12383 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12384 | wxBookCtrlSizer *result; | |
12385 | PyObject * obj0 = 0 ; | |
12386 | char *kwnames[] = { | |
12387 | (char *) "nb", NULL | |
12388 | }; | |
12389 | ||
12390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
12391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12392 | { | |
12393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12394 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
12395 | ||
12396 | wxPyEndAllowThreads(__tstate); | |
12397 | if (PyErr_Occurred()) SWIG_fail; | |
12398 | } | |
12399 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
12400 | return resultobj; | |
12401 | fail: | |
12402 | return NULL; | |
12403 | } | |
12404 | ||
12405 | ||
12406 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12407 | PyObject *resultobj; | |
12408 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
12409 | PyObject * obj0 = 0 ; | |
12410 | char *kwnames[] = { | |
12411 | (char *) "self", NULL | |
12412 | }; | |
12413 | ||
12414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
12415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12416 | { | |
12417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12418 | (arg1)->RecalcSizes(); | |
12419 | ||
12420 | wxPyEndAllowThreads(__tstate); | |
12421 | if (PyErr_Occurred()) SWIG_fail; | |
12422 | } | |
12423 | Py_INCREF(Py_None); resultobj = Py_None; | |
12424 | return resultobj; | |
12425 | fail: | |
12426 | return NULL; | |
12427 | } | |
12428 | ||
12429 | ||
12430 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12431 | PyObject *resultobj; | |
12432 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
12433 | wxSize result; | |
12434 | PyObject * obj0 = 0 ; | |
12435 | char *kwnames[] = { | |
12436 | (char *) "self", NULL | |
12437 | }; | |
12438 | ||
12439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
12440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12441 | { | |
12442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12443 | result = (arg1)->CalcMin(); | |
12444 | ||
12445 | wxPyEndAllowThreads(__tstate); | |
12446 | if (PyErr_Occurred()) SWIG_fail; | |
12447 | } | |
12448 | { | |
12449 | wxSize * resultptr; | |
12450 | resultptr = new wxSize((wxSize &) result); | |
12451 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12452 | } | |
12453 | return resultobj; | |
12454 | fail: | |
12455 | return NULL; | |
12456 | } | |
12457 | ||
12458 | ||
12459 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12460 | PyObject *resultobj; | |
12461 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
12462 | wxBookCtrl *result; | |
12463 | PyObject * obj0 = 0 ; | |
12464 | char *kwnames[] = { | |
12465 | (char *) "self", NULL | |
12466 | }; | |
12467 | ||
12468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
12469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12470 | { | |
12471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12472 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
12473 | ||
12474 | wxPyEndAllowThreads(__tstate); | |
12475 | if (PyErr_Occurred()) SWIG_fail; | |
12476 | } | |
12477 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
12478 | return resultobj; | |
12479 | fail: | |
12480 | return NULL; | |
12481 | } | |
12482 | ||
12483 | ||
12484 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
12485 | PyObject *obj; | |
12486 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12487 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
12488 | Py_INCREF(obj); | |
12489 | return Py_BuildValue((char *)""); | |
12490 | } | |
12491 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12492 | PyObject *resultobj; | |
12493 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12494 | wxNotebookSizer *result; | |
12495 | PyObject * obj0 = 0 ; | |
12496 | char *kwnames[] = { | |
12497 | (char *) "nb", NULL | |
12498 | }; | |
12499 | ||
12500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
12501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12502 | { | |
12503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12504 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
12505 | ||
12506 | wxPyEndAllowThreads(__tstate); | |
12507 | if (PyErr_Occurred()) SWIG_fail; | |
12508 | } | |
12509 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
12510 | return resultobj; | |
12511 | fail: | |
12512 | return NULL; | |
12513 | } | |
12514 | ||
12515 | ||
12516 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12517 | PyObject *resultobj; | |
12518 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
12519 | PyObject * obj0 = 0 ; | |
12520 | char *kwnames[] = { | |
12521 | (char *) "self", NULL | |
12522 | }; | |
12523 | ||
12524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
12525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12526 | { | |
12527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12528 | (arg1)->RecalcSizes(); | |
12529 | ||
12530 | wxPyEndAllowThreads(__tstate); | |
12531 | if (PyErr_Occurred()) SWIG_fail; | |
12532 | } | |
12533 | Py_INCREF(Py_None); resultobj = Py_None; | |
12534 | return resultobj; | |
12535 | fail: | |
12536 | return NULL; | |
12537 | } | |
12538 | ||
12539 | ||
12540 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12541 | PyObject *resultobj; | |
12542 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
12543 | wxSize result; | |
12544 | PyObject * obj0 = 0 ; | |
12545 | char *kwnames[] = { | |
12546 | (char *) "self", NULL | |
12547 | }; | |
12548 | ||
12549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
12550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12551 | { | |
12552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12553 | result = (arg1)->CalcMin(); | |
12554 | ||
12555 | wxPyEndAllowThreads(__tstate); | |
12556 | if (PyErr_Occurred()) SWIG_fail; | |
12557 | } | |
12558 | { | |
12559 | wxSize * resultptr; | |
12560 | resultptr = new wxSize((wxSize &) result); | |
12561 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12562 | } | |
12563 | return resultobj; | |
12564 | fail: | |
12565 | return NULL; | |
12566 | } | |
12567 | ||
12568 | ||
12569 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12570 | PyObject *resultobj; | |
12571 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
12572 | wxNotebook *result; | |
12573 | PyObject * obj0 = 0 ; | |
12574 | char *kwnames[] = { | |
12575 | (char *) "self", NULL | |
12576 | }; | |
12577 | ||
12578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
12579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12580 | { | |
12581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12582 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
12583 | ||
12584 | wxPyEndAllowThreads(__tstate); | |
12585 | if (PyErr_Occurred()) SWIG_fail; | |
12586 | } | |
12587 | { | |
12588 | resultobj = wxPyMake_wxObject(result); | |
12589 | } | |
12590 | return resultobj; | |
12591 | fail: | |
12592 | return NULL; | |
12593 | } | |
12594 | ||
12595 | ||
12596 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
12597 | PyObject *obj; | |
12598 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12599 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
12600 | Py_INCREF(obj); | |
12601 | return Py_BuildValue((char *)""); | |
12602 | } | |
12603 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12604 | PyObject *resultobj; | |
12605 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12606 | int result; | |
12607 | PyObject * obj0 = 0 ; | |
12608 | char *kwnames[] = { | |
12609 | (char *) "self", NULL | |
12610 | }; | |
12611 | ||
12612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
12613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12614 | { | |
12615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12616 | result = (int)(arg1)->GetId(); | |
12617 | ||
12618 | wxPyEndAllowThreads(__tstate); | |
12619 | if (PyErr_Occurred()) SWIG_fail; | |
12620 | } | |
12621 | resultobj = PyInt_FromLong((long)result); | |
12622 | return resultobj; | |
12623 | fail: | |
12624 | return NULL; | |
12625 | } | |
12626 | ||
12627 | ||
12628 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12629 | PyObject *resultobj; | |
12630 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12631 | wxControl *result; | |
12632 | PyObject * obj0 = 0 ; | |
12633 | char *kwnames[] = { | |
12634 | (char *) "self", NULL | |
12635 | }; | |
12636 | ||
12637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
12638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12639 | { | |
12640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12641 | result = (wxControl *)(arg1)->GetControl(); | |
12642 | ||
12643 | wxPyEndAllowThreads(__tstate); | |
12644 | if (PyErr_Occurred()) SWIG_fail; | |
12645 | } | |
12646 | { | |
12647 | resultobj = wxPyMake_wxObject(result); | |
12648 | } | |
12649 | return resultobj; | |
12650 | fail: | |
12651 | return NULL; | |
12652 | } | |
12653 | ||
12654 | ||
12655 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12656 | PyObject *resultobj; | |
12657 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12658 | wxToolBarBase *result; | |
12659 | PyObject * obj0 = 0 ; | |
12660 | char *kwnames[] = { | |
12661 | (char *) "self", NULL | |
12662 | }; | |
12663 | ||
12664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
12665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12666 | { | |
12667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12668 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
12669 | ||
12670 | wxPyEndAllowThreads(__tstate); | |
12671 | if (PyErr_Occurred()) SWIG_fail; | |
12672 | } | |
12673 | { | |
12674 | resultobj = wxPyMake_wxObject(result); | |
12675 | } | |
12676 | return resultobj; | |
12677 | fail: | |
12678 | return NULL; | |
12679 | } | |
12680 | ||
12681 | ||
12682 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12683 | PyObject *resultobj; | |
12684 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12685 | int result; | |
12686 | PyObject * obj0 = 0 ; | |
12687 | char *kwnames[] = { | |
12688 | (char *) "self", NULL | |
12689 | }; | |
12690 | ||
12691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
12692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12693 | { | |
12694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12695 | result = (int)(arg1)->IsButton(); | |
12696 | ||
12697 | wxPyEndAllowThreads(__tstate); | |
12698 | if (PyErr_Occurred()) SWIG_fail; | |
12699 | } | |
12700 | resultobj = PyInt_FromLong((long)result); | |
12701 | return resultobj; | |
12702 | fail: | |
12703 | return NULL; | |
12704 | } | |
12705 | ||
12706 | ||
12707 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12708 | PyObject *resultobj; | |
12709 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12710 | int result; | |
12711 | PyObject * obj0 = 0 ; | |
12712 | char *kwnames[] = { | |
12713 | (char *) "self", NULL | |
12714 | }; | |
12715 | ||
12716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
12717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12718 | { | |
12719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12720 | result = (int)(arg1)->IsControl(); | |
12721 | ||
12722 | wxPyEndAllowThreads(__tstate); | |
12723 | if (PyErr_Occurred()) SWIG_fail; | |
12724 | } | |
12725 | resultobj = PyInt_FromLong((long)result); | |
12726 | return resultobj; | |
12727 | fail: | |
12728 | return NULL; | |
12729 | } | |
12730 | ||
12731 | ||
12732 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12733 | PyObject *resultobj; | |
12734 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12735 | int result; | |
12736 | PyObject * obj0 = 0 ; | |
12737 | char *kwnames[] = { | |
12738 | (char *) "self", NULL | |
12739 | }; | |
12740 | ||
12741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
12742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12743 | { | |
12744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12745 | result = (int)(arg1)->IsSeparator(); | |
12746 | ||
12747 | wxPyEndAllowThreads(__tstate); | |
12748 | if (PyErr_Occurred()) SWIG_fail; | |
12749 | } | |
12750 | resultobj = PyInt_FromLong((long)result); | |
12751 | return resultobj; | |
12752 | fail: | |
12753 | return NULL; | |
12754 | } | |
12755 | ||
12756 | ||
12757 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12758 | PyObject *resultobj; | |
12759 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12760 | int result; | |
12761 | PyObject * obj0 = 0 ; | |
12762 | char *kwnames[] = { | |
12763 | (char *) "self", NULL | |
12764 | }; | |
12765 | ||
12766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
12767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12768 | { | |
12769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12770 | result = (int)(arg1)->GetStyle(); | |
12771 | ||
12772 | wxPyEndAllowThreads(__tstate); | |
12773 | if (PyErr_Occurred()) SWIG_fail; | |
12774 | } | |
12775 | resultobj = PyInt_FromLong((long)result); | |
12776 | return resultobj; | |
12777 | fail: | |
12778 | return NULL; | |
12779 | } | |
12780 | ||
12781 | ||
12782 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12783 | PyObject *resultobj; | |
12784 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12785 | int result; | |
12786 | PyObject * obj0 = 0 ; | |
12787 | char *kwnames[] = { | |
12788 | (char *) "self", NULL | |
12789 | }; | |
12790 | ||
12791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
12792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12793 | { | |
12794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12795 | result = (int)(arg1)->GetKind(); | |
12796 | ||
12797 | wxPyEndAllowThreads(__tstate); | |
12798 | if (PyErr_Occurred()) SWIG_fail; | |
12799 | } | |
12800 | resultobj = PyInt_FromLong((long)result); | |
12801 | return resultobj; | |
12802 | fail: | |
12803 | return NULL; | |
12804 | } | |
12805 | ||
12806 | ||
12807 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12808 | PyObject *resultobj; | |
12809 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12810 | bool result; | |
12811 | PyObject * obj0 = 0 ; | |
12812 | char *kwnames[] = { | |
12813 | (char *) "self", NULL | |
12814 | }; | |
12815 | ||
12816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
12817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12818 | { | |
12819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12820 | result = (bool)(arg1)->IsEnabled(); | |
12821 | ||
12822 | wxPyEndAllowThreads(__tstate); | |
12823 | if (PyErr_Occurred()) SWIG_fail; | |
12824 | } | |
12825 | resultobj = PyInt_FromLong((long)result); | |
12826 | return resultobj; | |
12827 | fail: | |
12828 | return NULL; | |
12829 | } | |
12830 | ||
12831 | ||
12832 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12833 | PyObject *resultobj; | |
12834 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12835 | bool result; | |
12836 | PyObject * obj0 = 0 ; | |
12837 | char *kwnames[] = { | |
12838 | (char *) "self", NULL | |
12839 | }; | |
12840 | ||
12841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
12842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12843 | { | |
12844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12845 | result = (bool)(arg1)->IsToggled(); | |
12846 | ||
12847 | wxPyEndAllowThreads(__tstate); | |
12848 | if (PyErr_Occurred()) SWIG_fail; | |
12849 | } | |
12850 | resultobj = PyInt_FromLong((long)result); | |
12851 | return resultobj; | |
12852 | fail: | |
12853 | return NULL; | |
12854 | } | |
12855 | ||
12856 | ||
12857 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12858 | PyObject *resultobj; | |
12859 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12860 | bool result; | |
12861 | PyObject * obj0 = 0 ; | |
12862 | char *kwnames[] = { | |
12863 | (char *) "self", NULL | |
12864 | }; | |
12865 | ||
12866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
12867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12868 | { | |
12869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12870 | result = (bool)(arg1)->CanBeToggled(); | |
12871 | ||
12872 | wxPyEndAllowThreads(__tstate); | |
12873 | if (PyErr_Occurred()) SWIG_fail; | |
12874 | } | |
12875 | resultobj = PyInt_FromLong((long)result); | |
12876 | return resultobj; | |
12877 | fail: | |
12878 | return NULL; | |
12879 | } | |
12880 | ||
12881 | ||
12882 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12883 | PyObject *resultobj; | |
12884 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12885 | wxBitmap *result; | |
12886 | PyObject * obj0 = 0 ; | |
12887 | char *kwnames[] = { | |
12888 | (char *) "self", NULL | |
12889 | }; | |
12890 | ||
12891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
12892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12893 | { | |
12894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12895 | { | |
12896 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
12897 | result = (wxBitmap *) &_result_ref; | |
12898 | } | |
12899 | ||
12900 | wxPyEndAllowThreads(__tstate); | |
12901 | if (PyErr_Occurred()) SWIG_fail; | |
12902 | } | |
12903 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
12904 | return resultobj; | |
12905 | fail: | |
12906 | return NULL; | |
12907 | } | |
12908 | ||
12909 | ||
12910 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12911 | PyObject *resultobj; | |
12912 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12913 | wxBitmap *result; | |
12914 | PyObject * obj0 = 0 ; | |
12915 | char *kwnames[] = { | |
12916 | (char *) "self", NULL | |
12917 | }; | |
12918 | ||
12919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
12920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12921 | { | |
12922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12923 | { | |
12924 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
12925 | result = (wxBitmap *) &_result_ref; | |
12926 | } | |
12927 | ||
12928 | wxPyEndAllowThreads(__tstate); | |
12929 | if (PyErr_Occurred()) SWIG_fail; | |
12930 | } | |
12931 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
12932 | return resultobj; | |
12933 | fail: | |
12934 | return NULL; | |
12935 | } | |
12936 | ||
12937 | ||
12938 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12939 | PyObject *resultobj; | |
12940 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12941 | wxBitmap result; | |
12942 | PyObject * obj0 = 0 ; | |
12943 | char *kwnames[] = { | |
12944 | (char *) "self", NULL | |
12945 | }; | |
12946 | ||
12947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
12948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12949 | { | |
12950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12951 | result = (arg1)->GetBitmap(); | |
12952 | ||
12953 | wxPyEndAllowThreads(__tstate); | |
12954 | if (PyErr_Occurred()) SWIG_fail; | |
12955 | } | |
12956 | { | |
12957 | wxBitmap * resultptr; | |
12958 | resultptr = new wxBitmap((wxBitmap &) result); | |
12959 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
12960 | } | |
12961 | return resultobj; | |
12962 | fail: | |
12963 | return NULL; | |
12964 | } | |
12965 | ||
12966 | ||
12967 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12968 | PyObject *resultobj; | |
12969 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12970 | wxString result; | |
12971 | PyObject * obj0 = 0 ; | |
12972 | char *kwnames[] = { | |
12973 | (char *) "self", NULL | |
12974 | }; | |
12975 | ||
12976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
12977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12978 | { | |
12979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12980 | result = (arg1)->GetLabel(); | |
12981 | ||
12982 | wxPyEndAllowThreads(__tstate); | |
12983 | if (PyErr_Occurred()) SWIG_fail; | |
12984 | } | |
12985 | { | |
12986 | #if wxUSE_UNICODE | |
12987 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12988 | #else | |
12989 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12990 | #endif | |
12991 | } | |
12992 | return resultobj; | |
12993 | fail: | |
12994 | return NULL; | |
12995 | } | |
12996 | ||
12997 | ||
12998 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12999 | PyObject *resultobj; | |
13000 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13001 | wxString result; | |
13002 | PyObject * obj0 = 0 ; | |
13003 | char *kwnames[] = { | |
13004 | (char *) "self", NULL | |
13005 | }; | |
13006 | ||
13007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
13008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13009 | { | |
13010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13011 | result = (arg1)->GetShortHelp(); | |
13012 | ||
13013 | wxPyEndAllowThreads(__tstate); | |
13014 | if (PyErr_Occurred()) SWIG_fail; | |
13015 | } | |
13016 | { | |
13017 | #if wxUSE_UNICODE | |
13018 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13019 | #else | |
13020 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13021 | #endif | |
13022 | } | |
13023 | return resultobj; | |
13024 | fail: | |
13025 | return NULL; | |
13026 | } | |
13027 | ||
13028 | ||
13029 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13030 | PyObject *resultobj; | |
13031 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13032 | wxString result; | |
13033 | PyObject * obj0 = 0 ; | |
13034 | char *kwnames[] = { | |
13035 | (char *) "self", NULL | |
13036 | }; | |
13037 | ||
13038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
13039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13040 | { | |
13041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13042 | result = (arg1)->GetLongHelp(); | |
13043 | ||
13044 | wxPyEndAllowThreads(__tstate); | |
13045 | if (PyErr_Occurred()) SWIG_fail; | |
13046 | } | |
13047 | { | |
13048 | #if wxUSE_UNICODE | |
13049 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13050 | #else | |
13051 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13052 | #endif | |
13053 | } | |
13054 | return resultobj; | |
13055 | fail: | |
13056 | return NULL; | |
13057 | } | |
13058 | ||
13059 | ||
13060 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13061 | PyObject *resultobj; | |
13062 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13063 | bool arg2 ; | |
13064 | bool result; | |
13065 | PyObject * obj0 = 0 ; | |
13066 | PyObject * obj1 = 0 ; | |
13067 | char *kwnames[] = { | |
13068 | (char *) "self",(char *) "enable", NULL | |
13069 | }; | |
13070 | ||
13071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
13072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13073 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13074 | if (PyErr_Occurred()) SWIG_fail; | |
13075 | { | |
13076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13077 | result = (bool)(arg1)->Enable(arg2); | |
13078 | ||
13079 | wxPyEndAllowThreads(__tstate); | |
13080 | if (PyErr_Occurred()) SWIG_fail; | |
13081 | } | |
13082 | resultobj = PyInt_FromLong((long)result); | |
13083 | return resultobj; | |
13084 | fail: | |
13085 | return NULL; | |
13086 | } | |
13087 | ||
13088 | ||
13089 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13090 | PyObject *resultobj; | |
13091 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13092 | PyObject * obj0 = 0 ; | |
13093 | char *kwnames[] = { | |
13094 | (char *) "self", NULL | |
13095 | }; | |
13096 | ||
13097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
13098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13099 | { | |
13100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13101 | (arg1)->Toggle(); | |
13102 | ||
13103 | wxPyEndAllowThreads(__tstate); | |
13104 | if (PyErr_Occurred()) SWIG_fail; | |
13105 | } | |
13106 | Py_INCREF(Py_None); resultobj = Py_None; | |
13107 | return resultobj; | |
13108 | fail: | |
13109 | return NULL; | |
13110 | } | |
13111 | ||
13112 | ||
13113 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13114 | PyObject *resultobj; | |
13115 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13116 | bool arg2 ; | |
13117 | bool result; | |
13118 | PyObject * obj0 = 0 ; | |
13119 | PyObject * obj1 = 0 ; | |
13120 | char *kwnames[] = { | |
13121 | (char *) "self",(char *) "toggle", NULL | |
13122 | }; | |
13123 | ||
13124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
13125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13126 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13127 | if (PyErr_Occurred()) SWIG_fail; | |
13128 | { | |
13129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13130 | result = (bool)(arg1)->SetToggle(arg2); | |
13131 | ||
13132 | wxPyEndAllowThreads(__tstate); | |
13133 | if (PyErr_Occurred()) SWIG_fail; | |
13134 | } | |
13135 | resultobj = PyInt_FromLong((long)result); | |
13136 | return resultobj; | |
13137 | fail: | |
13138 | return NULL; | |
13139 | } | |
13140 | ||
13141 | ||
13142 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13143 | PyObject *resultobj; | |
13144 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13145 | wxString *arg2 = 0 ; | |
13146 | bool result; | |
e811c8ce | 13147 | bool temp2 = False ; |
d14a1e28 RD |
13148 | PyObject * obj0 = 0 ; |
13149 | PyObject * obj1 = 0 ; | |
13150 | char *kwnames[] = { | |
13151 | (char *) "self",(char *) "help", NULL | |
13152 | }; | |
13153 | ||
13154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
13155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13156 | { | |
13157 | arg2 = wxString_in_helper(obj1); | |
13158 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13159 | temp2 = True; |
d14a1e28 RD |
13160 | } |
13161 | { | |
13162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13163 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
13164 | ||
13165 | wxPyEndAllowThreads(__tstate); | |
13166 | if (PyErr_Occurred()) SWIG_fail; | |
13167 | } | |
13168 | resultobj = PyInt_FromLong((long)result); | |
13169 | { | |
13170 | if (temp2) | |
13171 | delete arg2; | |
13172 | } | |
13173 | return resultobj; | |
13174 | fail: | |
13175 | { | |
13176 | if (temp2) | |
13177 | delete arg2; | |
13178 | } | |
13179 | return NULL; | |
13180 | } | |
13181 | ||
13182 | ||
13183 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13184 | PyObject *resultobj; | |
13185 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13186 | wxString *arg2 = 0 ; | |
13187 | bool result; | |
e811c8ce | 13188 | bool temp2 = False ; |
d14a1e28 RD |
13189 | PyObject * obj0 = 0 ; |
13190 | PyObject * obj1 = 0 ; | |
13191 | char *kwnames[] = { | |
13192 | (char *) "self",(char *) "help", NULL | |
13193 | }; | |
13194 | ||
13195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
13196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13197 | { | |
13198 | arg2 = wxString_in_helper(obj1); | |
13199 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13200 | temp2 = True; |
d14a1e28 RD |
13201 | } |
13202 | { | |
13203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13204 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
13205 | ||
13206 | wxPyEndAllowThreads(__tstate); | |
13207 | if (PyErr_Occurred()) SWIG_fail; | |
13208 | } | |
13209 | resultobj = PyInt_FromLong((long)result); | |
13210 | { | |
13211 | if (temp2) | |
13212 | delete arg2; | |
13213 | } | |
13214 | return resultobj; | |
13215 | fail: | |
13216 | { | |
13217 | if (temp2) | |
13218 | delete arg2; | |
13219 | } | |
13220 | return NULL; | |
13221 | } | |
13222 | ||
13223 | ||
13224 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13225 | PyObject *resultobj; | |
13226 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13227 | wxBitmap *arg2 = 0 ; | |
13228 | PyObject * obj0 = 0 ; | |
13229 | PyObject * obj1 = 0 ; | |
13230 | char *kwnames[] = { | |
13231 | (char *) "self",(char *) "bmp", NULL | |
13232 | }; | |
13233 | ||
13234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
13235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13236 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13237 | if (arg2 == NULL) { | |
13238 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13239 | } | |
13240 | { | |
13241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13242 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
13243 | ||
13244 | wxPyEndAllowThreads(__tstate); | |
13245 | if (PyErr_Occurred()) SWIG_fail; | |
13246 | } | |
13247 | Py_INCREF(Py_None); resultobj = Py_None; | |
13248 | return resultobj; | |
13249 | fail: | |
13250 | return NULL; | |
13251 | } | |
13252 | ||
13253 | ||
13254 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13255 | PyObject *resultobj; | |
13256 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13257 | wxBitmap *arg2 = 0 ; | |
13258 | PyObject * obj0 = 0 ; | |
13259 | PyObject * obj1 = 0 ; | |
13260 | char *kwnames[] = { | |
13261 | (char *) "self",(char *) "bmp", NULL | |
13262 | }; | |
13263 | ||
13264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
13265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13266 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13267 | if (arg2 == NULL) { | |
13268 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13269 | } | |
13270 | { | |
13271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13272 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
13273 | ||
13274 | wxPyEndAllowThreads(__tstate); | |
13275 | if (PyErr_Occurred()) SWIG_fail; | |
13276 | } | |
13277 | Py_INCREF(Py_None); resultobj = Py_None; | |
13278 | return resultobj; | |
13279 | fail: | |
13280 | return NULL; | |
13281 | } | |
13282 | ||
13283 | ||
13284 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13285 | PyObject *resultobj; | |
13286 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13287 | wxString *arg2 = 0 ; | |
e811c8ce | 13288 | bool temp2 = False ; |
d14a1e28 RD |
13289 | PyObject * obj0 = 0 ; |
13290 | PyObject * obj1 = 0 ; | |
13291 | char *kwnames[] = { | |
13292 | (char *) "self",(char *) "label", NULL | |
13293 | }; | |
13294 | ||
13295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
13296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13297 | { | |
13298 | arg2 = wxString_in_helper(obj1); | |
13299 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13300 | temp2 = True; |
d14a1e28 RD |
13301 | } |
13302 | { | |
13303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13304 | (arg1)->SetLabel((wxString const &)*arg2); | |
13305 | ||
13306 | wxPyEndAllowThreads(__tstate); | |
13307 | if (PyErr_Occurred()) SWIG_fail; | |
13308 | } | |
13309 | Py_INCREF(Py_None); resultobj = Py_None; | |
13310 | { | |
13311 | if (temp2) | |
13312 | delete arg2; | |
13313 | } | |
13314 | return resultobj; | |
13315 | fail: | |
13316 | { | |
13317 | if (temp2) | |
13318 | delete arg2; | |
13319 | } | |
13320 | return NULL; | |
13321 | } | |
13322 | ||
13323 | ||
13324 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13325 | PyObject *resultobj; | |
13326 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13327 | PyObject * obj0 = 0 ; | |
13328 | char *kwnames[] = { | |
13329 | (char *) "self", NULL | |
13330 | }; | |
13331 | ||
13332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
13333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13334 | { | |
13335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13336 | (arg1)->Detach(); | |
13337 | ||
13338 | wxPyEndAllowThreads(__tstate); | |
13339 | if (PyErr_Occurred()) SWIG_fail; | |
13340 | } | |
13341 | Py_INCREF(Py_None); resultobj = Py_None; | |
13342 | return resultobj; | |
13343 | fail: | |
13344 | return NULL; | |
13345 | } | |
13346 | ||
13347 | ||
13348 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13349 | PyObject *resultobj; | |
13350 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13351 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
13352 | PyObject * obj0 = 0 ; | |
13353 | PyObject * obj1 = 0 ; | |
13354 | char *kwnames[] = { | |
13355 | (char *) "self",(char *) "tbar", NULL | |
13356 | }; | |
13357 | ||
13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
13359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13360 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13361 | { | |
13362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13363 | (arg1)->Attach(arg2); | |
13364 | ||
13365 | wxPyEndAllowThreads(__tstate); | |
13366 | if (PyErr_Occurred()) SWIG_fail; | |
13367 | } | |
13368 | Py_INCREF(Py_None); resultobj = Py_None; | |
13369 | return resultobj; | |
13370 | fail: | |
13371 | return NULL; | |
13372 | } | |
13373 | ||
13374 | ||
13375 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13376 | PyObject *resultobj; | |
13377 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13378 | PyObject *result; | |
13379 | PyObject * obj0 = 0 ; | |
13380 | char *kwnames[] = { | |
13381 | (char *) "self", NULL | |
13382 | }; | |
13383 | ||
13384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
13385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13386 | { | |
13387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13388 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
13389 | ||
13390 | wxPyEndAllowThreads(__tstate); | |
13391 | if (PyErr_Occurred()) SWIG_fail; | |
13392 | } | |
13393 | resultobj = result; | |
13394 | return resultobj; | |
13395 | fail: | |
13396 | return NULL; | |
13397 | } | |
13398 | ||
13399 | ||
13400 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13401 | PyObject *resultobj; | |
13402 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13403 | PyObject *arg2 = (PyObject *) 0 ; | |
13404 | PyObject * obj0 = 0 ; | |
13405 | PyObject * obj1 = 0 ; | |
13406 | char *kwnames[] = { | |
13407 | (char *) "self",(char *) "clientData", NULL | |
13408 | }; | |
13409 | ||
13410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
13411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13412 | arg2 = obj1; | |
13413 | { | |
13414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13415 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
13416 | ||
13417 | wxPyEndAllowThreads(__tstate); | |
13418 | if (PyErr_Occurred()) SWIG_fail; | |
13419 | } | |
13420 | Py_INCREF(Py_None); resultobj = Py_None; | |
13421 | return resultobj; | |
13422 | fail: | |
13423 | return NULL; | |
13424 | } | |
13425 | ||
13426 | ||
13427 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
13428 | PyObject *obj; | |
13429 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13430 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
13431 | Py_INCREF(obj); | |
13432 | return Py_BuildValue((char *)""); | |
13433 | } | |
13434 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13435 | PyObject *resultobj; | |
13436 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13437 | int arg2 ; | |
13438 | wxString *arg3 = 0 ; | |
13439 | wxBitmap *arg4 = 0 ; | |
13440 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
13441 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
13442 | int arg6 = (int) wxITEM_NORMAL ; | |
13443 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
13444 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13445 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
13446 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13447 | PyObject *arg9 = (PyObject *) NULL ; | |
13448 | wxToolBarToolBase *result; | |
e811c8ce RD |
13449 | bool temp3 = False ; |
13450 | bool temp7 = False ; | |
13451 | bool temp8 = False ; | |
d14a1e28 RD |
13452 | PyObject * obj0 = 0 ; |
13453 | PyObject * obj2 = 0 ; | |
13454 | PyObject * obj3 = 0 ; | |
13455 | PyObject * obj4 = 0 ; | |
13456 | PyObject * obj6 = 0 ; | |
13457 | PyObject * obj7 = 0 ; | |
13458 | PyObject * obj8 = 0 ; | |
13459 | char *kwnames[] = { | |
13460 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
13461 | }; | |
13462 | ||
13463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|OiOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7,&obj8)) goto fail; | |
13464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13465 | { | |
13466 | arg3 = wxString_in_helper(obj2); | |
13467 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13468 | temp3 = True; |
d14a1e28 RD |
13469 | } |
13470 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13471 | if (arg4 == NULL) { | |
13472 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13473 | } | |
13474 | if (obj4) { | |
13475 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13476 | if (arg5 == NULL) { | |
13477 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13478 | } | |
13479 | } | |
13480 | if (obj6) { | |
13481 | { | |
13482 | arg7 = wxString_in_helper(obj6); | |
13483 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 13484 | temp7 = True; |
d14a1e28 RD |
13485 | } |
13486 | } | |
13487 | if (obj7) { | |
13488 | { | |
13489 | arg8 = wxString_in_helper(obj7); | |
13490 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 13491 | temp8 = True; |
d14a1e28 RD |
13492 | } |
13493 | } | |
13494 | if (obj8) { | |
13495 | arg9 = obj8; | |
13496 | } | |
13497 | { | |
13498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13499 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
13500 | ||
13501 | wxPyEndAllowThreads(__tstate); | |
13502 | if (PyErr_Occurred()) SWIG_fail; | |
13503 | } | |
13504 | { | |
13505 | resultobj = wxPyMake_wxObject(result); | |
13506 | } | |
13507 | { | |
13508 | if (temp3) | |
13509 | delete arg3; | |
13510 | } | |
13511 | { | |
13512 | if (temp7) | |
13513 | delete arg7; | |
13514 | } | |
13515 | { | |
13516 | if (temp8) | |
13517 | delete arg8; | |
13518 | } | |
13519 | return resultobj; | |
13520 | fail: | |
13521 | { | |
13522 | if (temp3) | |
13523 | delete arg3; | |
13524 | } | |
13525 | { | |
13526 | if (temp7) | |
13527 | delete arg7; | |
13528 | } | |
13529 | { | |
13530 | if (temp8) | |
13531 | delete arg8; | |
13532 | } | |
13533 | return NULL; | |
13534 | } | |
13535 | ||
13536 | ||
13537 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13538 | PyObject *resultobj; | |
13539 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13540 | size_t arg2 ; | |
13541 | int arg3 ; | |
13542 | wxString *arg4 = 0 ; | |
13543 | wxBitmap *arg5 = 0 ; | |
13544 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
13545 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
13546 | int arg7 = (int) wxITEM_NORMAL ; | |
13547 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
13548 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13549 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
13550 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13551 | PyObject *arg10 = (PyObject *) NULL ; | |
13552 | wxToolBarToolBase *result; | |
e811c8ce RD |
13553 | bool temp4 = False ; |
13554 | bool temp8 = False ; | |
13555 | bool temp9 = False ; | |
d14a1e28 RD |
13556 | PyObject * obj0 = 0 ; |
13557 | PyObject * obj1 = 0 ; | |
13558 | PyObject * obj3 = 0 ; | |
13559 | PyObject * obj4 = 0 ; | |
13560 | PyObject * obj5 = 0 ; | |
13561 | PyObject * obj7 = 0 ; | |
13562 | PyObject * obj8 = 0 ; | |
13563 | PyObject * obj9 = 0 ; | |
13564 | char *kwnames[] = { | |
13565 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
13566 | }; | |
13567 | ||
13568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiOO|OiOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8,&obj9)) goto fail; | |
13569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13570 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13571 | if (PyErr_Occurred()) SWIG_fail; | |
13572 | { | |
13573 | arg4 = wxString_in_helper(obj3); | |
13574 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 13575 | temp4 = True; |
d14a1e28 RD |
13576 | } |
13577 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13578 | if (arg5 == NULL) { | |
13579 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13580 | } | |
13581 | if (obj5) { | |
13582 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13583 | if (arg6 == NULL) { | |
13584 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13585 | } | |
13586 | } | |
13587 | if (obj7) { | |
13588 | { | |
13589 | arg8 = wxString_in_helper(obj7); | |
13590 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 13591 | temp8 = True; |
d14a1e28 RD |
13592 | } |
13593 | } | |
13594 | if (obj8) { | |
13595 | { | |
13596 | arg9 = wxString_in_helper(obj8); | |
13597 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 13598 | temp9 = True; |
d14a1e28 RD |
13599 | } |
13600 | } | |
13601 | if (obj9) { | |
13602 | arg10 = obj9; | |
13603 | } | |
13604 | { | |
13605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13606 | 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); | |
13607 | ||
13608 | wxPyEndAllowThreads(__tstate); | |
13609 | if (PyErr_Occurred()) SWIG_fail; | |
13610 | } | |
13611 | { | |
13612 | resultobj = wxPyMake_wxObject(result); | |
13613 | } | |
13614 | { | |
13615 | if (temp4) | |
13616 | delete arg4; | |
13617 | } | |
13618 | { | |
13619 | if (temp8) | |
13620 | delete arg8; | |
13621 | } | |
13622 | { | |
13623 | if (temp9) | |
13624 | delete arg9; | |
13625 | } | |
13626 | return resultobj; | |
13627 | fail: | |
13628 | { | |
13629 | if (temp4) | |
13630 | delete arg4; | |
13631 | } | |
13632 | { | |
13633 | if (temp8) | |
13634 | delete arg8; | |
13635 | } | |
13636 | { | |
13637 | if (temp9) | |
13638 | delete arg9; | |
13639 | } | |
13640 | return NULL; | |
13641 | } | |
13642 | ||
13643 | ||
13644 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13645 | PyObject *resultobj; | |
13646 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13647 | wxControl *arg2 = (wxControl *) 0 ; | |
13648 | wxToolBarToolBase *result; | |
13649 | PyObject * obj0 = 0 ; | |
13650 | PyObject * obj1 = 0 ; | |
13651 | char *kwnames[] = { | |
13652 | (char *) "self",(char *) "control", NULL | |
13653 | }; | |
13654 | ||
13655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
13656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13657 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13658 | { | |
13659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13660 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
13661 | ||
13662 | wxPyEndAllowThreads(__tstate); | |
13663 | if (PyErr_Occurred()) SWIG_fail; | |
13664 | } | |
13665 | { | |
13666 | resultobj = wxPyMake_wxObject(result); | |
13667 | } | |
13668 | return resultobj; | |
13669 | fail: | |
13670 | return NULL; | |
13671 | } | |
13672 | ||
13673 | ||
13674 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13675 | PyObject *resultobj; | |
13676 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13677 | size_t arg2 ; | |
13678 | wxControl *arg3 = (wxControl *) 0 ; | |
13679 | wxToolBarToolBase *result; | |
13680 | PyObject * obj0 = 0 ; | |
13681 | PyObject * obj1 = 0 ; | |
13682 | PyObject * obj2 = 0 ; | |
13683 | char *kwnames[] = { | |
13684 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
13685 | }; | |
13686 | ||
13687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13689 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13690 | if (PyErr_Occurred()) SWIG_fail; | |
13691 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13692 | { | |
13693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13694 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
13695 | ||
13696 | wxPyEndAllowThreads(__tstate); | |
13697 | if (PyErr_Occurred()) SWIG_fail; | |
13698 | } | |
13699 | { | |
13700 | resultobj = wxPyMake_wxObject(result); | |
13701 | } | |
13702 | return resultobj; | |
13703 | fail: | |
13704 | return NULL; | |
13705 | } | |
13706 | ||
13707 | ||
13708 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13709 | PyObject *resultobj; | |
13710 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13711 | int arg2 ; | |
13712 | wxControl *result; | |
13713 | PyObject * obj0 = 0 ; | |
13714 | char *kwnames[] = { | |
13715 | (char *) "self",(char *) "id", NULL | |
13716 | }; | |
13717 | ||
13718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_FindControl",kwnames,&obj0,&arg2)) goto fail; | |
13719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13720 | { | |
13721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13722 | result = (wxControl *)(arg1)->FindControl(arg2); | |
13723 | ||
13724 | wxPyEndAllowThreads(__tstate); | |
13725 | if (PyErr_Occurred()) SWIG_fail; | |
13726 | } | |
13727 | { | |
13728 | resultobj = wxPyMake_wxObject(result); | |
13729 | } | |
13730 | return resultobj; | |
13731 | fail: | |
13732 | return NULL; | |
13733 | } | |
13734 | ||
13735 | ||
13736 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13737 | PyObject *resultobj; | |
13738 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13739 | wxToolBarToolBase *result; | |
13740 | PyObject * obj0 = 0 ; | |
13741 | char *kwnames[] = { | |
13742 | (char *) "self", NULL | |
13743 | }; | |
13744 | ||
13745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
13746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13747 | { | |
13748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13749 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
13750 | ||
13751 | wxPyEndAllowThreads(__tstate); | |
13752 | if (PyErr_Occurred()) SWIG_fail; | |
13753 | } | |
13754 | { | |
13755 | resultobj = wxPyMake_wxObject(result); | |
13756 | } | |
13757 | return resultobj; | |
13758 | fail: | |
13759 | return NULL; | |
13760 | } | |
13761 | ||
13762 | ||
13763 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13764 | PyObject *resultobj; | |
13765 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13766 | size_t arg2 ; | |
13767 | wxToolBarToolBase *result; | |
13768 | PyObject * obj0 = 0 ; | |
13769 | PyObject * obj1 = 0 ; | |
13770 | char *kwnames[] = { | |
13771 | (char *) "self",(char *) "pos", NULL | |
13772 | }; | |
13773 | ||
13774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
13775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13776 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13777 | if (PyErr_Occurred()) SWIG_fail; | |
13778 | { | |
13779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13780 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
13781 | ||
13782 | wxPyEndAllowThreads(__tstate); | |
13783 | if (PyErr_Occurred()) SWIG_fail; | |
13784 | } | |
13785 | { | |
13786 | resultobj = wxPyMake_wxObject(result); | |
13787 | } | |
13788 | return resultobj; | |
13789 | fail: | |
13790 | return NULL; | |
13791 | } | |
13792 | ||
13793 | ||
13794 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13795 | PyObject *resultobj; | |
13796 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13797 | int arg2 ; | |
13798 | wxToolBarToolBase *result; | |
13799 | PyObject * obj0 = 0 ; | |
13800 | char *kwnames[] = { | |
13801 | (char *) "self",(char *) "id", NULL | |
13802 | }; | |
13803 | ||
13804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_RemoveTool",kwnames,&obj0,&arg2)) goto fail; | |
13805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13806 | { | |
13807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13808 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
13809 | ||
13810 | wxPyEndAllowThreads(__tstate); | |
13811 | if (PyErr_Occurred()) SWIG_fail; | |
13812 | } | |
13813 | { | |
13814 | resultobj = wxPyMake_wxObject(result); | |
13815 | } | |
13816 | return resultobj; | |
13817 | fail: | |
13818 | return NULL; | |
13819 | } | |
13820 | ||
13821 | ||
13822 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13823 | PyObject *resultobj; | |
13824 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13825 | size_t arg2 ; | |
13826 | bool result; | |
13827 | PyObject * obj0 = 0 ; | |
13828 | PyObject * obj1 = 0 ; | |
13829 | char *kwnames[] = { | |
13830 | (char *) "self",(char *) "pos", NULL | |
13831 | }; | |
13832 | ||
13833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
13834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13835 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13836 | if (PyErr_Occurred()) SWIG_fail; | |
13837 | { | |
13838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13839 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
13840 | ||
13841 | wxPyEndAllowThreads(__tstate); | |
13842 | if (PyErr_Occurred()) SWIG_fail; | |
13843 | } | |
13844 | resultobj = PyInt_FromLong((long)result); | |
13845 | return resultobj; | |
13846 | fail: | |
13847 | return NULL; | |
13848 | } | |
13849 | ||
13850 | ||
13851 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13852 | PyObject *resultobj; | |
13853 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13854 | int arg2 ; | |
13855 | bool result; | |
13856 | PyObject * obj0 = 0 ; | |
13857 | char *kwnames[] = { | |
13858 | (char *) "self",(char *) "id", NULL | |
13859 | }; | |
13860 | ||
13861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_DeleteTool",kwnames,&obj0,&arg2)) goto fail; | |
13862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13863 | { | |
13864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13865 | result = (bool)(arg1)->DeleteTool(arg2); | |
13866 | ||
13867 | wxPyEndAllowThreads(__tstate); | |
13868 | if (PyErr_Occurred()) SWIG_fail; | |
13869 | } | |
13870 | resultobj = PyInt_FromLong((long)result); | |
13871 | return resultobj; | |
13872 | fail: | |
13873 | return NULL; | |
13874 | } | |
13875 | ||
13876 | ||
13877 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13878 | PyObject *resultobj; | |
13879 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13880 | PyObject * obj0 = 0 ; | |
13881 | char *kwnames[] = { | |
13882 | (char *) "self", NULL | |
13883 | }; | |
13884 | ||
13885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
13886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13887 | { | |
13888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13889 | (arg1)->ClearTools(); | |
13890 | ||
13891 | wxPyEndAllowThreads(__tstate); | |
13892 | if (PyErr_Occurred()) SWIG_fail; | |
13893 | } | |
13894 | Py_INCREF(Py_None); resultobj = Py_None; | |
13895 | return resultobj; | |
13896 | fail: | |
13897 | return NULL; | |
13898 | } | |
13899 | ||
13900 | ||
13901 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13902 | PyObject *resultobj; | |
13903 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13904 | bool result; | |
13905 | PyObject * obj0 = 0 ; | |
13906 | char *kwnames[] = { | |
13907 | (char *) "self", NULL | |
13908 | }; | |
13909 | ||
13910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
13911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13912 | { | |
13913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13914 | result = (bool)(arg1)->Realize(); | |
13915 | ||
13916 | wxPyEndAllowThreads(__tstate); | |
13917 | if (PyErr_Occurred()) SWIG_fail; | |
13918 | } | |
13919 | resultobj = PyInt_FromLong((long)result); | |
13920 | return resultobj; | |
13921 | fail: | |
13922 | return NULL; | |
13923 | } | |
13924 | ||
13925 | ||
13926 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13927 | PyObject *resultobj; | |
13928 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13929 | int arg2 ; | |
13930 | bool arg3 ; | |
13931 | PyObject * obj0 = 0 ; | |
13932 | PyObject * obj2 = 0 ; | |
13933 | char *kwnames[] = { | |
13934 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
13935 | }; | |
13936 | ||
13937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_EnableTool",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
13938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13939 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13940 | if (PyErr_Occurred()) SWIG_fail; | |
13941 | { | |
13942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13943 | (arg1)->EnableTool(arg2,arg3); | |
13944 | ||
13945 | wxPyEndAllowThreads(__tstate); | |
13946 | if (PyErr_Occurred()) SWIG_fail; | |
13947 | } | |
13948 | Py_INCREF(Py_None); resultobj = Py_None; | |
13949 | return resultobj; | |
13950 | fail: | |
13951 | return NULL; | |
13952 | } | |
13953 | ||
13954 | ||
13955 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13956 | PyObject *resultobj; | |
13957 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13958 | int arg2 ; | |
13959 | bool arg3 ; | |
13960 | PyObject * obj0 = 0 ; | |
13961 | PyObject * obj2 = 0 ; | |
13962 | char *kwnames[] = { | |
13963 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
13964 | }; | |
13965 | ||
13966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_ToggleTool",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
13967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13968 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13969 | if (PyErr_Occurred()) SWIG_fail; | |
13970 | { | |
13971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13972 | (arg1)->ToggleTool(arg2,arg3); | |
13973 | ||
13974 | wxPyEndAllowThreads(__tstate); | |
13975 | if (PyErr_Occurred()) SWIG_fail; | |
13976 | } | |
13977 | Py_INCREF(Py_None); resultobj = Py_None; | |
13978 | return resultobj; | |
13979 | fail: | |
13980 | return NULL; | |
13981 | } | |
13982 | ||
13983 | ||
13984 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13985 | PyObject *resultobj; | |
13986 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13987 | int arg2 ; | |
13988 | bool arg3 ; | |
13989 | PyObject * obj0 = 0 ; | |
13990 | PyObject * obj2 = 0 ; | |
13991 | char *kwnames[] = { | |
13992 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
13993 | }; | |
13994 | ||
13995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToggle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
13996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13997 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13998 | if (PyErr_Occurred()) SWIG_fail; | |
13999 | { | |
14000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14001 | (arg1)->SetToggle(arg2,arg3); | |
14002 | ||
14003 | wxPyEndAllowThreads(__tstate); | |
14004 | if (PyErr_Occurred()) SWIG_fail; | |
14005 | } | |
14006 | Py_INCREF(Py_None); resultobj = Py_None; | |
14007 | return resultobj; | |
14008 | fail: | |
14009 | return NULL; | |
14010 | } | |
14011 | ||
14012 | ||
14013 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14014 | PyObject *resultobj; | |
14015 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14016 | int arg2 ; | |
14017 | PyObject *result; | |
14018 | PyObject * obj0 = 0 ; | |
14019 | char *kwnames[] = { | |
14020 | (char *) "self",(char *) "id", NULL | |
14021 | }; | |
14022 | ||
14023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolClientData",kwnames,&obj0,&arg2)) goto fail; | |
14024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14025 | { | |
14026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14027 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
14028 | ||
14029 | wxPyEndAllowThreads(__tstate); | |
14030 | if (PyErr_Occurred()) SWIG_fail; | |
14031 | } | |
14032 | resultobj = result; | |
14033 | return resultobj; | |
14034 | fail: | |
14035 | return NULL; | |
14036 | } | |
14037 | ||
14038 | ||
14039 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14040 | PyObject *resultobj; | |
14041 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14042 | int arg2 ; | |
14043 | PyObject *arg3 = (PyObject *) 0 ; | |
14044 | PyObject * obj0 = 0 ; | |
14045 | PyObject * obj2 = 0 ; | |
14046 | char *kwnames[] = { | |
14047 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
14048 | }; | |
14049 | ||
14050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolClientData",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14052 | arg3 = obj2; | |
14053 | { | |
14054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14055 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
14056 | ||
14057 | wxPyEndAllowThreads(__tstate); | |
14058 | if (PyErr_Occurred()) SWIG_fail; | |
14059 | } | |
14060 | Py_INCREF(Py_None); resultobj = Py_None; | |
14061 | return resultobj; | |
14062 | fail: | |
14063 | return NULL; | |
14064 | } | |
14065 | ||
14066 | ||
14067 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14068 | PyObject *resultobj; | |
14069 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14070 | int arg2 ; | |
14071 | int result; | |
14072 | PyObject * obj0 = 0 ; | |
14073 | char *kwnames[] = { | |
14074 | (char *) "self",(char *) "id", NULL | |
14075 | }; | |
14076 | ||
14077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolPos",kwnames,&obj0,&arg2)) goto fail; | |
14078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14079 | { | |
14080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14081 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
14082 | ||
14083 | wxPyEndAllowThreads(__tstate); | |
14084 | if (PyErr_Occurred()) SWIG_fail; | |
14085 | } | |
14086 | resultobj = PyInt_FromLong((long)result); | |
14087 | return resultobj; | |
14088 | fail: | |
14089 | return NULL; | |
14090 | } | |
14091 | ||
14092 | ||
14093 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14094 | PyObject *resultobj; | |
14095 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14096 | int arg2 ; | |
14097 | bool result; | |
14098 | PyObject * obj0 = 0 ; | |
14099 | char *kwnames[] = { | |
14100 | (char *) "self",(char *) "id", NULL | |
14101 | }; | |
14102 | ||
14103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolState",kwnames,&obj0,&arg2)) goto fail; | |
14104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14105 | { | |
14106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14107 | result = (bool)(arg1)->GetToolState(arg2); | |
14108 | ||
14109 | wxPyEndAllowThreads(__tstate); | |
14110 | if (PyErr_Occurred()) SWIG_fail; | |
14111 | } | |
14112 | resultobj = PyInt_FromLong((long)result); | |
14113 | return resultobj; | |
14114 | fail: | |
14115 | return NULL; | |
14116 | } | |
14117 | ||
14118 | ||
14119 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14120 | PyObject *resultobj; | |
14121 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14122 | int arg2 ; | |
14123 | bool result; | |
14124 | PyObject * obj0 = 0 ; | |
14125 | char *kwnames[] = { | |
14126 | (char *) "self",(char *) "id", NULL | |
14127 | }; | |
14128 | ||
14129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolEnabled",kwnames,&obj0,&arg2)) goto fail; | |
14130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14131 | { | |
14132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14133 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
14134 | ||
14135 | wxPyEndAllowThreads(__tstate); | |
14136 | if (PyErr_Occurred()) SWIG_fail; | |
14137 | } | |
14138 | resultobj = PyInt_FromLong((long)result); | |
14139 | return resultobj; | |
14140 | fail: | |
14141 | return NULL; | |
14142 | } | |
14143 | ||
14144 | ||
14145 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14146 | PyObject *resultobj; | |
14147 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14148 | int arg2 ; | |
14149 | wxString *arg3 = 0 ; | |
e811c8ce | 14150 | bool temp3 = False ; |
d14a1e28 RD |
14151 | PyObject * obj0 = 0 ; |
14152 | PyObject * obj2 = 0 ; | |
14153 | char *kwnames[] = { | |
14154 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
14155 | }; | |
14156 | ||
14157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14159 | { | |
14160 | arg3 = wxString_in_helper(obj2); | |
14161 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14162 | temp3 = True; |
d14a1e28 RD |
14163 | } |
14164 | { | |
14165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14166 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
14167 | ||
14168 | wxPyEndAllowThreads(__tstate); | |
14169 | if (PyErr_Occurred()) SWIG_fail; | |
14170 | } | |
14171 | Py_INCREF(Py_None); resultobj = Py_None; | |
14172 | { | |
14173 | if (temp3) | |
14174 | delete arg3; | |
14175 | } | |
14176 | return resultobj; | |
14177 | fail: | |
14178 | { | |
14179 | if (temp3) | |
14180 | delete arg3; | |
14181 | } | |
14182 | return NULL; | |
14183 | } | |
14184 | ||
14185 | ||
14186 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14187 | PyObject *resultobj; | |
14188 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14189 | int arg2 ; | |
14190 | wxString result; | |
14191 | PyObject * obj0 = 0 ; | |
14192 | char *kwnames[] = { | |
14193 | (char *) "self",(char *) "id", NULL | |
14194 | }; | |
14195 | ||
14196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&arg2)) goto fail; | |
14197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14198 | { | |
14199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14200 | result = (arg1)->GetToolShortHelp(arg2); | |
14201 | ||
14202 | wxPyEndAllowThreads(__tstate); | |
14203 | if (PyErr_Occurred()) SWIG_fail; | |
14204 | } | |
14205 | { | |
14206 | #if wxUSE_UNICODE | |
14207 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14208 | #else | |
14209 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14210 | #endif | |
14211 | } | |
14212 | return resultobj; | |
14213 | fail: | |
14214 | return NULL; | |
14215 | } | |
14216 | ||
14217 | ||
14218 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14219 | PyObject *resultobj; | |
14220 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14221 | int arg2 ; | |
14222 | wxString *arg3 = 0 ; | |
e811c8ce | 14223 | bool temp3 = False ; |
d14a1e28 RD |
14224 | PyObject * obj0 = 0 ; |
14225 | PyObject * obj2 = 0 ; | |
14226 | char *kwnames[] = { | |
14227 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
14228 | }; | |
14229 | ||
14230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14232 | { | |
14233 | arg3 = wxString_in_helper(obj2); | |
14234 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14235 | temp3 = True; |
d14a1e28 RD |
14236 | } |
14237 | { | |
14238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14239 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
14240 | ||
14241 | wxPyEndAllowThreads(__tstate); | |
14242 | if (PyErr_Occurred()) SWIG_fail; | |
14243 | } | |
14244 | Py_INCREF(Py_None); resultobj = Py_None; | |
14245 | { | |
14246 | if (temp3) | |
14247 | delete arg3; | |
14248 | } | |
14249 | return resultobj; | |
14250 | fail: | |
14251 | { | |
14252 | if (temp3) | |
14253 | delete arg3; | |
14254 | } | |
14255 | return NULL; | |
14256 | } | |
14257 | ||
14258 | ||
14259 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14260 | PyObject *resultobj; | |
14261 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14262 | int arg2 ; | |
14263 | wxString result; | |
14264 | PyObject * obj0 = 0 ; | |
14265 | char *kwnames[] = { | |
14266 | (char *) "self",(char *) "id", NULL | |
14267 | }; | |
14268 | ||
14269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&arg2)) goto fail; | |
14270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14271 | { | |
14272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14273 | result = (arg1)->GetToolLongHelp(arg2); | |
14274 | ||
14275 | wxPyEndAllowThreads(__tstate); | |
14276 | if (PyErr_Occurred()) SWIG_fail; | |
14277 | } | |
14278 | { | |
14279 | #if wxUSE_UNICODE | |
14280 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14281 | #else | |
14282 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14283 | #endif | |
14284 | } | |
14285 | return resultobj; | |
14286 | fail: | |
14287 | return NULL; | |
14288 | } | |
14289 | ||
14290 | ||
14291 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14292 | PyObject *resultobj; | |
14293 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14294 | int arg2 ; | |
14295 | int arg3 ; | |
14296 | PyObject * obj0 = 0 ; | |
14297 | char *kwnames[] = { | |
14298 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14299 | }; | |
14300 | ||
14301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_SetMarginsXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14303 | { | |
14304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14305 | (arg1)->SetMargins(arg2,arg3); | |
14306 | ||
14307 | wxPyEndAllowThreads(__tstate); | |
14308 | if (PyErr_Occurred()) SWIG_fail; | |
14309 | } | |
14310 | Py_INCREF(Py_None); resultobj = Py_None; | |
14311 | return resultobj; | |
14312 | fail: | |
14313 | return NULL; | |
14314 | } | |
14315 | ||
14316 | ||
14317 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14318 | PyObject *resultobj; | |
14319 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14320 | wxSize *arg2 = 0 ; | |
14321 | wxSize temp2 ; | |
14322 | PyObject * obj0 = 0 ; | |
14323 | PyObject * obj1 = 0 ; | |
14324 | char *kwnames[] = { | |
14325 | (char *) "self",(char *) "size", NULL | |
14326 | }; | |
14327 | ||
14328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
14329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14330 | { | |
14331 | arg2 = &temp2; | |
14332 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14333 | } | |
14334 | { | |
14335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14336 | (arg1)->SetMargins((wxSize const &)*arg2); | |
14337 | ||
14338 | wxPyEndAllowThreads(__tstate); | |
14339 | if (PyErr_Occurred()) SWIG_fail; | |
14340 | } | |
14341 | Py_INCREF(Py_None); resultobj = Py_None; | |
14342 | return resultobj; | |
14343 | fail: | |
14344 | return NULL; | |
14345 | } | |
14346 | ||
14347 | ||
14348 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14349 | PyObject *resultobj; | |
14350 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14351 | int arg2 ; | |
14352 | PyObject * obj0 = 0 ; | |
14353 | char *kwnames[] = { | |
14354 | (char *) "self",(char *) "packing", NULL | |
14355 | }; | |
14356 | ||
14357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetToolPacking",kwnames,&obj0,&arg2)) goto fail; | |
14358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14359 | { | |
14360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14361 | (arg1)->SetToolPacking(arg2); | |
14362 | ||
14363 | wxPyEndAllowThreads(__tstate); | |
14364 | if (PyErr_Occurred()) SWIG_fail; | |
14365 | } | |
14366 | Py_INCREF(Py_None); resultobj = Py_None; | |
14367 | return resultobj; | |
14368 | fail: | |
14369 | return NULL; | |
14370 | } | |
14371 | ||
14372 | ||
14373 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14374 | PyObject *resultobj; | |
14375 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14376 | int arg2 ; | |
14377 | PyObject * obj0 = 0 ; | |
14378 | char *kwnames[] = { | |
14379 | (char *) "self",(char *) "separation", NULL | |
14380 | }; | |
14381 | ||
14382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetToolSeparation",kwnames,&obj0,&arg2)) goto fail; | |
14383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14384 | { | |
14385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14386 | (arg1)->SetToolSeparation(arg2); | |
14387 | ||
14388 | wxPyEndAllowThreads(__tstate); | |
14389 | if (PyErr_Occurred()) SWIG_fail; | |
14390 | } | |
14391 | Py_INCREF(Py_None); resultobj = Py_None; | |
14392 | return resultobj; | |
14393 | fail: | |
14394 | return NULL; | |
14395 | } | |
14396 | ||
14397 | ||
14398 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14399 | PyObject *resultobj; | |
14400 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14401 | wxSize result; | |
14402 | PyObject * obj0 = 0 ; | |
14403 | char *kwnames[] = { | |
14404 | (char *) "self", NULL | |
14405 | }; | |
14406 | ||
14407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
14408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14409 | { | |
14410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14411 | result = (arg1)->GetToolMargins(); | |
14412 | ||
14413 | wxPyEndAllowThreads(__tstate); | |
14414 | if (PyErr_Occurred()) SWIG_fail; | |
14415 | } | |
14416 | { | |
14417 | wxSize * resultptr; | |
14418 | resultptr = new wxSize((wxSize &) result); | |
14419 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14420 | } | |
14421 | return resultobj; | |
14422 | fail: | |
14423 | return NULL; | |
14424 | } | |
14425 | ||
14426 | ||
14427 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14428 | PyObject *resultobj; | |
14429 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14430 | wxSize result; | |
14431 | PyObject * obj0 = 0 ; | |
14432 | char *kwnames[] = { | |
14433 | (char *) "self", NULL | |
14434 | }; | |
14435 | ||
14436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
14437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14438 | { | |
14439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14440 | result = (arg1)->GetMargins(); | |
14441 | ||
14442 | wxPyEndAllowThreads(__tstate); | |
14443 | if (PyErr_Occurred()) SWIG_fail; | |
14444 | } | |
14445 | { | |
14446 | wxSize * resultptr; | |
14447 | resultptr = new wxSize((wxSize &) result); | |
14448 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14449 | } | |
14450 | return resultobj; | |
14451 | fail: | |
14452 | return NULL; | |
14453 | } | |
14454 | ||
14455 | ||
14456 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14457 | PyObject *resultobj; | |
14458 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14459 | int result; | |
14460 | PyObject * obj0 = 0 ; | |
14461 | char *kwnames[] = { | |
14462 | (char *) "self", NULL | |
14463 | }; | |
14464 | ||
14465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
14466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14467 | { | |
14468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14469 | result = (int)(arg1)->GetToolPacking(); | |
14470 | ||
14471 | wxPyEndAllowThreads(__tstate); | |
14472 | if (PyErr_Occurred()) SWIG_fail; | |
14473 | } | |
14474 | resultobj = PyInt_FromLong((long)result); | |
14475 | return resultobj; | |
14476 | fail: | |
14477 | return NULL; | |
14478 | } | |
14479 | ||
14480 | ||
14481 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14482 | PyObject *resultobj; | |
14483 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14484 | int result; | |
14485 | PyObject * obj0 = 0 ; | |
14486 | char *kwnames[] = { | |
14487 | (char *) "self", NULL | |
14488 | }; | |
14489 | ||
14490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
14491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14492 | { | |
14493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14494 | result = (int)(arg1)->GetToolSeparation(); | |
14495 | ||
14496 | wxPyEndAllowThreads(__tstate); | |
14497 | if (PyErr_Occurred()) SWIG_fail; | |
14498 | } | |
14499 | resultobj = PyInt_FromLong((long)result); | |
14500 | return resultobj; | |
14501 | fail: | |
14502 | return NULL; | |
14503 | } | |
14504 | ||
14505 | ||
14506 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14507 | PyObject *resultobj; | |
14508 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14509 | int arg2 ; | |
14510 | PyObject * obj0 = 0 ; | |
14511 | char *kwnames[] = { | |
14512 | (char *) "self",(char *) "nRows", NULL | |
14513 | }; | |
14514 | ||
14515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetRows",kwnames,&obj0,&arg2)) goto fail; | |
14516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14517 | { | |
14518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14519 | (arg1)->SetRows(arg2); | |
14520 | ||
14521 | wxPyEndAllowThreads(__tstate); | |
14522 | if (PyErr_Occurred()) SWIG_fail; | |
14523 | } | |
14524 | Py_INCREF(Py_None); resultobj = Py_None; | |
14525 | return resultobj; | |
14526 | fail: | |
14527 | return NULL; | |
14528 | } | |
14529 | ||
14530 | ||
14531 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14532 | PyObject *resultobj; | |
14533 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14534 | int arg2 ; | |
14535 | int arg3 ; | |
14536 | PyObject * obj0 = 0 ; | |
14537 | char *kwnames[] = { | |
14538 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
14539 | }; | |
14540 | ||
14541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14543 | { | |
14544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14545 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
14546 | ||
14547 | wxPyEndAllowThreads(__tstate); | |
14548 | if (PyErr_Occurred()) SWIG_fail; | |
14549 | } | |
14550 | Py_INCREF(Py_None); resultobj = Py_None; | |
14551 | return resultobj; | |
14552 | fail: | |
14553 | return NULL; | |
14554 | } | |
14555 | ||
14556 | ||
14557 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14558 | PyObject *resultobj; | |
14559 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14560 | int result; | |
14561 | PyObject * obj0 = 0 ; | |
14562 | char *kwnames[] = { | |
14563 | (char *) "self", NULL | |
14564 | }; | |
14565 | ||
14566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
14567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14568 | { | |
14569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14570 | result = (int)(arg1)->GetMaxRows(); | |
14571 | ||
14572 | wxPyEndAllowThreads(__tstate); | |
14573 | if (PyErr_Occurred()) SWIG_fail; | |
14574 | } | |
14575 | resultobj = PyInt_FromLong((long)result); | |
14576 | return resultobj; | |
14577 | fail: | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
14582 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14583 | PyObject *resultobj; | |
14584 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14585 | int result; | |
14586 | PyObject * obj0 = 0 ; | |
14587 | char *kwnames[] = { | |
14588 | (char *) "self", NULL | |
14589 | }; | |
14590 | ||
14591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
14592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14593 | { | |
14594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14595 | result = (int)(arg1)->GetMaxCols(); | |
14596 | ||
14597 | wxPyEndAllowThreads(__tstate); | |
14598 | if (PyErr_Occurred()) SWIG_fail; | |
14599 | } | |
14600 | resultobj = PyInt_FromLong((long)result); | |
14601 | return resultobj; | |
14602 | fail: | |
14603 | return NULL; | |
14604 | } | |
14605 | ||
14606 | ||
14607 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14608 | PyObject *resultobj; | |
14609 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14610 | wxSize *arg2 = 0 ; | |
14611 | wxSize temp2 ; | |
14612 | PyObject * obj0 = 0 ; | |
14613 | PyObject * obj1 = 0 ; | |
14614 | char *kwnames[] = { | |
14615 | (char *) "self",(char *) "size", NULL | |
14616 | }; | |
14617 | ||
14618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
14619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14620 | { | |
14621 | arg2 = &temp2; | |
14622 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14623 | } | |
14624 | { | |
14625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14626 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
14627 | ||
14628 | wxPyEndAllowThreads(__tstate); | |
14629 | if (PyErr_Occurred()) SWIG_fail; | |
14630 | } | |
14631 | Py_INCREF(Py_None); resultobj = Py_None; | |
14632 | return resultobj; | |
14633 | fail: | |
14634 | return NULL; | |
14635 | } | |
14636 | ||
14637 | ||
14638 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14639 | PyObject *resultobj; | |
14640 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14641 | wxSize result; | |
14642 | PyObject * obj0 = 0 ; | |
14643 | char *kwnames[] = { | |
14644 | (char *) "self", NULL | |
14645 | }; | |
14646 | ||
14647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
14648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14649 | { | |
14650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14651 | result = (arg1)->GetToolBitmapSize(); | |
14652 | ||
14653 | wxPyEndAllowThreads(__tstate); | |
14654 | if (PyErr_Occurred()) SWIG_fail; | |
14655 | } | |
14656 | { | |
14657 | wxSize * resultptr; | |
14658 | resultptr = new wxSize((wxSize &) result); | |
14659 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14660 | } | |
14661 | return resultobj; | |
14662 | fail: | |
14663 | return NULL; | |
14664 | } | |
14665 | ||
14666 | ||
14667 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14668 | PyObject *resultobj; | |
14669 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14670 | wxSize result; | |
14671 | PyObject * obj0 = 0 ; | |
14672 | char *kwnames[] = { | |
14673 | (char *) "self", NULL | |
14674 | }; | |
14675 | ||
14676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
14677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14678 | { | |
14679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14680 | result = (arg1)->GetToolSize(); | |
14681 | ||
14682 | wxPyEndAllowThreads(__tstate); | |
14683 | if (PyErr_Occurred()) SWIG_fail; | |
14684 | } | |
14685 | { | |
14686 | wxSize * resultptr; | |
14687 | resultptr = new wxSize((wxSize &) result); | |
14688 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14689 | } | |
14690 | return resultobj; | |
14691 | fail: | |
14692 | return NULL; | |
14693 | } | |
14694 | ||
14695 | ||
14696 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14697 | PyObject *resultobj; | |
14698 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
14699 | int arg2 ; |
14700 | int arg3 ; | |
d14a1e28 RD |
14701 | wxToolBarToolBase *result; |
14702 | PyObject * obj0 = 0 ; | |
14703 | char *kwnames[] = { | |
14704 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14705 | }; | |
14706 | ||
14707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_FindToolForPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14709 | { | |
14710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14711 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
14712 | ||
14713 | wxPyEndAllowThreads(__tstate); | |
14714 | if (PyErr_Occurred()) SWIG_fail; | |
14715 | } | |
14716 | { | |
14717 | resultobj = wxPyMake_wxObject(result); | |
14718 | } | |
14719 | return resultobj; | |
14720 | fail: | |
14721 | return NULL; | |
14722 | } | |
14723 | ||
14724 | ||
14725 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14726 | PyObject *resultobj; | |
14727 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14728 | bool result; | |
14729 | PyObject * obj0 = 0 ; | |
14730 | char *kwnames[] = { | |
14731 | (char *) "self", NULL | |
14732 | }; | |
14733 | ||
14734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
14735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14736 | { | |
14737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14738 | result = (bool)(arg1)->IsVertical(); | |
14739 | ||
14740 | wxPyEndAllowThreads(__tstate); | |
14741 | if (PyErr_Occurred()) SWIG_fail; | |
14742 | } | |
14743 | resultobj = PyInt_FromLong((long)result); | |
14744 | return resultobj; | |
14745 | fail: | |
14746 | return NULL; | |
14747 | } | |
14748 | ||
14749 | ||
14750 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
14751 | PyObject *obj; | |
14752 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14753 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
14754 | Py_INCREF(obj); | |
14755 | return Py_BuildValue((char *)""); | |
14756 | } | |
14757 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14758 | PyObject *resultobj; | |
14759 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 14760 | int arg2 ; |
d14a1e28 RD |
14761 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14762 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14763 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14764 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14765 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
14766 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
14767 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14768 | wxToolBar *result; | |
14769 | wxPoint temp3 ; | |
14770 | wxSize temp4 ; | |
e811c8ce | 14771 | bool temp6 = False ; |
d14a1e28 RD |
14772 | PyObject * obj0 = 0 ; |
14773 | PyObject * obj2 = 0 ; | |
14774 | PyObject * obj3 = 0 ; | |
14775 | PyObject * obj5 = 0 ; | |
14776 | char *kwnames[] = { | |
14777 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14778 | }; | |
14779 | ||
14780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_ToolBar",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
14781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14782 | if (obj2) { | |
14783 | { | |
14784 | arg3 = &temp3; | |
14785 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14786 | } | |
14787 | } | |
14788 | if (obj3) { | |
14789 | { | |
14790 | arg4 = &temp4; | |
14791 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14792 | } | |
14793 | } | |
14794 | if (obj5) { | |
14795 | { | |
14796 | arg6 = wxString_in_helper(obj5); | |
14797 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 14798 | temp6 = True; |
d14a1e28 RD |
14799 | } |
14800 | } | |
14801 | { | |
14802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14803 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14804 | ||
14805 | wxPyEndAllowThreads(__tstate); | |
14806 | if (PyErr_Occurred()) SWIG_fail; | |
14807 | } | |
14808 | { | |
14809 | resultobj = wxPyMake_wxObject(result); | |
14810 | } | |
14811 | { | |
14812 | if (temp6) | |
14813 | delete arg6; | |
14814 | } | |
14815 | return resultobj; | |
14816 | fail: | |
14817 | { | |
14818 | if (temp6) | |
14819 | delete arg6; | |
14820 | } | |
14821 | return NULL; | |
14822 | } | |
14823 | ||
14824 | ||
14825 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14826 | PyObject *resultobj; | |
14827 | wxToolBar *result; | |
14828 | char *kwnames[] = { | |
14829 | NULL | |
14830 | }; | |
14831 | ||
14832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
14833 | { | |
14834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14835 | result = (wxToolBar *)new wxToolBar(); | |
14836 | ||
14837 | wxPyEndAllowThreads(__tstate); | |
14838 | if (PyErr_Occurred()) SWIG_fail; | |
14839 | } | |
14840 | { | |
14841 | resultobj = wxPyMake_wxObject(result); | |
14842 | } | |
14843 | return resultobj; | |
14844 | fail: | |
14845 | return NULL; | |
14846 | } | |
14847 | ||
14848 | ||
14849 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14850 | PyObject *resultobj; | |
14851 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
14852 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 14853 | int arg3 ; |
d14a1e28 RD |
14854 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14855 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14856 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14857 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14858 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
14859 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
14860 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14861 | bool result; | |
14862 | wxPoint temp4 ; | |
14863 | wxSize temp5 ; | |
e811c8ce | 14864 | bool temp7 = False ; |
d14a1e28 RD |
14865 | PyObject * obj0 = 0 ; |
14866 | PyObject * obj1 = 0 ; | |
14867 | PyObject * obj3 = 0 ; | |
14868 | PyObject * obj4 = 0 ; | |
14869 | PyObject * obj6 = 0 ; | |
14870 | char *kwnames[] = { | |
14871 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14872 | }; | |
14873 | ||
14874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:ToolBar_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
14875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14876 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14877 | if (obj3) { | |
14878 | { | |
14879 | arg4 = &temp4; | |
14880 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14881 | } | |
14882 | } | |
14883 | if (obj4) { | |
14884 | { | |
14885 | arg5 = &temp5; | |
14886 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14887 | } | |
14888 | } | |
14889 | if (obj6) { | |
14890 | { | |
14891 | arg7 = wxString_in_helper(obj6); | |
14892 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 14893 | temp7 = True; |
d14a1e28 RD |
14894 | } |
14895 | } | |
14896 | { | |
14897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14898 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14899 | ||
14900 | wxPyEndAllowThreads(__tstate); | |
14901 | if (PyErr_Occurred()) SWIG_fail; | |
14902 | } | |
14903 | resultobj = PyInt_FromLong((long)result); | |
14904 | { | |
14905 | if (temp7) | |
14906 | delete arg7; | |
14907 | } | |
14908 | return resultobj; | |
14909 | fail: | |
14910 | { | |
14911 | if (temp7) | |
14912 | delete arg7; | |
14913 | } | |
14914 | return NULL; | |
14915 | } | |
14916 | ||
14917 | ||
14918 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14919 | PyObject *resultobj; | |
14920 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
14921 | int arg2 ; |
14922 | int arg3 ; | |
d14a1e28 RD |
14923 | wxToolBarToolBase *result; |
14924 | PyObject * obj0 = 0 ; | |
14925 | char *kwnames[] = { | |
14926 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14927 | }; | |
14928 | ||
14929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBar_FindToolForPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14931 | { | |
14932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14933 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
14934 | ||
14935 | wxPyEndAllowThreads(__tstate); | |
14936 | if (PyErr_Occurred()) SWIG_fail; | |
14937 | } | |
14938 | { | |
14939 | resultobj = wxPyMake_wxObject(result); | |
14940 | } | |
14941 | return resultobj; | |
14942 | fail: | |
14943 | return NULL; | |
14944 | } | |
14945 | ||
14946 | ||
14947 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
14948 | PyObject *obj; | |
14949 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14950 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
14951 | Py_INCREF(obj); | |
14952 | return Py_BuildValue((char *)""); | |
14953 | } | |
14954 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14955 | PyObject *resultobj; | |
14956 | wxColour const &arg1_defvalue = wxNullColour ; | |
14957 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
14958 | wxColour const &arg2_defvalue = wxNullColour ; | |
14959 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
14960 | wxFont const &arg3_defvalue = wxNullFont ; | |
14961 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
14962 | wxListItemAttr *result; | |
14963 | wxColour temp1 ; | |
14964 | wxColour temp2 ; | |
14965 | PyObject * obj0 = 0 ; | |
14966 | PyObject * obj1 = 0 ; | |
14967 | PyObject * obj2 = 0 ; | |
14968 | char *kwnames[] = { | |
14969 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
14970 | }; | |
14971 | ||
14972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14973 | if (obj0) { | |
14974 | { | |
14975 | arg1 = &temp1; | |
14976 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
14977 | } | |
14978 | } | |
14979 | if (obj1) { | |
14980 | { | |
14981 | arg2 = &temp2; | |
14982 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14983 | } | |
14984 | } | |
14985 | if (obj2) { | |
14986 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14987 | if (arg3 == NULL) { | |
14988 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14989 | } | |
14990 | } | |
14991 | { | |
14992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14993 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
14994 | ||
14995 | wxPyEndAllowThreads(__tstate); | |
14996 | if (PyErr_Occurred()) SWIG_fail; | |
14997 | } | |
14998 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
14999 | return resultobj; | |
15000 | fail: | |
15001 | return NULL; | |
15002 | } | |
15003 | ||
15004 | ||
15005 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15006 | PyObject *resultobj; | |
15007 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15008 | wxColour *arg2 = 0 ; | |
15009 | wxColour temp2 ; | |
15010 | PyObject * obj0 = 0 ; | |
15011 | PyObject * obj1 = 0 ; | |
15012 | char *kwnames[] = { | |
15013 | (char *) "self",(char *) "colText", NULL | |
15014 | }; | |
15015 | ||
15016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15018 | { | |
15019 | arg2 = &temp2; | |
15020 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15021 | } | |
15022 | { | |
15023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15024 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
15025 | ||
15026 | wxPyEndAllowThreads(__tstate); | |
15027 | if (PyErr_Occurred()) SWIG_fail; | |
15028 | } | |
15029 | Py_INCREF(Py_None); resultobj = Py_None; | |
15030 | return resultobj; | |
15031 | fail: | |
15032 | return NULL; | |
15033 | } | |
15034 | ||
15035 | ||
15036 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15037 | PyObject *resultobj; | |
15038 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15039 | wxColour *arg2 = 0 ; | |
15040 | wxColour temp2 ; | |
15041 | PyObject * obj0 = 0 ; | |
15042 | PyObject * obj1 = 0 ; | |
15043 | char *kwnames[] = { | |
15044 | (char *) "self",(char *) "colBack", NULL | |
15045 | }; | |
15046 | ||
15047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15049 | { | |
15050 | arg2 = &temp2; | |
15051 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15052 | } | |
15053 | { | |
15054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15055 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
15056 | ||
15057 | wxPyEndAllowThreads(__tstate); | |
15058 | if (PyErr_Occurred()) SWIG_fail; | |
15059 | } | |
15060 | Py_INCREF(Py_None); resultobj = Py_None; | |
15061 | return resultobj; | |
15062 | fail: | |
15063 | return NULL; | |
15064 | } | |
15065 | ||
15066 | ||
15067 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15068 | PyObject *resultobj; | |
15069 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15070 | wxFont *arg2 = 0 ; | |
15071 | PyObject * obj0 = 0 ; | |
15072 | PyObject * obj1 = 0 ; | |
15073 | char *kwnames[] = { | |
15074 | (char *) "self",(char *) "font", NULL | |
15075 | }; | |
15076 | ||
15077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15079 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15080 | if (arg2 == NULL) { | |
15081 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15082 | } | |
15083 | { | |
15084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15085 | (arg1)->SetFont((wxFont const &)*arg2); | |
15086 | ||
15087 | wxPyEndAllowThreads(__tstate); | |
15088 | if (PyErr_Occurred()) SWIG_fail; | |
15089 | } | |
15090 | Py_INCREF(Py_None); resultobj = Py_None; | |
15091 | return resultobj; | |
15092 | fail: | |
15093 | return NULL; | |
15094 | } | |
15095 | ||
15096 | ||
15097 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15098 | PyObject *resultobj; | |
15099 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15100 | bool result; | |
15101 | PyObject * obj0 = 0 ; | |
15102 | char *kwnames[] = { | |
15103 | (char *) "self", NULL | |
15104 | }; | |
15105 | ||
15106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15108 | { | |
15109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15110 | result = (bool)(arg1)->HasTextColour(); | |
15111 | ||
15112 | wxPyEndAllowThreads(__tstate); | |
15113 | if (PyErr_Occurred()) SWIG_fail; | |
15114 | } | |
15115 | resultobj = PyInt_FromLong((long)result); | |
15116 | return resultobj; | |
15117 | fail: | |
15118 | return NULL; | |
15119 | } | |
15120 | ||
15121 | ||
15122 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15123 | PyObject *resultobj; | |
15124 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15125 | bool result; | |
15126 | PyObject * obj0 = 0 ; | |
15127 | char *kwnames[] = { | |
15128 | (char *) "self", NULL | |
15129 | }; | |
15130 | ||
15131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15133 | { | |
15134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15135 | result = (bool)(arg1)->HasBackgroundColour(); | |
15136 | ||
15137 | wxPyEndAllowThreads(__tstate); | |
15138 | if (PyErr_Occurred()) SWIG_fail; | |
15139 | } | |
15140 | resultobj = PyInt_FromLong((long)result); | |
15141 | return resultobj; | |
15142 | fail: | |
15143 | return NULL; | |
15144 | } | |
15145 | ||
15146 | ||
15147 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15148 | PyObject *resultobj; | |
15149 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15150 | bool result; | |
15151 | PyObject * obj0 = 0 ; | |
15152 | char *kwnames[] = { | |
15153 | (char *) "self", NULL | |
15154 | }; | |
15155 | ||
15156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
15157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15158 | { | |
15159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15160 | result = (bool)(arg1)->HasFont(); | |
15161 | ||
15162 | wxPyEndAllowThreads(__tstate); | |
15163 | if (PyErr_Occurred()) SWIG_fail; | |
15164 | } | |
15165 | resultobj = PyInt_FromLong((long)result); | |
15166 | return resultobj; | |
15167 | fail: | |
15168 | return NULL; | |
15169 | } | |
15170 | ||
15171 | ||
15172 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15173 | PyObject *resultobj; | |
15174 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15175 | wxColour result; | |
15176 | PyObject * obj0 = 0 ; | |
15177 | char *kwnames[] = { | |
15178 | (char *) "self", NULL | |
15179 | }; | |
15180 | ||
15181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15183 | { | |
15184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15185 | result = (arg1)->GetTextColour(); | |
15186 | ||
15187 | wxPyEndAllowThreads(__tstate); | |
15188 | if (PyErr_Occurred()) SWIG_fail; | |
15189 | } | |
15190 | { | |
15191 | wxColour * resultptr; | |
15192 | resultptr = new wxColour((wxColour &) result); | |
15193 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15194 | } | |
15195 | return resultobj; | |
15196 | fail: | |
15197 | return NULL; | |
15198 | } | |
15199 | ||
15200 | ||
15201 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15202 | PyObject *resultobj; | |
15203 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15204 | wxColour result; | |
15205 | PyObject * obj0 = 0 ; | |
15206 | char *kwnames[] = { | |
15207 | (char *) "self", NULL | |
15208 | }; | |
15209 | ||
15210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15212 | { | |
15213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15214 | result = (arg1)->GetBackgroundColour(); | |
15215 | ||
15216 | wxPyEndAllowThreads(__tstate); | |
15217 | if (PyErr_Occurred()) SWIG_fail; | |
15218 | } | |
15219 | { | |
15220 | wxColour * resultptr; | |
15221 | resultptr = new wxColour((wxColour &) result); | |
15222 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15223 | } | |
15224 | return resultobj; | |
15225 | fail: | |
15226 | return NULL; | |
15227 | } | |
15228 | ||
15229 | ||
15230 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15231 | PyObject *resultobj; | |
15232 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15233 | wxFont result; | |
15234 | PyObject * obj0 = 0 ; | |
15235 | char *kwnames[] = { | |
15236 | (char *) "self", NULL | |
15237 | }; | |
15238 | ||
15239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
15240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15241 | { | |
15242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15243 | result = (arg1)->GetFont(); | |
15244 | ||
15245 | wxPyEndAllowThreads(__tstate); | |
15246 | if (PyErr_Occurred()) SWIG_fail; | |
15247 | } | |
15248 | { | |
15249 | wxFont * resultptr; | |
15250 | resultptr = new wxFont((wxFont &) result); | |
15251 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
15252 | } | |
15253 | return resultobj; | |
15254 | fail: | |
15255 | return NULL; | |
15256 | } | |
15257 | ||
15258 | ||
15259 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15260 | PyObject *resultobj; | |
15261 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15262 | PyObject * obj0 = 0 ; | |
15263 | char *kwnames[] = { | |
15264 | (char *) "self", NULL | |
15265 | }; | |
15266 | ||
15267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
15268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15269 | { | |
15270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15271 | wxListItemAttr_Destroy(arg1); | |
15272 | ||
15273 | wxPyEndAllowThreads(__tstate); | |
15274 | if (PyErr_Occurred()) SWIG_fail; | |
15275 | } | |
15276 | Py_INCREF(Py_None); resultobj = Py_None; | |
15277 | return resultobj; | |
15278 | fail: | |
15279 | return NULL; | |
15280 | } | |
15281 | ||
15282 | ||
15283 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
15284 | PyObject *obj; | |
15285 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15286 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
15287 | Py_INCREF(obj); | |
15288 | return Py_BuildValue((char *)""); | |
15289 | } | |
15290 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15291 | PyObject *resultobj; | |
15292 | wxListItem *result; | |
15293 | char *kwnames[] = { | |
15294 | NULL | |
15295 | }; | |
15296 | ||
15297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
15298 | { | |
15299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15300 | result = (wxListItem *)new wxListItem(); | |
15301 | ||
15302 | wxPyEndAllowThreads(__tstate); | |
15303 | if (PyErr_Occurred()) SWIG_fail; | |
15304 | } | |
15305 | { | |
15306 | resultobj = wxPyMake_wxObject(result); | |
15307 | } | |
15308 | return resultobj; | |
15309 | fail: | |
15310 | return NULL; | |
15311 | } | |
15312 | ||
15313 | ||
15314 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15315 | PyObject *resultobj; | |
15316 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15317 | PyObject * obj0 = 0 ; | |
15318 | char *kwnames[] = { | |
15319 | (char *) "self", NULL | |
15320 | }; | |
15321 | ||
15322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
15323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15324 | { | |
15325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15326 | delete arg1; | |
15327 | ||
15328 | wxPyEndAllowThreads(__tstate); | |
15329 | if (PyErr_Occurred()) SWIG_fail; | |
15330 | } | |
15331 | Py_INCREF(Py_None); resultobj = Py_None; | |
15332 | return resultobj; | |
15333 | fail: | |
15334 | return NULL; | |
15335 | } | |
15336 | ||
15337 | ||
15338 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15339 | PyObject *resultobj; | |
15340 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15341 | PyObject * obj0 = 0 ; | |
15342 | char *kwnames[] = { | |
15343 | (char *) "self", NULL | |
15344 | }; | |
15345 | ||
15346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
15347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15348 | { | |
15349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15350 | (arg1)->Clear(); | |
15351 | ||
15352 | wxPyEndAllowThreads(__tstate); | |
15353 | if (PyErr_Occurred()) SWIG_fail; | |
15354 | } | |
15355 | Py_INCREF(Py_None); resultobj = Py_None; | |
15356 | return resultobj; | |
15357 | fail: | |
15358 | return NULL; | |
15359 | } | |
15360 | ||
15361 | ||
15362 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15363 | PyObject *resultobj; | |
15364 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15365 | PyObject * obj0 = 0 ; | |
15366 | char *kwnames[] = { | |
15367 | (char *) "self", NULL | |
15368 | }; | |
15369 | ||
15370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
15371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15372 | { | |
15373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15374 | (arg1)->ClearAttributes(); | |
15375 | ||
15376 | wxPyEndAllowThreads(__tstate); | |
15377 | if (PyErr_Occurred()) SWIG_fail; | |
15378 | } | |
15379 | Py_INCREF(Py_None); resultobj = Py_None; | |
15380 | return resultobj; | |
15381 | fail: | |
15382 | return NULL; | |
15383 | } | |
15384 | ||
15385 | ||
15386 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15387 | PyObject *resultobj; | |
15388 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15389 | long arg2 ; | |
15390 | PyObject * obj0 = 0 ; | |
15391 | char *kwnames[] = { | |
15392 | (char *) "self",(char *) "mask", NULL | |
15393 | }; | |
15394 | ||
15395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetMask",kwnames,&obj0,&arg2)) goto fail; | |
15396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15397 | { | |
15398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15399 | (arg1)->SetMask(arg2); | |
15400 | ||
15401 | wxPyEndAllowThreads(__tstate); | |
15402 | if (PyErr_Occurred()) SWIG_fail; | |
15403 | } | |
15404 | Py_INCREF(Py_None); resultobj = Py_None; | |
15405 | return resultobj; | |
15406 | fail: | |
15407 | return NULL; | |
15408 | } | |
15409 | ||
15410 | ||
15411 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15412 | PyObject *resultobj; | |
15413 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15414 | long arg2 ; | |
15415 | PyObject * obj0 = 0 ; | |
15416 | char *kwnames[] = { | |
15417 | (char *) "self",(char *) "id", NULL | |
15418 | }; | |
15419 | ||
15420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetId",kwnames,&obj0,&arg2)) goto fail; | |
15421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15422 | { | |
15423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15424 | (arg1)->SetId(arg2); | |
15425 | ||
15426 | wxPyEndAllowThreads(__tstate); | |
15427 | if (PyErr_Occurred()) SWIG_fail; | |
15428 | } | |
15429 | Py_INCREF(Py_None); resultobj = Py_None; | |
15430 | return resultobj; | |
15431 | fail: | |
15432 | return NULL; | |
15433 | } | |
15434 | ||
15435 | ||
15436 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15437 | PyObject *resultobj; | |
15438 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15439 | int arg2 ; | |
15440 | PyObject * obj0 = 0 ; | |
15441 | char *kwnames[] = { | |
15442 | (char *) "self",(char *) "col", NULL | |
15443 | }; | |
15444 | ||
15445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetColumn",kwnames,&obj0,&arg2)) goto fail; | |
15446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15447 | { | |
15448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15449 | (arg1)->SetColumn(arg2); | |
15450 | ||
15451 | wxPyEndAllowThreads(__tstate); | |
15452 | if (PyErr_Occurred()) SWIG_fail; | |
15453 | } | |
15454 | Py_INCREF(Py_None); resultobj = Py_None; | |
15455 | return resultobj; | |
15456 | fail: | |
15457 | return NULL; | |
15458 | } | |
15459 | ||
15460 | ||
15461 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15462 | PyObject *resultobj; | |
15463 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15464 | long arg2 ; | |
15465 | PyObject * obj0 = 0 ; | |
15466 | char *kwnames[] = { | |
15467 | (char *) "self",(char *) "state", NULL | |
15468 | }; | |
15469 | ||
15470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetState",kwnames,&obj0,&arg2)) goto fail; | |
15471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15472 | { | |
15473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15474 | (arg1)->SetState(arg2); | |
15475 | ||
15476 | wxPyEndAllowThreads(__tstate); | |
15477 | if (PyErr_Occurred()) SWIG_fail; | |
15478 | } | |
15479 | Py_INCREF(Py_None); resultobj = Py_None; | |
15480 | return resultobj; | |
15481 | fail: | |
15482 | return NULL; | |
15483 | } | |
15484 | ||
15485 | ||
15486 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15487 | PyObject *resultobj; | |
15488 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15489 | long arg2 ; | |
15490 | PyObject * obj0 = 0 ; | |
15491 | char *kwnames[] = { | |
15492 | (char *) "self",(char *) "stateMask", NULL | |
15493 | }; | |
15494 | ||
15495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetStateMask",kwnames,&obj0,&arg2)) goto fail; | |
15496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15497 | { | |
15498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15499 | (arg1)->SetStateMask(arg2); | |
15500 | ||
15501 | wxPyEndAllowThreads(__tstate); | |
15502 | if (PyErr_Occurred()) SWIG_fail; | |
15503 | } | |
15504 | Py_INCREF(Py_None); resultobj = Py_None; | |
15505 | return resultobj; | |
15506 | fail: | |
15507 | return NULL; | |
15508 | } | |
15509 | ||
15510 | ||
15511 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15512 | PyObject *resultobj; | |
15513 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15514 | wxString *arg2 = 0 ; | |
e811c8ce | 15515 | bool temp2 = False ; |
d14a1e28 RD |
15516 | PyObject * obj0 = 0 ; |
15517 | PyObject * obj1 = 0 ; | |
15518 | char *kwnames[] = { | |
15519 | (char *) "self",(char *) "text", NULL | |
15520 | }; | |
15521 | ||
15522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15524 | { | |
15525 | arg2 = wxString_in_helper(obj1); | |
15526 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15527 | temp2 = True; |
d14a1e28 RD |
15528 | } |
15529 | { | |
15530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15531 | (arg1)->SetText((wxString const &)*arg2); | |
15532 | ||
15533 | wxPyEndAllowThreads(__tstate); | |
15534 | if (PyErr_Occurred()) SWIG_fail; | |
15535 | } | |
15536 | Py_INCREF(Py_None); resultobj = Py_None; | |
15537 | { | |
15538 | if (temp2) | |
15539 | delete arg2; | |
15540 | } | |
15541 | return resultobj; | |
15542 | fail: | |
15543 | { | |
15544 | if (temp2) | |
15545 | delete arg2; | |
15546 | } | |
15547 | return NULL; | |
15548 | } | |
15549 | ||
15550 | ||
15551 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15552 | PyObject *resultobj; | |
15553 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15554 | int arg2 ; | |
15555 | PyObject * obj0 = 0 ; | |
15556 | char *kwnames[] = { | |
15557 | (char *) "self",(char *) "image", NULL | |
15558 | }; | |
15559 | ||
15560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetImage",kwnames,&obj0,&arg2)) goto fail; | |
15561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15562 | { | |
15563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15564 | (arg1)->SetImage(arg2); | |
15565 | ||
15566 | wxPyEndAllowThreads(__tstate); | |
15567 | if (PyErr_Occurred()) SWIG_fail; | |
15568 | } | |
15569 | Py_INCREF(Py_None); resultobj = Py_None; | |
15570 | return resultobj; | |
15571 | fail: | |
15572 | return NULL; | |
15573 | } | |
15574 | ||
15575 | ||
15576 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15577 | PyObject *resultobj; | |
15578 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15579 | long arg2 ; | |
15580 | PyObject * obj0 = 0 ; | |
15581 | char *kwnames[] = { | |
15582 | (char *) "self",(char *) "data", NULL | |
15583 | }; | |
15584 | ||
15585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetData",kwnames,&obj0,&arg2)) goto fail; | |
15586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15587 | { | |
15588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15589 | (arg1)->SetData(arg2); | |
15590 | ||
15591 | wxPyEndAllowThreads(__tstate); | |
15592 | if (PyErr_Occurred()) SWIG_fail; | |
15593 | } | |
15594 | Py_INCREF(Py_None); resultobj = Py_None; | |
15595 | return resultobj; | |
15596 | fail: | |
15597 | return NULL; | |
15598 | } | |
15599 | ||
15600 | ||
15601 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15602 | PyObject *resultobj; | |
15603 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15604 | int arg2 ; | |
15605 | PyObject * obj0 = 0 ; | |
15606 | char *kwnames[] = { | |
15607 | (char *) "self",(char *) "width", NULL | |
15608 | }; | |
15609 | ||
15610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
15611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15612 | { | |
15613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15614 | (arg1)->SetWidth(arg2); | |
15615 | ||
15616 | wxPyEndAllowThreads(__tstate); | |
15617 | if (PyErr_Occurred()) SWIG_fail; | |
15618 | } | |
15619 | Py_INCREF(Py_None); resultobj = Py_None; | |
15620 | return resultobj; | |
15621 | fail: | |
15622 | return NULL; | |
15623 | } | |
15624 | ||
15625 | ||
15626 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15627 | PyObject *resultobj; | |
15628 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15629 | int arg2 ; | |
15630 | PyObject * obj0 = 0 ; | |
15631 | char *kwnames[] = { | |
15632 | (char *) "self",(char *) "align", NULL | |
15633 | }; | |
15634 | ||
15635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetAlign",kwnames,&obj0,&arg2)) goto fail; | |
15636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15637 | { | |
15638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15639 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
15640 | ||
15641 | wxPyEndAllowThreads(__tstate); | |
15642 | if (PyErr_Occurred()) SWIG_fail; | |
15643 | } | |
15644 | Py_INCREF(Py_None); resultobj = Py_None; | |
15645 | return resultobj; | |
15646 | fail: | |
15647 | return NULL; | |
15648 | } | |
15649 | ||
15650 | ||
15651 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15652 | PyObject *resultobj; | |
15653 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15654 | wxColour *arg2 = 0 ; | |
15655 | wxColour temp2 ; | |
15656 | PyObject * obj0 = 0 ; | |
15657 | PyObject * obj1 = 0 ; | |
15658 | char *kwnames[] = { | |
15659 | (char *) "self",(char *) "colText", NULL | |
15660 | }; | |
15661 | ||
15662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15664 | { | |
15665 | arg2 = &temp2; | |
15666 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15667 | } | |
15668 | { | |
15669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15670 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
15671 | ||
15672 | wxPyEndAllowThreads(__tstate); | |
15673 | if (PyErr_Occurred()) SWIG_fail; | |
15674 | } | |
15675 | Py_INCREF(Py_None); resultobj = Py_None; | |
15676 | return resultobj; | |
15677 | fail: | |
15678 | return NULL; | |
15679 | } | |
15680 | ||
15681 | ||
15682 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15683 | PyObject *resultobj; | |
15684 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15685 | wxColour *arg2 = 0 ; | |
15686 | wxColour temp2 ; | |
15687 | PyObject * obj0 = 0 ; | |
15688 | PyObject * obj1 = 0 ; | |
15689 | char *kwnames[] = { | |
15690 | (char *) "self",(char *) "colBack", NULL | |
15691 | }; | |
15692 | ||
15693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15695 | { | |
15696 | arg2 = &temp2; | |
15697 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15698 | } | |
15699 | { | |
15700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15701 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
15702 | ||
15703 | wxPyEndAllowThreads(__tstate); | |
15704 | if (PyErr_Occurred()) SWIG_fail; | |
15705 | } | |
15706 | Py_INCREF(Py_None); resultobj = Py_None; | |
15707 | return resultobj; | |
15708 | fail: | |
15709 | return NULL; | |
15710 | } | |
15711 | ||
15712 | ||
15713 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15714 | PyObject *resultobj; | |
15715 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15716 | wxFont *arg2 = 0 ; | |
15717 | PyObject * obj0 = 0 ; | |
15718 | PyObject * obj1 = 0 ; | |
15719 | char *kwnames[] = { | |
15720 | (char *) "self",(char *) "font", NULL | |
15721 | }; | |
15722 | ||
15723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15725 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15726 | if (arg2 == NULL) { | |
15727 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15728 | } | |
15729 | { | |
15730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15731 | (arg1)->SetFont((wxFont const &)*arg2); | |
15732 | ||
15733 | wxPyEndAllowThreads(__tstate); | |
15734 | if (PyErr_Occurred()) SWIG_fail; | |
15735 | } | |
15736 | Py_INCREF(Py_None); resultobj = Py_None; | |
15737 | return resultobj; | |
15738 | fail: | |
15739 | return NULL; | |
15740 | } | |
15741 | ||
15742 | ||
15743 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15744 | PyObject *resultobj; | |
15745 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15746 | long result; | |
15747 | PyObject * obj0 = 0 ; | |
15748 | char *kwnames[] = { | |
15749 | (char *) "self", NULL | |
15750 | }; | |
15751 | ||
15752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
15753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15754 | { | |
15755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15756 | result = (long)(arg1)->GetMask(); | |
15757 | ||
15758 | wxPyEndAllowThreads(__tstate); | |
15759 | if (PyErr_Occurred()) SWIG_fail; | |
15760 | } | |
15761 | resultobj = PyInt_FromLong((long)result); | |
15762 | return resultobj; | |
15763 | fail: | |
15764 | return NULL; | |
15765 | } | |
15766 | ||
15767 | ||
15768 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15769 | PyObject *resultobj; | |
15770 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15771 | long result; | |
15772 | PyObject * obj0 = 0 ; | |
15773 | char *kwnames[] = { | |
15774 | (char *) "self", NULL | |
15775 | }; | |
15776 | ||
15777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
15778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15779 | { | |
15780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15781 | result = (long)(arg1)->GetId(); | |
15782 | ||
15783 | wxPyEndAllowThreads(__tstate); | |
15784 | if (PyErr_Occurred()) SWIG_fail; | |
15785 | } | |
15786 | resultobj = PyInt_FromLong((long)result); | |
15787 | return resultobj; | |
15788 | fail: | |
15789 | return NULL; | |
15790 | } | |
15791 | ||
15792 | ||
15793 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15794 | PyObject *resultobj; | |
15795 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15796 | int result; | |
15797 | PyObject * obj0 = 0 ; | |
15798 | char *kwnames[] = { | |
15799 | (char *) "self", NULL | |
15800 | }; | |
15801 | ||
15802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
15803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15804 | { | |
15805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15806 | result = (int)(arg1)->GetColumn(); | |
15807 | ||
15808 | wxPyEndAllowThreads(__tstate); | |
15809 | if (PyErr_Occurred()) SWIG_fail; | |
15810 | } | |
15811 | resultobj = PyInt_FromLong((long)result); | |
15812 | return resultobj; | |
15813 | fail: | |
15814 | return NULL; | |
15815 | } | |
15816 | ||
15817 | ||
15818 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15819 | PyObject *resultobj; | |
15820 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15821 | long result; | |
15822 | PyObject * obj0 = 0 ; | |
15823 | char *kwnames[] = { | |
15824 | (char *) "self", NULL | |
15825 | }; | |
15826 | ||
15827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
15828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15829 | { | |
15830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15831 | result = (long)(arg1)->GetState(); | |
15832 | ||
15833 | wxPyEndAllowThreads(__tstate); | |
15834 | if (PyErr_Occurred()) SWIG_fail; | |
15835 | } | |
15836 | resultobj = PyInt_FromLong((long)result); | |
15837 | return resultobj; | |
15838 | fail: | |
15839 | return NULL; | |
15840 | } | |
15841 | ||
15842 | ||
15843 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15844 | PyObject *resultobj; | |
15845 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15846 | wxString *result; | |
15847 | PyObject * obj0 = 0 ; | |
15848 | char *kwnames[] = { | |
15849 | (char *) "self", NULL | |
15850 | }; | |
15851 | ||
15852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
15853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15854 | { | |
15855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15856 | { | |
15857 | wxString const &_result_ref = (arg1)->GetText(); | |
15858 | result = (wxString *) &_result_ref; | |
15859 | } | |
15860 | ||
15861 | wxPyEndAllowThreads(__tstate); | |
15862 | if (PyErr_Occurred()) SWIG_fail; | |
15863 | } | |
15864 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
15865 | return resultobj; | |
15866 | fail: | |
15867 | return NULL; | |
15868 | } | |
15869 | ||
15870 | ||
15871 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15872 | PyObject *resultobj; | |
15873 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15874 | int result; | |
15875 | PyObject * obj0 = 0 ; | |
15876 | char *kwnames[] = { | |
15877 | (char *) "self", NULL | |
15878 | }; | |
15879 | ||
15880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
15881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15882 | { | |
15883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15884 | result = (int)(arg1)->GetImage(); | |
15885 | ||
15886 | wxPyEndAllowThreads(__tstate); | |
15887 | if (PyErr_Occurred()) SWIG_fail; | |
15888 | } | |
15889 | resultobj = PyInt_FromLong((long)result); | |
15890 | return resultobj; | |
15891 | fail: | |
15892 | return NULL; | |
15893 | } | |
15894 | ||
15895 | ||
15896 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15897 | PyObject *resultobj; | |
15898 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15899 | long result; | |
15900 | PyObject * obj0 = 0 ; | |
15901 | char *kwnames[] = { | |
15902 | (char *) "self", NULL | |
15903 | }; | |
15904 | ||
15905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
15906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15907 | { | |
15908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15909 | result = (long)(arg1)->GetData(); | |
15910 | ||
15911 | wxPyEndAllowThreads(__tstate); | |
15912 | if (PyErr_Occurred()) SWIG_fail; | |
15913 | } | |
15914 | resultobj = PyInt_FromLong((long)result); | |
15915 | return resultobj; | |
15916 | fail: | |
15917 | return NULL; | |
15918 | } | |
15919 | ||
15920 | ||
15921 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15922 | PyObject *resultobj; | |
15923 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15924 | int result; | |
15925 | PyObject * obj0 = 0 ; | |
15926 | char *kwnames[] = { | |
15927 | (char *) "self", NULL | |
15928 | }; | |
15929 | ||
15930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
15931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15932 | { | |
15933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15934 | result = (int)(arg1)->GetWidth(); | |
15935 | ||
15936 | wxPyEndAllowThreads(__tstate); | |
15937 | if (PyErr_Occurred()) SWIG_fail; | |
15938 | } | |
15939 | resultobj = PyInt_FromLong((long)result); | |
15940 | return resultobj; | |
15941 | fail: | |
15942 | return NULL; | |
15943 | } | |
15944 | ||
15945 | ||
15946 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15947 | PyObject *resultobj; | |
15948 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15949 | int result; | |
15950 | PyObject * obj0 = 0 ; | |
15951 | char *kwnames[] = { | |
15952 | (char *) "self", NULL | |
15953 | }; | |
15954 | ||
15955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
15956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15957 | { | |
15958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15959 | result = (int)(arg1)->GetAlign(); | |
15960 | ||
15961 | wxPyEndAllowThreads(__tstate); | |
15962 | if (PyErr_Occurred()) SWIG_fail; | |
15963 | } | |
15964 | resultobj = PyInt_FromLong((long)result); | |
15965 | return resultobj; | |
15966 | fail: | |
15967 | return NULL; | |
15968 | } | |
15969 | ||
15970 | ||
15971 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15972 | PyObject *resultobj; | |
15973 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15974 | wxListItemAttr *result; | |
15975 | PyObject * obj0 = 0 ; | |
15976 | char *kwnames[] = { | |
15977 | (char *) "self", NULL | |
15978 | }; | |
15979 | ||
15980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
15981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15982 | { | |
15983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15984 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
15985 | ||
15986 | wxPyEndAllowThreads(__tstate); | |
15987 | if (PyErr_Occurred()) SWIG_fail; | |
15988 | } | |
15989 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
15990 | return resultobj; | |
15991 | fail: | |
15992 | return NULL; | |
15993 | } | |
15994 | ||
15995 | ||
15996 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15997 | PyObject *resultobj; | |
15998 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15999 | bool result; | |
16000 | PyObject * obj0 = 0 ; | |
16001 | char *kwnames[] = { | |
16002 | (char *) "self", NULL | |
16003 | }; | |
16004 | ||
16005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
16006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16007 | { | |
16008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16009 | result = (bool)(arg1)->HasAttributes(); | |
16010 | ||
16011 | wxPyEndAllowThreads(__tstate); | |
16012 | if (PyErr_Occurred()) SWIG_fail; | |
16013 | } | |
16014 | resultobj = PyInt_FromLong((long)result); | |
16015 | return resultobj; | |
16016 | fail: | |
16017 | return NULL; | |
16018 | } | |
16019 | ||
16020 | ||
16021 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16022 | PyObject *resultobj; | |
16023 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16024 | wxColour result; | |
16025 | PyObject * obj0 = 0 ; | |
16026 | char *kwnames[] = { | |
16027 | (char *) "self", NULL | |
16028 | }; | |
16029 | ||
16030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
16031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16032 | { | |
16033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16034 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
16035 | ||
16036 | wxPyEndAllowThreads(__tstate); | |
16037 | if (PyErr_Occurred()) SWIG_fail; | |
16038 | } | |
16039 | { | |
16040 | wxColour * resultptr; | |
16041 | resultptr = new wxColour((wxColour &) result); | |
16042 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16043 | } | |
16044 | return resultobj; | |
16045 | fail: | |
16046 | return NULL; | |
16047 | } | |
16048 | ||
16049 | ||
16050 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16051 | PyObject *resultobj; | |
16052 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16053 | wxColour result; | |
16054 | PyObject * obj0 = 0 ; | |
16055 | char *kwnames[] = { | |
16056 | (char *) "self", NULL | |
16057 | }; | |
16058 | ||
16059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
16060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16061 | { | |
16062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16063 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
16064 | ||
16065 | wxPyEndAllowThreads(__tstate); | |
16066 | if (PyErr_Occurred()) SWIG_fail; | |
16067 | } | |
16068 | { | |
16069 | wxColour * resultptr; | |
16070 | resultptr = new wxColour((wxColour &) result); | |
16071 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16072 | } | |
16073 | return resultobj; | |
16074 | fail: | |
16075 | return NULL; | |
16076 | } | |
16077 | ||
16078 | ||
16079 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16080 | PyObject *resultobj; | |
16081 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16082 | wxFont result; | |
16083 | PyObject * obj0 = 0 ; | |
16084 | char *kwnames[] = { | |
16085 | (char *) "self", NULL | |
16086 | }; | |
16087 | ||
16088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
16089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16090 | { | |
16091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16092 | result = ((wxListItem const *)arg1)->GetFont(); | |
16093 | ||
16094 | wxPyEndAllowThreads(__tstate); | |
16095 | if (PyErr_Occurred()) SWIG_fail; | |
16096 | } | |
16097 | { | |
16098 | wxFont * resultptr; | |
16099 | resultptr = new wxFont((wxFont &) result); | |
16100 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
16101 | } | |
16102 | return resultobj; | |
16103 | fail: | |
16104 | return NULL; | |
16105 | } | |
16106 | ||
16107 | ||
16108 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16109 | PyObject *resultobj; | |
16110 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16111 | long arg2 ; | |
16112 | PyObject * obj0 = 0 ; | |
16113 | char *kwnames[] = { | |
16114 | (char *) "self",(char *) "m_mask", NULL | |
16115 | }; | |
16116 | ||
16117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_mask_set",kwnames,&obj0,&arg2)) goto fail; | |
16118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16119 | if (arg1) (arg1)->m_mask = arg2; | |
16120 | ||
16121 | Py_INCREF(Py_None); resultobj = Py_None; | |
16122 | return resultobj; | |
16123 | fail: | |
16124 | return NULL; | |
16125 | } | |
16126 | ||
16127 | ||
16128 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16129 | PyObject *resultobj; | |
16130 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16131 | long result; | |
16132 | PyObject * obj0 = 0 ; | |
16133 | char *kwnames[] = { | |
16134 | (char *) "self", NULL | |
16135 | }; | |
16136 | ||
16137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
16138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16139 | result = (long) ((arg1)->m_mask); | |
16140 | ||
16141 | resultobj = PyInt_FromLong((long)result); | |
16142 | return resultobj; | |
16143 | fail: | |
16144 | return NULL; | |
16145 | } | |
16146 | ||
16147 | ||
16148 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16149 | PyObject *resultobj; | |
16150 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16151 | long arg2 ; | |
16152 | PyObject * obj0 = 0 ; | |
16153 | char *kwnames[] = { | |
16154 | (char *) "self",(char *) "m_itemId", NULL | |
16155 | }; | |
16156 | ||
16157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_itemId_set",kwnames,&obj0,&arg2)) goto fail; | |
16158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16159 | if (arg1) (arg1)->m_itemId = arg2; | |
16160 | ||
16161 | Py_INCREF(Py_None); resultobj = Py_None; | |
16162 | return resultobj; | |
16163 | fail: | |
16164 | return NULL; | |
16165 | } | |
16166 | ||
16167 | ||
16168 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16169 | PyObject *resultobj; | |
16170 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16171 | long result; | |
16172 | PyObject * obj0 = 0 ; | |
16173 | char *kwnames[] = { | |
16174 | (char *) "self", NULL | |
16175 | }; | |
16176 | ||
16177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
16178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16179 | result = (long) ((arg1)->m_itemId); | |
16180 | ||
16181 | resultobj = PyInt_FromLong((long)result); | |
16182 | return resultobj; | |
16183 | fail: | |
16184 | return NULL; | |
16185 | } | |
16186 | ||
16187 | ||
16188 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16189 | PyObject *resultobj; | |
16190 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16191 | int arg2 ; | |
16192 | PyObject * obj0 = 0 ; | |
16193 | char *kwnames[] = { | |
16194 | (char *) "self",(char *) "m_col", NULL | |
16195 | }; | |
16196 | ||
16197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_col_set",kwnames,&obj0,&arg2)) goto fail; | |
16198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16199 | if (arg1) (arg1)->m_col = arg2; | |
16200 | ||
16201 | Py_INCREF(Py_None); resultobj = Py_None; | |
16202 | return resultobj; | |
16203 | fail: | |
16204 | return NULL; | |
16205 | } | |
16206 | ||
16207 | ||
16208 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16209 | PyObject *resultobj; | |
16210 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16211 | int result; | |
16212 | PyObject * obj0 = 0 ; | |
16213 | char *kwnames[] = { | |
16214 | (char *) "self", NULL | |
16215 | }; | |
16216 | ||
16217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
16218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16219 | result = (int) ((arg1)->m_col); | |
16220 | ||
16221 | resultobj = PyInt_FromLong((long)result); | |
16222 | return resultobj; | |
16223 | fail: | |
16224 | return NULL; | |
16225 | } | |
16226 | ||
16227 | ||
16228 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16229 | PyObject *resultobj; | |
16230 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16231 | long arg2 ; | |
16232 | PyObject * obj0 = 0 ; | |
16233 | char *kwnames[] = { | |
16234 | (char *) "self",(char *) "m_state", NULL | |
16235 | }; | |
16236 | ||
16237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_state_set",kwnames,&obj0,&arg2)) goto fail; | |
16238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16239 | if (arg1) (arg1)->m_state = arg2; | |
16240 | ||
16241 | Py_INCREF(Py_None); resultobj = Py_None; | |
16242 | return resultobj; | |
16243 | fail: | |
16244 | return NULL; | |
16245 | } | |
16246 | ||
16247 | ||
16248 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16249 | PyObject *resultobj; | |
16250 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16251 | long result; | |
16252 | PyObject * obj0 = 0 ; | |
16253 | char *kwnames[] = { | |
16254 | (char *) "self", NULL | |
16255 | }; | |
16256 | ||
16257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
16258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16259 | result = (long) ((arg1)->m_state); | |
16260 | ||
16261 | resultobj = PyInt_FromLong((long)result); | |
16262 | return resultobj; | |
16263 | fail: | |
16264 | return NULL; | |
16265 | } | |
16266 | ||
16267 | ||
16268 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16269 | PyObject *resultobj; | |
16270 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16271 | long arg2 ; | |
16272 | PyObject * obj0 = 0 ; | |
16273 | char *kwnames[] = { | |
16274 | (char *) "self",(char *) "m_stateMask", NULL | |
16275 | }; | |
16276 | ||
16277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_stateMask_set",kwnames,&obj0,&arg2)) goto fail; | |
16278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16279 | if (arg1) (arg1)->m_stateMask = arg2; | |
16280 | ||
16281 | Py_INCREF(Py_None); resultobj = Py_None; | |
16282 | return resultobj; | |
16283 | fail: | |
16284 | return NULL; | |
16285 | } | |
16286 | ||
16287 | ||
16288 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16289 | PyObject *resultobj; | |
16290 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16291 | long result; | |
16292 | PyObject * obj0 = 0 ; | |
16293 | char *kwnames[] = { | |
16294 | (char *) "self", NULL | |
16295 | }; | |
16296 | ||
16297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
16298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16299 | result = (long) ((arg1)->m_stateMask); | |
16300 | ||
16301 | resultobj = PyInt_FromLong((long)result); | |
16302 | return resultobj; | |
16303 | fail: | |
16304 | return NULL; | |
16305 | } | |
16306 | ||
16307 | ||
16308 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16309 | PyObject *resultobj; | |
16310 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16311 | wxString arg2 ; | |
d14a1e28 RD |
16312 | PyObject * obj0 = 0 ; |
16313 | PyObject * obj1 = 0 ; | |
16314 | char *kwnames[] = { | |
16315 | (char *) "self",(char *) "m_text", NULL | |
16316 | }; | |
16317 | ||
16318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
16319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce RD |
16320 | { |
16321 | wxString* sptr = wxString_in_helper(obj1); | |
16322 | if (sptr == NULL) SWIG_fail; | |
16323 | arg2 = *sptr; | |
16324 | delete sptr; | |
16325 | } | |
d14a1e28 RD |
16326 | if (arg1) (arg1)->m_text = arg2; |
16327 | ||
16328 | Py_INCREF(Py_None); resultobj = Py_None; | |
16329 | return resultobj; | |
16330 | fail: | |
16331 | return NULL; | |
16332 | } | |
16333 | ||
16334 | ||
16335 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16336 | PyObject *resultobj; | |
16337 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16338 | wxString result; | |
16339 | PyObject * obj0 = 0 ; | |
16340 | char *kwnames[] = { | |
16341 | (char *) "self", NULL | |
16342 | }; | |
16343 | ||
16344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
16345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16346 | result = ((arg1)->m_text); | |
16347 | ||
16348 | { | |
16349 | #if wxUSE_UNICODE | |
16350 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16351 | #else | |
16352 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16353 | #endif | |
16354 | } | |
16355 | return resultobj; | |
16356 | fail: | |
16357 | return NULL; | |
16358 | } | |
16359 | ||
16360 | ||
16361 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16362 | PyObject *resultobj; | |
16363 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16364 | int arg2 ; | |
16365 | PyObject * obj0 = 0 ; | |
16366 | char *kwnames[] = { | |
16367 | (char *) "self",(char *) "m_image", NULL | |
16368 | }; | |
16369 | ||
16370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_image_set",kwnames,&obj0,&arg2)) goto fail; | |
16371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16372 | if (arg1) (arg1)->m_image = arg2; | |
16373 | ||
16374 | Py_INCREF(Py_None); resultobj = Py_None; | |
16375 | return resultobj; | |
16376 | fail: | |
16377 | return NULL; | |
16378 | } | |
16379 | ||
16380 | ||
16381 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16382 | PyObject *resultobj; | |
16383 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16384 | int result; | |
16385 | PyObject * obj0 = 0 ; | |
16386 | char *kwnames[] = { | |
16387 | (char *) "self", NULL | |
16388 | }; | |
16389 | ||
16390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
16391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16392 | result = (int) ((arg1)->m_image); | |
16393 | ||
16394 | resultobj = PyInt_FromLong((long)result); | |
16395 | return resultobj; | |
16396 | fail: | |
16397 | return NULL; | |
16398 | } | |
16399 | ||
16400 | ||
16401 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16402 | PyObject *resultobj; | |
16403 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16404 | long arg2 ; | |
16405 | PyObject * obj0 = 0 ; | |
16406 | char *kwnames[] = { | |
16407 | (char *) "self",(char *) "m_data", NULL | |
16408 | }; | |
16409 | ||
16410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_data_set",kwnames,&obj0,&arg2)) goto fail; | |
16411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16412 | if (arg1) (arg1)->m_data = arg2; | |
16413 | ||
16414 | Py_INCREF(Py_None); resultobj = Py_None; | |
16415 | return resultobj; | |
16416 | fail: | |
16417 | return NULL; | |
16418 | } | |
16419 | ||
16420 | ||
16421 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16422 | PyObject *resultobj; | |
16423 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16424 | long result; | |
16425 | PyObject * obj0 = 0 ; | |
16426 | char *kwnames[] = { | |
16427 | (char *) "self", NULL | |
16428 | }; | |
16429 | ||
16430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
16431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16432 | result = (long) ((arg1)->m_data); | |
16433 | ||
16434 | resultobj = PyInt_FromLong((long)result); | |
16435 | return resultobj; | |
16436 | fail: | |
16437 | return NULL; | |
16438 | } | |
16439 | ||
16440 | ||
16441 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16442 | PyObject *resultobj; | |
16443 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16444 | int arg2 ; | |
16445 | PyObject * obj0 = 0 ; | |
16446 | char *kwnames[] = { | |
16447 | (char *) "self",(char *) "m_format", NULL | |
16448 | }; | |
16449 | ||
16450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_format_set",kwnames,&obj0,&arg2)) goto fail; | |
16451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16452 | if (arg1) (arg1)->m_format = arg2; | |
16453 | ||
16454 | Py_INCREF(Py_None); resultobj = Py_None; | |
16455 | return resultobj; | |
16456 | fail: | |
16457 | return NULL; | |
16458 | } | |
16459 | ||
16460 | ||
16461 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16462 | PyObject *resultobj; | |
16463 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16464 | int result; | |
16465 | PyObject * obj0 = 0 ; | |
16466 | char *kwnames[] = { | |
16467 | (char *) "self", NULL | |
16468 | }; | |
16469 | ||
16470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
16471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16472 | result = (int) ((arg1)->m_format); | |
16473 | ||
16474 | resultobj = PyInt_FromLong((long)result); | |
16475 | return resultobj; | |
16476 | fail: | |
16477 | return NULL; | |
16478 | } | |
16479 | ||
16480 | ||
16481 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16482 | PyObject *resultobj; | |
16483 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16484 | int arg2 ; | |
16485 | PyObject * obj0 = 0 ; | |
16486 | char *kwnames[] = { | |
16487 | (char *) "self",(char *) "m_width", NULL | |
16488 | }; | |
16489 | ||
16490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_width_set",kwnames,&obj0,&arg2)) goto fail; | |
16491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16492 | if (arg1) (arg1)->m_width = arg2; | |
16493 | ||
16494 | Py_INCREF(Py_None); resultobj = Py_None; | |
16495 | return resultobj; | |
16496 | fail: | |
16497 | return NULL; | |
16498 | } | |
16499 | ||
16500 | ||
16501 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16502 | PyObject *resultobj; | |
16503 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16504 | int result; | |
16505 | PyObject * obj0 = 0 ; | |
16506 | char *kwnames[] = { | |
16507 | (char *) "self", NULL | |
16508 | }; | |
16509 | ||
16510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
16511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16512 | result = (int) ((arg1)->m_width); | |
16513 | ||
16514 | resultobj = PyInt_FromLong((long)result); | |
16515 | return resultobj; | |
16516 | fail: | |
16517 | return NULL; | |
16518 | } | |
16519 | ||
16520 | ||
16521 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
16522 | PyObject *obj; | |
16523 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16524 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
16525 | Py_INCREF(obj); | |
16526 | return Py_BuildValue((char *)""); | |
16527 | } | |
16528 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16529 | PyObject *resultobj; | |
16530 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16531 | int arg2 = (int) 0 ; | |
16532 | wxListEvent *result; | |
16533 | char *kwnames[] = { | |
16534 | (char *) "commandType",(char *) "id", NULL | |
16535 | }; | |
16536 | ||
16537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_ListEvent",kwnames,&arg1,&arg2)) goto fail; | |
16538 | { | |
16539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16540 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
16541 | ||
16542 | wxPyEndAllowThreads(__tstate); | |
16543 | if (PyErr_Occurred()) SWIG_fail; | |
16544 | } | |
16545 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
16546 | return resultobj; | |
16547 | fail: | |
16548 | return NULL; | |
16549 | } | |
16550 | ||
16551 | ||
16552 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16553 | PyObject *resultobj; | |
16554 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16555 | int arg2 ; | |
16556 | PyObject * obj0 = 0 ; | |
16557 | char *kwnames[] = { | |
16558 | (char *) "self",(char *) "m_code", NULL | |
16559 | }; | |
16560 | ||
16561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListEvent_m_code_set",kwnames,&obj0,&arg2)) goto fail; | |
16562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16563 | if (arg1) (arg1)->m_code = arg2; | |
16564 | ||
16565 | Py_INCREF(Py_None); resultobj = Py_None; | |
16566 | return resultobj; | |
16567 | fail: | |
16568 | return NULL; | |
16569 | } | |
16570 | ||
16571 | ||
16572 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16573 | PyObject *resultobj; | |
16574 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16575 | int result; | |
16576 | PyObject * obj0 = 0 ; | |
16577 | char *kwnames[] = { | |
16578 | (char *) "self", NULL | |
16579 | }; | |
16580 | ||
16581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
16582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16583 | result = (int) ((arg1)->m_code); | |
16584 | ||
16585 | resultobj = PyInt_FromLong((long)result); | |
16586 | return resultobj; | |
16587 | fail: | |
16588 | return NULL; | |
16589 | } | |
16590 | ||
16591 | ||
16592 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16593 | PyObject *resultobj; | |
16594 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16595 | long arg2 ; | |
16596 | PyObject * obj0 = 0 ; | |
16597 | char *kwnames[] = { | |
16598 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
16599 | }; | |
16600 | ||
16601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&arg2)) goto fail; | |
16602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16603 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
16604 | ||
16605 | Py_INCREF(Py_None); resultobj = Py_None; | |
16606 | return resultobj; | |
16607 | fail: | |
16608 | return NULL; | |
16609 | } | |
16610 | ||
16611 | ||
16612 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16613 | PyObject *resultobj; | |
16614 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16615 | long result; | |
16616 | PyObject * obj0 = 0 ; | |
16617 | char *kwnames[] = { | |
16618 | (char *) "self", NULL | |
16619 | }; | |
16620 | ||
16621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
16622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16623 | result = (long) ((arg1)->m_oldItemIndex); | |
16624 | ||
16625 | resultobj = PyInt_FromLong((long)result); | |
16626 | return resultobj; | |
16627 | fail: | |
16628 | return NULL; | |
16629 | } | |
16630 | ||
16631 | ||
16632 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16633 | PyObject *resultobj; | |
16634 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16635 | long arg2 ; | |
16636 | PyObject * obj0 = 0 ; | |
16637 | char *kwnames[] = { | |
16638 | (char *) "self",(char *) "m_itemIndex", NULL | |
16639 | }; | |
16640 | ||
16641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListEvent_m_itemIndex_set",kwnames,&obj0,&arg2)) goto fail; | |
16642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16643 | if (arg1) (arg1)->m_itemIndex = arg2; | |
16644 | ||
16645 | Py_INCREF(Py_None); resultobj = Py_None; | |
16646 | return resultobj; | |
16647 | fail: | |
16648 | return NULL; | |
16649 | } | |
16650 | ||
16651 | ||
16652 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16653 | PyObject *resultobj; | |
16654 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16655 | long result; | |
16656 | PyObject * obj0 = 0 ; | |
16657 | char *kwnames[] = { | |
16658 | (char *) "self", NULL | |
16659 | }; | |
16660 | ||
16661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
16662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16663 | result = (long) ((arg1)->m_itemIndex); | |
16664 | ||
16665 | resultobj = PyInt_FromLong((long)result); | |
16666 | return resultobj; | |
16667 | fail: | |
16668 | return NULL; | |
16669 | } | |
16670 | ||
16671 | ||
16672 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16673 | PyObject *resultobj; | |
16674 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16675 | int arg2 ; | |
16676 | PyObject * obj0 = 0 ; | |
16677 | char *kwnames[] = { | |
16678 | (char *) "self",(char *) "m_col", NULL | |
16679 | }; | |
16680 | ||
16681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListEvent_m_col_set",kwnames,&obj0,&arg2)) goto fail; | |
16682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16683 | if (arg1) (arg1)->m_col = arg2; | |
16684 | ||
16685 | Py_INCREF(Py_None); resultobj = Py_None; | |
16686 | return resultobj; | |
16687 | fail: | |
16688 | return NULL; | |
16689 | } | |
16690 | ||
16691 | ||
16692 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16693 | PyObject *resultobj; | |
16694 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16695 | int result; | |
16696 | PyObject * obj0 = 0 ; | |
16697 | char *kwnames[] = { | |
16698 | (char *) "self", NULL | |
16699 | }; | |
16700 | ||
16701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
16702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16703 | result = (int) ((arg1)->m_col); | |
16704 | ||
16705 | resultobj = PyInt_FromLong((long)result); | |
16706 | return resultobj; | |
16707 | fail: | |
16708 | return NULL; | |
16709 | } | |
16710 | ||
16711 | ||
16712 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16713 | PyObject *resultobj; | |
16714 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16715 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16716 | PyObject * obj0 = 0 ; | |
16717 | PyObject * obj1 = 0 ; | |
16718 | char *kwnames[] = { | |
16719 | (char *) "self",(char *) "m_pointDrag", NULL | |
16720 | }; | |
16721 | ||
16722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
16723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16724 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16725 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
16726 | ||
16727 | Py_INCREF(Py_None); resultobj = Py_None; | |
16728 | return resultobj; | |
16729 | fail: | |
16730 | return NULL; | |
16731 | } | |
16732 | ||
16733 | ||
16734 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16735 | PyObject *resultobj; | |
16736 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16737 | wxPoint *result; | |
16738 | PyObject * obj0 = 0 ; | |
16739 | char *kwnames[] = { | |
16740 | (char *) "self", NULL | |
16741 | }; | |
16742 | ||
16743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
16744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16745 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
16746 | ||
16747 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
16748 | return resultobj; | |
16749 | fail: | |
16750 | return NULL; | |
16751 | } | |
16752 | ||
16753 | ||
16754 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16755 | PyObject *resultobj; | |
16756 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16757 | wxListItem *result; | |
16758 | PyObject * obj0 = 0 ; | |
16759 | char *kwnames[] = { | |
16760 | (char *) "self", NULL | |
16761 | }; | |
16762 | ||
16763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
16764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16765 | result = (wxListItem *)& ((arg1)->m_item); | |
16766 | ||
16767 | { | |
16768 | resultobj = wxPyMake_wxObject(result); | |
16769 | } | |
16770 | return resultobj; | |
16771 | fail: | |
16772 | return NULL; | |
16773 | } | |
16774 | ||
16775 | ||
16776 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16777 | PyObject *resultobj; | |
16778 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16779 | int result; | |
16780 | PyObject * obj0 = 0 ; | |
16781 | char *kwnames[] = { | |
16782 | (char *) "self", NULL | |
16783 | }; | |
16784 | ||
16785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
16786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16787 | { | |
16788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16789 | result = (int)(arg1)->GetKeyCode(); | |
16790 | ||
16791 | wxPyEndAllowThreads(__tstate); | |
16792 | if (PyErr_Occurred()) SWIG_fail; | |
16793 | } | |
16794 | resultobj = PyInt_FromLong((long)result); | |
16795 | return resultobj; | |
16796 | fail: | |
16797 | return NULL; | |
16798 | } | |
16799 | ||
16800 | ||
16801 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16802 | PyObject *resultobj; | |
16803 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16804 | long result; | |
16805 | PyObject * obj0 = 0 ; | |
16806 | char *kwnames[] = { | |
16807 | (char *) "self", NULL | |
16808 | }; | |
16809 | ||
16810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
16811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16812 | { | |
16813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16814 | result = (long)(arg1)->GetIndex(); | |
16815 | ||
16816 | wxPyEndAllowThreads(__tstate); | |
16817 | if (PyErr_Occurred()) SWIG_fail; | |
16818 | } | |
16819 | resultobj = PyInt_FromLong((long)result); | |
16820 | return resultobj; | |
16821 | fail: | |
16822 | return NULL; | |
16823 | } | |
16824 | ||
16825 | ||
16826 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16827 | PyObject *resultobj; | |
16828 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16829 | int result; | |
16830 | PyObject * obj0 = 0 ; | |
16831 | char *kwnames[] = { | |
16832 | (char *) "self", NULL | |
16833 | }; | |
16834 | ||
16835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
16836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16837 | { | |
16838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16839 | result = (int)(arg1)->GetColumn(); | |
16840 | ||
16841 | wxPyEndAllowThreads(__tstate); | |
16842 | if (PyErr_Occurred()) SWIG_fail; | |
16843 | } | |
16844 | resultobj = PyInt_FromLong((long)result); | |
16845 | return resultobj; | |
16846 | fail: | |
16847 | return NULL; | |
16848 | } | |
16849 | ||
16850 | ||
16851 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16852 | PyObject *resultobj; | |
16853 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16854 | wxPoint result; | |
16855 | PyObject * obj0 = 0 ; | |
16856 | char *kwnames[] = { | |
16857 | (char *) "self", NULL | |
16858 | }; | |
16859 | ||
16860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
16861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16862 | { | |
16863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16864 | result = (arg1)->GetPoint(); | |
16865 | ||
16866 | wxPyEndAllowThreads(__tstate); | |
16867 | if (PyErr_Occurred()) SWIG_fail; | |
16868 | } | |
16869 | { | |
16870 | wxPoint * resultptr; | |
16871 | resultptr = new wxPoint((wxPoint &) result); | |
16872 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
16873 | } | |
16874 | return resultobj; | |
16875 | fail: | |
16876 | return NULL; | |
16877 | } | |
16878 | ||
16879 | ||
16880 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16881 | PyObject *resultobj; | |
16882 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16883 | wxString *result; | |
16884 | PyObject * obj0 = 0 ; | |
16885 | char *kwnames[] = { | |
16886 | (char *) "self", NULL | |
16887 | }; | |
16888 | ||
16889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
16890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16891 | { | |
16892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16893 | { | |
16894 | wxString const &_result_ref = (arg1)->GetLabel(); | |
16895 | result = (wxString *) &_result_ref; | |
16896 | } | |
16897 | ||
16898 | wxPyEndAllowThreads(__tstate); | |
16899 | if (PyErr_Occurred()) SWIG_fail; | |
16900 | } | |
16901 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
16902 | return resultobj; | |
16903 | fail: | |
16904 | return NULL; | |
16905 | } | |
16906 | ||
16907 | ||
16908 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16909 | PyObject *resultobj; | |
16910 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16911 | wxString *result; | |
16912 | PyObject * obj0 = 0 ; | |
16913 | char *kwnames[] = { | |
16914 | (char *) "self", NULL | |
16915 | }; | |
16916 | ||
16917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
16918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16919 | { | |
16920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16921 | { | |
16922 | wxString const &_result_ref = (arg1)->GetText(); | |
16923 | result = (wxString *) &_result_ref; | |
16924 | } | |
16925 | ||
16926 | wxPyEndAllowThreads(__tstate); | |
16927 | if (PyErr_Occurred()) SWIG_fail; | |
16928 | } | |
16929 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
16930 | return resultobj; | |
16931 | fail: | |
16932 | return NULL; | |
16933 | } | |
16934 | ||
16935 | ||
16936 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16937 | PyObject *resultobj; | |
16938 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16939 | int result; | |
16940 | PyObject * obj0 = 0 ; | |
16941 | char *kwnames[] = { | |
16942 | (char *) "self", NULL | |
16943 | }; | |
16944 | ||
16945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
16946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16947 | { | |
16948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16949 | result = (int)(arg1)->GetImage(); | |
16950 | ||
16951 | wxPyEndAllowThreads(__tstate); | |
16952 | if (PyErr_Occurred()) SWIG_fail; | |
16953 | } | |
16954 | resultobj = PyInt_FromLong((long)result); | |
16955 | return resultobj; | |
16956 | fail: | |
16957 | return NULL; | |
16958 | } | |
16959 | ||
16960 | ||
16961 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16962 | PyObject *resultobj; | |
16963 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16964 | long result; | |
16965 | PyObject * obj0 = 0 ; | |
16966 | char *kwnames[] = { | |
16967 | (char *) "self", NULL | |
16968 | }; | |
16969 | ||
16970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
16971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16972 | { | |
16973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16974 | result = (long)(arg1)->GetData(); | |
16975 | ||
16976 | wxPyEndAllowThreads(__tstate); | |
16977 | if (PyErr_Occurred()) SWIG_fail; | |
16978 | } | |
16979 | resultobj = PyInt_FromLong((long)result); | |
16980 | return resultobj; | |
16981 | fail: | |
16982 | return NULL; | |
16983 | } | |
16984 | ||
16985 | ||
16986 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16987 | PyObject *resultobj; | |
16988 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16989 | long result; | |
16990 | PyObject * obj0 = 0 ; | |
16991 | char *kwnames[] = { | |
16992 | (char *) "self", NULL | |
16993 | }; | |
16994 | ||
16995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
16996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16997 | { | |
16998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16999 | result = (long)(arg1)->GetMask(); | |
17000 | ||
17001 | wxPyEndAllowThreads(__tstate); | |
17002 | if (PyErr_Occurred()) SWIG_fail; | |
17003 | } | |
17004 | resultobj = PyInt_FromLong((long)result); | |
17005 | return resultobj; | |
17006 | fail: | |
17007 | return NULL; | |
17008 | } | |
17009 | ||
17010 | ||
17011 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17012 | PyObject *resultobj; | |
17013 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17014 | wxListItem *result; | |
17015 | PyObject * obj0 = 0 ; | |
17016 | char *kwnames[] = { | |
17017 | (char *) "self", NULL | |
17018 | }; | |
17019 | ||
17020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
17021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17022 | { | |
17023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17024 | { | |
17025 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
17026 | result = (wxListItem *) &_result_ref; | |
17027 | } | |
17028 | ||
17029 | wxPyEndAllowThreads(__tstate); | |
17030 | if (PyErr_Occurred()) SWIG_fail; | |
17031 | } | |
17032 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
17033 | return resultobj; | |
17034 | fail: | |
17035 | return NULL; | |
17036 | } | |
17037 | ||
17038 | ||
17039 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17040 | PyObject *resultobj; | |
17041 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17042 | long result; | |
17043 | PyObject * obj0 = 0 ; | |
17044 | char *kwnames[] = { | |
17045 | (char *) "self", NULL | |
17046 | }; | |
17047 | ||
17048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
17049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17050 | { | |
17051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17052 | result = (long)(arg1)->GetCacheFrom(); | |
17053 | ||
17054 | wxPyEndAllowThreads(__tstate); | |
17055 | if (PyErr_Occurred()) SWIG_fail; | |
17056 | } | |
17057 | resultobj = PyInt_FromLong((long)result); | |
17058 | return resultobj; | |
17059 | fail: | |
17060 | return NULL; | |
17061 | } | |
17062 | ||
17063 | ||
17064 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17065 | PyObject *resultobj; | |
17066 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17067 | long result; | |
17068 | PyObject * obj0 = 0 ; | |
17069 | char *kwnames[] = { | |
17070 | (char *) "self", NULL | |
17071 | }; | |
17072 | ||
17073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
17074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17075 | { | |
17076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17077 | result = (long)(arg1)->GetCacheTo(); | |
17078 | ||
17079 | wxPyEndAllowThreads(__tstate); | |
17080 | if (PyErr_Occurred()) SWIG_fail; | |
17081 | } | |
17082 | resultobj = PyInt_FromLong((long)result); | |
17083 | return resultobj; | |
17084 | fail: | |
17085 | return NULL; | |
17086 | } | |
17087 | ||
17088 | ||
17089 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17090 | PyObject *resultobj; | |
17091 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17092 | bool result; | |
17093 | PyObject * obj0 = 0 ; | |
17094 | char *kwnames[] = { | |
17095 | (char *) "self", NULL | |
17096 | }; | |
17097 | ||
17098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
17099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17100 | { | |
17101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17102 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
17103 | ||
17104 | wxPyEndAllowThreads(__tstate); | |
17105 | if (PyErr_Occurred()) SWIG_fail; | |
17106 | } | |
17107 | resultobj = PyInt_FromLong((long)result); | |
17108 | return resultobj; | |
17109 | fail: | |
17110 | return NULL; | |
17111 | } | |
17112 | ||
17113 | ||
17114 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17115 | PyObject *resultobj; | |
17116 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17117 | bool arg2 ; | |
17118 | PyObject * obj0 = 0 ; | |
17119 | PyObject * obj1 = 0 ; | |
17120 | char *kwnames[] = { | |
17121 | (char *) "self",(char *) "editCancelled", NULL | |
17122 | }; | |
17123 | ||
17124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
17125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17126 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17127 | if (PyErr_Occurred()) SWIG_fail; | |
17128 | { | |
17129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17130 | (arg1)->SetEditCanceled(arg2); | |
17131 | ||
17132 | wxPyEndAllowThreads(__tstate); | |
17133 | if (PyErr_Occurred()) SWIG_fail; | |
17134 | } | |
17135 | Py_INCREF(Py_None); resultobj = Py_None; | |
17136 | return resultobj; | |
17137 | fail: | |
17138 | return NULL; | |
17139 | } | |
17140 | ||
17141 | ||
17142 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
17143 | PyObject *obj; | |
17144 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17145 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
17146 | Py_INCREF(obj); | |
17147 | return Py_BuildValue((char *)""); | |
17148 | } | |
17149 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17150 | PyObject *resultobj; | |
17151 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 17152 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17153 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17154 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17155 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17156 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17157 | long arg5 = (long) wxLC_ICON ; | |
17158 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
17159 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
17160 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
17161 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17162 | wxPyListCtrl *result; | |
17163 | wxPoint temp3 ; | |
17164 | wxSize temp4 ; | |
e811c8ce | 17165 | bool temp7 = False ; |
d14a1e28 RD |
17166 | PyObject * obj0 = 0 ; |
17167 | PyObject * obj2 = 0 ; | |
17168 | PyObject * obj3 = 0 ; | |
17169 | PyObject * obj5 = 0 ; | |
17170 | PyObject * obj6 = 0 ; | |
17171 | char *kwnames[] = { | |
17172 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17173 | }; | |
17174 | ||
17175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ListCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
17176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17177 | if (obj2) { | |
17178 | { | |
17179 | arg3 = &temp3; | |
17180 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17181 | } | |
17182 | } | |
17183 | if (obj3) { | |
17184 | { | |
17185 | arg4 = &temp4; | |
17186 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17187 | } | |
17188 | } | |
17189 | if (obj5) { | |
17190 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17191 | if (arg6 == NULL) { | |
17192 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17193 | } | |
17194 | } | |
17195 | if (obj6) { | |
17196 | { | |
17197 | arg7 = wxString_in_helper(obj6); | |
17198 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 17199 | temp7 = True; |
d14a1e28 RD |
17200 | } |
17201 | } | |
17202 | { | |
17203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17204 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
17205 | ||
17206 | wxPyEndAllowThreads(__tstate); | |
17207 | if (PyErr_Occurred()) SWIG_fail; | |
17208 | } | |
17209 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
17210 | { | |
17211 | if (temp7) | |
17212 | delete arg7; | |
17213 | } | |
17214 | return resultobj; | |
17215 | fail: | |
17216 | { | |
17217 | if (temp7) | |
17218 | delete arg7; | |
17219 | } | |
17220 | return NULL; | |
17221 | } | |
17222 | ||
17223 | ||
17224 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17225 | PyObject *resultobj; | |
17226 | wxPyListCtrl *result; | |
17227 | char *kwnames[] = { | |
17228 | NULL | |
17229 | }; | |
17230 | ||
17231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
17232 | { | |
17233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17234 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
17235 | ||
17236 | wxPyEndAllowThreads(__tstate); | |
17237 | if (PyErr_Occurred()) SWIG_fail; | |
17238 | } | |
17239 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
17240 | return resultobj; | |
17241 | fail: | |
17242 | return NULL; | |
17243 | } | |
17244 | ||
17245 | ||
17246 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17247 | PyObject *resultobj; | |
17248 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17249 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 17250 | int arg3 = (int) -1 ; |
d14a1e28 RD |
17251 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17252 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17253 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17254 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17255 | long arg6 = (long) wxLC_ICON ; | |
17256 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
17257 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
17258 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
17259 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17260 | bool result; | |
17261 | wxPoint temp4 ; | |
17262 | wxSize temp5 ; | |
e811c8ce | 17263 | bool temp8 = False ; |
d14a1e28 RD |
17264 | PyObject * obj0 = 0 ; |
17265 | PyObject * obj1 = 0 ; | |
17266 | PyObject * obj3 = 0 ; | |
17267 | PyObject * obj4 = 0 ; | |
17268 | PyObject * obj6 = 0 ; | |
17269 | PyObject * obj7 = 0 ; | |
17270 | char *kwnames[] = { | |
17271 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17272 | }; | |
17273 | ||
17274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ListCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
17275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17276 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17277 | if (obj3) { | |
17278 | { | |
17279 | arg4 = &temp4; | |
17280 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17281 | } | |
17282 | } | |
17283 | if (obj4) { | |
17284 | { | |
17285 | arg5 = &temp5; | |
17286 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17287 | } | |
17288 | } | |
17289 | if (obj6) { | |
17290 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17291 | if (arg7 == NULL) { | |
17292 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17293 | } | |
17294 | } | |
17295 | if (obj7) { | |
17296 | { | |
17297 | arg8 = wxString_in_helper(obj7); | |
17298 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 17299 | temp8 = True; |
d14a1e28 RD |
17300 | } |
17301 | } | |
17302 | { | |
17303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17304 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
17305 | ||
17306 | wxPyEndAllowThreads(__tstate); | |
17307 | if (PyErr_Occurred()) SWIG_fail; | |
17308 | } | |
17309 | resultobj = PyInt_FromLong((long)result); | |
17310 | { | |
17311 | if (temp8) | |
17312 | delete arg8; | |
17313 | } | |
17314 | return resultobj; | |
17315 | fail: | |
17316 | { | |
17317 | if (temp8) | |
17318 | delete arg8; | |
17319 | } | |
17320 | return NULL; | |
17321 | } | |
17322 | ||
17323 | ||
17324 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17325 | PyObject *resultobj; | |
17326 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17327 | PyObject *arg2 = (PyObject *) 0 ; | |
17328 | PyObject *arg3 = (PyObject *) 0 ; | |
17329 | PyObject * obj0 = 0 ; | |
17330 | PyObject * obj1 = 0 ; | |
17331 | PyObject * obj2 = 0 ; | |
17332 | char *kwnames[] = { | |
17333 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17334 | }; | |
17335 | ||
17336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17338 | arg2 = obj1; | |
17339 | arg3 = obj2; | |
17340 | { | |
17341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17342 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17343 | ||
17344 | wxPyEndAllowThreads(__tstate); | |
17345 | if (PyErr_Occurred()) SWIG_fail; | |
17346 | } | |
17347 | Py_INCREF(Py_None); resultobj = Py_None; | |
17348 | return resultobj; | |
17349 | fail: | |
17350 | return NULL; | |
17351 | } | |
17352 | ||
17353 | ||
17354 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17355 | PyObject *resultobj; | |
17356 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17357 | wxColour *arg2 = 0 ; | |
17358 | bool result; | |
17359 | wxColour temp2 ; | |
17360 | PyObject * obj0 = 0 ; | |
17361 | PyObject * obj1 = 0 ; | |
17362 | char *kwnames[] = { | |
17363 | (char *) "self",(char *) "col", NULL | |
17364 | }; | |
17365 | ||
17366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17368 | { | |
17369 | arg2 = &temp2; | |
17370 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17371 | } | |
17372 | { | |
17373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17374 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
17375 | ||
17376 | wxPyEndAllowThreads(__tstate); | |
17377 | if (PyErr_Occurred()) SWIG_fail; | |
17378 | } | |
17379 | resultobj = PyInt_FromLong((long)result); | |
17380 | return resultobj; | |
17381 | fail: | |
17382 | return NULL; | |
17383 | } | |
17384 | ||
17385 | ||
17386 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17387 | PyObject *resultobj; | |
17388 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17389 | wxColour *arg2 = 0 ; | |
17390 | bool result; | |
17391 | wxColour temp2 ; | |
17392 | PyObject * obj0 = 0 ; | |
17393 | PyObject * obj1 = 0 ; | |
17394 | char *kwnames[] = { | |
17395 | (char *) "self",(char *) "col", NULL | |
17396 | }; | |
17397 | ||
17398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17400 | { | |
17401 | arg2 = &temp2; | |
17402 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17403 | } | |
17404 | { | |
17405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17406 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17407 | ||
17408 | wxPyEndAllowThreads(__tstate); | |
17409 | if (PyErr_Occurred()) SWIG_fail; | |
17410 | } | |
17411 | resultobj = PyInt_FromLong((long)result); | |
17412 | return resultobj; | |
17413 | fail: | |
17414 | return NULL; | |
17415 | } | |
17416 | ||
17417 | ||
17418 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17419 | PyObject *resultobj; | |
17420 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17421 | int arg2 ; | |
17422 | wxListItem *result; | |
17423 | PyObject * obj0 = 0 ; | |
17424 | char *kwnames[] = { | |
17425 | (char *) "self",(char *) "col", NULL | |
17426 | }; | |
17427 | ||
17428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetColumn",kwnames,&obj0,&arg2)) goto fail; | |
17429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17430 | { | |
17431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17432 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
17433 | ||
17434 | wxPyEndAllowThreads(__tstate); | |
17435 | if (PyErr_Occurred()) SWIG_fail; | |
17436 | } | |
17437 | { | |
17438 | resultobj = wxPyMake_wxObject(result); | |
17439 | } | |
17440 | return resultobj; | |
17441 | fail: | |
17442 | return NULL; | |
17443 | } | |
17444 | ||
17445 | ||
17446 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17447 | PyObject *resultobj; | |
17448 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17449 | int arg2 ; | |
17450 | wxListItem *arg3 = 0 ; | |
17451 | bool result; | |
17452 | PyObject * obj0 = 0 ; | |
17453 | PyObject * obj2 = 0 ; | |
17454 | char *kwnames[] = { | |
17455 | (char *) "self",(char *) "col",(char *) "item", NULL | |
17456 | }; | |
17457 | ||
17458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ListCtrl_SetColumn",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17460 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17461 | if (arg3 == NULL) { | |
17462 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17463 | } | |
17464 | { | |
17465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17466 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
17467 | ||
17468 | wxPyEndAllowThreads(__tstate); | |
17469 | if (PyErr_Occurred()) SWIG_fail; | |
17470 | } | |
17471 | resultobj = PyInt_FromLong((long)result); | |
17472 | return resultobj; | |
17473 | fail: | |
17474 | return NULL; | |
17475 | } | |
17476 | ||
17477 | ||
17478 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17479 | PyObject *resultobj; | |
17480 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17481 | int arg2 ; | |
17482 | int result; | |
17483 | PyObject * obj0 = 0 ; | |
17484 | char *kwnames[] = { | |
17485 | (char *) "self",(char *) "col", NULL | |
17486 | }; | |
17487 | ||
17488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetColumnWidth",kwnames,&obj0,&arg2)) goto fail; | |
17489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17490 | { | |
17491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17492 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
17493 | ||
17494 | wxPyEndAllowThreads(__tstate); | |
17495 | if (PyErr_Occurred()) SWIG_fail; | |
17496 | } | |
17497 | resultobj = PyInt_FromLong((long)result); | |
17498 | return resultobj; | |
17499 | fail: | |
17500 | return NULL; | |
17501 | } | |
17502 | ||
17503 | ||
17504 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17505 | PyObject *resultobj; | |
17506 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17507 | int arg2 ; | |
17508 | int arg3 ; | |
17509 | bool result; | |
17510 | PyObject * obj0 = 0 ; | |
17511 | char *kwnames[] = { | |
17512 | (char *) "self",(char *) "col",(char *) "width", NULL | |
17513 | }; | |
17514 | ||
17515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListCtrl_SetColumnWidth",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17517 | { | |
17518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17519 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
17520 | ||
17521 | wxPyEndAllowThreads(__tstate); | |
17522 | if (PyErr_Occurred()) SWIG_fail; | |
17523 | } | |
17524 | resultobj = PyInt_FromLong((long)result); | |
17525 | return resultobj; | |
17526 | fail: | |
17527 | return NULL; | |
17528 | } | |
17529 | ||
17530 | ||
17531 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17532 | PyObject *resultobj; | |
17533 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17534 | int result; | |
17535 | PyObject * obj0 = 0 ; | |
17536 | char *kwnames[] = { | |
17537 | (char *) "self", NULL | |
17538 | }; | |
17539 | ||
17540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
17541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17542 | { | |
17543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17544 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
17545 | ||
17546 | wxPyEndAllowThreads(__tstate); | |
17547 | if (PyErr_Occurred()) SWIG_fail; | |
17548 | } | |
17549 | resultobj = PyInt_FromLong((long)result); | |
17550 | return resultobj; | |
17551 | fail: | |
17552 | return NULL; | |
17553 | } | |
17554 | ||
17555 | ||
17556 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17557 | PyObject *resultobj; | |
17558 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17559 | wxRect result; | |
17560 | PyObject * obj0 = 0 ; | |
17561 | char *kwnames[] = { | |
17562 | (char *) "self", NULL | |
17563 | }; | |
17564 | ||
17565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
17566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17567 | { | |
17568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17569 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
17570 | ||
17571 | wxPyEndAllowThreads(__tstate); | |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
17573 | } | |
17574 | { | |
17575 | wxRect * resultptr; | |
17576 | resultptr = new wxRect((wxRect &) result); | |
17577 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
17578 | } | |
17579 | return resultobj; | |
17580 | fail: | |
17581 | return NULL; | |
17582 | } | |
17583 | ||
17584 | ||
17585 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17586 | PyObject *resultobj; | |
17587 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17588 | long arg2 ; | |
17589 | int arg3 = (int) 0 ; | |
17590 | wxListItem *result; | |
17591 | PyObject * obj0 = 0 ; | |
17592 | char *kwnames[] = { | |
17593 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
17594 | }; | |
17595 | ||
17596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:ListCtrl_GetItem",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17598 | { | |
17599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17600 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
17601 | ||
17602 | wxPyEndAllowThreads(__tstate); | |
17603 | if (PyErr_Occurred()) SWIG_fail; | |
17604 | } | |
17605 | { | |
17606 | resultobj = wxPyMake_wxObject(result); | |
17607 | } | |
17608 | return resultobj; | |
17609 | fail: | |
17610 | return NULL; | |
17611 | } | |
17612 | ||
17613 | ||
17614 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17615 | PyObject *resultobj; | |
17616 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17617 | wxListItem *arg2 = 0 ; | |
17618 | bool result; | |
17619 | PyObject * obj0 = 0 ; | |
17620 | PyObject * obj1 = 0 ; | |
17621 | char *kwnames[] = { | |
17622 | (char *) "self",(char *) "info", NULL | |
17623 | }; | |
17624 | ||
17625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
17626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17627 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17628 | if (arg2 == NULL) { | |
17629 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17630 | } | |
17631 | { | |
17632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17633 | result = (bool)(arg1)->SetItem(*arg2); | |
17634 | ||
17635 | wxPyEndAllowThreads(__tstate); | |
17636 | if (PyErr_Occurred()) SWIG_fail; | |
17637 | } | |
17638 | resultobj = PyInt_FromLong((long)result); | |
17639 | return resultobj; | |
17640 | fail: | |
17641 | return NULL; | |
17642 | } | |
17643 | ||
17644 | ||
17645 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17646 | PyObject *resultobj; | |
17647 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17648 | long arg2 ; | |
17649 | int arg3 ; | |
17650 | wxString *arg4 = 0 ; | |
17651 | int arg5 = (int) -1 ; | |
17652 | long result; | |
e811c8ce | 17653 | bool temp4 = False ; |
d14a1e28 RD |
17654 | PyObject * obj0 = 0 ; |
17655 | PyObject * obj3 = 0 ; | |
17656 | char *kwnames[] = { | |
17657 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
17658 | }; | |
17659 | ||
17660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OliO|i:ListCtrl_SetStringItem",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
17661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17662 | { | |
17663 | arg4 = wxString_in_helper(obj3); | |
17664 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 17665 | temp4 = True; |
d14a1e28 RD |
17666 | } |
17667 | { | |
17668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17669 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
17670 | ||
17671 | wxPyEndAllowThreads(__tstate); | |
17672 | if (PyErr_Occurred()) SWIG_fail; | |
17673 | } | |
17674 | resultobj = PyInt_FromLong((long)result); | |
17675 | { | |
17676 | if (temp4) | |
17677 | delete arg4; | |
17678 | } | |
17679 | return resultobj; | |
17680 | fail: | |
17681 | { | |
17682 | if (temp4) | |
17683 | delete arg4; | |
17684 | } | |
17685 | return NULL; | |
17686 | } | |
17687 | ||
17688 | ||
17689 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17690 | PyObject *resultobj; | |
17691 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17692 | long arg2 ; | |
17693 | long arg3 ; | |
17694 | int result; | |
17695 | PyObject * obj0 = 0 ; | |
17696 | char *kwnames[] = { | |
17697 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
17698 | }; | |
17699 | ||
17700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_GetItemState",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17702 | { | |
17703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17704 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
17705 | ||
17706 | wxPyEndAllowThreads(__tstate); | |
17707 | if (PyErr_Occurred()) SWIG_fail; | |
17708 | } | |
17709 | resultobj = PyInt_FromLong((long)result); | |
17710 | return resultobj; | |
17711 | fail: | |
17712 | return NULL; | |
17713 | } | |
17714 | ||
17715 | ||
17716 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17717 | PyObject *resultobj; | |
17718 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17719 | long arg2 ; | |
17720 | long arg3 ; | |
17721 | long arg4 ; | |
17722 | bool result; | |
17723 | PyObject * obj0 = 0 ; | |
17724 | char *kwnames[] = { | |
17725 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
17726 | }; | |
17727 | ||
17728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Olll:ListCtrl_SetItemState",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
17729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17730 | { | |
17731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17732 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
17733 | ||
17734 | wxPyEndAllowThreads(__tstate); | |
17735 | if (PyErr_Occurred()) SWIG_fail; | |
17736 | } | |
17737 | resultobj = PyInt_FromLong((long)result); | |
17738 | return resultobj; | |
17739 | fail: | |
17740 | return NULL; | |
17741 | } | |
17742 | ||
17743 | ||
17744 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17745 | PyObject *resultobj; | |
17746 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17747 | long arg2 ; | |
17748 | int arg3 ; | |
17749 | int arg4 ; | |
17750 | bool result; | |
17751 | PyObject * obj0 = 0 ; | |
17752 | char *kwnames[] = { | |
17753 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
17754 | }; | |
17755 | ||
17756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Olii:ListCtrl_SetItemImage",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
17757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17758 | { | |
17759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17760 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
17761 | ||
17762 | wxPyEndAllowThreads(__tstate); | |
17763 | if (PyErr_Occurred()) SWIG_fail; | |
17764 | } | |
17765 | resultobj = PyInt_FromLong((long)result); | |
17766 | return resultobj; | |
17767 | fail: | |
17768 | return NULL; | |
17769 | } | |
17770 | ||
17771 | ||
17772 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17773 | PyObject *resultobj; | |
17774 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17775 | long arg2 ; | |
17776 | wxString result; | |
17777 | PyObject * obj0 = 0 ; | |
17778 | char *kwnames[] = { | |
17779 | (char *) "self",(char *) "item", NULL | |
17780 | }; | |
17781 | ||
17782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemText",kwnames,&obj0,&arg2)) goto fail; | |
17783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17784 | { | |
17785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17786 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
17787 | ||
17788 | wxPyEndAllowThreads(__tstate); | |
17789 | if (PyErr_Occurred()) SWIG_fail; | |
17790 | } | |
17791 | { | |
17792 | #if wxUSE_UNICODE | |
17793 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17794 | #else | |
17795 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17796 | #endif | |
17797 | } | |
17798 | return resultobj; | |
17799 | fail: | |
17800 | return NULL; | |
17801 | } | |
17802 | ||
17803 | ||
17804 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17805 | PyObject *resultobj; | |
17806 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17807 | long arg2 ; | |
17808 | wxString *arg3 = 0 ; | |
e811c8ce | 17809 | bool temp3 = False ; |
d14a1e28 RD |
17810 | PyObject * obj0 = 0 ; |
17811 | PyObject * obj2 = 0 ; | |
17812 | char *kwnames[] = { | |
17813 | (char *) "self",(char *) "item",(char *) "str", NULL | |
17814 | }; | |
17815 | ||
17816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemText",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17818 | { | |
17819 | arg3 = wxString_in_helper(obj2); | |
17820 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 17821 | temp3 = True; |
d14a1e28 RD |
17822 | } |
17823 | { | |
17824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17825 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
17826 | ||
17827 | wxPyEndAllowThreads(__tstate); | |
17828 | if (PyErr_Occurred()) SWIG_fail; | |
17829 | } | |
17830 | Py_INCREF(Py_None); resultobj = Py_None; | |
17831 | { | |
17832 | if (temp3) | |
17833 | delete arg3; | |
17834 | } | |
17835 | return resultobj; | |
17836 | fail: | |
17837 | { | |
17838 | if (temp3) | |
17839 | delete arg3; | |
17840 | } | |
17841 | return NULL; | |
17842 | } | |
17843 | ||
17844 | ||
17845 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17846 | PyObject *resultobj; | |
17847 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17848 | long arg2 ; | |
17849 | long result; | |
17850 | PyObject * obj0 = 0 ; | |
17851 | char *kwnames[] = { | |
17852 | (char *) "self",(char *) "item", NULL | |
17853 | }; | |
17854 | ||
17855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemData",kwnames,&obj0,&arg2)) goto fail; | |
17856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17857 | { | |
17858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17859 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
17860 | ||
17861 | wxPyEndAllowThreads(__tstate); | |
17862 | if (PyErr_Occurred()) SWIG_fail; | |
17863 | } | |
17864 | resultobj = PyInt_FromLong((long)result); | |
17865 | return resultobj; | |
17866 | fail: | |
17867 | return NULL; | |
17868 | } | |
17869 | ||
17870 | ||
17871 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17872 | PyObject *resultobj; | |
17873 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17874 | long arg2 ; | |
17875 | long arg3 ; | |
17876 | bool result; | |
17877 | PyObject * obj0 = 0 ; | |
17878 | char *kwnames[] = { | |
17879 | (char *) "self",(char *) "item",(char *) "data", NULL | |
17880 | }; | |
17881 | ||
17882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_SetItemData",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17884 | { | |
17885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17886 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
17887 | ||
17888 | wxPyEndAllowThreads(__tstate); | |
17889 | if (PyErr_Occurred()) SWIG_fail; | |
17890 | } | |
17891 | resultobj = PyInt_FromLong((long)result); | |
17892 | return resultobj; | |
17893 | fail: | |
17894 | return NULL; | |
17895 | } | |
17896 | ||
17897 | ||
17898 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17899 | PyObject *resultobj; | |
17900 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17901 | long arg2 ; | |
17902 | wxPoint result; | |
17903 | PyObject * obj0 = 0 ; | |
17904 | char *kwnames[] = { | |
17905 | (char *) "self",(char *) "item", NULL | |
17906 | }; | |
17907 | ||
17908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemPosition",kwnames,&obj0,&arg2)) goto fail; | |
17909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17910 | { | |
17911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17912 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
17913 | ||
17914 | wxPyEndAllowThreads(__tstate); | |
17915 | if (PyErr_Occurred()) SWIG_fail; | |
17916 | } | |
17917 | { | |
17918 | wxPoint * resultptr; | |
17919 | resultptr = new wxPoint((wxPoint &) result); | |
17920 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
17921 | } | |
17922 | return resultobj; | |
17923 | fail: | |
17924 | return NULL; | |
17925 | } | |
17926 | ||
17927 | ||
17928 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17929 | PyObject *resultobj; | |
17930 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17931 | long arg2 ; | |
17932 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
17933 | wxRect result; | |
17934 | PyObject * obj0 = 0 ; | |
17935 | char *kwnames[] = { | |
17936 | (char *) "self",(char *) "item",(char *) "code", NULL | |
17937 | }; | |
17938 | ||
17939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:ListCtrl_GetItemRect",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17941 | { | |
17942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17943 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
17944 | ||
17945 | wxPyEndAllowThreads(__tstate); | |
17946 | if (PyErr_Occurred()) SWIG_fail; | |
17947 | } | |
17948 | { | |
17949 | wxRect * resultptr; | |
17950 | resultptr = new wxRect((wxRect &) result); | |
17951 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
17952 | } | |
17953 | return resultobj; | |
17954 | fail: | |
17955 | return NULL; | |
17956 | } | |
17957 | ||
17958 | ||
17959 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17960 | PyObject *resultobj; | |
17961 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17962 | long arg2 ; | |
17963 | wxPoint *arg3 = 0 ; | |
17964 | bool result; | |
17965 | wxPoint temp3 ; | |
17966 | PyObject * obj0 = 0 ; | |
17967 | PyObject * obj2 = 0 ; | |
17968 | char *kwnames[] = { | |
17969 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
17970 | }; | |
17971 | ||
17972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemPosition",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17974 | { | |
17975 | arg3 = &temp3; | |
17976 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17977 | } | |
17978 | { | |
17979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17980 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
17981 | ||
17982 | wxPyEndAllowThreads(__tstate); | |
17983 | if (PyErr_Occurred()) SWIG_fail; | |
17984 | } | |
17985 | resultobj = PyInt_FromLong((long)result); | |
17986 | return resultobj; | |
17987 | fail: | |
17988 | return NULL; | |
17989 | } | |
17990 | ||
17991 | ||
17992 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17993 | PyObject *resultobj; | |
17994 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17995 | int result; | |
17996 | PyObject * obj0 = 0 ; | |
17997 | char *kwnames[] = { | |
17998 | (char *) "self", NULL | |
17999 | }; | |
18000 | ||
18001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
18002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18003 | { | |
18004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18005 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
18006 | ||
18007 | wxPyEndAllowThreads(__tstate); | |
18008 | if (PyErr_Occurred()) SWIG_fail; | |
18009 | } | |
18010 | resultobj = PyInt_FromLong((long)result); | |
18011 | return resultobj; | |
18012 | fail: | |
18013 | return NULL; | |
18014 | } | |
18015 | ||
18016 | ||
18017 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18018 | PyObject *resultobj; | |
18019 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18020 | int result; | |
18021 | PyObject * obj0 = 0 ; | |
18022 | char *kwnames[] = { | |
18023 | (char *) "self", NULL | |
18024 | }; | |
18025 | ||
18026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
18027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18028 | { | |
18029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18030 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
18031 | ||
18032 | wxPyEndAllowThreads(__tstate); | |
18033 | if (PyErr_Occurred()) SWIG_fail; | |
18034 | } | |
18035 | resultobj = PyInt_FromLong((long)result); | |
18036 | return resultobj; | |
18037 | fail: | |
18038 | return NULL; | |
18039 | } | |
18040 | ||
18041 | ||
18042 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18043 | PyObject *resultobj; | |
18044 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18045 | wxSize result; | |
18046 | PyObject * obj0 = 0 ; | |
18047 | char *kwnames[] = { | |
18048 | (char *) "self", NULL | |
18049 | }; | |
18050 | ||
18051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
18052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18053 | { | |
18054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18055 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
18056 | ||
18057 | wxPyEndAllowThreads(__tstate); | |
18058 | if (PyErr_Occurred()) SWIG_fail; | |
18059 | } | |
18060 | { | |
18061 | wxSize * resultptr; | |
18062 | resultptr = new wxSize((wxSize &) result); | |
18063 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
18064 | } | |
18065 | return resultobj; | |
18066 | fail: | |
18067 | return NULL; | |
18068 | } | |
18069 | ||
18070 | ||
18071 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18072 | PyObject *resultobj; | |
18073 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18074 | int arg2 ; | |
e811c8ce | 18075 | bool arg3 = (bool) False ; |
d14a1e28 RD |
18076 | PyObject * obj0 = 0 ; |
18077 | PyObject * obj2 = 0 ; | |
18078 | char *kwnames[] = { | |
18079 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
18080 | }; | |
18081 | ||
18082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18084 | if (obj2) { | |
18085 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
18086 | if (PyErr_Occurred()) SWIG_fail; | |
18087 | } | |
18088 | { | |
18089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18090 | (arg1)->SetItemSpacing(arg2,arg3); | |
18091 | ||
18092 | wxPyEndAllowThreads(__tstate); | |
18093 | if (PyErr_Occurred()) SWIG_fail; | |
18094 | } | |
18095 | Py_INCREF(Py_None); resultobj = Py_None; | |
18096 | return resultobj; | |
18097 | fail: | |
18098 | return NULL; | |
18099 | } | |
18100 | ||
18101 | ||
18102 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18103 | PyObject *resultobj; | |
18104 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18105 | int result; | |
18106 | PyObject * obj0 = 0 ; | |
18107 | char *kwnames[] = { | |
18108 | (char *) "self", NULL | |
18109 | }; | |
18110 | ||
18111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
18112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18113 | { | |
18114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18115 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
18116 | ||
18117 | wxPyEndAllowThreads(__tstate); | |
18118 | if (PyErr_Occurred()) SWIG_fail; | |
18119 | } | |
18120 | resultobj = PyInt_FromLong((long)result); | |
18121 | return resultobj; | |
18122 | fail: | |
18123 | return NULL; | |
18124 | } | |
18125 | ||
18126 | ||
18127 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18128 | PyObject *resultobj; | |
18129 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18130 | wxColour result; | |
18131 | PyObject * obj0 = 0 ; | |
18132 | char *kwnames[] = { | |
18133 | (char *) "self", NULL | |
18134 | }; | |
18135 | ||
18136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
18137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18138 | { | |
18139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18140 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
18141 | ||
18142 | wxPyEndAllowThreads(__tstate); | |
18143 | if (PyErr_Occurred()) SWIG_fail; | |
18144 | } | |
18145 | { | |
18146 | wxColour * resultptr; | |
18147 | resultptr = new wxColour((wxColour &) result); | |
18148 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18149 | } | |
18150 | return resultobj; | |
18151 | fail: | |
18152 | return NULL; | |
18153 | } | |
18154 | ||
18155 | ||
18156 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18157 | PyObject *resultobj; | |
18158 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18159 | wxColour *arg2 = 0 ; | |
18160 | wxColour temp2 ; | |
18161 | PyObject * obj0 = 0 ; | |
18162 | PyObject * obj1 = 0 ; | |
18163 | char *kwnames[] = { | |
18164 | (char *) "self",(char *) "col", NULL | |
18165 | }; | |
18166 | ||
18167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18169 | { | |
18170 | arg2 = &temp2; | |
18171 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18172 | } | |
18173 | { | |
18174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18175 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18176 | ||
18177 | wxPyEndAllowThreads(__tstate); | |
18178 | if (PyErr_Occurred()) SWIG_fail; | |
18179 | } | |
18180 | Py_INCREF(Py_None); resultobj = Py_None; | |
18181 | return resultobj; | |
18182 | fail: | |
18183 | return NULL; | |
18184 | } | |
18185 | ||
18186 | ||
18187 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18188 | PyObject *resultobj; | |
18189 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18190 | long result; | |
18191 | PyObject * obj0 = 0 ; | |
18192 | char *kwnames[] = { | |
18193 | (char *) "self", NULL | |
18194 | }; | |
18195 | ||
18196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
18197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18198 | { | |
18199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18200 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
18201 | ||
18202 | wxPyEndAllowThreads(__tstate); | |
18203 | if (PyErr_Occurred()) SWIG_fail; | |
18204 | } | |
18205 | resultobj = PyInt_FromLong((long)result); | |
18206 | return resultobj; | |
18207 | fail: | |
18208 | return NULL; | |
18209 | } | |
18210 | ||
18211 | ||
18212 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18213 | PyObject *resultobj; | |
18214 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18215 | long arg2 ; | |
e811c8ce | 18216 | bool arg3 = (bool) True ; |
d14a1e28 RD |
18217 | PyObject * obj0 = 0 ; |
18218 | PyObject * obj2 = 0 ; | |
18219 | char *kwnames[] = { | |
18220 | (char *) "self",(char *) "style",(char *) "add", NULL | |
18221 | }; | |
18222 | ||
18223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18225 | if (obj2) { | |
18226 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
18227 | if (PyErr_Occurred()) SWIG_fail; | |
18228 | } | |
18229 | { | |
18230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18231 | (arg1)->SetSingleStyle(arg2,arg3); | |
18232 | ||
18233 | wxPyEndAllowThreads(__tstate); | |
18234 | if (PyErr_Occurred()) SWIG_fail; | |
18235 | } | |
18236 | Py_INCREF(Py_None); resultobj = Py_None; | |
18237 | return resultobj; | |
18238 | fail: | |
18239 | return NULL; | |
18240 | } | |
18241 | ||
18242 | ||
18243 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18244 | PyObject *resultobj; | |
18245 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18246 | long arg2 ; | |
18247 | PyObject * obj0 = 0 ; | |
18248 | char *kwnames[] = { | |
18249 | (char *) "self",(char *) "style", NULL | |
18250 | }; | |
18251 | ||
18252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&arg2)) goto fail; | |
18253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18254 | { | |
18255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18256 | (arg1)->SetWindowStyleFlag(arg2); | |
18257 | ||
18258 | wxPyEndAllowThreads(__tstate); | |
18259 | if (PyErr_Occurred()) SWIG_fail; | |
18260 | } | |
18261 | Py_INCREF(Py_None); resultobj = Py_None; | |
18262 | return resultobj; | |
18263 | fail: | |
18264 | return NULL; | |
18265 | } | |
18266 | ||
18267 | ||
18268 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18269 | PyObject *resultobj; | |
18270 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18271 | long arg2 ; | |
18272 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
18273 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
18274 | long result; | |
18275 | PyObject * obj0 = 0 ; | |
18276 | char *kwnames[] = { | |
18277 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
18278 | }; | |
18279 | ||
18280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:ListCtrl_GetNextItem",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
18281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18282 | { | |
18283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18284 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
18285 | ||
18286 | wxPyEndAllowThreads(__tstate); | |
18287 | if (PyErr_Occurred()) SWIG_fail; | |
18288 | } | |
18289 | resultobj = PyInt_FromLong((long)result); | |
18290 | return resultobj; | |
18291 | fail: | |
18292 | return NULL; | |
18293 | } | |
18294 | ||
18295 | ||
18296 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18297 | PyObject *resultobj; | |
18298 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18299 | int arg2 ; | |
18300 | wxImageList *result; | |
18301 | PyObject * obj0 = 0 ; | |
18302 | char *kwnames[] = { | |
18303 | (char *) "self",(char *) "which", NULL | |
18304 | }; | |
18305 | ||
18306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetImageList",kwnames,&obj0,&arg2)) goto fail; | |
18307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18308 | { | |
18309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18310 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
18311 | ||
18312 | wxPyEndAllowThreads(__tstate); | |
18313 | if (PyErr_Occurred()) SWIG_fail; | |
18314 | } | |
18315 | { | |
18316 | resultobj = wxPyMake_wxObject(result); | |
18317 | } | |
18318 | return resultobj; | |
18319 | fail: | |
18320 | return NULL; | |
18321 | } | |
18322 | ||
18323 | ||
18324 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18325 | PyObject *resultobj; | |
18326 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18327 | wxImageList *arg2 = (wxImageList *) 0 ; | |
18328 | int arg3 ; | |
18329 | PyObject * obj0 = 0 ; | |
18330 | PyObject * obj1 = 0 ; | |
18331 | char *kwnames[] = { | |
18332 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
18333 | }; | |
18334 | ||
18335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
18336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18337 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18338 | { | |
18339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18340 | (arg1)->SetImageList(arg2,arg3); | |
18341 | ||
18342 | wxPyEndAllowThreads(__tstate); | |
18343 | if (PyErr_Occurred()) SWIG_fail; | |
18344 | } | |
18345 | Py_INCREF(Py_None); resultobj = Py_None; | |
18346 | return resultobj; | |
18347 | fail: | |
18348 | return NULL; | |
18349 | } | |
18350 | ||
18351 | ||
18352 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18353 | PyObject *resultobj; | |
18354 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18355 | wxImageList *arg2 = (wxImageList *) 0 ; | |
18356 | int arg3 ; | |
18357 | PyObject * obj0 = 0 ; | |
18358 | PyObject * obj1 = 0 ; | |
18359 | char *kwnames[] = { | |
18360 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
18361 | }; | |
18362 | ||
18363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
18364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18365 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18366 | { | |
18367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18368 | (arg1)->AssignImageList(arg2,arg3); | |
18369 | ||
18370 | wxPyEndAllowThreads(__tstate); | |
18371 | if (PyErr_Occurred()) SWIG_fail; | |
18372 | } | |
18373 | Py_INCREF(Py_None); resultobj = Py_None; | |
18374 | return resultobj; | |
18375 | fail: | |
18376 | return NULL; | |
18377 | } | |
18378 | ||
18379 | ||
18380 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18381 | PyObject *resultobj; | |
18382 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18383 | bool result; | |
18384 | PyObject * obj0 = 0 ; | |
18385 | char *kwnames[] = { | |
18386 | (char *) "self", NULL | |
18387 | }; | |
18388 | ||
18389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
18390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18391 | { | |
18392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18393 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
18394 | ||
18395 | wxPyEndAllowThreads(__tstate); | |
18396 | if (PyErr_Occurred()) SWIG_fail; | |
18397 | } | |
18398 | resultobj = PyInt_FromLong((long)result); | |
18399 | return resultobj; | |
18400 | fail: | |
18401 | return NULL; | |
18402 | } | |
18403 | ||
18404 | ||
18405 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18406 | PyObject *resultobj; | |
18407 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18408 | long arg2 ; | |
18409 | PyObject * obj0 = 0 ; | |
18410 | char *kwnames[] = { | |
18411 | (char *) "self",(char *) "item", NULL | |
18412 | }; | |
18413 | ||
18414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_RefreshItem",kwnames,&obj0,&arg2)) goto fail; | |
18415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18416 | { | |
18417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18418 | (arg1)->RefreshItem(arg2); | |
18419 | ||
18420 | wxPyEndAllowThreads(__tstate); | |
18421 | if (PyErr_Occurred()) SWIG_fail; | |
18422 | } | |
18423 | Py_INCREF(Py_None); resultobj = Py_None; | |
18424 | return resultobj; | |
18425 | fail: | |
18426 | return NULL; | |
18427 | } | |
18428 | ||
18429 | ||
18430 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18431 | PyObject *resultobj; | |
18432 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18433 | long arg2 ; | |
18434 | long arg3 ; | |
18435 | PyObject * obj0 = 0 ; | |
18436 | char *kwnames[] = { | |
18437 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
18438 | }; | |
18439 | ||
18440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_RefreshItems",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18442 | { | |
18443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18444 | (arg1)->RefreshItems(arg2,arg3); | |
18445 | ||
18446 | wxPyEndAllowThreads(__tstate); | |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
18448 | } | |
18449 | Py_INCREF(Py_None); resultobj = Py_None; | |
18450 | return resultobj; | |
18451 | fail: | |
18452 | return NULL; | |
18453 | } | |
18454 | ||
18455 | ||
18456 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18457 | PyObject *resultobj; | |
18458 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18459 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
18460 | bool result; | |
18461 | PyObject * obj0 = 0 ; | |
18462 | char *kwnames[] = { | |
18463 | (char *) "self",(char *) "flag", NULL | |
18464 | }; | |
18465 | ||
18466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:ListCtrl_Arrange",kwnames,&obj0,&arg2)) goto fail; | |
18467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18468 | { | |
18469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18470 | result = (bool)(arg1)->Arrange(arg2); | |
18471 | ||
18472 | wxPyEndAllowThreads(__tstate); | |
18473 | if (PyErr_Occurred()) SWIG_fail; | |
18474 | } | |
18475 | resultobj = PyInt_FromLong((long)result); | |
18476 | return resultobj; | |
18477 | fail: | |
18478 | return NULL; | |
18479 | } | |
18480 | ||
18481 | ||
18482 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18483 | PyObject *resultobj; | |
18484 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18485 | long arg2 ; | |
18486 | bool result; | |
18487 | PyObject * obj0 = 0 ; | |
18488 | char *kwnames[] = { | |
18489 | (char *) "self",(char *) "item", NULL | |
18490 | }; | |
18491 | ||
18492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_DeleteItem",kwnames,&obj0,&arg2)) goto fail; | |
18493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18494 | { | |
18495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18496 | result = (bool)(arg1)->DeleteItem(arg2); | |
18497 | ||
18498 | wxPyEndAllowThreads(__tstate); | |
18499 | if (PyErr_Occurred()) SWIG_fail; | |
18500 | } | |
18501 | resultobj = PyInt_FromLong((long)result); | |
18502 | return resultobj; | |
18503 | fail: | |
18504 | return NULL; | |
18505 | } | |
18506 | ||
18507 | ||
18508 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18509 | PyObject *resultobj; | |
18510 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18511 | bool result; | |
18512 | PyObject * obj0 = 0 ; | |
18513 | char *kwnames[] = { | |
18514 | (char *) "self", NULL | |
18515 | }; | |
18516 | ||
18517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
18518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18519 | { | |
18520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18521 | result = (bool)(arg1)->DeleteAllItems(); | |
18522 | ||
18523 | wxPyEndAllowThreads(__tstate); | |
18524 | if (PyErr_Occurred()) SWIG_fail; | |
18525 | } | |
18526 | resultobj = PyInt_FromLong((long)result); | |
18527 | return resultobj; | |
18528 | fail: | |
18529 | return NULL; | |
18530 | } | |
18531 | ||
18532 | ||
18533 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18534 | PyObject *resultobj; | |
18535 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18536 | int arg2 ; | |
18537 | bool result; | |
18538 | PyObject * obj0 = 0 ; | |
18539 | char *kwnames[] = { | |
18540 | (char *) "self",(char *) "col", NULL | |
18541 | }; | |
18542 | ||
18543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_DeleteColumn",kwnames,&obj0,&arg2)) goto fail; | |
18544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18545 | { | |
18546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18547 | result = (bool)(arg1)->DeleteColumn(arg2); | |
18548 | ||
18549 | wxPyEndAllowThreads(__tstate); | |
18550 | if (PyErr_Occurred()) SWIG_fail; | |
18551 | } | |
18552 | resultobj = PyInt_FromLong((long)result); | |
18553 | return resultobj; | |
18554 | fail: | |
18555 | return NULL; | |
18556 | } | |
18557 | ||
18558 | ||
18559 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18560 | PyObject *resultobj; | |
18561 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18562 | bool result; | |
18563 | PyObject * obj0 = 0 ; | |
18564 | char *kwnames[] = { | |
18565 | (char *) "self", NULL | |
18566 | }; | |
18567 | ||
18568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
18569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18570 | { | |
18571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18572 | result = (bool)(arg1)->DeleteAllColumns(); | |
18573 | ||
18574 | wxPyEndAllowThreads(__tstate); | |
18575 | if (PyErr_Occurred()) SWIG_fail; | |
18576 | } | |
18577 | resultobj = PyInt_FromLong((long)result); | |
18578 | return resultobj; | |
18579 | fail: | |
18580 | return NULL; | |
18581 | } | |
18582 | ||
18583 | ||
18584 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18585 | PyObject *resultobj; | |
18586 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18587 | PyObject * obj0 = 0 ; | |
18588 | char *kwnames[] = { | |
18589 | (char *) "self", NULL | |
18590 | }; | |
18591 | ||
18592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
18593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18594 | { | |
18595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18596 | (arg1)->ClearAll(); | |
18597 | ||
18598 | wxPyEndAllowThreads(__tstate); | |
18599 | if (PyErr_Occurred()) SWIG_fail; | |
18600 | } | |
18601 | Py_INCREF(Py_None); resultobj = Py_None; | |
18602 | return resultobj; | |
18603 | fail: | |
18604 | return NULL; | |
18605 | } | |
18606 | ||
18607 | ||
18608 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18609 | PyObject *resultobj; | |
18610 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18611 | long arg2 ; | |
18612 | PyObject * obj0 = 0 ; | |
18613 | char *kwnames[] = { | |
18614 | (char *) "self",(char *) "item", NULL | |
18615 | }; | |
18616 | ||
18617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_EditLabel",kwnames,&obj0,&arg2)) goto fail; | |
18618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18619 | { | |
18620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18621 | (arg1)->EditLabel(arg2); | |
18622 | ||
18623 | wxPyEndAllowThreads(__tstate); | |
18624 | if (PyErr_Occurred()) SWIG_fail; | |
18625 | } | |
18626 | Py_INCREF(Py_None); resultobj = Py_None; | |
18627 | return resultobj; | |
18628 | fail: | |
18629 | return NULL; | |
18630 | } | |
18631 | ||
18632 | ||
18633 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18634 | PyObject *resultobj; | |
18635 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18636 | long arg2 ; | |
18637 | bool result; | |
18638 | PyObject * obj0 = 0 ; | |
18639 | char *kwnames[] = { | |
18640 | (char *) "self",(char *) "item", NULL | |
18641 | }; | |
18642 | ||
18643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_EnsureVisible",kwnames,&obj0,&arg2)) goto fail; | |
18644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18645 | { | |
18646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18647 | result = (bool)(arg1)->EnsureVisible(arg2); | |
18648 | ||
18649 | wxPyEndAllowThreads(__tstate); | |
18650 | if (PyErr_Occurred()) SWIG_fail; | |
18651 | } | |
18652 | resultobj = PyInt_FromLong((long)result); | |
18653 | return resultobj; | |
18654 | fail: | |
18655 | return NULL; | |
18656 | } | |
18657 | ||
18658 | ||
18659 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18660 | PyObject *resultobj; | |
18661 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18662 | long arg2 ; | |
18663 | wxString *arg3 = 0 ; | |
e811c8ce | 18664 | bool arg4 = (bool) False ; |
d14a1e28 | 18665 | long result; |
e811c8ce | 18666 | bool temp3 = False ; |
d14a1e28 RD |
18667 | PyObject * obj0 = 0 ; |
18668 | PyObject * obj2 = 0 ; | |
18669 | PyObject * obj3 = 0 ; | |
18670 | char *kwnames[] = { | |
18671 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
18672 | }; | |
18673 | ||
18674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO|O:ListCtrl_FindItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
18675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18676 | { | |
18677 | arg3 = wxString_in_helper(obj2); | |
18678 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 18679 | temp3 = True; |
d14a1e28 RD |
18680 | } |
18681 | if (obj3) { | |
18682 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
18683 | if (PyErr_Occurred()) SWIG_fail; | |
18684 | } | |
18685 | { | |
18686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18687 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
18688 | ||
18689 | wxPyEndAllowThreads(__tstate); | |
18690 | if (PyErr_Occurred()) SWIG_fail; | |
18691 | } | |
18692 | resultobj = PyInt_FromLong((long)result); | |
18693 | { | |
18694 | if (temp3) | |
18695 | delete arg3; | |
18696 | } | |
18697 | return resultobj; | |
18698 | fail: | |
18699 | { | |
18700 | if (temp3) | |
18701 | delete arg3; | |
18702 | } | |
18703 | return NULL; | |
18704 | } | |
18705 | ||
18706 | ||
18707 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18708 | PyObject *resultobj; | |
18709 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18710 | long arg2 ; | |
18711 | long arg3 ; | |
18712 | long result; | |
18713 | PyObject * obj0 = 0 ; | |
18714 | char *kwnames[] = { | |
18715 | (char *) "self",(char *) "start",(char *) "data", NULL | |
18716 | }; | |
18717 | ||
18718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_FindItemData",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18720 | { | |
18721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18722 | result = (long)(arg1)->FindItem(arg2,arg3); | |
18723 | ||
18724 | wxPyEndAllowThreads(__tstate); | |
18725 | if (PyErr_Occurred()) SWIG_fail; | |
18726 | } | |
18727 | resultobj = PyInt_FromLong((long)result); | |
18728 | return resultobj; | |
18729 | fail: | |
18730 | return NULL; | |
18731 | } | |
18732 | ||
18733 | ||
18734 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18735 | PyObject *resultobj; | |
18736 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18737 | long arg2 ; | |
18738 | wxPoint *arg3 = 0 ; | |
18739 | int arg4 ; | |
18740 | long result; | |
18741 | wxPoint temp3 ; | |
18742 | PyObject * obj0 = 0 ; | |
18743 | PyObject * obj2 = 0 ; | |
18744 | char *kwnames[] = { | |
18745 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
18746 | }; | |
18747 | ||
18748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlOi:ListCtrl_FindItemAtPos",kwnames,&obj0,&arg2,&obj2,&arg4)) goto fail; | |
18749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18750 | { | |
18751 | arg3 = &temp3; | |
18752 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18753 | } | |
18754 | { | |
18755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18756 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
18757 | ||
18758 | wxPyEndAllowThreads(__tstate); | |
18759 | if (PyErr_Occurred()) SWIG_fail; | |
18760 | } | |
18761 | resultobj = PyInt_FromLong((long)result); | |
18762 | return resultobj; | |
18763 | fail: | |
18764 | return NULL; | |
18765 | } | |
18766 | ||
18767 | ||
18768 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18769 | PyObject *resultobj; | |
18770 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18771 | wxPoint *arg2 = 0 ; | |
18772 | int *arg3 = 0 ; | |
18773 | long result; | |
18774 | wxPoint temp2 ; | |
18775 | int temp3 ; | |
18776 | PyObject * obj0 = 0 ; | |
18777 | PyObject * obj1 = 0 ; | |
18778 | char *kwnames[] = { | |
18779 | (char *) "self",(char *) "point", NULL | |
18780 | }; | |
18781 | ||
18782 | arg3 = &temp3; | |
18783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
18784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18785 | { | |
18786 | arg2 = &temp2; | |
18787 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18788 | } | |
18789 | { | |
18790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18791 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
18792 | ||
18793 | wxPyEndAllowThreads(__tstate); | |
18794 | if (PyErr_Occurred()) SWIG_fail; | |
18795 | } | |
18796 | resultobj = PyInt_FromLong((long)result); | |
18797 | { | |
18798 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
18799 | resultobj = t_output_helper(resultobj,o); | |
18800 | } | |
18801 | return resultobj; | |
18802 | fail: | |
18803 | return NULL; | |
18804 | } | |
18805 | ||
18806 | ||
18807 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18808 | PyObject *resultobj; | |
18809 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18810 | wxListItem *arg2 = 0 ; | |
18811 | long result; | |
18812 | PyObject * obj0 = 0 ; | |
18813 | PyObject * obj1 = 0 ; | |
18814 | char *kwnames[] = { | |
18815 | (char *) "self",(char *) "info", NULL | |
18816 | }; | |
18817 | ||
18818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
18819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18820 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18821 | if (arg2 == NULL) { | |
18822 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18823 | } | |
18824 | { | |
18825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18826 | result = (long)(arg1)->InsertItem(*arg2); | |
18827 | ||
18828 | wxPyEndAllowThreads(__tstate); | |
18829 | if (PyErr_Occurred()) SWIG_fail; | |
18830 | } | |
18831 | resultobj = PyInt_FromLong((long)result); | |
18832 | return resultobj; | |
18833 | fail: | |
18834 | return NULL; | |
18835 | } | |
18836 | ||
18837 | ||
18838 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18839 | PyObject *resultobj; | |
18840 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18841 | long arg2 ; | |
18842 | wxString *arg3 = 0 ; | |
18843 | long result; | |
e811c8ce | 18844 | bool temp3 = False ; |
d14a1e28 RD |
18845 | PyObject * obj0 = 0 ; |
18846 | PyObject * obj2 = 0 ; | |
18847 | char *kwnames[] = { | |
18848 | (char *) "self",(char *) "index",(char *) "label", NULL | |
18849 | }; | |
18850 | ||
18851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_InsertStringItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18853 | { | |
18854 | arg3 = wxString_in_helper(obj2); | |
18855 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 18856 | temp3 = True; |
d14a1e28 RD |
18857 | } |
18858 | { | |
18859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18860 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
18861 | ||
18862 | wxPyEndAllowThreads(__tstate); | |
18863 | if (PyErr_Occurred()) SWIG_fail; | |
18864 | } | |
18865 | resultobj = PyInt_FromLong((long)result); | |
18866 | { | |
18867 | if (temp3) | |
18868 | delete arg3; | |
18869 | } | |
18870 | return resultobj; | |
18871 | fail: | |
18872 | { | |
18873 | if (temp3) | |
18874 | delete arg3; | |
18875 | } | |
18876 | return NULL; | |
18877 | } | |
18878 | ||
18879 | ||
18880 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18881 | PyObject *resultobj; | |
18882 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18883 | long arg2 ; | |
18884 | int arg3 ; | |
18885 | long result; | |
18886 | PyObject * obj0 = 0 ; | |
18887 | char *kwnames[] = { | |
18888 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
18889 | }; | |
18890 | ||
18891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oli:ListCtrl_InsertImageItem",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18893 | { | |
18894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18895 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
18896 | ||
18897 | wxPyEndAllowThreads(__tstate); | |
18898 | if (PyErr_Occurred()) SWIG_fail; | |
18899 | } | |
18900 | resultobj = PyInt_FromLong((long)result); | |
18901 | return resultobj; | |
18902 | fail: | |
18903 | return NULL; | |
18904 | } | |
18905 | ||
18906 | ||
18907 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18908 | PyObject *resultobj; | |
18909 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18910 | long arg2 ; | |
18911 | wxString *arg3 = 0 ; | |
18912 | int arg4 ; | |
18913 | long result; | |
e811c8ce | 18914 | bool temp3 = False ; |
d14a1e28 RD |
18915 | PyObject * obj0 = 0 ; |
18916 | PyObject * obj2 = 0 ; | |
18917 | char *kwnames[] = { | |
18918 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
18919 | }; | |
18920 | ||
18921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlOi:ListCtrl_InsertImageStringItem",kwnames,&obj0,&arg2,&obj2,&arg4)) goto fail; | |
18922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18923 | { | |
18924 | arg3 = wxString_in_helper(obj2); | |
18925 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 18926 | temp3 = True; |
d14a1e28 RD |
18927 | } |
18928 | { | |
18929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18930 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
18931 | ||
18932 | wxPyEndAllowThreads(__tstate); | |
18933 | if (PyErr_Occurred()) SWIG_fail; | |
18934 | } | |
18935 | resultobj = PyInt_FromLong((long)result); | |
18936 | { | |
18937 | if (temp3) | |
18938 | delete arg3; | |
18939 | } | |
18940 | return resultobj; | |
18941 | fail: | |
18942 | { | |
18943 | if (temp3) | |
18944 | delete arg3; | |
18945 | } | |
18946 | return NULL; | |
18947 | } | |
18948 | ||
18949 | ||
18950 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18951 | PyObject *resultobj; | |
18952 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18953 | long arg2 ; | |
18954 | wxListItem *arg3 = 0 ; | |
18955 | long result; | |
18956 | PyObject * obj0 = 0 ; | |
18957 | PyObject * obj2 = 0 ; | |
18958 | char *kwnames[] = { | |
18959 | (char *) "self",(char *) "col",(char *) "info", NULL | |
18960 | }; | |
18961 | ||
18962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18964 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18965 | if (arg3 == NULL) { | |
18966 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18967 | } | |
18968 | { | |
18969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18970 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
18971 | ||
18972 | wxPyEndAllowThreads(__tstate); | |
18973 | if (PyErr_Occurred()) SWIG_fail; | |
18974 | } | |
18975 | resultobj = PyInt_FromLong((long)result); | |
18976 | return resultobj; | |
18977 | fail: | |
18978 | return NULL; | |
18979 | } | |
18980 | ||
18981 | ||
18982 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18983 | PyObject *resultobj; | |
18984 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18985 | long arg2 ; | |
18986 | wxString *arg3 = 0 ; | |
18987 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
18988 | int arg5 = (int) -1 ; | |
18989 | long result; | |
e811c8ce | 18990 | bool temp3 = False ; |
d14a1e28 RD |
18991 | PyObject * obj0 = 0 ; |
18992 | PyObject * obj2 = 0 ; | |
18993 | char *kwnames[] = { | |
18994 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
18995 | }; | |
18996 | ||
18997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO|ii:ListCtrl_InsertColumn",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5)) goto fail; | |
18998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18999 | { | |
19000 | arg3 = wxString_in_helper(obj2); | |
19001 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 19002 | temp3 = True; |
d14a1e28 RD |
19003 | } |
19004 | { | |
19005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19006 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
19007 | ||
19008 | wxPyEndAllowThreads(__tstate); | |
19009 | if (PyErr_Occurred()) SWIG_fail; | |
19010 | } | |
19011 | resultobj = PyInt_FromLong((long)result); | |
19012 | { | |
19013 | if (temp3) | |
19014 | delete arg3; | |
19015 | } | |
19016 | return resultobj; | |
19017 | fail: | |
19018 | { | |
19019 | if (temp3) | |
19020 | delete arg3; | |
19021 | } | |
19022 | return NULL; | |
19023 | } | |
19024 | ||
19025 | ||
19026 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19027 | PyObject *resultobj; | |
19028 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19029 | long arg2 ; | |
19030 | PyObject * obj0 = 0 ; | |
19031 | char *kwnames[] = { | |
19032 | (char *) "self",(char *) "count", NULL | |
19033 | }; | |
19034 | ||
19035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_SetItemCount",kwnames,&obj0,&arg2)) goto fail; | |
19036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19037 | { | |
19038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19039 | (arg1)->SetItemCount(arg2); | |
19040 | ||
19041 | wxPyEndAllowThreads(__tstate); | |
19042 | if (PyErr_Occurred()) SWIG_fail; | |
19043 | } | |
19044 | Py_INCREF(Py_None); resultobj = Py_None; | |
19045 | return resultobj; | |
19046 | fail: | |
19047 | return NULL; | |
19048 | } | |
19049 | ||
19050 | ||
19051 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19052 | PyObject *resultobj; | |
19053 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19054 | int arg2 ; | |
19055 | int arg3 ; | |
19056 | bool result; | |
19057 | PyObject * obj0 = 0 ; | |
19058 | char *kwnames[] = { | |
19059 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
19060 | }; | |
19061 | ||
19062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListCtrl_ScrollList",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19064 | { | |
19065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19066 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
19067 | ||
19068 | wxPyEndAllowThreads(__tstate); | |
19069 | if (PyErr_Occurred()) SWIG_fail; | |
19070 | } | |
19071 | resultobj = PyInt_FromLong((long)result); | |
19072 | return resultobj; | |
19073 | fail: | |
19074 | return NULL; | |
19075 | } | |
19076 | ||
19077 | ||
19078 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19079 | PyObject *resultobj; | |
19080 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19081 | long arg2 ; | |
19082 | wxColour *arg3 = 0 ; | |
19083 | wxColour temp3 ; | |
19084 | PyObject * obj0 = 0 ; | |
19085 | PyObject * obj2 = 0 ; | |
19086 | char *kwnames[] = { | |
19087 | (char *) "self",(char *) "item",(char *) "col", NULL | |
19088 | }; | |
19089 | ||
19090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemTextColour",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19092 | { | |
19093 | arg3 = &temp3; | |
19094 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19095 | } | |
19096 | { | |
19097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19098 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
19099 | ||
19100 | wxPyEndAllowThreads(__tstate); | |
19101 | if (PyErr_Occurred()) SWIG_fail; | |
19102 | } | |
19103 | Py_INCREF(Py_None); resultobj = Py_None; | |
19104 | return resultobj; | |
19105 | fail: | |
19106 | return NULL; | |
19107 | } | |
19108 | ||
19109 | ||
19110 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19111 | PyObject *resultobj; | |
19112 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19113 | long arg2 ; | |
19114 | wxColour result; | |
19115 | PyObject * obj0 = 0 ; | |
19116 | char *kwnames[] = { | |
19117 | (char *) "self",(char *) "item", NULL | |
19118 | }; | |
19119 | ||
19120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemTextColour",kwnames,&obj0,&arg2)) goto fail; | |
19121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19122 | { | |
19123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19124 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
19125 | ||
19126 | wxPyEndAllowThreads(__tstate); | |
19127 | if (PyErr_Occurred()) SWIG_fail; | |
19128 | } | |
19129 | { | |
19130 | wxColour * resultptr; | |
19131 | resultptr = new wxColour((wxColour &) result); | |
19132 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
19133 | } | |
19134 | return resultobj; | |
19135 | fail: | |
19136 | return NULL; | |
19137 | } | |
19138 | ||
19139 | ||
19140 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19141 | PyObject *resultobj; | |
19142 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19143 | long arg2 ; | |
19144 | wxColour *arg3 = 0 ; | |
19145 | wxColour temp3 ; | |
19146 | PyObject * obj0 = 0 ; | |
19147 | PyObject * obj2 = 0 ; | |
19148 | char *kwnames[] = { | |
19149 | (char *) "self",(char *) "item",(char *) "col", NULL | |
19150 | }; | |
19151 | ||
19152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19154 | { | |
19155 | arg3 = &temp3; | |
19156 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19157 | } | |
19158 | { | |
19159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19160 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
19161 | ||
19162 | wxPyEndAllowThreads(__tstate); | |
19163 | if (PyErr_Occurred()) SWIG_fail; | |
19164 | } | |
19165 | Py_INCREF(Py_None); resultobj = Py_None; | |
19166 | return resultobj; | |
19167 | fail: | |
19168 | return NULL; | |
19169 | } | |
19170 | ||
19171 | ||
19172 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19173 | PyObject *resultobj; | |
19174 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19175 | long arg2 ; | |
19176 | wxColour result; | |
19177 | PyObject * obj0 = 0 ; | |
19178 | char *kwnames[] = { | |
19179 | (char *) "self",(char *) "item", NULL | |
19180 | }; | |
19181 | ||
19182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&arg2)) goto fail; | |
19183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19184 | { | |
19185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19186 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
19187 | ||
19188 | wxPyEndAllowThreads(__tstate); | |
19189 | if (PyErr_Occurred()) SWIG_fail; | |
19190 | } | |
19191 | { | |
19192 | wxColour * resultptr; | |
19193 | resultptr = new wxColour((wxColour &) result); | |
19194 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
19195 | } | |
19196 | return resultobj; | |
19197 | fail: | |
19198 | return NULL; | |
19199 | } | |
19200 | ||
19201 | ||
19202 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19203 | PyObject *resultobj; | |
19204 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19205 | PyObject *arg2 = (PyObject *) 0 ; | |
19206 | bool result; | |
19207 | PyObject * obj0 = 0 ; | |
19208 | PyObject * obj1 = 0 ; | |
19209 | char *kwnames[] = { | |
19210 | (char *) "self",(char *) "func", NULL | |
19211 | }; | |
19212 | ||
19213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
19214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19215 | arg2 = obj1; | |
19216 | { | |
19217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19218 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
19219 | ||
19220 | wxPyEndAllowThreads(__tstate); | |
19221 | if (PyErr_Occurred()) SWIG_fail; | |
19222 | } | |
19223 | resultobj = PyInt_FromLong((long)result); | |
19224 | return resultobj; | |
19225 | fail: | |
19226 | return NULL; | |
19227 | } | |
19228 | ||
19229 | ||
19230 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19231 | PyObject *resultobj; | |
19232 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19233 | wxWindow *result; | |
19234 | PyObject * obj0 = 0 ; | |
19235 | char *kwnames[] = { | |
19236 | (char *) "self", NULL | |
19237 | }; | |
19238 | ||
19239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
19240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19241 | { | |
19242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19243 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
19244 | ||
19245 | wxPyEndAllowThreads(__tstate); | |
19246 | if (PyErr_Occurred()) SWIG_fail; | |
19247 | } | |
19248 | { | |
19249 | resultobj = wxPyMake_wxObject(result); | |
19250 | } | |
19251 | return resultobj; | |
19252 | fail: | |
19253 | return NULL; | |
19254 | } | |
19255 | ||
19256 | ||
19257 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
19258 | PyObject *obj; | |
19259 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19260 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
19261 | Py_INCREF(obj); | |
19262 | return Py_BuildValue((char *)""); | |
19263 | } | |
19264 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19265 | PyObject *resultobj; | |
19266 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 19267 | int arg2 = (int) -1 ; |
d14a1e28 RD |
19268 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19269 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19270 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19271 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19272 | long arg5 = (long) wxLC_REPORT ; | |
19273 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
19274 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
19275 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
19276 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19277 | wxListView *result; | |
19278 | wxPoint temp3 ; | |
19279 | wxSize temp4 ; | |
e811c8ce | 19280 | bool temp7 = False ; |
d14a1e28 RD |
19281 | PyObject * obj0 = 0 ; |
19282 | PyObject * obj2 = 0 ; | |
19283 | PyObject * obj3 = 0 ; | |
19284 | PyObject * obj5 = 0 ; | |
19285 | PyObject * obj6 = 0 ; | |
19286 | char *kwnames[] = { | |
19287 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19288 | }; | |
19289 | ||
19290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ListView",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
19291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19292 | if (obj2) { | |
19293 | { | |
19294 | arg3 = &temp3; | |
19295 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19296 | } | |
19297 | } | |
19298 | if (obj3) { | |
19299 | { | |
19300 | arg4 = &temp4; | |
19301 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19302 | } | |
19303 | } | |
19304 | if (obj5) { | |
19305 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19306 | if (arg6 == NULL) { | |
19307 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19308 | } | |
19309 | } | |
19310 | if (obj6) { | |
19311 | { | |
19312 | arg7 = wxString_in_helper(obj6); | |
19313 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 19314 | temp7 = True; |
d14a1e28 RD |
19315 | } |
19316 | } | |
19317 | { | |
19318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19319 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
19320 | ||
19321 | wxPyEndAllowThreads(__tstate); | |
19322 | if (PyErr_Occurred()) SWIG_fail; | |
19323 | } | |
19324 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
19325 | { | |
19326 | if (temp7) | |
19327 | delete arg7; | |
19328 | } | |
19329 | return resultobj; | |
19330 | fail: | |
19331 | { | |
19332 | if (temp7) | |
19333 | delete arg7; | |
19334 | } | |
19335 | return NULL; | |
19336 | } | |
19337 | ||
19338 | ||
19339 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19340 | PyObject *resultobj; | |
19341 | wxListView *result; | |
19342 | char *kwnames[] = { | |
19343 | NULL | |
19344 | }; | |
19345 | ||
19346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
19347 | { | |
19348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19349 | result = (wxListView *)new wxListView(); | |
19350 | ||
19351 | wxPyEndAllowThreads(__tstate); | |
19352 | if (PyErr_Occurred()) SWIG_fail; | |
19353 | } | |
19354 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
19355 | return resultobj; | |
19356 | fail: | |
19357 | return NULL; | |
19358 | } | |
19359 | ||
19360 | ||
19361 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19362 | PyObject *resultobj; | |
19363 | wxListView *arg1 = (wxListView *) 0 ; | |
19364 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 19365 | int arg3 = (int) -1 ; |
d14a1e28 RD |
19366 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19367 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19368 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19369 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19370 | long arg6 = (long) wxLC_REPORT ; | |
19371 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
19372 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
19373 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
19374 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19375 | bool result; | |
19376 | wxPoint temp4 ; | |
19377 | wxSize temp5 ; | |
e811c8ce | 19378 | bool temp8 = False ; |
d14a1e28 RD |
19379 | PyObject * obj0 = 0 ; |
19380 | PyObject * obj1 = 0 ; | |
19381 | PyObject * obj3 = 0 ; | |
19382 | PyObject * obj4 = 0 ; | |
19383 | PyObject * obj6 = 0 ; | |
19384 | PyObject * obj7 = 0 ; | |
19385 | char *kwnames[] = { | |
19386 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19387 | }; | |
19388 | ||
19389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ListView_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
19390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19391 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19392 | if (obj3) { | |
19393 | { | |
19394 | arg4 = &temp4; | |
19395 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19396 | } | |
19397 | } | |
19398 | if (obj4) { | |
19399 | { | |
19400 | arg5 = &temp5; | |
19401 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19402 | } | |
19403 | } | |
19404 | if (obj6) { | |
19405 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19406 | if (arg7 == NULL) { | |
19407 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19408 | } | |
19409 | } | |
19410 | if (obj7) { | |
19411 | { | |
19412 | arg8 = wxString_in_helper(obj7); | |
19413 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 19414 | temp8 = True; |
d14a1e28 RD |
19415 | } |
19416 | } | |
19417 | { | |
19418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19419 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
19420 | ||
19421 | wxPyEndAllowThreads(__tstate); | |
19422 | if (PyErr_Occurred()) SWIG_fail; | |
19423 | } | |
19424 | resultobj = PyInt_FromLong((long)result); | |
19425 | { | |
19426 | if (temp8) | |
19427 | delete arg8; | |
19428 | } | |
19429 | return resultobj; | |
19430 | fail: | |
19431 | { | |
19432 | if (temp8) | |
19433 | delete arg8; | |
19434 | } | |
19435 | return NULL; | |
19436 | } | |
19437 | ||
19438 | ||
19439 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19440 | PyObject *resultobj; | |
19441 | wxListView *arg1 = (wxListView *) 0 ; | |
19442 | long arg2 ; | |
e811c8ce | 19443 | bool arg3 = (bool) True ; |
d14a1e28 RD |
19444 | PyObject * obj0 = 0 ; |
19445 | PyObject * obj2 = 0 ; | |
19446 | char *kwnames[] = { | |
19447 | (char *) "self",(char *) "n",(char *) "on", NULL | |
19448 | }; | |
19449 | ||
19450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|O:ListView_Select",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19452 | if (obj2) { | |
19453 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
19454 | if (PyErr_Occurred()) SWIG_fail; | |
19455 | } | |
19456 | { | |
19457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19458 | (arg1)->Select(arg2,arg3); | |
19459 | ||
19460 | wxPyEndAllowThreads(__tstate); | |
19461 | if (PyErr_Occurred()) SWIG_fail; | |
19462 | } | |
19463 | Py_INCREF(Py_None); resultobj = Py_None; | |
19464 | return resultobj; | |
19465 | fail: | |
19466 | return NULL; | |
19467 | } | |
19468 | ||
19469 | ||
19470 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19471 | PyObject *resultobj; | |
19472 | wxListView *arg1 = (wxListView *) 0 ; | |
19473 | long arg2 ; | |
19474 | PyObject * obj0 = 0 ; | |
19475 | char *kwnames[] = { | |
19476 | (char *) "self",(char *) "index", NULL | |
19477 | }; | |
19478 | ||
19479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_Focus",kwnames,&obj0,&arg2)) goto fail; | |
19480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19481 | { | |
19482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19483 | (arg1)->Focus(arg2); | |
19484 | ||
19485 | wxPyEndAllowThreads(__tstate); | |
19486 | if (PyErr_Occurred()) SWIG_fail; | |
19487 | } | |
19488 | Py_INCREF(Py_None); resultobj = Py_None; | |
19489 | return resultobj; | |
19490 | fail: | |
19491 | return NULL; | |
19492 | } | |
19493 | ||
19494 | ||
19495 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19496 | PyObject *resultobj; | |
19497 | wxListView *arg1 = (wxListView *) 0 ; | |
19498 | long result; | |
19499 | PyObject * obj0 = 0 ; | |
19500 | char *kwnames[] = { | |
19501 | (char *) "self", NULL | |
19502 | }; | |
19503 | ||
19504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
19505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19506 | { | |
19507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19508 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
19509 | ||
19510 | wxPyEndAllowThreads(__tstate); | |
19511 | if (PyErr_Occurred()) SWIG_fail; | |
19512 | } | |
19513 | resultobj = PyInt_FromLong((long)result); | |
19514 | return resultobj; | |
19515 | fail: | |
19516 | return NULL; | |
19517 | } | |
19518 | ||
19519 | ||
19520 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19521 | PyObject *resultobj; | |
19522 | wxListView *arg1 = (wxListView *) 0 ; | |
19523 | long arg2 ; | |
19524 | long result; | |
19525 | PyObject * obj0 = 0 ; | |
19526 | char *kwnames[] = { | |
19527 | (char *) "self",(char *) "item", NULL | |
19528 | }; | |
19529 | ||
19530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_GetNextSelected",kwnames,&obj0,&arg2)) goto fail; | |
19531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19532 | { | |
19533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19534 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
19535 | ||
19536 | wxPyEndAllowThreads(__tstate); | |
19537 | if (PyErr_Occurred()) SWIG_fail; | |
19538 | } | |
19539 | resultobj = PyInt_FromLong((long)result); | |
19540 | return resultobj; | |
19541 | fail: | |
19542 | return NULL; | |
19543 | } | |
19544 | ||
19545 | ||
19546 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19547 | PyObject *resultobj; | |
19548 | wxListView *arg1 = (wxListView *) 0 ; | |
19549 | long result; | |
19550 | PyObject * obj0 = 0 ; | |
19551 | char *kwnames[] = { | |
19552 | (char *) "self", NULL | |
19553 | }; | |
19554 | ||
19555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
19556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19557 | { | |
19558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19559 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
19560 | ||
19561 | wxPyEndAllowThreads(__tstate); | |
19562 | if (PyErr_Occurred()) SWIG_fail; | |
19563 | } | |
19564 | resultobj = PyInt_FromLong((long)result); | |
19565 | return resultobj; | |
19566 | fail: | |
19567 | return NULL; | |
19568 | } | |
19569 | ||
19570 | ||
19571 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19572 | PyObject *resultobj; | |
19573 | wxListView *arg1 = (wxListView *) 0 ; | |
19574 | long arg2 ; | |
19575 | bool result; | |
19576 | PyObject * obj0 = 0 ; | |
19577 | char *kwnames[] = { | |
19578 | (char *) "self",(char *) "index", NULL | |
19579 | }; | |
19580 | ||
19581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_IsSelected",kwnames,&obj0,&arg2)) goto fail; | |
19582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19583 | { | |
19584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19585 | result = (bool)(arg1)->IsSelected(arg2); | |
19586 | ||
19587 | wxPyEndAllowThreads(__tstate); | |
19588 | if (PyErr_Occurred()) SWIG_fail; | |
19589 | } | |
19590 | resultobj = PyInt_FromLong((long)result); | |
19591 | return resultobj; | |
19592 | fail: | |
19593 | return NULL; | |
19594 | } | |
19595 | ||
19596 | ||
19597 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19598 | PyObject *resultobj; | |
19599 | wxListView *arg1 = (wxListView *) 0 ; | |
19600 | int arg2 ; | |
19601 | int arg3 ; | |
19602 | PyObject * obj0 = 0 ; | |
19603 | char *kwnames[] = { | |
19604 | (char *) "self",(char *) "col",(char *) "image", NULL | |
19605 | }; | |
19606 | ||
19607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListView_SetColumnImage",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19609 | { | |
19610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19611 | (arg1)->SetColumnImage(arg2,arg3); | |
19612 | ||
19613 | wxPyEndAllowThreads(__tstate); | |
19614 | if (PyErr_Occurred()) SWIG_fail; | |
19615 | } | |
19616 | Py_INCREF(Py_None); resultobj = Py_None; | |
19617 | return resultobj; | |
19618 | fail: | |
19619 | return NULL; | |
19620 | } | |
19621 | ||
19622 | ||
19623 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19624 | PyObject *resultobj; | |
19625 | wxListView *arg1 = (wxListView *) 0 ; | |
19626 | int arg2 ; | |
19627 | PyObject * obj0 = 0 ; | |
19628 | char *kwnames[] = { | |
19629 | (char *) "self",(char *) "col", NULL | |
19630 | }; | |
19631 | ||
19632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListView_ClearColumnImage",kwnames,&obj0,&arg2)) goto fail; | |
19633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19634 | { | |
19635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19636 | (arg1)->ClearColumnImage(arg2); | |
19637 | ||
19638 | wxPyEndAllowThreads(__tstate); | |
19639 | if (PyErr_Occurred()) SWIG_fail; | |
19640 | } | |
19641 | Py_INCREF(Py_None); resultobj = Py_None; | |
19642 | return resultobj; | |
19643 | fail: | |
19644 | return NULL; | |
19645 | } | |
19646 | ||
19647 | ||
19648 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
19649 | PyObject *obj; | |
19650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19651 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
19652 | Py_INCREF(obj); | |
19653 | return Py_BuildValue((char *)""); | |
19654 | } | |
19655 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19656 | PyObject *resultobj; | |
19657 | wxTreeItemId *result; | |
19658 | char *kwnames[] = { | |
19659 | NULL | |
19660 | }; | |
19661 | ||
19662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
19663 | { | |
19664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19665 | result = (wxTreeItemId *)new wxTreeItemId(); | |
19666 | ||
19667 | wxPyEndAllowThreads(__tstate); | |
19668 | if (PyErr_Occurred()) SWIG_fail; | |
19669 | } | |
19670 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
19671 | return resultobj; | |
19672 | fail: | |
19673 | return NULL; | |
19674 | } | |
19675 | ||
19676 | ||
19677 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19678 | PyObject *resultobj; | |
19679 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19680 | PyObject * obj0 = 0 ; | |
19681 | char *kwnames[] = { | |
19682 | (char *) "self", NULL | |
19683 | }; | |
19684 | ||
19685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
19686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19687 | { | |
19688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19689 | delete arg1; | |
19690 | ||
19691 | wxPyEndAllowThreads(__tstate); | |
19692 | if (PyErr_Occurred()) SWIG_fail; | |
19693 | } | |
19694 | Py_INCREF(Py_None); resultobj = Py_None; | |
19695 | return resultobj; | |
19696 | fail: | |
19697 | return NULL; | |
19698 | } | |
19699 | ||
19700 | ||
19701 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19702 | PyObject *resultobj; | |
19703 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19704 | bool result; | |
19705 | PyObject * obj0 = 0 ; | |
19706 | char *kwnames[] = { | |
19707 | (char *) "self", NULL | |
19708 | }; | |
19709 | ||
19710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
19711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19712 | { | |
19713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19714 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
19715 | ||
19716 | wxPyEndAllowThreads(__tstate); | |
19717 | if (PyErr_Occurred()) SWIG_fail; | |
19718 | } | |
19719 | resultobj = PyInt_FromLong((long)result); | |
19720 | return resultobj; | |
19721 | fail: | |
19722 | return NULL; | |
19723 | } | |
19724 | ||
19725 | ||
19726 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19727 | PyObject *resultobj; | |
19728 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19729 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
19730 | bool result; | |
19731 | PyObject * obj0 = 0 ; | |
19732 | PyObject * obj1 = 0 ; | |
19733 | char *kwnames[] = { | |
19734 | (char *) "self",(char *) "other", NULL | |
19735 | }; | |
19736 | ||
19737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
19738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19739 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19740 | { | |
19741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19742 | result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2); | |
19743 | ||
19744 | wxPyEndAllowThreads(__tstate); | |
19745 | if (PyErr_Occurred()) SWIG_fail; | |
19746 | } | |
19747 | resultobj = PyInt_FromLong((long)result); | |
19748 | return resultobj; | |
19749 | fail: | |
19750 | return NULL; | |
19751 | } | |
19752 | ||
19753 | ||
19754 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19755 | PyObject *resultobj; | |
19756 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19757 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
19758 | bool result; | |
19759 | PyObject * obj0 = 0 ; | |
19760 | PyObject * obj1 = 0 ; | |
19761 | char *kwnames[] = { | |
19762 | (char *) "self",(char *) "other", NULL | |
19763 | }; | |
19764 | ||
19765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
19766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19767 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19768 | { | |
19769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19770 | result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2); | |
19771 | ||
19772 | wxPyEndAllowThreads(__tstate); | |
19773 | if (PyErr_Occurred()) SWIG_fail; | |
19774 | } | |
19775 | resultobj = PyInt_FromLong((long)result); | |
19776 | return resultobj; | |
19777 | fail: | |
19778 | return NULL; | |
19779 | } | |
19780 | ||
19781 | ||
19782 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19783 | PyObject *resultobj; | |
19784 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19785 | wxTreeItemIdValue arg2 = (wxTreeItemIdValue) 0 ; | |
19786 | PyObject * obj0 = 0 ; | |
19787 | PyObject * obj1 = 0 ; | |
19788 | char *kwnames[] = { | |
19789 | (char *) "self",(char *) "m_pItem", NULL | |
19790 | }; | |
19791 | ||
19792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
19793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19794 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
19795 | if (arg1) (arg1)->m_pItem = arg2; | |
19796 | ||
19797 | Py_INCREF(Py_None); resultobj = Py_None; | |
19798 | return resultobj; | |
19799 | fail: | |
19800 | return NULL; | |
19801 | } | |
19802 | ||
19803 | ||
19804 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19805 | PyObject *resultobj; | |
19806 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19807 | wxTreeItemIdValue result; | |
19808 | PyObject * obj0 = 0 ; | |
19809 | char *kwnames[] = { | |
19810 | (char *) "self", NULL | |
19811 | }; | |
19812 | ||
19813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
19814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19815 | result = (wxTreeItemIdValue) ((arg1)->m_pItem); | |
19816 | ||
19817 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_wxTreeItemIdValue, 0); | |
19818 | return resultobj; | |
19819 | fail: | |
19820 | return NULL; | |
19821 | } | |
19822 | ||
19823 | ||
19824 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
19825 | PyObject *obj; | |
19826 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19827 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
19828 | Py_INCREF(obj); | |
19829 | return Py_BuildValue((char *)""); | |
19830 | } | |
19831 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19832 | PyObject *resultobj; | |
19833 | PyObject *arg1 = (PyObject *) NULL ; | |
19834 | wxPyTreeItemData *result; | |
19835 | PyObject * obj0 = 0 ; | |
19836 | char *kwnames[] = { | |
19837 | (char *) "obj", NULL | |
19838 | }; | |
19839 | ||
19840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
19841 | if (obj0) { | |
19842 | arg1 = obj0; | |
19843 | } | |
19844 | { | |
19845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19846 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
19847 | ||
19848 | wxPyEndAllowThreads(__tstate); | |
19849 | if (PyErr_Occurred()) SWIG_fail; | |
19850 | } | |
19851 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
19852 | return resultobj; | |
19853 | fail: | |
19854 | return NULL; | |
19855 | } | |
19856 | ||
19857 | ||
19858 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19859 | PyObject *resultobj; | |
19860 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
19861 | PyObject *result; | |
19862 | PyObject * obj0 = 0 ; | |
19863 | char *kwnames[] = { | |
19864 | (char *) "self", NULL | |
19865 | }; | |
19866 | ||
19867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
19868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19869 | { | |
19870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19871 | result = (PyObject *)(arg1)->GetData(); | |
19872 | ||
19873 | wxPyEndAllowThreads(__tstate); | |
19874 | if (PyErr_Occurred()) SWIG_fail; | |
19875 | } | |
19876 | resultobj = result; | |
19877 | return resultobj; | |
19878 | fail: | |
19879 | return NULL; | |
19880 | } | |
19881 | ||
19882 | ||
19883 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19884 | PyObject *resultobj; | |
19885 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
19886 | PyObject *arg2 = (PyObject *) 0 ; | |
19887 | PyObject * obj0 = 0 ; | |
19888 | PyObject * obj1 = 0 ; | |
19889 | char *kwnames[] = { | |
19890 | (char *) "self",(char *) "obj", NULL | |
19891 | }; | |
19892 | ||
19893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
19894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19895 | arg2 = obj1; | |
19896 | { | |
19897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19898 | (arg1)->SetData(arg2); | |
19899 | ||
19900 | wxPyEndAllowThreads(__tstate); | |
19901 | if (PyErr_Occurred()) SWIG_fail; | |
19902 | } | |
19903 | Py_INCREF(Py_None); resultobj = Py_None; | |
19904 | return resultobj; | |
19905 | fail: | |
19906 | return NULL; | |
19907 | } | |
19908 | ||
19909 | ||
19910 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19911 | PyObject *resultobj; | |
19912 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
19913 | wxTreeItemId *result; | |
19914 | PyObject * obj0 = 0 ; | |
19915 | char *kwnames[] = { | |
19916 | (char *) "self", NULL | |
19917 | }; | |
19918 | ||
19919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
19920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19921 | { | |
19922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19923 | { | |
19924 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
19925 | result = (wxTreeItemId *) &_result_ref; | |
19926 | } | |
19927 | ||
19928 | wxPyEndAllowThreads(__tstate); | |
19929 | if (PyErr_Occurred()) SWIG_fail; | |
19930 | } | |
19931 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
19932 | return resultobj; | |
19933 | fail: | |
19934 | return NULL; | |
19935 | } | |
19936 | ||
19937 | ||
19938 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19939 | PyObject *resultobj; | |
19940 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
19941 | wxTreeItemId *arg2 = 0 ; | |
19942 | PyObject * obj0 = 0 ; | |
19943 | PyObject * obj1 = 0 ; | |
19944 | char *kwnames[] = { | |
19945 | (char *) "self",(char *) "id", NULL | |
19946 | }; | |
19947 | ||
19948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
19949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19950 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19951 | if (arg2 == NULL) { | |
19952 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19953 | } | |
19954 | { | |
19955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19956 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
19957 | ||
19958 | wxPyEndAllowThreads(__tstate); | |
19959 | if (PyErr_Occurred()) SWIG_fail; | |
19960 | } | |
19961 | Py_INCREF(Py_None); resultobj = Py_None; | |
19962 | return resultobj; | |
19963 | fail: | |
19964 | return NULL; | |
19965 | } | |
19966 | ||
19967 | ||
19968 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19969 | PyObject *resultobj; | |
19970 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
19971 | PyObject * obj0 = 0 ; | |
19972 | char *kwnames[] = { | |
19973 | (char *) "self", NULL | |
19974 | }; | |
19975 | ||
19976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
19977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19978 | { | |
19979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19980 | wxPyTreeItemData_Destroy(arg1); | |
19981 | ||
19982 | wxPyEndAllowThreads(__tstate); | |
19983 | if (PyErr_Occurred()) SWIG_fail; | |
19984 | } | |
19985 | Py_INCREF(Py_None); resultobj = Py_None; | |
19986 | return resultobj; | |
19987 | fail: | |
19988 | return NULL; | |
19989 | } | |
19990 | ||
19991 | ||
19992 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
19993 | PyObject *obj; | |
19994 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19995 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
19996 | Py_INCREF(obj); | |
19997 | return Py_BuildValue((char *)""); | |
19998 | } | |
19999 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20000 | PyObject *resultobj; | |
20001 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20002 | int arg2 = (int) 0 ; | |
20003 | wxTreeEvent *result; | |
20004 | char *kwnames[] = { | |
20005 | (char *) "commandType",(char *) "id", NULL | |
20006 | }; | |
20007 | ||
20008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TreeEvent",kwnames,&arg1,&arg2)) goto fail; | |
20009 | { | |
20010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20011 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
20012 | ||
20013 | wxPyEndAllowThreads(__tstate); | |
20014 | if (PyErr_Occurred()) SWIG_fail; | |
20015 | } | |
20016 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
20017 | return resultobj; | |
20018 | fail: | |
20019 | return NULL; | |
20020 | } | |
20021 | ||
20022 | ||
20023 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20024 | PyObject *resultobj; | |
20025 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20026 | wxTreeItemId result; | |
20027 | PyObject * obj0 = 0 ; | |
20028 | char *kwnames[] = { | |
20029 | (char *) "self", NULL | |
20030 | }; | |
20031 | ||
20032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
20033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20034 | { | |
20035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20036 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
20037 | ||
20038 | wxPyEndAllowThreads(__tstate); | |
20039 | if (PyErr_Occurred()) SWIG_fail; | |
20040 | } | |
20041 | { | |
20042 | wxTreeItemId * resultptr; | |
20043 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
20044 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
20045 | } | |
20046 | return resultobj; | |
20047 | fail: | |
20048 | return NULL; | |
20049 | } | |
20050 | ||
20051 | ||
20052 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20053 | PyObject *resultobj; | |
20054 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20055 | wxTreeItemId *arg2 = 0 ; | |
20056 | PyObject * obj0 = 0 ; | |
20057 | PyObject * obj1 = 0 ; | |
20058 | char *kwnames[] = { | |
20059 | (char *) "self",(char *) "item", NULL | |
20060 | }; | |
20061 | ||
20062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20064 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20065 | if (arg2 == NULL) { | |
20066 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20067 | } | |
20068 | { | |
20069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20070 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
20071 | ||
20072 | wxPyEndAllowThreads(__tstate); | |
20073 | if (PyErr_Occurred()) SWIG_fail; | |
20074 | } | |
20075 | Py_INCREF(Py_None); resultobj = Py_None; | |
20076 | return resultobj; | |
20077 | fail: | |
20078 | return NULL; | |
20079 | } | |
20080 | ||
20081 | ||
20082 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20083 | PyObject *resultobj; | |
20084 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20085 | wxTreeItemId result; | |
20086 | PyObject * obj0 = 0 ; | |
20087 | char *kwnames[] = { | |
20088 | (char *) "self", NULL | |
20089 | }; | |
20090 | ||
20091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
20092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20093 | { | |
20094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20095 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
20096 | ||
20097 | wxPyEndAllowThreads(__tstate); | |
20098 | if (PyErr_Occurred()) SWIG_fail; | |
20099 | } | |
20100 | { | |
20101 | wxTreeItemId * resultptr; | |
20102 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
20103 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
20104 | } | |
20105 | return resultobj; | |
20106 | fail: | |
20107 | return NULL; | |
20108 | } | |
20109 | ||
20110 | ||
20111 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20112 | PyObject *resultobj; | |
20113 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20114 | wxTreeItemId *arg2 = 0 ; | |
20115 | PyObject * obj0 = 0 ; | |
20116 | PyObject * obj1 = 0 ; | |
20117 | char *kwnames[] = { | |
20118 | (char *) "self",(char *) "item", NULL | |
20119 | }; | |
20120 | ||
20121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
20122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20123 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20124 | if (arg2 == NULL) { | |
20125 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20126 | } | |
20127 | { | |
20128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20129 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
20130 | ||
20131 | wxPyEndAllowThreads(__tstate); | |
20132 | if (PyErr_Occurred()) SWIG_fail; | |
20133 | } | |
20134 | Py_INCREF(Py_None); resultobj = Py_None; | |
20135 | return resultobj; | |
20136 | fail: | |
20137 | return NULL; | |
20138 | } | |
20139 | ||
20140 | ||
20141 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20142 | PyObject *resultobj; | |
20143 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20144 | wxPoint result; | |
20145 | PyObject * obj0 = 0 ; | |
20146 | char *kwnames[] = { | |
20147 | (char *) "self", NULL | |
20148 | }; | |
20149 | ||
20150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
20151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20152 | { | |
20153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20154 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
20155 | ||
20156 | wxPyEndAllowThreads(__tstate); | |
20157 | if (PyErr_Occurred()) SWIG_fail; | |
20158 | } | |
20159 | { | |
20160 | wxPoint * resultptr; | |
20161 | resultptr = new wxPoint((wxPoint &) result); | |
20162 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20163 | } | |
20164 | return resultobj; | |
20165 | fail: | |
20166 | return NULL; | |
20167 | } | |
20168 | ||
20169 | ||
20170 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20171 | PyObject *resultobj; | |
20172 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20173 | wxPoint *arg2 = 0 ; | |
20174 | wxPoint temp2 ; | |
20175 | PyObject * obj0 = 0 ; | |
20176 | PyObject * obj1 = 0 ; | |
20177 | char *kwnames[] = { | |
20178 | (char *) "self",(char *) "pt", NULL | |
20179 | }; | |
20180 | ||
20181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
20182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20183 | { | |
20184 | arg2 = &temp2; | |
20185 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20186 | } | |
20187 | { | |
20188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20189 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
20190 | ||
20191 | wxPyEndAllowThreads(__tstate); | |
20192 | if (PyErr_Occurred()) SWIG_fail; | |
20193 | } | |
20194 | Py_INCREF(Py_None); resultobj = Py_None; | |
20195 | return resultobj; | |
20196 | fail: | |
20197 | return NULL; | |
20198 | } | |
20199 | ||
20200 | ||
20201 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20202 | PyObject *resultobj; | |
20203 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20204 | wxKeyEvent *result; | |
20205 | PyObject * obj0 = 0 ; | |
20206 | char *kwnames[] = { | |
20207 | (char *) "self", NULL | |
20208 | }; | |
20209 | ||
20210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
20211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20212 | { | |
20213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20214 | { | |
20215 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
20216 | result = (wxKeyEvent *) &_result_ref; | |
20217 | } | |
20218 | ||
20219 | wxPyEndAllowThreads(__tstate); | |
20220 | if (PyErr_Occurred()) SWIG_fail; | |
20221 | } | |
20222 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
20223 | return resultobj; | |
20224 | fail: | |
20225 | return NULL; | |
20226 | } | |
20227 | ||
20228 | ||
20229 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20230 | PyObject *resultobj; | |
20231 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20232 | int result; | |
20233 | PyObject * obj0 = 0 ; | |
20234 | char *kwnames[] = { | |
20235 | (char *) "self", NULL | |
20236 | }; | |
20237 | ||
20238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
20239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20240 | { | |
20241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20242 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
20243 | ||
20244 | wxPyEndAllowThreads(__tstate); | |
20245 | if (PyErr_Occurred()) SWIG_fail; | |
20246 | } | |
20247 | resultobj = PyInt_FromLong((long)result); | |
20248 | return resultobj; | |
20249 | fail: | |
20250 | return NULL; | |
20251 | } | |
20252 | ||
20253 | ||
20254 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20255 | PyObject *resultobj; | |
20256 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20257 | wxKeyEvent *arg2 = 0 ; | |
20258 | PyObject * obj0 = 0 ; | |
20259 | PyObject * obj1 = 0 ; | |
20260 | char *kwnames[] = { | |
20261 | (char *) "self",(char *) "evt", NULL | |
20262 | }; | |
20263 | ||
20264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
20265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20266 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20267 | if (arg2 == NULL) { | |
20268 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20269 | } | |
20270 | { | |
20271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20272 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
20273 | ||
20274 | wxPyEndAllowThreads(__tstate); | |
20275 | if (PyErr_Occurred()) SWIG_fail; | |
20276 | } | |
20277 | Py_INCREF(Py_None); resultobj = Py_None; | |
20278 | return resultobj; | |
20279 | fail: | |
20280 | return NULL; | |
20281 | } | |
20282 | ||
20283 | ||
20284 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20285 | PyObject *resultobj; | |
20286 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20287 | wxString *result; | |
20288 | PyObject * obj0 = 0 ; | |
20289 | char *kwnames[] = { | |
20290 | (char *) "self", NULL | |
20291 | }; | |
20292 | ||
20293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
20294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20295 | { | |
20296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20297 | { | |
20298 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
20299 | result = (wxString *) &_result_ref; | |
20300 | } | |
20301 | ||
20302 | wxPyEndAllowThreads(__tstate); | |
20303 | if (PyErr_Occurred()) SWIG_fail; | |
20304 | } | |
20305 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
20306 | return resultobj; | |
20307 | fail: | |
20308 | return NULL; | |
20309 | } | |
20310 | ||
20311 | ||
20312 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20313 | PyObject *resultobj; | |
20314 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20315 | wxString *arg2 = 0 ; | |
e811c8ce | 20316 | bool temp2 = False ; |
d14a1e28 RD |
20317 | PyObject * obj0 = 0 ; |
20318 | PyObject * obj1 = 0 ; | |
20319 | char *kwnames[] = { | |
20320 | (char *) "self",(char *) "label", NULL | |
20321 | }; | |
20322 | ||
20323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
20324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20325 | { | |
20326 | arg2 = wxString_in_helper(obj1); | |
20327 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20328 | temp2 = True; |
d14a1e28 RD |
20329 | } |
20330 | { | |
20331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20332 | (arg1)->SetLabel((wxString const &)*arg2); | |
20333 | ||
20334 | wxPyEndAllowThreads(__tstate); | |
20335 | if (PyErr_Occurred()) SWIG_fail; | |
20336 | } | |
20337 | Py_INCREF(Py_None); resultobj = Py_None; | |
20338 | { | |
20339 | if (temp2) | |
20340 | delete arg2; | |
20341 | } | |
20342 | return resultobj; | |
20343 | fail: | |
20344 | { | |
20345 | if (temp2) | |
20346 | delete arg2; | |
20347 | } | |
20348 | return NULL; | |
20349 | } | |
20350 | ||
20351 | ||
20352 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20353 | PyObject *resultobj; | |
20354 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20355 | bool result; | |
20356 | PyObject * obj0 = 0 ; | |
20357 | char *kwnames[] = { | |
20358 | (char *) "self", NULL | |
20359 | }; | |
20360 | ||
20361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
20362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20363 | { | |
20364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20365 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
20366 | ||
20367 | wxPyEndAllowThreads(__tstate); | |
20368 | if (PyErr_Occurred()) SWIG_fail; | |
20369 | } | |
20370 | resultobj = PyInt_FromLong((long)result); | |
20371 | return resultobj; | |
20372 | fail: | |
20373 | return NULL; | |
20374 | } | |
20375 | ||
20376 | ||
20377 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20378 | PyObject *resultobj; | |
20379 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20380 | bool arg2 ; | |
20381 | PyObject * obj0 = 0 ; | |
20382 | PyObject * obj1 = 0 ; | |
20383 | char *kwnames[] = { | |
20384 | (char *) "self",(char *) "editCancelled", NULL | |
20385 | }; | |
20386 | ||
20387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
20388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20389 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
20390 | if (PyErr_Occurred()) SWIG_fail; | |
20391 | { | |
20392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20393 | (arg1)->SetEditCanceled(arg2); | |
20394 | ||
20395 | wxPyEndAllowThreads(__tstate); | |
20396 | if (PyErr_Occurred()) SWIG_fail; | |
20397 | } | |
20398 | Py_INCREF(Py_None); resultobj = Py_None; | |
20399 | return resultobj; | |
20400 | fail: | |
20401 | return NULL; | |
20402 | } | |
20403 | ||
20404 | ||
20405 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { | |
20406 | PyObject *obj; | |
20407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20408 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
20409 | Py_INCREF(obj); | |
20410 | return Py_BuildValue((char *)""); | |
20411 | } | |
20412 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20413 | PyObject *resultobj; | |
20414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 20415 | int arg2 = (int) -1 ; |
d14a1e28 RD |
20416 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20417 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20418 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20419 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20420 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
20421 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
20422 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
20423 | wxString const &arg7_defvalue = wxPy_TreeCtrlNameStr ; | |
20424 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20425 | wxPyTreeCtrl *result; | |
20426 | wxPoint temp3 ; | |
20427 | wxSize temp4 ; | |
e811c8ce | 20428 | bool temp7 = False ; |
d14a1e28 RD |
20429 | PyObject * obj0 = 0 ; |
20430 | PyObject * obj2 = 0 ; | |
20431 | PyObject * obj3 = 0 ; | |
20432 | PyObject * obj5 = 0 ; | |
20433 | PyObject * obj6 = 0 ; | |
20434 | char *kwnames[] = { | |
20435 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20436 | }; | |
20437 | ||
20438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_TreeCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
20439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20440 | if (obj2) { | |
20441 | { | |
20442 | arg3 = &temp3; | |
20443 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20444 | } | |
20445 | } | |
20446 | if (obj3) { | |
20447 | { | |
20448 | arg4 = &temp4; | |
20449 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20450 | } | |
20451 | } | |
20452 | if (obj5) { | |
20453 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20454 | if (arg6 == NULL) { | |
20455 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20456 | } | |
20457 | } | |
20458 | if (obj6) { | |
20459 | { | |
20460 | arg7 = wxString_in_helper(obj6); | |
20461 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 20462 | temp7 = True; |
d14a1e28 RD |
20463 | } |
20464 | } | |
20465 | { | |
20466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20467 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20468 | ||
20469 | wxPyEndAllowThreads(__tstate); | |
20470 | if (PyErr_Occurred()) SWIG_fail; | |
20471 | } | |
20472 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeCtrl, 1); | |
20473 | { | |
20474 | if (temp7) | |
20475 | delete arg7; | |
20476 | } | |
20477 | return resultobj; | |
20478 | fail: | |
20479 | { | |
20480 | if (temp7) | |
20481 | delete arg7; | |
20482 | } | |
20483 | return NULL; | |
20484 | } | |
20485 | ||
20486 | ||
20487 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20488 | PyObject *resultobj; | |
20489 | wxPyTreeCtrl *result; | |
20490 | char *kwnames[] = { | |
20491 | NULL | |
20492 | }; | |
20493 | ||
20494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
20495 | { | |
20496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20497 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
20498 | ||
20499 | wxPyEndAllowThreads(__tstate); | |
20500 | if (PyErr_Occurred()) SWIG_fail; | |
20501 | } | |
20502 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeCtrl, 1); | |
20503 | return resultobj; | |
20504 | fail: | |
20505 | return NULL; | |
20506 | } | |
20507 | ||
20508 | ||
20509 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20510 | PyObject *resultobj; | |
20511 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20512 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 20513 | int arg3 = (int) -1 ; |
d14a1e28 RD |
20514 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20515 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20516 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20517 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20518 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
20519 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
20520 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
20521 | wxString const &arg8_defvalue = wxPy_TreeCtrlNameStr ; | |
20522 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20523 | bool result; | |
20524 | wxPoint temp4 ; | |
20525 | wxSize temp5 ; | |
e811c8ce | 20526 | bool temp8 = False ; |
d14a1e28 RD |
20527 | PyObject * obj0 = 0 ; |
20528 | PyObject * obj1 = 0 ; | |
20529 | PyObject * obj3 = 0 ; | |
20530 | PyObject * obj4 = 0 ; | |
20531 | PyObject * obj6 = 0 ; | |
20532 | PyObject * obj7 = 0 ; | |
20533 | char *kwnames[] = { | |
20534 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20535 | }; | |
20536 | ||
20537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
20538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20539 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20540 | if (obj3) { | |
20541 | { | |
20542 | arg4 = &temp4; | |
20543 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20544 | } | |
20545 | } | |
20546 | if (obj4) { | |
20547 | { | |
20548 | arg5 = &temp5; | |
20549 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20550 | } | |
20551 | } | |
20552 | if (obj6) { | |
20553 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20554 | if (arg7 == NULL) { | |
20555 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20556 | } | |
20557 | } | |
20558 | if (obj7) { | |
20559 | { | |
20560 | arg8 = wxString_in_helper(obj7); | |
20561 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 20562 | temp8 = True; |
d14a1e28 RD |
20563 | } |
20564 | } | |
20565 | { | |
20566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20567 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20568 | ||
20569 | wxPyEndAllowThreads(__tstate); | |
20570 | if (PyErr_Occurred()) SWIG_fail; | |
20571 | } | |
20572 | resultobj = PyInt_FromLong((long)result); | |
20573 | { | |
20574 | if (temp8) | |
20575 | delete arg8; | |
20576 | } | |
20577 | return resultobj; | |
20578 | fail: | |
20579 | { | |
20580 | if (temp8) | |
20581 | delete arg8; | |
20582 | } | |
20583 | return NULL; | |
20584 | } | |
20585 | ||
20586 | ||
20587 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20588 | PyObject *resultobj; | |
20589 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20590 | PyObject *arg2 = (PyObject *) 0 ; | |
20591 | PyObject *arg3 = (PyObject *) 0 ; | |
20592 | PyObject * obj0 = 0 ; | |
20593 | PyObject * obj1 = 0 ; | |
20594 | PyObject * obj2 = 0 ; | |
20595 | char *kwnames[] = { | |
20596 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20597 | }; | |
20598 | ||
20599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20601 | arg2 = obj1; | |
20602 | arg3 = obj2; | |
20603 | { | |
20604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20605 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20606 | ||
20607 | wxPyEndAllowThreads(__tstate); | |
20608 | if (PyErr_Occurred()) SWIG_fail; | |
20609 | } | |
20610 | Py_INCREF(Py_None); resultobj = Py_None; | |
20611 | return resultobj; | |
20612 | fail: | |
20613 | return NULL; | |
20614 | } | |
20615 | ||
20616 | ||
20617 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20618 | PyObject *resultobj; | |
20619 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20620 | size_t result; | |
20621 | PyObject * obj0 = 0 ; | |
20622 | char *kwnames[] = { | |
20623 | (char *) "self", NULL | |
20624 | }; | |
20625 | ||
20626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
20627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20628 | { | |
20629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20630 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
20631 | ||
20632 | wxPyEndAllowThreads(__tstate); | |
20633 | if (PyErr_Occurred()) SWIG_fail; | |
20634 | } | |
20635 | resultobj = PyInt_FromLong((long)result); | |
20636 | return resultobj; | |
20637 | fail: | |
20638 | return NULL; | |
20639 | } | |
20640 | ||
20641 | ||
20642 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20643 | PyObject *resultobj; | |
20644 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20645 | unsigned int result; | |
20646 | PyObject * obj0 = 0 ; | |
20647 | char *kwnames[] = { | |
20648 | (char *) "self", NULL | |
20649 | }; | |
20650 | ||
20651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
20652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20653 | { | |
20654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20655 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
20656 | ||
20657 | wxPyEndAllowThreads(__tstate); | |
20658 | if (PyErr_Occurred()) SWIG_fail; | |
20659 | } | |
20660 | resultobj = PyInt_FromLong((long)result); | |
20661 | return resultobj; | |
20662 | fail: | |
20663 | return NULL; | |
20664 | } | |
20665 | ||
20666 | ||
20667 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20668 | PyObject *resultobj; | |
20669 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20670 | unsigned int arg2 ; | |
20671 | PyObject * obj0 = 0 ; | |
20672 | PyObject * obj1 = 0 ; | |
20673 | char *kwnames[] = { | |
20674 | (char *) "self",(char *) "indent", NULL | |
20675 | }; | |
20676 | ||
20677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
20678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20679 | arg2 = (unsigned int) PyInt_AsLong(obj1); | |
20680 | if (PyErr_Occurred()) SWIG_fail; | |
20681 | { | |
20682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20683 | (arg1)->SetIndent(arg2); | |
20684 | ||
20685 | wxPyEndAllowThreads(__tstate); | |
20686 | if (PyErr_Occurred()) SWIG_fail; | |
20687 | } | |
20688 | Py_INCREF(Py_None); resultobj = Py_None; | |
20689 | return resultobj; | |
20690 | fail: | |
20691 | return NULL; | |
20692 | } | |
20693 | ||
20694 | ||
20695 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20696 | PyObject *resultobj; | |
20697 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20698 | unsigned int result; | |
20699 | PyObject * obj0 = 0 ; | |
20700 | char *kwnames[] = { | |
20701 | (char *) "self", NULL | |
20702 | }; | |
20703 | ||
20704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
20705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20706 | { | |
20707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20708 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
20709 | ||
20710 | wxPyEndAllowThreads(__tstate); | |
20711 | if (PyErr_Occurred()) SWIG_fail; | |
20712 | } | |
20713 | resultobj = PyInt_FromLong((long)result); | |
20714 | return resultobj; | |
20715 | fail: | |
20716 | return NULL; | |
20717 | } | |
20718 | ||
20719 | ||
20720 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20721 | PyObject *resultobj; | |
20722 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20723 | unsigned int arg2 ; | |
20724 | PyObject * obj0 = 0 ; | |
20725 | PyObject * obj1 = 0 ; | |
20726 | char *kwnames[] = { | |
20727 | (char *) "self",(char *) "spacing", NULL | |
20728 | }; | |
20729 | ||
20730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
20731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20732 | arg2 = (unsigned int) PyInt_AsLong(obj1); | |
20733 | if (PyErr_Occurred()) SWIG_fail; | |
20734 | { | |
20735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20736 | (arg1)->SetSpacing(arg2); | |
20737 | ||
20738 | wxPyEndAllowThreads(__tstate); | |
20739 | if (PyErr_Occurred()) SWIG_fail; | |
20740 | } | |
20741 | Py_INCREF(Py_None); resultobj = Py_None; | |
20742 | return resultobj; | |
20743 | fail: | |
20744 | return NULL; | |
20745 | } | |
20746 | ||
20747 | ||
20748 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20749 | PyObject *resultobj; | |
20750 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20751 | wxImageList *result; | |
20752 | PyObject * obj0 = 0 ; | |
20753 | char *kwnames[] = { | |
20754 | (char *) "self", NULL | |
20755 | }; | |
20756 | ||
20757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
20758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20759 | { | |
20760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20761 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
20762 | ||
20763 | wxPyEndAllowThreads(__tstate); | |
20764 | if (PyErr_Occurred()) SWIG_fail; | |
20765 | } | |
20766 | { | |
20767 | resultobj = wxPyMake_wxObject(result); | |
20768 | } | |
20769 | return resultobj; | |
20770 | fail: | |
20771 | return NULL; | |
20772 | } | |
20773 | ||
20774 | ||
20775 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20776 | PyObject *resultobj; | |
20777 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20778 | wxImageList *result; | |
20779 | PyObject * obj0 = 0 ; | |
20780 | char *kwnames[] = { | |
20781 | (char *) "self", NULL | |
20782 | }; | |
20783 | ||
20784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
20785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20786 | { | |
20787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20788 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
20789 | ||
20790 | wxPyEndAllowThreads(__tstate); | |
20791 | if (PyErr_Occurred()) SWIG_fail; | |
20792 | } | |
20793 | { | |
20794 | resultobj = wxPyMake_wxObject(result); | |
20795 | } | |
20796 | return resultobj; | |
20797 | fail: | |
20798 | return NULL; | |
20799 | } | |
20800 | ||
20801 | ||
20802 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20803 | PyObject *resultobj; | |
20804 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20805 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20806 | PyObject * obj0 = 0 ; | |
20807 | PyObject * obj1 = 0 ; | |
20808 | char *kwnames[] = { | |
20809 | (char *) "self",(char *) "imageList", NULL | |
20810 | }; | |
20811 | ||
20812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
20813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20814 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20815 | { | |
20816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20817 | (arg1)->SetImageList(arg2); | |
20818 | ||
20819 | wxPyEndAllowThreads(__tstate); | |
20820 | if (PyErr_Occurred()) SWIG_fail; | |
20821 | } | |
20822 | Py_INCREF(Py_None); resultobj = Py_None; | |
20823 | return resultobj; | |
20824 | fail: | |
20825 | return NULL; | |
20826 | } | |
20827 | ||
20828 | ||
20829 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20830 | PyObject *resultobj; | |
20831 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20832 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20833 | PyObject * obj0 = 0 ; | |
20834 | PyObject * obj1 = 0 ; | |
20835 | char *kwnames[] = { | |
20836 | (char *) "self",(char *) "imageList", NULL | |
20837 | }; | |
20838 | ||
20839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
20840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20841 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20842 | { | |
20843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20844 | (arg1)->SetStateImageList(arg2); | |
20845 | ||
20846 | wxPyEndAllowThreads(__tstate); | |
20847 | if (PyErr_Occurred()) SWIG_fail; | |
20848 | } | |
20849 | Py_INCREF(Py_None); resultobj = Py_None; | |
20850 | return resultobj; | |
20851 | fail: | |
20852 | return NULL; | |
20853 | } | |
20854 | ||
20855 | ||
20856 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20857 | PyObject *resultobj; | |
20858 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20859 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20860 | PyObject * obj0 = 0 ; | |
20861 | PyObject * obj1 = 0 ; | |
20862 | char *kwnames[] = { | |
20863 | (char *) "self",(char *) "imageList", NULL | |
20864 | }; | |
20865 | ||
20866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
20867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20868 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20869 | { | |
20870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20871 | (arg1)->AssignImageList(arg2); | |
20872 | ||
20873 | wxPyEndAllowThreads(__tstate); | |
20874 | if (PyErr_Occurred()) SWIG_fail; | |
20875 | } | |
20876 | Py_INCREF(Py_None); resultobj = Py_None; | |
20877 | return resultobj; | |
20878 | fail: | |
20879 | return NULL; | |
20880 | } | |
20881 | ||
20882 | ||
20883 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20884 | PyObject *resultobj; | |
20885 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20886 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20887 | PyObject * obj0 = 0 ; | |
20888 | PyObject * obj1 = 0 ; | |
20889 | char *kwnames[] = { | |
20890 | (char *) "self",(char *) "imageList", NULL | |
20891 | }; | |
20892 | ||
20893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
20894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20895 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20896 | { | |
20897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20898 | (arg1)->AssignStateImageList(arg2); | |
20899 | ||
20900 | wxPyEndAllowThreads(__tstate); | |
20901 | if (PyErr_Occurred()) SWIG_fail; | |
20902 | } | |
20903 | Py_INCREF(Py_None); resultobj = Py_None; | |
20904 | return resultobj; | |
20905 | fail: | |
20906 | return NULL; | |
20907 | } | |
20908 | ||
20909 | ||
20910 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20911 | PyObject *resultobj; | |
20912 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20913 | wxTreeItemId *arg2 = 0 ; | |
20914 | wxString result; | |
20915 | PyObject * obj0 = 0 ; | |
20916 | PyObject * obj1 = 0 ; | |
20917 | char *kwnames[] = { | |
20918 | (char *) "self",(char *) "item", NULL | |
20919 | }; | |
20920 | ||
20921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
20922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20923 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20924 | if (arg2 == NULL) { | |
20925 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20926 | } | |
20927 | { | |
20928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20929 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
20930 | ||
20931 | wxPyEndAllowThreads(__tstate); | |
20932 | if (PyErr_Occurred()) SWIG_fail; | |
20933 | } | |
20934 | { | |
20935 | #if wxUSE_UNICODE | |
20936 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20937 | #else | |
20938 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20939 | #endif | |
20940 | } | |
20941 | return resultobj; | |
20942 | fail: | |
20943 | return NULL; | |
20944 | } | |
20945 | ||
20946 | ||
20947 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20948 | PyObject *resultobj; | |
20949 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20950 | wxTreeItemId *arg2 = 0 ; | |
20951 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
20952 | int result; | |
20953 | PyObject * obj0 = 0 ; | |
20954 | PyObject * obj1 = 0 ; | |
20955 | char *kwnames[] = { | |
20956 | (char *) "self",(char *) "item",(char *) "which", NULL | |
20957 | }; | |
20958 | ||
20959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
20960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20961 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20962 | if (arg2 == NULL) { | |
20963 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20964 | } | |
20965 | { | |
20966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20967 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
20968 | ||
20969 | wxPyEndAllowThreads(__tstate); | |
20970 | if (PyErr_Occurred()) SWIG_fail; | |
20971 | } | |
20972 | resultobj = PyInt_FromLong((long)result); | |
20973 | return resultobj; | |
20974 | fail: | |
20975 | return NULL; | |
20976 | } | |
20977 | ||
20978 | ||
20979 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20980 | PyObject *resultobj; | |
20981 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20982 | wxTreeItemId *arg2 = 0 ; | |
20983 | wxPyTreeItemData *result; | |
20984 | PyObject * obj0 = 0 ; | |
20985 | PyObject * obj1 = 0 ; | |
20986 | char *kwnames[] = { | |
20987 | (char *) "self",(char *) "item", NULL | |
20988 | }; | |
20989 | ||
20990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
20991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20992 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20993 | if (arg2 == NULL) { | |
20994 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20995 | } | |
20996 | { | |
20997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20998 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
20999 | ||
21000 | wxPyEndAllowThreads(__tstate); | |
21001 | if (PyErr_Occurred()) SWIG_fail; | |
21002 | } | |
21003 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
21004 | return resultobj; | |
21005 | fail: | |
21006 | return NULL; | |
21007 | } | |
21008 | ||
21009 | ||
21010 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21011 | PyObject *resultobj; | |
21012 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21013 | wxTreeItemId *arg2 = 0 ; | |
21014 | PyObject *result; | |
21015 | PyObject * obj0 = 0 ; | |
21016 | PyObject * obj1 = 0 ; | |
21017 | char *kwnames[] = { | |
21018 | (char *) "self",(char *) "item", NULL | |
21019 | }; | |
21020 | ||
21021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
21022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21023 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21024 | if (arg2 == NULL) { | |
21025 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21026 | } | |
21027 | { | |
21028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21029 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
21030 | ||
21031 | wxPyEndAllowThreads(__tstate); | |
21032 | if (PyErr_Occurred()) SWIG_fail; | |
21033 | } | |
21034 | resultobj = result; | |
21035 | return resultobj; | |
21036 | fail: | |
21037 | return NULL; | |
21038 | } | |
21039 | ||
21040 | ||
21041 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21042 | PyObject *resultobj; | |
21043 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21044 | wxTreeItemId *arg2 = 0 ; | |
21045 | wxColour result; | |
21046 | PyObject * obj0 = 0 ; | |
21047 | PyObject * obj1 = 0 ; | |
21048 | char *kwnames[] = { | |
21049 | (char *) "self",(char *) "item", NULL | |
21050 | }; | |
21051 | ||
21052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
21053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21054 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21055 | if (arg2 == NULL) { | |
21056 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21057 | } | |
21058 | { | |
21059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21060 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
21061 | ||
21062 | wxPyEndAllowThreads(__tstate); | |
21063 | if (PyErr_Occurred()) SWIG_fail; | |
21064 | } | |
21065 | { | |
21066 | wxColour * resultptr; | |
21067 | resultptr = new wxColour((wxColour &) result); | |
21068 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21069 | } | |
21070 | return resultobj; | |
21071 | fail: | |
21072 | return NULL; | |
21073 | } | |
21074 | ||
21075 | ||
21076 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21077 | PyObject *resultobj; | |
21078 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21079 | wxTreeItemId *arg2 = 0 ; | |
21080 | wxColour result; | |
21081 | PyObject * obj0 = 0 ; | |
21082 | PyObject * obj1 = 0 ; | |
21083 | char *kwnames[] = { | |
21084 | (char *) "self",(char *) "item", NULL | |
21085 | }; | |
21086 | ||
21087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21089 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21090 | if (arg2 == NULL) { | |
21091 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21092 | } | |
21093 | { | |
21094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21095 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
21096 | ||
21097 | wxPyEndAllowThreads(__tstate); | |
21098 | if (PyErr_Occurred()) SWIG_fail; | |
21099 | } | |
21100 | { | |
21101 | wxColour * resultptr; | |
21102 | resultptr = new wxColour((wxColour &) result); | |
21103 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21104 | } | |
21105 | return resultobj; | |
21106 | fail: | |
21107 | return NULL; | |
21108 | } | |
21109 | ||
21110 | ||
21111 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21112 | PyObject *resultobj; | |
21113 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21114 | wxTreeItemId *arg2 = 0 ; | |
21115 | wxFont result; | |
21116 | PyObject * obj0 = 0 ; | |
21117 | PyObject * obj1 = 0 ; | |
21118 | char *kwnames[] = { | |
21119 | (char *) "self",(char *) "item", NULL | |
21120 | }; | |
21121 | ||
21122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
21123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21124 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21125 | if (arg2 == NULL) { | |
21126 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21127 | } | |
21128 | { | |
21129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21130 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
21131 | ||
21132 | wxPyEndAllowThreads(__tstate); | |
21133 | if (PyErr_Occurred()) SWIG_fail; | |
21134 | } | |
21135 | { | |
21136 | wxFont * resultptr; | |
21137 | resultptr = new wxFont((wxFont &) result); | |
21138 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
21139 | } | |
21140 | return resultobj; | |
21141 | fail: | |
21142 | return NULL; | |
21143 | } | |
21144 | ||
21145 | ||
21146 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21147 | PyObject *resultobj; | |
21148 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21149 | wxTreeItemId *arg2 = 0 ; | |
21150 | wxString *arg3 = 0 ; | |
e811c8ce | 21151 | bool temp3 = False ; |
d14a1e28 RD |
21152 | PyObject * obj0 = 0 ; |
21153 | PyObject * obj1 = 0 ; | |
21154 | PyObject * obj2 = 0 ; | |
21155 | char *kwnames[] = { | |
21156 | (char *) "self",(char *) "item",(char *) "text", NULL | |
21157 | }; | |
21158 | ||
21159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21161 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21162 | if (arg2 == NULL) { | |
21163 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21164 | } | |
21165 | { | |
21166 | arg3 = wxString_in_helper(obj2); | |
21167 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 21168 | temp3 = True; |
d14a1e28 RD |
21169 | } |
21170 | { | |
21171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21172 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
21173 | ||
21174 | wxPyEndAllowThreads(__tstate); | |
21175 | if (PyErr_Occurred()) SWIG_fail; | |
21176 | } | |
21177 | Py_INCREF(Py_None); resultobj = Py_None; | |
21178 | { | |
21179 | if (temp3) | |
21180 | delete arg3; | |
21181 | } | |
21182 | return resultobj; | |
21183 | fail: | |
21184 | { | |
21185 | if (temp3) | |
21186 | delete arg3; | |
21187 | } | |
21188 | return NULL; | |
21189 | } | |
21190 | ||
21191 | ||
21192 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21193 | PyObject *resultobj; | |
21194 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21195 | wxTreeItemId *arg2 = 0 ; | |
21196 | int arg3 ; | |
21197 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
21198 | PyObject * obj0 = 0 ; | |
21199 | PyObject * obj1 = 0 ; | |
21200 | char *kwnames[] = { | |
21201 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
21202 | }; | |
21203 | ||
21204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|i:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
21205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21206 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21207 | if (arg2 == NULL) { | |
21208 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21209 | } | |
21210 | { | |
21211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21212 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
21213 | ||
21214 | wxPyEndAllowThreads(__tstate); | |
21215 | if (PyErr_Occurred()) SWIG_fail; | |
21216 | } | |
21217 | Py_INCREF(Py_None); resultobj = Py_None; | |
21218 | return resultobj; | |
21219 | fail: | |
21220 | return NULL; | |
21221 | } | |
21222 | ||
21223 | ||
21224 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21225 | PyObject *resultobj; | |
21226 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21227 | wxTreeItemId *arg2 = 0 ; | |
21228 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
21229 | PyObject * obj0 = 0 ; | |
21230 | PyObject * obj1 = 0 ; | |
21231 | PyObject * obj2 = 0 ; | |
21232 | char *kwnames[] = { | |
21233 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21234 | }; | |
21235 | ||
21236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21238 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21239 | if (arg2 == NULL) { | |
21240 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21241 | } | |
21242 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21243 | { | |
21244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21245 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
21246 | ||
21247 | wxPyEndAllowThreads(__tstate); | |
21248 | if (PyErr_Occurred()) SWIG_fail; | |
21249 | } | |
21250 | Py_INCREF(Py_None); resultobj = Py_None; | |
21251 | return resultobj; | |
21252 | fail: | |
21253 | return NULL; | |
21254 | } | |
21255 | ||
21256 | ||
21257 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21258 | PyObject *resultobj; | |
21259 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21260 | wxTreeItemId *arg2 = 0 ; | |
21261 | PyObject *arg3 = (PyObject *) 0 ; | |
21262 | PyObject * obj0 = 0 ; | |
21263 | PyObject * obj1 = 0 ; | |
21264 | PyObject * obj2 = 0 ; | |
21265 | char *kwnames[] = { | |
21266 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
21267 | }; | |
21268 | ||
21269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21271 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21272 | if (arg2 == NULL) { | |
21273 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21274 | } | |
21275 | arg3 = obj2; | |
21276 | { | |
21277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21278 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
21279 | ||
21280 | wxPyEndAllowThreads(__tstate); | |
21281 | if (PyErr_Occurred()) SWIG_fail; | |
21282 | } | |
21283 | Py_INCREF(Py_None); resultobj = Py_None; | |
21284 | return resultobj; | |
21285 | fail: | |
21286 | return NULL; | |
21287 | } | |
21288 | ||
21289 | ||
21290 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21291 | PyObject *resultobj; | |
21292 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21293 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 21294 | bool arg3 = (bool) True ; |
d14a1e28 RD |
21295 | PyObject * obj0 = 0 ; |
21296 | PyObject * obj1 = 0 ; | |
21297 | PyObject * obj2 = 0 ; | |
21298 | char *kwnames[] = { | |
21299 | (char *) "self",(char *) "item",(char *) "has", NULL | |
21300 | }; | |
21301 | ||
21302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21304 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21305 | if (arg2 == NULL) { | |
21306 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21307 | } | |
21308 | if (obj2) { | |
21309 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
21310 | if (PyErr_Occurred()) SWIG_fail; | |
21311 | } | |
21312 | { | |
21313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21314 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
21315 | ||
21316 | wxPyEndAllowThreads(__tstate); | |
21317 | if (PyErr_Occurred()) SWIG_fail; | |
21318 | } | |
21319 | Py_INCREF(Py_None); resultobj = Py_None; | |
21320 | return resultobj; | |
21321 | fail: | |
21322 | return NULL; | |
21323 | } | |
21324 | ||
21325 | ||
21326 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21327 | PyObject *resultobj; | |
21328 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21329 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 21330 | bool arg3 = (bool) True ; |
d14a1e28 RD |
21331 | PyObject * obj0 = 0 ; |
21332 | PyObject * obj1 = 0 ; | |
21333 | PyObject * obj2 = 0 ; | |
21334 | char *kwnames[] = { | |
21335 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
21336 | }; | |
21337 | ||
21338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21340 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21341 | if (arg2 == NULL) { | |
21342 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21343 | } | |
21344 | if (obj2) { | |
21345 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
21346 | if (PyErr_Occurred()) SWIG_fail; | |
21347 | } | |
21348 | { | |
21349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21350 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
21351 | ||
21352 | wxPyEndAllowThreads(__tstate); | |
21353 | if (PyErr_Occurred()) SWIG_fail; | |
21354 | } | |
21355 | Py_INCREF(Py_None); resultobj = Py_None; | |
21356 | return resultobj; | |
21357 | fail: | |
21358 | return NULL; | |
21359 | } | |
21360 | ||
21361 | ||
21362 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21363 | PyObject *resultobj; | |
21364 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21365 | wxTreeItemId *arg2 = 0 ; | |
21366 | wxColour *arg3 = 0 ; | |
21367 | wxColour temp3 ; | |
21368 | PyObject * obj0 = 0 ; | |
21369 | PyObject * obj1 = 0 ; | |
21370 | PyObject * obj2 = 0 ; | |
21371 | char *kwnames[] = { | |
21372 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21373 | }; | |
21374 | ||
21375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21377 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21378 | if (arg2 == NULL) { | |
21379 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21380 | } | |
21381 | { | |
21382 | arg3 = &temp3; | |
21383 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21384 | } | |
21385 | { | |
21386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21387 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
21388 | ||
21389 | wxPyEndAllowThreads(__tstate); | |
21390 | if (PyErr_Occurred()) SWIG_fail; | |
21391 | } | |
21392 | Py_INCREF(Py_None); resultobj = Py_None; | |
21393 | return resultobj; | |
21394 | fail: | |
21395 | return NULL; | |
21396 | } | |
21397 | ||
21398 | ||
21399 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21400 | PyObject *resultobj; | |
21401 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21402 | wxTreeItemId *arg2 = 0 ; | |
21403 | wxColour *arg3 = 0 ; | |
21404 | wxColour temp3 ; | |
21405 | PyObject * obj0 = 0 ; | |
21406 | PyObject * obj1 = 0 ; | |
21407 | PyObject * obj2 = 0 ; | |
21408 | char *kwnames[] = { | |
21409 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21410 | }; | |
21411 | ||
21412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21414 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21415 | if (arg2 == NULL) { | |
21416 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21417 | } | |
21418 | { | |
21419 | arg3 = &temp3; | |
21420 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21421 | } | |
21422 | { | |
21423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21424 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
21425 | ||
21426 | wxPyEndAllowThreads(__tstate); | |
21427 | if (PyErr_Occurred()) SWIG_fail; | |
21428 | } | |
21429 | Py_INCREF(Py_None); resultobj = Py_None; | |
21430 | return resultobj; | |
21431 | fail: | |
21432 | return NULL; | |
21433 | } | |
21434 | ||
21435 | ||
21436 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21437 | PyObject *resultobj; | |
21438 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21439 | wxTreeItemId *arg2 = 0 ; | |
21440 | wxFont *arg3 = 0 ; | |
21441 | PyObject * obj0 = 0 ; | |
21442 | PyObject * obj1 = 0 ; | |
21443 | PyObject * obj2 = 0 ; | |
21444 | char *kwnames[] = { | |
21445 | (char *) "self",(char *) "item",(char *) "font", NULL | |
21446 | }; | |
21447 | ||
21448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21450 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21451 | if (arg2 == NULL) { | |
21452 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21453 | } | |
21454 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21455 | if (arg3 == NULL) { | |
21456 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21457 | } | |
21458 | { | |
21459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21460 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
21461 | ||
21462 | wxPyEndAllowThreads(__tstate); | |
21463 | if (PyErr_Occurred()) SWIG_fail; | |
21464 | } | |
21465 | Py_INCREF(Py_None); resultobj = Py_None; | |
21466 | return resultobj; | |
21467 | fail: | |
21468 | return NULL; | |
21469 | } | |
21470 | ||
21471 | ||
21472 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21473 | PyObject *resultobj; | |
21474 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21475 | wxTreeItemId *arg2 = 0 ; | |
21476 | bool result; | |
21477 | PyObject * obj0 = 0 ; | |
21478 | PyObject * obj1 = 0 ; | |
21479 | char *kwnames[] = { | |
21480 | (char *) "self",(char *) "item", NULL | |
21481 | }; | |
21482 | ||
21483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
21484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21485 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21486 | if (arg2 == NULL) { | |
21487 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21488 | } | |
21489 | { | |
21490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21491 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
21492 | ||
21493 | wxPyEndAllowThreads(__tstate); | |
21494 | if (PyErr_Occurred()) SWIG_fail; | |
21495 | } | |
21496 | resultobj = PyInt_FromLong((long)result); | |
21497 | return resultobj; | |
21498 | fail: | |
21499 | return NULL; | |
21500 | } | |
21501 | ||
21502 | ||
21503 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21504 | PyObject *resultobj; | |
21505 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21506 | wxTreeItemId *arg2 = 0 ; | |
21507 | bool result; | |
21508 | PyObject * obj0 = 0 ; | |
21509 | PyObject * obj1 = 0 ; | |
21510 | char *kwnames[] = { | |
21511 | (char *) "self",(char *) "item", NULL | |
21512 | }; | |
21513 | ||
21514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
21515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21516 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21517 | if (arg2 == NULL) { | |
21518 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21519 | } | |
21520 | { | |
21521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21522 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
21523 | ||
21524 | wxPyEndAllowThreads(__tstate); | |
21525 | if (PyErr_Occurred()) SWIG_fail; | |
21526 | } | |
21527 | resultobj = PyInt_FromLong((long)result); | |
21528 | return resultobj; | |
21529 | fail: | |
21530 | return NULL; | |
21531 | } | |
21532 | ||
21533 | ||
21534 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21535 | PyObject *resultobj; | |
21536 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21537 | wxTreeItemId *arg2 = 0 ; | |
21538 | bool result; | |
21539 | PyObject * obj0 = 0 ; | |
21540 | PyObject * obj1 = 0 ; | |
21541 | char *kwnames[] = { | |
21542 | (char *) "self",(char *) "item", NULL | |
21543 | }; | |
21544 | ||
21545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
21546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21547 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21548 | if (arg2 == NULL) { | |
21549 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21550 | } | |
21551 | { | |
21552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21553 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
21554 | ||
21555 | wxPyEndAllowThreads(__tstate); | |
21556 | if (PyErr_Occurred()) SWIG_fail; | |
21557 | } | |
21558 | resultobj = PyInt_FromLong((long)result); | |
21559 | return resultobj; | |
21560 | fail: | |
21561 | return NULL; | |
21562 | } | |
21563 | ||
21564 | ||
21565 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21566 | PyObject *resultobj; | |
21567 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21568 | wxTreeItemId *arg2 = 0 ; | |
21569 | bool result; | |
21570 | PyObject * obj0 = 0 ; | |
21571 | PyObject * obj1 = 0 ; | |
21572 | char *kwnames[] = { | |
21573 | (char *) "self",(char *) "item", NULL | |
21574 | }; | |
21575 | ||
21576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
21577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21578 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21579 | if (arg2 == NULL) { | |
21580 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21581 | } | |
21582 | { | |
21583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21584 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
21585 | ||
21586 | wxPyEndAllowThreads(__tstate); | |
21587 | if (PyErr_Occurred()) SWIG_fail; | |
21588 | } | |
21589 | resultobj = PyInt_FromLong((long)result); | |
21590 | return resultobj; | |
21591 | fail: | |
21592 | return NULL; | |
21593 | } | |
21594 | ||
21595 | ||
21596 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21597 | PyObject *resultobj; | |
21598 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21599 | wxTreeItemId *arg2 = 0 ; | |
21600 | bool result; | |
21601 | PyObject * obj0 = 0 ; | |
21602 | PyObject * obj1 = 0 ; | |
21603 | char *kwnames[] = { | |
21604 | (char *) "self",(char *) "item", NULL | |
21605 | }; | |
21606 | ||
21607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
21608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21609 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21610 | if (arg2 == NULL) { | |
21611 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21612 | } | |
21613 | { | |
21614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21615 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
21616 | ||
21617 | wxPyEndAllowThreads(__tstate); | |
21618 | if (PyErr_Occurred()) SWIG_fail; | |
21619 | } | |
21620 | resultobj = PyInt_FromLong((long)result); | |
21621 | return resultobj; | |
21622 | fail: | |
21623 | return NULL; | |
21624 | } | |
21625 | ||
21626 | ||
21627 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21628 | PyObject *resultobj; | |
21629 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21630 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 21631 | bool arg3 = (bool) True ; |
d14a1e28 RD |
21632 | size_t result; |
21633 | PyObject * obj0 = 0 ; | |
21634 | PyObject * obj1 = 0 ; | |
21635 | PyObject * obj2 = 0 ; | |
21636 | char *kwnames[] = { | |
21637 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
21638 | }; | |
21639 | ||
21640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21642 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21643 | if (arg2 == NULL) { | |
21644 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21645 | } | |
21646 | if (obj2) { | |
21647 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
21648 | if (PyErr_Occurred()) SWIG_fail; | |
21649 | } | |
21650 | { | |
21651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21652 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
21653 | ||
21654 | wxPyEndAllowThreads(__tstate); | |
21655 | if (PyErr_Occurred()) SWIG_fail; | |
21656 | } | |
21657 | resultobj = PyInt_FromLong((long)result); | |
21658 | return resultobj; | |
21659 | fail: | |
21660 | return NULL; | |
21661 | } | |
21662 | ||
21663 | ||
21664 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21665 | PyObject *resultobj; | |
21666 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21667 | wxTreeItemId result; | |
21668 | PyObject * obj0 = 0 ; | |
21669 | char *kwnames[] = { | |
21670 | (char *) "self", NULL | |
21671 | }; | |
21672 | ||
21673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
21674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21675 | { | |
21676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21677 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
21678 | ||
21679 | wxPyEndAllowThreads(__tstate); | |
21680 | if (PyErr_Occurred()) SWIG_fail; | |
21681 | } | |
21682 | { | |
21683 | wxTreeItemId * resultptr; | |
21684 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21685 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21686 | } | |
21687 | return resultobj; | |
21688 | fail: | |
21689 | return NULL; | |
21690 | } | |
21691 | ||
21692 | ||
21693 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21694 | PyObject *resultobj; | |
21695 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21696 | wxTreeItemId result; | |
21697 | PyObject * obj0 = 0 ; | |
21698 | char *kwnames[] = { | |
21699 | (char *) "self", NULL | |
21700 | }; | |
21701 | ||
21702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
21703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21704 | { | |
21705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21706 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
21707 | ||
21708 | wxPyEndAllowThreads(__tstate); | |
21709 | if (PyErr_Occurred()) SWIG_fail; | |
21710 | } | |
21711 | { | |
21712 | wxTreeItemId * resultptr; | |
21713 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21714 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21715 | } | |
21716 | return resultobj; | |
21717 | fail: | |
21718 | return NULL; | |
21719 | } | |
21720 | ||
21721 | ||
21722 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21723 | PyObject *resultobj; | |
21724 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21725 | PyObject *result; | |
21726 | PyObject * obj0 = 0 ; | |
21727 | char *kwnames[] = { | |
21728 | (char *) "self", NULL | |
21729 | }; | |
21730 | ||
21731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
21732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21733 | { | |
21734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21735 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
21736 | ||
21737 | wxPyEndAllowThreads(__tstate); | |
21738 | if (PyErr_Occurred()) SWIG_fail; | |
21739 | } | |
21740 | resultobj = result; | |
21741 | return resultobj; | |
21742 | fail: | |
21743 | return NULL; | |
21744 | } | |
21745 | ||
21746 | ||
21747 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21748 | PyObject *resultobj; | |
21749 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21750 | wxTreeItemId *arg2 = 0 ; | |
21751 | wxTreeItemId result; | |
21752 | PyObject * obj0 = 0 ; | |
21753 | PyObject * obj1 = 0 ; | |
21754 | char *kwnames[] = { | |
21755 | (char *) "self",(char *) "item", NULL | |
21756 | }; | |
21757 | ||
21758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
21759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21760 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21761 | if (arg2 == NULL) { | |
21762 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21763 | } | |
21764 | { | |
21765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21766 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
21767 | ||
21768 | wxPyEndAllowThreads(__tstate); | |
21769 | if (PyErr_Occurred()) SWIG_fail; | |
21770 | } | |
21771 | { | |
21772 | wxTreeItemId * resultptr; | |
21773 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21774 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21775 | } | |
21776 | return resultobj; | |
21777 | fail: | |
21778 | return NULL; | |
21779 | } | |
21780 | ||
21781 | ||
21782 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21783 | PyObject *resultobj; | |
21784 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21785 | wxTreeItemId *arg2 = 0 ; | |
21786 | PyObject *result; | |
21787 | PyObject * obj0 = 0 ; | |
21788 | PyObject * obj1 = 0 ; | |
21789 | char *kwnames[] = { | |
21790 | (char *) "self",(char *) "item", NULL | |
21791 | }; | |
21792 | ||
21793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
21794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21795 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21796 | if (arg2 == NULL) { | |
21797 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21798 | } | |
21799 | { | |
21800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21801 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
21802 | ||
21803 | wxPyEndAllowThreads(__tstate); | |
21804 | if (PyErr_Occurred()) SWIG_fail; | |
21805 | } | |
21806 | resultobj = result; | |
21807 | return resultobj; | |
21808 | fail: | |
21809 | return NULL; | |
21810 | } | |
21811 | ||
21812 | ||
21813 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21814 | PyObject *resultobj; | |
21815 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21816 | wxTreeItemId *arg2 = 0 ; | |
21817 | wxTreeItemIdValue *arg3 = 0 ; | |
21818 | PyObject *result; | |
21819 | PyObject * obj0 = 0 ; | |
21820 | PyObject * obj1 = 0 ; | |
21821 | PyObject * obj2 = 0 ; | |
21822 | char *kwnames[] = { | |
21823 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
21824 | }; | |
21825 | ||
21826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21828 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21829 | if (arg2 == NULL) { | |
21830 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21831 | } | |
21832 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemIdValue,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21833 | if (arg3 == NULL) { | |
21834 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21835 | } | |
21836 | { | |
21837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21838 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,*arg3); | |
21839 | ||
21840 | wxPyEndAllowThreads(__tstate); | |
21841 | if (PyErr_Occurred()) SWIG_fail; | |
21842 | } | |
21843 | resultobj = result; | |
21844 | return resultobj; | |
21845 | fail: | |
21846 | return NULL; | |
21847 | } | |
21848 | ||
21849 | ||
21850 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21851 | PyObject *resultobj; | |
21852 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21853 | wxTreeItemId *arg2 = 0 ; | |
21854 | wxTreeItemId result; | |
21855 | PyObject * obj0 = 0 ; | |
21856 | PyObject * obj1 = 0 ; | |
21857 | char *kwnames[] = { | |
21858 | (char *) "self",(char *) "item", NULL | |
21859 | }; | |
21860 | ||
21861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
21862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21863 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21864 | if (arg2 == NULL) { | |
21865 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21866 | } | |
21867 | { | |
21868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21869 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
21870 | ||
21871 | wxPyEndAllowThreads(__tstate); | |
21872 | if (PyErr_Occurred()) SWIG_fail; | |
21873 | } | |
21874 | { | |
21875 | wxTreeItemId * resultptr; | |
21876 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21877 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21878 | } | |
21879 | return resultobj; | |
21880 | fail: | |
21881 | return NULL; | |
21882 | } | |
21883 | ||
21884 | ||
21885 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21886 | PyObject *resultobj; | |
21887 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21888 | wxTreeItemId *arg2 = 0 ; | |
21889 | wxTreeItemId result; | |
21890 | PyObject * obj0 = 0 ; | |
21891 | PyObject * obj1 = 0 ; | |
21892 | char *kwnames[] = { | |
21893 | (char *) "self",(char *) "item", NULL | |
21894 | }; | |
21895 | ||
21896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
21897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21898 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21899 | if (arg2 == NULL) { | |
21900 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21901 | } | |
21902 | { | |
21903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21904 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
21905 | ||
21906 | wxPyEndAllowThreads(__tstate); | |
21907 | if (PyErr_Occurred()) SWIG_fail; | |
21908 | } | |
21909 | { | |
21910 | wxTreeItemId * resultptr; | |
21911 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21912 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21913 | } | |
21914 | return resultobj; | |
21915 | fail: | |
21916 | return NULL; | |
21917 | } | |
21918 | ||
21919 | ||
21920 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21921 | PyObject *resultobj; | |
21922 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21923 | wxTreeItemId *arg2 = 0 ; | |
21924 | wxTreeItemId result; | |
21925 | PyObject * obj0 = 0 ; | |
21926 | PyObject * obj1 = 0 ; | |
21927 | char *kwnames[] = { | |
21928 | (char *) "self",(char *) "item", NULL | |
21929 | }; | |
21930 | ||
21931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
21932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21933 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21934 | if (arg2 == NULL) { | |
21935 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21936 | } | |
21937 | { | |
21938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21939 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
21940 | ||
21941 | wxPyEndAllowThreads(__tstate); | |
21942 | if (PyErr_Occurred()) SWIG_fail; | |
21943 | } | |
21944 | { | |
21945 | wxTreeItemId * resultptr; | |
21946 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21947 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21948 | } | |
21949 | return resultobj; | |
21950 | fail: | |
21951 | return NULL; | |
21952 | } | |
21953 | ||
21954 | ||
21955 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21956 | PyObject *resultobj; | |
21957 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21958 | wxTreeItemId result; | |
21959 | PyObject * obj0 = 0 ; | |
21960 | char *kwnames[] = { | |
21961 | (char *) "self", NULL | |
21962 | }; | |
21963 | ||
21964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
21965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21966 | { | |
21967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21968 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
21969 | ||
21970 | wxPyEndAllowThreads(__tstate); | |
21971 | if (PyErr_Occurred()) SWIG_fail; | |
21972 | } | |
21973 | { | |
21974 | wxTreeItemId * resultptr; | |
21975 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21976 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21977 | } | |
21978 | return resultobj; | |
21979 | fail: | |
21980 | return NULL; | |
21981 | } | |
21982 | ||
21983 | ||
21984 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21985 | PyObject *resultobj; | |
21986 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21987 | wxTreeItemId *arg2 = 0 ; | |
21988 | wxTreeItemId result; | |
21989 | PyObject * obj0 = 0 ; | |
21990 | PyObject * obj1 = 0 ; | |
21991 | char *kwnames[] = { | |
21992 | (char *) "self",(char *) "item", NULL | |
21993 | }; | |
21994 | ||
21995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
21996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21997 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21998 | if (arg2 == NULL) { | |
21999 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22000 | } | |
22001 | { | |
22002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22003 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
22004 | ||
22005 | wxPyEndAllowThreads(__tstate); | |
22006 | if (PyErr_Occurred()) SWIG_fail; | |
22007 | } | |
22008 | { | |
22009 | wxTreeItemId * resultptr; | |
22010 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22011 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22012 | } | |
22013 | return resultobj; | |
22014 | fail: | |
22015 | return NULL; | |
22016 | } | |
22017 | ||
22018 | ||
22019 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22020 | PyObject *resultobj; | |
22021 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22022 | wxTreeItemId *arg2 = 0 ; | |
22023 | wxTreeItemId result; | |
22024 | PyObject * obj0 = 0 ; | |
22025 | PyObject * obj1 = 0 ; | |
22026 | char *kwnames[] = { | |
22027 | (char *) "self",(char *) "item", NULL | |
22028 | }; | |
22029 | ||
22030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
22031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22032 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22033 | if (arg2 == NULL) { | |
22034 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22035 | } | |
22036 | { | |
22037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22038 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
22039 | ||
22040 | wxPyEndAllowThreads(__tstate); | |
22041 | if (PyErr_Occurred()) SWIG_fail; | |
22042 | } | |
22043 | { | |
22044 | wxTreeItemId * resultptr; | |
22045 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22046 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22047 | } | |
22048 | return resultobj; | |
22049 | fail: | |
22050 | return NULL; | |
22051 | } | |
22052 | ||
22053 | ||
22054 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22055 | PyObject *resultobj; | |
22056 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22057 | wxString *arg2 = 0 ; | |
22058 | int arg3 = (int) -1 ; | |
22059 | int arg4 = (int) -1 ; | |
22060 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
22061 | wxTreeItemId result; | |
e811c8ce | 22062 | bool temp2 = False ; |
d14a1e28 RD |
22063 | PyObject * obj0 = 0 ; |
22064 | PyObject * obj1 = 0 ; | |
22065 | PyObject * obj4 = 0 ; | |
22066 | char *kwnames[] = { | |
22067 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22068 | }; | |
22069 | ||
22070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail; | |
22071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22072 | { | |
22073 | arg2 = wxString_in_helper(obj1); | |
22074 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22075 | temp2 = True; |
d14a1e28 RD |
22076 | } |
22077 | if (obj4) { | |
22078 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22079 | } | |
22080 | { | |
22081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22082 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
22083 | ||
22084 | wxPyEndAllowThreads(__tstate); | |
22085 | if (PyErr_Occurred()) SWIG_fail; | |
22086 | } | |
22087 | { | |
22088 | wxTreeItemId * resultptr; | |
22089 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22090 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22091 | } | |
22092 | { | |
22093 | if (temp2) | |
22094 | delete arg2; | |
22095 | } | |
22096 | return resultobj; | |
22097 | fail: | |
22098 | { | |
22099 | if (temp2) | |
22100 | delete arg2; | |
22101 | } | |
22102 | return NULL; | |
22103 | } | |
22104 | ||
22105 | ||
22106 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22107 | PyObject *resultobj; | |
22108 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22109 | wxTreeItemId *arg2 = 0 ; | |
22110 | wxString *arg3 = 0 ; | |
22111 | int arg4 = (int) -1 ; | |
22112 | int arg5 = (int) -1 ; | |
22113 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
22114 | wxTreeItemId result; | |
e811c8ce | 22115 | bool temp3 = False ; |
d14a1e28 RD |
22116 | PyObject * obj0 = 0 ; |
22117 | PyObject * obj1 = 0 ; | |
22118 | PyObject * obj2 = 0 ; | |
22119 | PyObject * obj5 = 0 ; | |
22120 | char *kwnames[] = { | |
22121 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22122 | }; | |
22123 | ||
22124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|iiO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
22125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22126 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22127 | if (arg2 == NULL) { | |
22128 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22129 | } | |
22130 | { | |
22131 | arg3 = wxString_in_helper(obj2); | |
22132 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22133 | temp3 = True; |
d14a1e28 RD |
22134 | } |
22135 | if (obj5) { | |
22136 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22137 | } | |
22138 | { | |
22139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22140 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
22141 | ||
22142 | wxPyEndAllowThreads(__tstate); | |
22143 | if (PyErr_Occurred()) SWIG_fail; | |
22144 | } | |
22145 | { | |
22146 | wxTreeItemId * resultptr; | |
22147 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22148 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22149 | } | |
22150 | { | |
22151 | if (temp3) | |
22152 | delete arg3; | |
22153 | } | |
22154 | return resultobj; | |
22155 | fail: | |
22156 | { | |
22157 | if (temp3) | |
22158 | delete arg3; | |
22159 | } | |
22160 | return NULL; | |
22161 | } | |
22162 | ||
22163 | ||
22164 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22165 | PyObject *resultobj; | |
22166 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22167 | wxTreeItemId *arg2 = 0 ; | |
22168 | wxTreeItemId *arg3 = 0 ; | |
22169 | wxString *arg4 = 0 ; | |
22170 | int arg5 = (int) -1 ; | |
22171 | int arg6 = (int) -1 ; | |
22172 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
22173 | wxTreeItemId result; | |
e811c8ce | 22174 | bool temp4 = False ; |
d14a1e28 RD |
22175 | PyObject * obj0 = 0 ; |
22176 | PyObject * obj1 = 0 ; | |
22177 | PyObject * obj2 = 0 ; | |
22178 | PyObject * obj3 = 0 ; | |
22179 | PyObject * obj6 = 0 ; | |
22180 | char *kwnames[] = { | |
22181 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22182 | }; | |
22183 | ||
22184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iiO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
22185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22186 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22187 | if (arg2 == NULL) { | |
22188 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22189 | } | |
22190 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22191 | if (arg3 == NULL) { | |
22192 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22193 | } | |
22194 | { | |
22195 | arg4 = wxString_in_helper(obj3); | |
22196 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 22197 | temp4 = True; |
d14a1e28 RD |
22198 | } |
22199 | if (obj6) { | |
22200 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22201 | } | |
22202 | { | |
22203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22204 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
22205 | ||
22206 | wxPyEndAllowThreads(__tstate); | |
22207 | if (PyErr_Occurred()) SWIG_fail; | |
22208 | } | |
22209 | { | |
22210 | wxTreeItemId * resultptr; | |
22211 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22212 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22213 | } | |
22214 | { | |
22215 | if (temp4) | |
22216 | delete arg4; | |
22217 | } | |
22218 | return resultobj; | |
22219 | fail: | |
22220 | { | |
22221 | if (temp4) | |
22222 | delete arg4; | |
22223 | } | |
22224 | return NULL; | |
22225 | } | |
22226 | ||
22227 | ||
22228 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22229 | PyObject *resultobj; | |
22230 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22231 | wxTreeItemId *arg2 = 0 ; | |
22232 | size_t arg3 ; | |
22233 | wxString *arg4 = 0 ; | |
22234 | int arg5 = (int) -1 ; | |
22235 | int arg6 = (int) -1 ; | |
22236 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
22237 | wxTreeItemId result; | |
e811c8ce | 22238 | bool temp4 = False ; |
d14a1e28 RD |
22239 | PyObject * obj0 = 0 ; |
22240 | PyObject * obj1 = 0 ; | |
22241 | PyObject * obj2 = 0 ; | |
22242 | PyObject * obj3 = 0 ; | |
22243 | PyObject * obj6 = 0 ; | |
22244 | char *kwnames[] = { | |
22245 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22246 | }; | |
22247 | ||
22248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iiO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
22249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22250 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22251 | if (arg2 == NULL) { | |
22252 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22253 | } | |
22254 | arg3 = (size_t) PyInt_AsLong(obj2); | |
22255 | if (PyErr_Occurred()) SWIG_fail; | |
22256 | { | |
22257 | arg4 = wxString_in_helper(obj3); | |
22258 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 22259 | temp4 = True; |
d14a1e28 RD |
22260 | } |
22261 | if (obj6) { | |
22262 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22263 | } | |
22264 | { | |
22265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22266 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
22267 | ||
22268 | wxPyEndAllowThreads(__tstate); | |
22269 | if (PyErr_Occurred()) SWIG_fail; | |
22270 | } | |
22271 | { | |
22272 | wxTreeItemId * resultptr; | |
22273 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22274 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22275 | } | |
22276 | { | |
22277 | if (temp4) | |
22278 | delete arg4; | |
22279 | } | |
22280 | return resultobj; | |
22281 | fail: | |
22282 | { | |
22283 | if (temp4) | |
22284 | delete arg4; | |
22285 | } | |
22286 | return NULL; | |
22287 | } | |
22288 | ||
22289 | ||
22290 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22291 | PyObject *resultobj; | |
22292 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22293 | wxTreeItemId *arg2 = 0 ; | |
22294 | wxString *arg3 = 0 ; | |
22295 | int arg4 = (int) -1 ; | |
22296 | int arg5 = (int) -1 ; | |
22297 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
22298 | wxTreeItemId result; | |
e811c8ce | 22299 | bool temp3 = False ; |
d14a1e28 RD |
22300 | PyObject * obj0 = 0 ; |
22301 | PyObject * obj1 = 0 ; | |
22302 | PyObject * obj2 = 0 ; | |
22303 | PyObject * obj5 = 0 ; | |
22304 | char *kwnames[] = { | |
22305 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22306 | }; | |
22307 | ||
22308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|iiO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
22309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22310 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22311 | if (arg2 == NULL) { | |
22312 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22313 | } | |
22314 | { | |
22315 | arg3 = wxString_in_helper(obj2); | |
22316 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22317 | temp3 = True; |
d14a1e28 RD |
22318 | } |
22319 | if (obj5) { | |
22320 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22321 | } | |
22322 | { | |
22323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22324 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
22325 | ||
22326 | wxPyEndAllowThreads(__tstate); | |
22327 | if (PyErr_Occurred()) SWIG_fail; | |
22328 | } | |
22329 | { | |
22330 | wxTreeItemId * resultptr; | |
22331 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22332 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22333 | } | |
22334 | { | |
22335 | if (temp3) | |
22336 | delete arg3; | |
22337 | } | |
22338 | return resultobj; | |
22339 | fail: | |
22340 | { | |
22341 | if (temp3) | |
22342 | delete arg3; | |
22343 | } | |
22344 | return NULL; | |
22345 | } | |
22346 | ||
22347 | ||
22348 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22349 | PyObject *resultobj; | |
22350 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22351 | wxTreeItemId *arg2 = 0 ; | |
22352 | PyObject * obj0 = 0 ; | |
22353 | PyObject * obj1 = 0 ; | |
22354 | char *kwnames[] = { | |
22355 | (char *) "self",(char *) "item", NULL | |
22356 | }; | |
22357 | ||
22358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
22359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22360 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22361 | if (arg2 == NULL) { | |
22362 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22363 | } | |
22364 | { | |
22365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22366 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
22367 | ||
22368 | wxPyEndAllowThreads(__tstate); | |
22369 | if (PyErr_Occurred()) SWIG_fail; | |
22370 | } | |
22371 | Py_INCREF(Py_None); resultobj = Py_None; | |
22372 | return resultobj; | |
22373 | fail: | |
22374 | return NULL; | |
22375 | } | |
22376 | ||
22377 | ||
22378 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22379 | PyObject *resultobj; | |
22380 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22381 | wxTreeItemId *arg2 = 0 ; | |
22382 | PyObject * obj0 = 0 ; | |
22383 | PyObject * obj1 = 0 ; | |
22384 | char *kwnames[] = { | |
22385 | (char *) "self",(char *) "item", NULL | |
22386 | }; | |
22387 | ||
22388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
22389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22390 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22391 | if (arg2 == NULL) { | |
22392 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22393 | } | |
22394 | { | |
22395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22396 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
22397 | ||
22398 | wxPyEndAllowThreads(__tstate); | |
22399 | if (PyErr_Occurred()) SWIG_fail; | |
22400 | } | |
22401 | Py_INCREF(Py_None); resultobj = Py_None; | |
22402 | return resultobj; | |
22403 | fail: | |
22404 | return NULL; | |
22405 | } | |
22406 | ||
22407 | ||
22408 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22409 | PyObject *resultobj; | |
22410 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22411 | PyObject * obj0 = 0 ; | |
22412 | char *kwnames[] = { | |
22413 | (char *) "self", NULL | |
22414 | }; | |
22415 | ||
22416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
22417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22418 | { | |
22419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22420 | (arg1)->DeleteAllItems(); | |
22421 | ||
22422 | wxPyEndAllowThreads(__tstate); | |
22423 | if (PyErr_Occurred()) SWIG_fail; | |
22424 | } | |
22425 | Py_INCREF(Py_None); resultobj = Py_None; | |
22426 | return resultobj; | |
22427 | fail: | |
22428 | return NULL; | |
22429 | } | |
22430 | ||
22431 | ||
22432 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22433 | PyObject *resultobj; | |
22434 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22435 | wxTreeItemId *arg2 = 0 ; | |
22436 | PyObject * obj0 = 0 ; | |
22437 | PyObject * obj1 = 0 ; | |
22438 | char *kwnames[] = { | |
22439 | (char *) "self",(char *) "item", NULL | |
22440 | }; | |
22441 | ||
22442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
22443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22444 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22445 | if (arg2 == NULL) { | |
22446 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22447 | } | |
22448 | { | |
22449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22450 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
22451 | ||
22452 | wxPyEndAllowThreads(__tstate); | |
22453 | if (PyErr_Occurred()) SWIG_fail; | |
22454 | } | |
22455 | Py_INCREF(Py_None); resultobj = Py_None; | |
22456 | return resultobj; | |
22457 | fail: | |
22458 | return NULL; | |
22459 | } | |
22460 | ||
22461 | ||
22462 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22463 | PyObject *resultobj; | |
22464 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22465 | wxTreeItemId *arg2 = 0 ; | |
22466 | PyObject * obj0 = 0 ; | |
22467 | PyObject * obj1 = 0 ; | |
22468 | char *kwnames[] = { | |
22469 | (char *) "self",(char *) "item", NULL | |
22470 | }; | |
22471 | ||
22472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
22473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22474 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22475 | if (arg2 == NULL) { | |
22476 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22477 | } | |
22478 | { | |
22479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22480 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
22481 | ||
22482 | wxPyEndAllowThreads(__tstate); | |
22483 | if (PyErr_Occurred()) SWIG_fail; | |
22484 | } | |
22485 | Py_INCREF(Py_None); resultobj = Py_None; | |
22486 | return resultobj; | |
22487 | fail: | |
22488 | return NULL; | |
22489 | } | |
22490 | ||
22491 | ||
22492 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22493 | PyObject *resultobj; | |
22494 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22495 | wxTreeItemId *arg2 = 0 ; | |
22496 | PyObject * obj0 = 0 ; | |
22497 | PyObject * obj1 = 0 ; | |
22498 | char *kwnames[] = { | |
22499 | (char *) "self",(char *) "item", NULL | |
22500 | }; | |
22501 | ||
22502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
22503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22504 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22505 | if (arg2 == NULL) { | |
22506 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22507 | } | |
22508 | { | |
22509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22510 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
22511 | ||
22512 | wxPyEndAllowThreads(__tstate); | |
22513 | if (PyErr_Occurred()) SWIG_fail; | |
22514 | } | |
22515 | Py_INCREF(Py_None); resultobj = Py_None; | |
22516 | return resultobj; | |
22517 | fail: | |
22518 | return NULL; | |
22519 | } | |
22520 | ||
22521 | ||
22522 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22523 | PyObject *resultobj; | |
22524 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22525 | wxTreeItemId *arg2 = 0 ; | |
22526 | PyObject * obj0 = 0 ; | |
22527 | PyObject * obj1 = 0 ; | |
22528 | char *kwnames[] = { | |
22529 | (char *) "self",(char *) "item", NULL | |
22530 | }; | |
22531 | ||
22532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
22533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22534 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22535 | if (arg2 == NULL) { | |
22536 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22537 | } | |
22538 | { | |
22539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22540 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
22541 | ||
22542 | wxPyEndAllowThreads(__tstate); | |
22543 | if (PyErr_Occurred()) SWIG_fail; | |
22544 | } | |
22545 | Py_INCREF(Py_None); resultobj = Py_None; | |
22546 | return resultobj; | |
22547 | fail: | |
22548 | return NULL; | |
22549 | } | |
22550 | ||
22551 | ||
22552 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22553 | PyObject *resultobj; | |
22554 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22555 | PyObject * obj0 = 0 ; | |
22556 | char *kwnames[] = { | |
22557 | (char *) "self", NULL | |
22558 | }; | |
22559 | ||
22560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
22561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22562 | { | |
22563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22564 | (arg1)->Unselect(); | |
22565 | ||
22566 | wxPyEndAllowThreads(__tstate); | |
22567 | if (PyErr_Occurred()) SWIG_fail; | |
22568 | } | |
22569 | Py_INCREF(Py_None); resultobj = Py_None; | |
22570 | return resultobj; | |
22571 | fail: | |
22572 | return NULL; | |
22573 | } | |
22574 | ||
22575 | ||
22576 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22577 | PyObject *resultobj; | |
22578 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22579 | PyObject * obj0 = 0 ; | |
22580 | char *kwnames[] = { | |
22581 | (char *) "self", NULL | |
22582 | }; | |
22583 | ||
22584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
22585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22586 | { | |
22587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22588 | (arg1)->UnselectAll(); | |
22589 | ||
22590 | wxPyEndAllowThreads(__tstate); | |
22591 | if (PyErr_Occurred()) SWIG_fail; | |
22592 | } | |
22593 | Py_INCREF(Py_None); resultobj = Py_None; | |
22594 | return resultobj; | |
22595 | fail: | |
22596 | return NULL; | |
22597 | } | |
22598 | ||
22599 | ||
22600 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22601 | PyObject *resultobj; | |
22602 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22603 | wxTreeItemId *arg2 = 0 ; | |
22604 | PyObject * obj0 = 0 ; | |
22605 | PyObject * obj1 = 0 ; | |
22606 | char *kwnames[] = { | |
22607 | (char *) "self",(char *) "item", NULL | |
22608 | }; | |
22609 | ||
22610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SelectItem",kwnames,&obj0,&obj1)) goto fail; | |
22611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22612 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22613 | if (arg2 == NULL) { | |
22614 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22615 | } | |
22616 | { | |
22617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22618 | (arg1)->SelectItem((wxTreeItemId const &)*arg2); | |
22619 | ||
22620 | wxPyEndAllowThreads(__tstate); | |
22621 | if (PyErr_Occurred()) SWIG_fail; | |
22622 | } | |
22623 | Py_INCREF(Py_None); resultobj = Py_None; | |
22624 | return resultobj; | |
22625 | fail: | |
22626 | return NULL; | |
22627 | } | |
22628 | ||
22629 | ||
22630 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22631 | PyObject *resultobj; | |
22632 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22633 | wxTreeItemId *arg2 = 0 ; | |
22634 | PyObject * obj0 = 0 ; | |
22635 | PyObject * obj1 = 0 ; | |
22636 | char *kwnames[] = { | |
22637 | (char *) "self",(char *) "item", NULL | |
22638 | }; | |
22639 | ||
22640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
22641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22642 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22643 | if (arg2 == NULL) { | |
22644 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22645 | } | |
22646 | { | |
22647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22648 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
22649 | ||
22650 | wxPyEndAllowThreads(__tstate); | |
22651 | if (PyErr_Occurred()) SWIG_fail; | |
22652 | } | |
22653 | Py_INCREF(Py_None); resultobj = Py_None; | |
22654 | return resultobj; | |
22655 | fail: | |
22656 | return NULL; | |
22657 | } | |
22658 | ||
22659 | ||
22660 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22661 | PyObject *resultobj; | |
22662 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22663 | wxTreeItemId *arg2 = 0 ; | |
22664 | PyObject * obj0 = 0 ; | |
22665 | PyObject * obj1 = 0 ; | |
22666 | char *kwnames[] = { | |
22667 | (char *) "self",(char *) "item", NULL | |
22668 | }; | |
22669 | ||
22670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
22671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22672 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22673 | if (arg2 == NULL) { | |
22674 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22675 | } | |
22676 | { | |
22677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22678 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
22679 | ||
22680 | wxPyEndAllowThreads(__tstate); | |
22681 | if (PyErr_Occurred()) SWIG_fail; | |
22682 | } | |
22683 | Py_INCREF(Py_None); resultobj = Py_None; | |
22684 | return resultobj; | |
22685 | fail: | |
22686 | return NULL; | |
22687 | } | |
22688 | ||
22689 | ||
22690 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22691 | PyObject *resultobj; | |
22692 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22693 | wxTreeItemId *arg2 = 0 ; | |
22694 | PyObject * obj0 = 0 ; | |
22695 | PyObject * obj1 = 0 ; | |
22696 | char *kwnames[] = { | |
22697 | (char *) "self",(char *) "item", NULL | |
22698 | }; | |
22699 | ||
22700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
22701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22702 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22703 | if (arg2 == NULL) { | |
22704 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22705 | } | |
22706 | { | |
22707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22708 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
22709 | ||
22710 | wxPyEndAllowThreads(__tstate); | |
22711 | if (PyErr_Occurred()) SWIG_fail; | |
22712 | } | |
22713 | Py_INCREF(Py_None); resultobj = Py_None; | |
22714 | return resultobj; | |
22715 | fail: | |
22716 | return NULL; | |
22717 | } | |
22718 | ||
22719 | ||
22720 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22721 | PyObject *resultobj; | |
22722 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22723 | wxTextCtrl *result; | |
22724 | PyObject * obj0 = 0 ; | |
22725 | char *kwnames[] = { | |
22726 | (char *) "self", NULL | |
22727 | }; | |
22728 | ||
22729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
22730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22731 | { | |
22732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22733 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
22734 | ||
22735 | wxPyEndAllowThreads(__tstate); | |
22736 | if (PyErr_Occurred()) SWIG_fail; | |
22737 | } | |
22738 | { | |
22739 | resultobj = wxPyMake_wxObject(result); | |
22740 | } | |
22741 | return resultobj; | |
22742 | fail: | |
22743 | return NULL; | |
22744 | } | |
22745 | ||
22746 | ||
22747 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22748 | PyObject *resultobj; | |
22749 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22750 | wxTreeItemId *arg2 = 0 ; | |
22751 | PyObject * obj0 = 0 ; | |
22752 | PyObject * obj1 = 0 ; | |
22753 | char *kwnames[] = { | |
22754 | (char *) "self",(char *) "item", NULL | |
22755 | }; | |
22756 | ||
22757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
22758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22759 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22760 | if (arg2 == NULL) { | |
22761 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22762 | } | |
22763 | { | |
22764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22765 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
22766 | ||
22767 | wxPyEndAllowThreads(__tstate); | |
22768 | if (PyErr_Occurred()) SWIG_fail; | |
22769 | } | |
22770 | Py_INCREF(Py_None); resultobj = Py_None; | |
22771 | return resultobj; | |
22772 | fail: | |
22773 | return NULL; | |
22774 | } | |
22775 | ||
22776 | ||
22777 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22778 | PyObject *resultobj; | |
22779 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22780 | wxPoint *arg2 = 0 ; | |
22781 | int *arg3 = 0 ; | |
22782 | wxTreeItemId result; | |
22783 | wxPoint temp2 ; | |
22784 | int temp3 ; | |
22785 | PyObject * obj0 = 0 ; | |
22786 | PyObject * obj1 = 0 ; | |
22787 | char *kwnames[] = { | |
22788 | (char *) "self",(char *) "point", NULL | |
22789 | }; | |
22790 | ||
22791 | arg3 = &temp3; | |
22792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
22793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22794 | { | |
22795 | arg2 = &temp2; | |
22796 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22797 | } | |
22798 | { | |
22799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22800 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
22801 | ||
22802 | wxPyEndAllowThreads(__tstate); | |
22803 | if (PyErr_Occurred()) SWIG_fail; | |
22804 | } | |
22805 | { | |
22806 | wxTreeItemId * resultptr; | |
22807 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22808 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22809 | } | |
22810 | { | |
22811 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22812 | resultobj = t_output_helper(resultobj,o); | |
22813 | } | |
22814 | return resultobj; | |
22815 | fail: | |
22816 | return NULL; | |
22817 | } | |
22818 | ||
22819 | ||
22820 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22821 | PyObject *resultobj; | |
22822 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22823 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 22824 | bool arg3 = (bool) False ; |
d14a1e28 RD |
22825 | PyObject *result; |
22826 | PyObject * obj0 = 0 ; | |
22827 | PyObject * obj1 = 0 ; | |
22828 | PyObject * obj2 = 0 ; | |
22829 | char *kwnames[] = { | |
22830 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
22831 | }; | |
22832 | ||
22833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22835 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22836 | if (arg2 == NULL) { | |
22837 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22838 | } | |
22839 | if (obj2) { | |
22840 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
22842 | } | |
22843 | { | |
22844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22845 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
22846 | ||
22847 | wxPyEndAllowThreads(__tstate); | |
22848 | if (PyErr_Occurred()) SWIG_fail; | |
22849 | } | |
22850 | resultobj = result; | |
22851 | return resultobj; | |
22852 | fail: | |
22853 | return NULL; | |
22854 | } | |
22855 | ||
22856 | ||
22857 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
22858 | PyObject *obj; | |
22859 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22860 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
22861 | Py_INCREF(obj); | |
22862 | return Py_BuildValue((char *)""); | |
22863 | } | |
22864 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22865 | PyObject *resultobj; | |
22866 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22867 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
22868 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
22869 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
22870 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22871 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22872 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22873 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22874 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
22875 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
22876 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22877 | int arg8 = (int) 0 ; | |
22878 | wxString const &arg9_defvalue = wxPy_TreeCtrlNameStr ; | |
22879 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
22880 | wxGenericDirCtrl *result; | |
e811c8ce | 22881 | bool temp3 = False ; |
d14a1e28 RD |
22882 | wxPoint temp4 ; |
22883 | wxSize temp5 ; | |
e811c8ce RD |
22884 | bool temp7 = False ; |
22885 | bool temp9 = False ; | |
d14a1e28 RD |
22886 | PyObject * obj0 = 0 ; |
22887 | PyObject * obj2 = 0 ; | |
22888 | PyObject * obj3 = 0 ; | |
22889 | PyObject * obj4 = 0 ; | |
22890 | PyObject * obj6 = 0 ; | |
22891 | PyObject * obj8 = 0 ; | |
22892 | char *kwnames[] = { | |
22893 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
22894 | }; | |
22895 | ||
22896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOOlOiO:new_GenericDirCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&obj8)) goto fail; | |
22897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22898 | if (obj2) { | |
22899 | { | |
22900 | arg3 = wxString_in_helper(obj2); | |
22901 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22902 | temp3 = True; |
d14a1e28 RD |
22903 | } |
22904 | } | |
22905 | if (obj3) { | |
22906 | { | |
22907 | arg4 = &temp4; | |
22908 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22909 | } | |
22910 | } | |
22911 | if (obj4) { | |
22912 | { | |
22913 | arg5 = &temp5; | |
22914 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22915 | } | |
22916 | } | |
22917 | if (obj6) { | |
22918 | { | |
22919 | arg7 = wxString_in_helper(obj6); | |
22920 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 22921 | temp7 = True; |
d14a1e28 RD |
22922 | } |
22923 | } | |
22924 | if (obj8) { | |
22925 | { | |
22926 | arg9 = wxString_in_helper(obj8); | |
22927 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 22928 | temp9 = True; |
d14a1e28 RD |
22929 | } |
22930 | } | |
22931 | { | |
22932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22933 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
22934 | ||
22935 | wxPyEndAllowThreads(__tstate); | |
22936 | if (PyErr_Occurred()) SWIG_fail; | |
22937 | } | |
22938 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
22939 | { | |
22940 | if (temp3) | |
22941 | delete arg3; | |
22942 | } | |
22943 | { | |
22944 | if (temp7) | |
22945 | delete arg7; | |
22946 | } | |
22947 | { | |
22948 | if (temp9) | |
22949 | delete arg9; | |
22950 | } | |
22951 | return resultobj; | |
22952 | fail: | |
22953 | { | |
22954 | if (temp3) | |
22955 | delete arg3; | |
22956 | } | |
22957 | { | |
22958 | if (temp7) | |
22959 | delete arg7; | |
22960 | } | |
22961 | { | |
22962 | if (temp9) | |
22963 | delete arg9; | |
22964 | } | |
22965 | return NULL; | |
22966 | } | |
22967 | ||
22968 | ||
22969 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22970 | PyObject *resultobj; | |
22971 | wxGenericDirCtrl *result; | |
22972 | char *kwnames[] = { | |
22973 | NULL | |
22974 | }; | |
22975 | ||
22976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
22977 | { | |
22978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22979 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
22980 | ||
22981 | wxPyEndAllowThreads(__tstate); | |
22982 | if (PyErr_Occurred()) SWIG_fail; | |
22983 | } | |
22984 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
22985 | return resultobj; | |
22986 | fail: | |
22987 | return NULL; | |
22988 | } | |
22989 | ||
22990 | ||
22991 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22992 | PyObject *resultobj; | |
22993 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
22994 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 22995 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
22996 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
22997 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
22998 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
22999 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
23000 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
23001 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
23002 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
23003 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23004 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23005 | int arg9 = (int) 0 ; | |
23006 | wxString const &arg10_defvalue = wxPy_TreeCtrlNameStr ; | |
23007 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
23008 | bool result; | |
e811c8ce | 23009 | bool temp4 = False ; |
d14a1e28 RD |
23010 | wxPoint temp5 ; |
23011 | wxSize temp6 ; | |
e811c8ce RD |
23012 | bool temp8 = False ; |
23013 | bool temp10 = False ; | |
d14a1e28 RD |
23014 | PyObject * obj0 = 0 ; |
23015 | PyObject * obj1 = 0 ; | |
23016 | PyObject * obj3 = 0 ; | |
23017 | PyObject * obj4 = 0 ; | |
23018 | PyObject * obj5 = 0 ; | |
23019 | PyObject * obj7 = 0 ; | |
23020 | PyObject * obj9 = 0 ; | |
23021 | char *kwnames[] = { | |
23022 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
23023 | }; | |
23024 | ||
23025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOOlOiO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&arg9,&obj9)) goto fail; | |
23026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23027 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23028 | if (obj3) { | |
23029 | { | |
23030 | arg4 = wxString_in_helper(obj3); | |
23031 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 23032 | temp4 = True; |
d14a1e28 RD |
23033 | } |
23034 | } | |
23035 | if (obj4) { | |
23036 | { | |
23037 | arg5 = &temp5; | |
23038 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
23039 | } | |
23040 | } | |
23041 | if (obj5) { | |
23042 | { | |
23043 | arg6 = &temp6; | |
23044 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
23045 | } | |
23046 | } | |
23047 | if (obj7) { | |
23048 | { | |
23049 | arg8 = wxString_in_helper(obj7); | |
23050 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 23051 | temp8 = True; |
d14a1e28 RD |
23052 | } |
23053 | } | |
23054 | if (obj9) { | |
23055 | { | |
23056 | arg10 = wxString_in_helper(obj9); | |
23057 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 23058 | temp10 = True; |
d14a1e28 RD |
23059 | } |
23060 | } | |
23061 | { | |
23062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23063 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
23064 | ||
23065 | wxPyEndAllowThreads(__tstate); | |
23066 | if (PyErr_Occurred()) SWIG_fail; | |
23067 | } | |
23068 | resultobj = PyInt_FromLong((long)result); | |
23069 | { | |
23070 | if (temp4) | |
23071 | delete arg4; | |
23072 | } | |
23073 | { | |
23074 | if (temp8) | |
23075 | delete arg8; | |
23076 | } | |
23077 | { | |
23078 | if (temp10) | |
23079 | delete arg10; | |
23080 | } | |
23081 | return resultobj; | |
23082 | fail: | |
23083 | { | |
23084 | if (temp4) | |
23085 | delete arg4; | |
23086 | } | |
23087 | { | |
23088 | if (temp8) | |
23089 | delete arg8; | |
23090 | } | |
23091 | { | |
23092 | if (temp10) | |
23093 | delete arg10; | |
23094 | } | |
23095 | return NULL; | |
23096 | } | |
23097 | ||
23098 | ||
23099 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23100 | PyObject *resultobj; | |
23101 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23102 | wxString *arg2 = 0 ; | |
23103 | bool result; | |
e811c8ce | 23104 | bool temp2 = False ; |
d14a1e28 RD |
23105 | PyObject * obj0 = 0 ; |
23106 | PyObject * obj1 = 0 ; | |
23107 | char *kwnames[] = { | |
23108 | (char *) "self",(char *) "path", NULL | |
23109 | }; | |
23110 | ||
23111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
23112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23113 | { | |
23114 | arg2 = wxString_in_helper(obj1); | |
23115 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23116 | temp2 = True; |
d14a1e28 RD |
23117 | } |
23118 | { | |
23119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23120 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
23121 | ||
23122 | wxPyEndAllowThreads(__tstate); | |
23123 | if (PyErr_Occurred()) SWIG_fail; | |
23124 | } | |
23125 | resultobj = PyInt_FromLong((long)result); | |
23126 | { | |
23127 | if (temp2) | |
23128 | delete arg2; | |
23129 | } | |
23130 | return resultobj; | |
23131 | fail: | |
23132 | { | |
23133 | if (temp2) | |
23134 | delete arg2; | |
23135 | } | |
23136 | return NULL; | |
23137 | } | |
23138 | ||
23139 | ||
23140 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23141 | PyObject *resultobj; | |
23142 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23143 | wxString result; | |
23144 | PyObject * obj0 = 0 ; | |
23145 | char *kwnames[] = { | |
23146 | (char *) "self", NULL | |
23147 | }; | |
23148 | ||
23149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
23150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23151 | { | |
23152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23153 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
23154 | ||
23155 | wxPyEndAllowThreads(__tstate); | |
23156 | if (PyErr_Occurred()) SWIG_fail; | |
23157 | } | |
23158 | { | |
23159 | #if wxUSE_UNICODE | |
23160 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23161 | #else | |
23162 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23163 | #endif | |
23164 | } | |
23165 | return resultobj; | |
23166 | fail: | |
23167 | return NULL; | |
23168 | } | |
23169 | ||
23170 | ||
23171 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23172 | PyObject *resultobj; | |
23173 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23174 | wxString *arg2 = 0 ; | |
e811c8ce | 23175 | bool temp2 = False ; |
d14a1e28 RD |
23176 | PyObject * obj0 = 0 ; |
23177 | PyObject * obj1 = 0 ; | |
23178 | char *kwnames[] = { | |
23179 | (char *) "self",(char *) "path", NULL | |
23180 | }; | |
23181 | ||
23182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
23183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23184 | { | |
23185 | arg2 = wxString_in_helper(obj1); | |
23186 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23187 | temp2 = True; |
d14a1e28 RD |
23188 | } |
23189 | { | |
23190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23191 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
23192 | ||
23193 | wxPyEndAllowThreads(__tstate); | |
23194 | if (PyErr_Occurred()) SWIG_fail; | |
23195 | } | |
23196 | Py_INCREF(Py_None); resultobj = Py_None; | |
23197 | { | |
23198 | if (temp2) | |
23199 | delete arg2; | |
23200 | } | |
23201 | return resultobj; | |
23202 | fail: | |
23203 | { | |
23204 | if (temp2) | |
23205 | delete arg2; | |
23206 | } | |
23207 | return NULL; | |
23208 | } | |
23209 | ||
23210 | ||
23211 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23212 | PyObject *resultobj; | |
23213 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23214 | wxString result; | |
23215 | PyObject * obj0 = 0 ; | |
23216 | char *kwnames[] = { | |
23217 | (char *) "self", NULL | |
23218 | }; | |
23219 | ||
23220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
23221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23222 | { | |
23223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23224 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
23225 | ||
23226 | wxPyEndAllowThreads(__tstate); | |
23227 | if (PyErr_Occurred()) SWIG_fail; | |
23228 | } | |
23229 | { | |
23230 | #if wxUSE_UNICODE | |
23231 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23232 | #else | |
23233 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23234 | #endif | |
23235 | } | |
23236 | return resultobj; | |
23237 | fail: | |
23238 | return NULL; | |
23239 | } | |
23240 | ||
23241 | ||
23242 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23243 | PyObject *resultobj; | |
23244 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23245 | wxString result; | |
23246 | PyObject * obj0 = 0 ; | |
23247 | char *kwnames[] = { | |
23248 | (char *) "self", NULL | |
23249 | }; | |
23250 | ||
23251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
23252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23253 | { | |
23254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23255 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
23256 | ||
23257 | wxPyEndAllowThreads(__tstate); | |
23258 | if (PyErr_Occurred()) SWIG_fail; | |
23259 | } | |
23260 | { | |
23261 | #if wxUSE_UNICODE | |
23262 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23263 | #else | |
23264 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23265 | #endif | |
23266 | } | |
23267 | return resultobj; | |
23268 | fail: | |
23269 | return NULL; | |
23270 | } | |
23271 | ||
23272 | ||
23273 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23274 | PyObject *resultobj; | |
23275 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23276 | wxString *arg2 = 0 ; | |
e811c8ce | 23277 | bool temp2 = False ; |
d14a1e28 RD |
23278 | PyObject * obj0 = 0 ; |
23279 | PyObject * obj1 = 0 ; | |
23280 | char *kwnames[] = { | |
23281 | (char *) "self",(char *) "path", NULL | |
23282 | }; | |
23283 | ||
23284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
23285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23286 | { | |
23287 | arg2 = wxString_in_helper(obj1); | |
23288 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23289 | temp2 = True; |
d14a1e28 RD |
23290 | } |
23291 | { | |
23292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23293 | (arg1)->SetPath((wxString const &)*arg2); | |
23294 | ||
23295 | wxPyEndAllowThreads(__tstate); | |
23296 | if (PyErr_Occurred()) SWIG_fail; | |
23297 | } | |
23298 | Py_INCREF(Py_None); resultobj = Py_None; | |
23299 | { | |
23300 | if (temp2) | |
23301 | delete arg2; | |
23302 | } | |
23303 | return resultobj; | |
23304 | fail: | |
23305 | { | |
23306 | if (temp2) | |
23307 | delete arg2; | |
23308 | } | |
23309 | return NULL; | |
23310 | } | |
23311 | ||
23312 | ||
23313 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23314 | PyObject *resultobj; | |
23315 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23316 | bool arg2 ; | |
23317 | PyObject * obj0 = 0 ; | |
23318 | PyObject * obj1 = 0 ; | |
23319 | char *kwnames[] = { | |
23320 | (char *) "self",(char *) "show", NULL | |
23321 | }; | |
23322 | ||
23323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
23324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23325 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
23326 | if (PyErr_Occurred()) SWIG_fail; | |
23327 | { | |
23328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23329 | (arg1)->ShowHidden(arg2); | |
23330 | ||
23331 | wxPyEndAllowThreads(__tstate); | |
23332 | if (PyErr_Occurred()) SWIG_fail; | |
23333 | } | |
23334 | Py_INCREF(Py_None); resultobj = Py_None; | |
23335 | return resultobj; | |
23336 | fail: | |
23337 | return NULL; | |
23338 | } | |
23339 | ||
23340 | ||
23341 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23342 | PyObject *resultobj; | |
23343 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23344 | bool result; | |
23345 | PyObject * obj0 = 0 ; | |
23346 | char *kwnames[] = { | |
23347 | (char *) "self", NULL | |
23348 | }; | |
23349 | ||
23350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
23351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23352 | { | |
23353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23354 | result = (bool)(arg1)->GetShowHidden(); | |
23355 | ||
23356 | wxPyEndAllowThreads(__tstate); | |
23357 | if (PyErr_Occurred()) SWIG_fail; | |
23358 | } | |
23359 | resultobj = PyInt_FromLong((long)result); | |
23360 | return resultobj; | |
23361 | fail: | |
23362 | return NULL; | |
23363 | } | |
23364 | ||
23365 | ||
23366 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23367 | PyObject *resultobj; | |
23368 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23369 | wxString result; | |
23370 | PyObject * obj0 = 0 ; | |
23371 | char *kwnames[] = { | |
23372 | (char *) "self", NULL | |
23373 | }; | |
23374 | ||
23375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
23376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23377 | { | |
23378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23379 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
23380 | ||
23381 | wxPyEndAllowThreads(__tstate); | |
23382 | if (PyErr_Occurred()) SWIG_fail; | |
23383 | } | |
23384 | { | |
23385 | #if wxUSE_UNICODE | |
23386 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23387 | #else | |
23388 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23389 | #endif | |
23390 | } | |
23391 | return resultobj; | |
23392 | fail: | |
23393 | return NULL; | |
23394 | } | |
23395 | ||
23396 | ||
23397 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23398 | PyObject *resultobj; | |
23399 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23400 | wxString *arg2 = 0 ; | |
e811c8ce | 23401 | bool temp2 = False ; |
d14a1e28 RD |
23402 | PyObject * obj0 = 0 ; |
23403 | PyObject * obj1 = 0 ; | |
23404 | char *kwnames[] = { | |
23405 | (char *) "self",(char *) "filter", NULL | |
23406 | }; | |
23407 | ||
23408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
23409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23410 | { | |
23411 | arg2 = wxString_in_helper(obj1); | |
23412 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23413 | temp2 = True; |
d14a1e28 RD |
23414 | } |
23415 | { | |
23416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23417 | (arg1)->SetFilter((wxString const &)*arg2); | |
23418 | ||
23419 | wxPyEndAllowThreads(__tstate); | |
23420 | if (PyErr_Occurred()) SWIG_fail; | |
23421 | } | |
23422 | Py_INCREF(Py_None); resultobj = Py_None; | |
23423 | { | |
23424 | if (temp2) | |
23425 | delete arg2; | |
23426 | } | |
23427 | return resultobj; | |
23428 | fail: | |
23429 | { | |
23430 | if (temp2) | |
23431 | delete arg2; | |
23432 | } | |
23433 | return NULL; | |
23434 | } | |
23435 | ||
23436 | ||
23437 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23438 | PyObject *resultobj; | |
23439 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23440 | int result; | |
23441 | PyObject * obj0 = 0 ; | |
23442 | char *kwnames[] = { | |
23443 | (char *) "self", NULL | |
23444 | }; | |
23445 | ||
23446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
23447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23448 | { | |
23449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23450 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
23451 | ||
23452 | wxPyEndAllowThreads(__tstate); | |
23453 | if (PyErr_Occurred()) SWIG_fail; | |
23454 | } | |
23455 | resultobj = PyInt_FromLong((long)result); | |
23456 | return resultobj; | |
23457 | fail: | |
23458 | return NULL; | |
23459 | } | |
23460 | ||
23461 | ||
23462 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23463 | PyObject *resultobj; | |
23464 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23465 | int arg2 ; | |
23466 | PyObject * obj0 = 0 ; | |
23467 | char *kwnames[] = { | |
23468 | (char *) "self",(char *) "n", NULL | |
23469 | }; | |
23470 | ||
23471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&arg2)) goto fail; | |
23472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23473 | { | |
23474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23475 | (arg1)->SetFilterIndex(arg2); | |
23476 | ||
23477 | wxPyEndAllowThreads(__tstate); | |
23478 | if (PyErr_Occurred()) SWIG_fail; | |
23479 | } | |
23480 | Py_INCREF(Py_None); resultobj = Py_None; | |
23481 | return resultobj; | |
23482 | fail: | |
23483 | return NULL; | |
23484 | } | |
23485 | ||
23486 | ||
23487 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23488 | PyObject *resultobj; | |
23489 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23490 | wxTreeItemId result; | |
23491 | PyObject * obj0 = 0 ; | |
23492 | char *kwnames[] = { | |
23493 | (char *) "self", NULL | |
23494 | }; | |
23495 | ||
23496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
23497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23498 | { | |
23499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23500 | result = (arg1)->GetRootId(); | |
23501 | ||
23502 | wxPyEndAllowThreads(__tstate); | |
23503 | if (PyErr_Occurred()) SWIG_fail; | |
23504 | } | |
23505 | { | |
23506 | wxTreeItemId * resultptr; | |
23507 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23508 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23509 | } | |
23510 | return resultobj; | |
23511 | fail: | |
23512 | return NULL; | |
23513 | } | |
23514 | ||
23515 | ||
23516 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23517 | PyObject *resultobj; | |
23518 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23519 | wxTreeCtrl *result; | |
23520 | PyObject * obj0 = 0 ; | |
23521 | char *kwnames[] = { | |
23522 | (char *) "self", NULL | |
23523 | }; | |
23524 | ||
23525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
23526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23527 | { | |
23528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23529 | result = (wxTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
23530 | ||
23531 | wxPyEndAllowThreads(__tstate); | |
23532 | if (PyErr_Occurred()) SWIG_fail; | |
23533 | } | |
23534 | { | |
23535 | resultobj = wxPyMake_wxObject(result); | |
23536 | } | |
23537 | return resultobj; | |
23538 | fail: | |
23539 | return NULL; | |
23540 | } | |
23541 | ||
23542 | ||
23543 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23544 | PyObject *resultobj; | |
23545 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23546 | wxDirFilterListCtrl *result; | |
23547 | PyObject * obj0 = 0 ; | |
23548 | char *kwnames[] = { | |
23549 | (char *) "self", NULL | |
23550 | }; | |
23551 | ||
23552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
23553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23554 | { | |
23555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23556 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
23557 | ||
23558 | wxPyEndAllowThreads(__tstate); | |
23559 | if (PyErr_Occurred()) SWIG_fail; | |
23560 | } | |
23561 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
23562 | return resultobj; | |
23563 | fail: | |
23564 | return NULL; | |
23565 | } | |
23566 | ||
23567 | ||
23568 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23569 | PyObject *resultobj; | |
23570 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23571 | wxTreeItemId arg2 ; | |
23572 | wxString *arg3 = 0 ; | |
23573 | bool *arg4 = 0 ; | |
23574 | wxTreeItemId result; | |
23575 | wxTreeItemId *argp2 ; | |
e811c8ce | 23576 | bool temp3 = False ; |
d14a1e28 RD |
23577 | bool temp4 ; |
23578 | PyObject * obj0 = 0 ; | |
23579 | PyObject * obj1 = 0 ; | |
23580 | PyObject * obj2 = 0 ; | |
23581 | char *kwnames[] = { | |
23582 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
23583 | }; | |
23584 | ||
23585 | arg4 = &temp4; | |
23586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23588 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
23589 | arg2 = *argp2; | |
23590 | { | |
23591 | arg3 = wxString_in_helper(obj2); | |
23592 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23593 | temp3 = True; |
d14a1e28 RD |
23594 | } |
23595 | { | |
23596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23597 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
23598 | ||
23599 | wxPyEndAllowThreads(__tstate); | |
23600 | if (PyErr_Occurred()) SWIG_fail; | |
23601 | } | |
23602 | { | |
23603 | wxTreeItemId * resultptr; | |
23604 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23605 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23606 | } | |
23607 | { | |
23608 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
23609 | resultobj = t_output_helper(resultobj,o); | |
23610 | } | |
23611 | { | |
23612 | if (temp3) | |
23613 | delete arg3; | |
23614 | } | |
23615 | return resultobj; | |
23616 | fail: | |
23617 | { | |
23618 | if (temp3) | |
23619 | delete arg3; | |
23620 | } | |
23621 | return NULL; | |
23622 | } | |
23623 | ||
23624 | ||
23625 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23626 | PyObject *resultobj; | |
23627 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23628 | PyObject * obj0 = 0 ; | |
23629 | char *kwnames[] = { | |
23630 | (char *) "self", NULL | |
23631 | }; | |
23632 | ||
23633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
23634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23635 | { | |
23636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23637 | (arg1)->DoResize(); | |
23638 | ||
23639 | wxPyEndAllowThreads(__tstate); | |
23640 | if (PyErr_Occurred()) SWIG_fail; | |
23641 | } | |
23642 | Py_INCREF(Py_None); resultobj = Py_None; | |
23643 | return resultobj; | |
23644 | fail: | |
23645 | return NULL; | |
23646 | } | |
23647 | ||
23648 | ||
23649 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23650 | PyObject *resultobj; | |
23651 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23652 | PyObject * obj0 = 0 ; | |
23653 | char *kwnames[] = { | |
23654 | (char *) "self", NULL | |
23655 | }; | |
23656 | ||
23657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
23658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23659 | { | |
23660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23661 | (arg1)->ReCreateTree(); | |
23662 | ||
23663 | wxPyEndAllowThreads(__tstate); | |
23664 | if (PyErr_Occurred()) SWIG_fail; | |
23665 | } | |
23666 | Py_INCREF(Py_None); resultobj = Py_None; | |
23667 | return resultobj; | |
23668 | fail: | |
23669 | return NULL; | |
23670 | } | |
23671 | ||
23672 | ||
23673 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
23674 | PyObject *obj; | |
23675 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23676 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
23677 | Py_INCREF(obj); | |
23678 | return Py_BuildValue((char *)""); | |
23679 | } | |
23680 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23681 | PyObject *resultobj; | |
23682 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 23683 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
23684 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23685 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23686 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23687 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23688 | long arg5 = (long) 0 ; | |
23689 | wxDirFilterListCtrl *result; | |
23690 | wxPoint temp3 ; | |
23691 | wxSize temp4 ; | |
23692 | PyObject * obj0 = 0 ; | |
23693 | PyObject * obj2 = 0 ; | |
23694 | PyObject * obj3 = 0 ; | |
23695 | char *kwnames[] = { | |
23696 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
23697 | }; | |
23698 | ||
23699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOl:new_DirFilterListCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
23700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23701 | if (obj2) { | |
23702 | { | |
23703 | arg3 = &temp3; | |
23704 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23705 | } | |
23706 | } | |
23707 | if (obj3) { | |
23708 | { | |
23709 | arg4 = &temp4; | |
23710 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23711 | } | |
23712 | } | |
23713 | { | |
23714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23715 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
23716 | ||
23717 | wxPyEndAllowThreads(__tstate); | |
23718 | if (PyErr_Occurred()) SWIG_fail; | |
23719 | } | |
23720 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
23721 | return resultobj; | |
23722 | fail: | |
23723 | return NULL; | |
23724 | } | |
23725 | ||
23726 | ||
23727 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23728 | PyObject *resultobj; | |
23729 | wxDirFilterListCtrl *result; | |
23730 | char *kwnames[] = { | |
23731 | NULL | |
23732 | }; | |
23733 | ||
23734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
23735 | { | |
23736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23737 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
23738 | ||
23739 | wxPyEndAllowThreads(__tstate); | |
23740 | if (PyErr_Occurred()) SWIG_fail; | |
23741 | } | |
23742 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
23743 | return resultobj; | |
23744 | fail: | |
23745 | return NULL; | |
23746 | } | |
23747 | ||
23748 | ||
23749 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23750 | PyObject *resultobj; | |
23751 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
23752 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 23753 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
23754 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23755 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23756 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23757 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23758 | long arg6 = (long) 0 ; | |
23759 | bool result; | |
23760 | wxPoint temp4 ; | |
23761 | wxSize temp5 ; | |
23762 | PyObject * obj0 = 0 ; | |
23763 | PyObject * obj1 = 0 ; | |
23764 | PyObject * obj3 = 0 ; | |
23765 | PyObject * obj4 = 0 ; | |
23766 | char *kwnames[] = { | |
23767 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
23768 | }; | |
23769 | ||
23770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOl:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6)) goto fail; | |
23771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23772 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23773 | if (obj3) { | |
23774 | { | |
23775 | arg4 = &temp4; | |
23776 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23777 | } | |
23778 | } | |
23779 | if (obj4) { | |
23780 | { | |
23781 | arg5 = &temp5; | |
23782 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23783 | } | |
23784 | } | |
23785 | { | |
23786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23787 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
23788 | ||
23789 | wxPyEndAllowThreads(__tstate); | |
23790 | if (PyErr_Occurred()) SWIG_fail; | |
23791 | } | |
23792 | resultobj = PyInt_FromLong((long)result); | |
23793 | return resultobj; | |
23794 | fail: | |
23795 | return NULL; | |
23796 | } | |
23797 | ||
23798 | ||
23799 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23800 | PyObject *resultobj; | |
23801 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
23802 | wxString *arg2 = 0 ; | |
23803 | int arg3 ; | |
e811c8ce | 23804 | bool temp2 = False ; |
d14a1e28 RD |
23805 | PyObject * obj0 = 0 ; |
23806 | PyObject * obj1 = 0 ; | |
23807 | char *kwnames[] = { | |
23808 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
23809 | }; | |
23810 | ||
23811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
23812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23813 | { | |
23814 | arg2 = wxString_in_helper(obj1); | |
23815 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23816 | temp2 = True; |
d14a1e28 RD |
23817 | } |
23818 | { | |
23819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23820 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
23821 | ||
23822 | wxPyEndAllowThreads(__tstate); | |
23823 | if (PyErr_Occurred()) SWIG_fail; | |
23824 | } | |
23825 | Py_INCREF(Py_None); resultobj = Py_None; | |
23826 | { | |
23827 | if (temp2) | |
23828 | delete arg2; | |
23829 | } | |
23830 | return resultobj; | |
23831 | fail: | |
23832 | { | |
23833 | if (temp2) | |
23834 | delete arg2; | |
23835 | } | |
23836 | return NULL; | |
23837 | } | |
23838 | ||
23839 | ||
23840 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
23841 | PyObject *obj; | |
23842 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23843 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
23844 | Py_INCREF(obj); | |
23845 | return Py_BuildValue((char *)""); | |
23846 | } | |
23847 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23848 | PyObject *resultobj; | |
23849 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23850 | int arg2 ; |
d14a1e28 RD |
23851 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23852 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23853 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23854 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23855 | long arg5 = (long) 0 ; | |
23856 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23857 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23858 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
23859 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23860 | wxPyControl *result; | |
23861 | wxPoint temp3 ; | |
23862 | wxSize temp4 ; | |
e811c8ce | 23863 | bool temp7 = False ; |
d14a1e28 RD |
23864 | PyObject * obj0 = 0 ; |
23865 | PyObject * obj2 = 0 ; | |
23866 | PyObject * obj3 = 0 ; | |
23867 | PyObject * obj5 = 0 ; | |
23868 | PyObject * obj6 = 0 ; | |
23869 | char *kwnames[] = { | |
23870 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23871 | }; | |
23872 | ||
23873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlOO:new_PyControl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
23874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23875 | if (obj2) { | |
23876 | { | |
23877 | arg3 = &temp3; | |
23878 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23879 | } | |
23880 | } | |
23881 | if (obj3) { | |
23882 | { | |
23883 | arg4 = &temp4; | |
23884 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23885 | } | |
23886 | } | |
23887 | if (obj5) { | |
23888 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23889 | if (arg6 == NULL) { | |
23890 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23891 | } | |
23892 | } | |
23893 | if (obj6) { | |
23894 | { | |
23895 | arg7 = wxString_in_helper(obj6); | |
23896 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 23897 | temp7 = True; |
d14a1e28 RD |
23898 | } |
23899 | } | |
23900 | { | |
23901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23902 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23903 | ||
23904 | wxPyEndAllowThreads(__tstate); | |
23905 | if (PyErr_Occurred()) SWIG_fail; | |
23906 | } | |
23907 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
23908 | { | |
23909 | if (temp7) | |
23910 | delete arg7; | |
23911 | } | |
23912 | return resultobj; | |
23913 | fail: | |
23914 | { | |
23915 | if (temp7) | |
23916 | delete arg7; | |
23917 | } | |
23918 | return NULL; | |
23919 | } | |
23920 | ||
23921 | ||
23922 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23923 | PyObject *resultobj; | |
23924 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
23925 | PyObject *arg2 = (PyObject *) 0 ; | |
23926 | PyObject *arg3 = (PyObject *) 0 ; | |
23927 | PyObject * obj0 = 0 ; | |
23928 | PyObject * obj1 = 0 ; | |
23929 | PyObject * obj2 = 0 ; | |
23930 | char *kwnames[] = { | |
23931 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23932 | }; | |
23933 | ||
23934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23936 | arg2 = obj1; | |
23937 | arg3 = obj2; | |
23938 | { | |
23939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23940 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23941 | ||
23942 | wxPyEndAllowThreads(__tstate); | |
23943 | if (PyErr_Occurred()) SWIG_fail; | |
23944 | } | |
23945 | Py_INCREF(Py_None); resultobj = Py_None; | |
23946 | return resultobj; | |
23947 | fail: | |
23948 | return NULL; | |
23949 | } | |
23950 | ||
23951 | ||
23952 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23953 | PyObject *resultobj; | |
23954 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
23955 | int arg2 ; | |
23956 | int arg3 ; | |
23957 | int arg4 ; | |
23958 | int arg5 ; | |
23959 | PyObject * obj0 = 0 ; | |
23960 | char *kwnames[] = { | |
23961 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
23962 | }; | |
23963 | ||
23964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:PyControl_base_DoMoveWindow",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
23965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23966 | { | |
23967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23968 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
23969 | ||
23970 | wxPyEndAllowThreads(__tstate); | |
23971 | if (PyErr_Occurred()) SWIG_fail; | |
23972 | } | |
23973 | Py_INCREF(Py_None); resultobj = Py_None; | |
23974 | return resultobj; | |
23975 | fail: | |
23976 | return NULL; | |
23977 | } | |
23978 | ||
23979 | ||
23980 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23981 | PyObject *resultobj; | |
23982 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
23983 | int arg2 ; | |
23984 | int arg3 ; | |
23985 | int arg4 ; | |
23986 | int arg5 ; | |
23987 | int arg6 = (int) wxSIZE_AUTO ; | |
23988 | PyObject * obj0 = 0 ; | |
23989 | char *kwnames[] = { | |
23990 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
23991 | }; | |
23992 | ||
23993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|i:PyControl_base_DoSetSize",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
23994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23995 | { | |
23996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23997 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
23998 | ||
23999 | wxPyEndAllowThreads(__tstate); | |
24000 | if (PyErr_Occurred()) SWIG_fail; | |
24001 | } | |
24002 | Py_INCREF(Py_None); resultobj = Py_None; | |
24003 | return resultobj; | |
24004 | fail: | |
24005 | return NULL; | |
24006 | } | |
24007 | ||
24008 | ||
24009 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24010 | PyObject *resultobj; | |
24011 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24012 | int arg2 ; | |
24013 | int arg3 ; | |
24014 | PyObject * obj0 = 0 ; | |
24015 | char *kwnames[] = { | |
24016 | (char *) "self",(char *) "width",(char *) "height", NULL | |
24017 | }; | |
24018 | ||
24019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyControl_base_DoSetClientSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24021 | { | |
24022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24023 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
24024 | ||
24025 | wxPyEndAllowThreads(__tstate); | |
24026 | if (PyErr_Occurred()) SWIG_fail; | |
24027 | } | |
24028 | Py_INCREF(Py_None); resultobj = Py_None; | |
24029 | return resultobj; | |
24030 | fail: | |
24031 | return NULL; | |
24032 | } | |
24033 | ||
24034 | ||
24035 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24036 | PyObject *resultobj; | |
24037 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24038 | int arg2 ; | |
24039 | int arg3 ; | |
24040 | PyObject * obj0 = 0 ; | |
24041 | char *kwnames[] = { | |
24042 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24043 | }; | |
24044 | ||
24045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24047 | { | |
24048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24049 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
24050 | ||
24051 | wxPyEndAllowThreads(__tstate); | |
24052 | if (PyErr_Occurred()) SWIG_fail; | |
24053 | } | |
24054 | Py_INCREF(Py_None); resultobj = Py_None; | |
24055 | return resultobj; | |
24056 | fail: | |
24057 | return NULL; | |
24058 | } | |
24059 | ||
24060 | ||
24061 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24062 | PyObject *resultobj; | |
24063 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24064 | int *arg2 = (int *) 0 ; | |
24065 | int *arg3 = (int *) 0 ; | |
24066 | int temp2 ; | |
24067 | int temp3 ; | |
24068 | PyObject * obj0 = 0 ; | |
24069 | char *kwnames[] = { | |
24070 | (char *) "self", NULL | |
24071 | }; | |
24072 | ||
24073 | arg2 = &temp2; | |
24074 | arg3 = &temp3; | |
24075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
24076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24077 | { | |
24078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24079 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
24080 | ||
24081 | wxPyEndAllowThreads(__tstate); | |
24082 | if (PyErr_Occurred()) SWIG_fail; | |
24083 | } | |
24084 | Py_INCREF(Py_None); resultobj = Py_None; | |
24085 | { | |
24086 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
24087 | resultobj = t_output_helper(resultobj,o); | |
24088 | } | |
24089 | { | |
24090 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24091 | resultobj = t_output_helper(resultobj,o); | |
24092 | } | |
24093 | return resultobj; | |
24094 | fail: | |
24095 | return NULL; | |
24096 | } | |
24097 | ||
24098 | ||
24099 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24100 | PyObject *resultobj; | |
24101 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24102 | int *arg2 = (int *) 0 ; | |
24103 | int *arg3 = (int *) 0 ; | |
24104 | int temp2 ; | |
24105 | int temp3 ; | |
24106 | PyObject * obj0 = 0 ; | |
24107 | char *kwnames[] = { | |
24108 | (char *) "self", NULL | |
24109 | }; | |
24110 | ||
24111 | arg2 = &temp2; | |
24112 | arg3 = &temp3; | |
24113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
24114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24115 | { | |
24116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24117 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
24118 | ||
24119 | wxPyEndAllowThreads(__tstate); | |
24120 | if (PyErr_Occurred()) SWIG_fail; | |
24121 | } | |
24122 | Py_INCREF(Py_None); resultobj = Py_None; | |
24123 | { | |
24124 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
24125 | resultobj = t_output_helper(resultobj,o); | |
24126 | } | |
24127 | { | |
24128 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24129 | resultobj = t_output_helper(resultobj,o); | |
24130 | } | |
24131 | return resultobj; | |
24132 | fail: | |
24133 | return NULL; | |
24134 | } | |
24135 | ||
24136 | ||
24137 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24138 | PyObject *resultobj; | |
24139 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24140 | int *arg2 = (int *) 0 ; | |
24141 | int *arg3 = (int *) 0 ; | |
24142 | int temp2 ; | |
24143 | int temp3 ; | |
24144 | PyObject * obj0 = 0 ; | |
24145 | char *kwnames[] = { | |
24146 | (char *) "self", NULL | |
24147 | }; | |
24148 | ||
24149 | arg2 = &temp2; | |
24150 | arg3 = &temp3; | |
24151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
24152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24153 | { | |
24154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24155 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
24156 | ||
24157 | wxPyEndAllowThreads(__tstate); | |
24158 | if (PyErr_Occurred()) SWIG_fail; | |
24159 | } | |
24160 | Py_INCREF(Py_None); resultobj = Py_None; | |
24161 | { | |
24162 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
24163 | resultobj = t_output_helper(resultobj,o); | |
24164 | } | |
24165 | { | |
24166 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24167 | resultobj = t_output_helper(resultobj,o); | |
24168 | } | |
24169 | return resultobj; | |
24170 | fail: | |
24171 | return NULL; | |
24172 | } | |
24173 | ||
24174 | ||
24175 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24176 | PyObject *resultobj; | |
24177 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24178 | wxSize result; | |
24179 | PyObject * obj0 = 0 ; | |
24180 | char *kwnames[] = { | |
24181 | (char *) "self", NULL | |
24182 | }; | |
24183 | ||
24184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
24185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24186 | { | |
24187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24188 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
24189 | ||
24190 | wxPyEndAllowThreads(__tstate); | |
24191 | if (PyErr_Occurred()) SWIG_fail; | |
24192 | } | |
24193 | { | |
24194 | wxSize * resultptr; | |
24195 | resultptr = new wxSize((wxSize &) result); | |
24196 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24197 | } | |
24198 | return resultobj; | |
24199 | fail: | |
24200 | return NULL; | |
24201 | } | |
24202 | ||
24203 | ||
24204 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24205 | PyObject *resultobj; | |
24206 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24207 | wxSize result; | |
24208 | PyObject * obj0 = 0 ; | |
24209 | char *kwnames[] = { | |
24210 | (char *) "self", NULL | |
24211 | }; | |
24212 | ||
24213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
24214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24215 | { | |
24216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24217 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
24218 | ||
24219 | wxPyEndAllowThreads(__tstate); | |
24220 | if (PyErr_Occurred()) SWIG_fail; | |
24221 | } | |
24222 | { | |
24223 | wxSize * resultptr; | |
24224 | resultptr = new wxSize((wxSize &) result); | |
24225 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24226 | } | |
24227 | return resultobj; | |
24228 | fail: | |
24229 | return NULL; | |
24230 | } | |
24231 | ||
24232 | ||
24233 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24234 | PyObject *resultobj; | |
24235 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24236 | PyObject * obj0 = 0 ; | |
24237 | char *kwnames[] = { | |
24238 | (char *) "self", NULL | |
24239 | }; | |
24240 | ||
24241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
24242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24243 | { | |
24244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24245 | (arg1)->base_InitDialog(); | |
24246 | ||
24247 | wxPyEndAllowThreads(__tstate); | |
24248 | if (PyErr_Occurred()) SWIG_fail; | |
24249 | } | |
24250 | Py_INCREF(Py_None); resultobj = Py_None; | |
24251 | return resultobj; | |
24252 | fail: | |
24253 | return NULL; | |
24254 | } | |
24255 | ||
24256 | ||
24257 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24258 | PyObject *resultobj; | |
24259 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24260 | bool result; | |
24261 | PyObject * obj0 = 0 ; | |
24262 | char *kwnames[] = { | |
24263 | (char *) "self", NULL | |
24264 | }; | |
24265 | ||
24266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
24267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24268 | { | |
24269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24270 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
24271 | ||
24272 | wxPyEndAllowThreads(__tstate); | |
24273 | if (PyErr_Occurred()) SWIG_fail; | |
24274 | } | |
24275 | resultobj = PyInt_FromLong((long)result); | |
24276 | return resultobj; | |
24277 | fail: | |
24278 | return NULL; | |
24279 | } | |
24280 | ||
24281 | ||
24282 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24283 | PyObject *resultobj; | |
24284 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24285 | bool result; | |
24286 | PyObject * obj0 = 0 ; | |
24287 | char *kwnames[] = { | |
24288 | (char *) "self", NULL | |
24289 | }; | |
24290 | ||
24291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
24292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24293 | { | |
24294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24295 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
24296 | ||
24297 | wxPyEndAllowThreads(__tstate); | |
24298 | if (PyErr_Occurred()) SWIG_fail; | |
24299 | } | |
24300 | resultobj = PyInt_FromLong((long)result); | |
24301 | return resultobj; | |
24302 | fail: | |
24303 | return NULL; | |
24304 | } | |
24305 | ||
24306 | ||
24307 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24308 | PyObject *resultobj; | |
24309 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24310 | bool result; | |
24311 | PyObject * obj0 = 0 ; | |
24312 | char *kwnames[] = { | |
24313 | (char *) "self", NULL | |
24314 | }; | |
24315 | ||
24316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
24317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24318 | { | |
24319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24320 | result = (bool)(arg1)->base_Validate(); | |
24321 | ||
24322 | wxPyEndAllowThreads(__tstate); | |
24323 | if (PyErr_Occurred()) SWIG_fail; | |
24324 | } | |
24325 | resultobj = PyInt_FromLong((long)result); | |
24326 | return resultobj; | |
24327 | fail: | |
24328 | return NULL; | |
24329 | } | |
24330 | ||
24331 | ||
24332 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24333 | PyObject *resultobj; | |
24334 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24335 | bool result; | |
24336 | PyObject * obj0 = 0 ; | |
24337 | char *kwnames[] = { | |
24338 | (char *) "self", NULL | |
24339 | }; | |
24340 | ||
24341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
24342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24343 | { | |
24344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24345 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
24346 | ||
24347 | wxPyEndAllowThreads(__tstate); | |
24348 | if (PyErr_Occurred()) SWIG_fail; | |
24349 | } | |
24350 | resultobj = PyInt_FromLong((long)result); | |
24351 | return resultobj; | |
24352 | fail: | |
24353 | return NULL; | |
24354 | } | |
24355 | ||
24356 | ||
24357 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24358 | PyObject *resultobj; | |
24359 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24360 | bool result; | |
24361 | PyObject * obj0 = 0 ; | |
24362 | char *kwnames[] = { | |
24363 | (char *) "self", NULL | |
24364 | }; | |
24365 | ||
24366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
24367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24368 | { | |
24369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24370 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
24371 | ||
24372 | wxPyEndAllowThreads(__tstate); | |
24373 | if (PyErr_Occurred()) SWIG_fail; | |
24374 | } | |
24375 | resultobj = PyInt_FromLong((long)result); | |
24376 | return resultobj; | |
24377 | fail: | |
24378 | return NULL; | |
24379 | } | |
24380 | ||
24381 | ||
24382 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24383 | PyObject *resultobj; | |
24384 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24385 | wxSize result; | |
24386 | PyObject * obj0 = 0 ; | |
24387 | char *kwnames[] = { | |
24388 | (char *) "self", NULL | |
24389 | }; | |
24390 | ||
24391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
24392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24393 | { | |
24394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24395 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
24396 | ||
24397 | wxPyEndAllowThreads(__tstate); | |
24398 | if (PyErr_Occurred()) SWIG_fail; | |
24399 | } | |
24400 | { | |
24401 | wxSize * resultptr; | |
24402 | resultptr = new wxSize((wxSize &) result); | |
24403 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24404 | } | |
24405 | return resultobj; | |
24406 | fail: | |
24407 | return NULL; | |
24408 | } | |
24409 | ||
24410 | ||
24411 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24412 | PyObject *resultobj; | |
24413 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24414 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24415 | PyObject * obj0 = 0 ; | |
24416 | PyObject * obj1 = 0 ; | |
24417 | char *kwnames[] = { | |
24418 | (char *) "self",(char *) "child", NULL | |
24419 | }; | |
24420 | ||
24421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
24422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24423 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24424 | { | |
24425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24426 | (arg1)->base_AddChild(arg2); | |
24427 | ||
24428 | wxPyEndAllowThreads(__tstate); | |
24429 | if (PyErr_Occurred()) SWIG_fail; | |
24430 | } | |
24431 | Py_INCREF(Py_None); resultobj = Py_None; | |
24432 | return resultobj; | |
24433 | fail: | |
24434 | return NULL; | |
24435 | } | |
24436 | ||
24437 | ||
24438 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24439 | PyObject *resultobj; | |
24440 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24441 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24442 | PyObject * obj0 = 0 ; | |
24443 | PyObject * obj1 = 0 ; | |
24444 | char *kwnames[] = { | |
24445 | (char *) "self",(char *) "child", NULL | |
24446 | }; | |
24447 | ||
24448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
24449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24450 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24451 | { | |
24452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24453 | (arg1)->base_RemoveChild(arg2); | |
24454 | ||
24455 | wxPyEndAllowThreads(__tstate); | |
24456 | if (PyErr_Occurred()) SWIG_fail; | |
24457 | } | |
24458 | Py_INCREF(Py_None); resultobj = Py_None; | |
24459 | return resultobj; | |
24460 | fail: | |
24461 | return NULL; | |
24462 | } | |
24463 | ||
24464 | ||
24465 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
24466 | PyObject *obj; | |
24467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24468 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
24469 | Py_INCREF(obj); | |
24470 | return Py_BuildValue((char *)""); | |
24471 | } | |
24472 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24473 | PyObject *resultobj; | |
24474 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 24475 | int arg2 = (int) 0 ; |
d14a1e28 RD |
24476 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24477 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24478 | wxHelpEvent *result; | |
24479 | wxPoint temp3 ; | |
24480 | PyObject * obj2 = 0 ; | |
24481 | char *kwnames[] = { | |
24482 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
24483 | }; | |
24484 | ||
24485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_HelpEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
24486 | if (obj2) { | |
24487 | { | |
24488 | arg3 = &temp3; | |
24489 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24490 | } | |
24491 | } | |
24492 | { | |
24493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24494 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
24495 | ||
24496 | wxPyEndAllowThreads(__tstate); | |
24497 | if (PyErr_Occurred()) SWIG_fail; | |
24498 | } | |
24499 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
24500 | return resultobj; | |
24501 | fail: | |
24502 | return NULL; | |
24503 | } | |
24504 | ||
24505 | ||
24506 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24507 | PyObject *resultobj; | |
24508 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24509 | wxPoint *result; | |
24510 | PyObject * obj0 = 0 ; | |
24511 | char *kwnames[] = { | |
24512 | (char *) "self", NULL | |
24513 | }; | |
24514 | ||
24515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
24516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24517 | { | |
24518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24519 | { | |
24520 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
24521 | result = (wxPoint *) &_result_ref; | |
24522 | } | |
24523 | ||
24524 | wxPyEndAllowThreads(__tstate); | |
24525 | if (PyErr_Occurred()) SWIG_fail; | |
24526 | } | |
24527 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
24528 | return resultobj; | |
24529 | fail: | |
24530 | return NULL; | |
24531 | } | |
24532 | ||
24533 | ||
24534 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24535 | PyObject *resultobj; | |
24536 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24537 | wxPoint *arg2 = 0 ; | |
24538 | wxPoint temp2 ; | |
24539 | PyObject * obj0 = 0 ; | |
24540 | PyObject * obj1 = 0 ; | |
24541 | char *kwnames[] = { | |
24542 | (char *) "self",(char *) "pos", NULL | |
24543 | }; | |
24544 | ||
24545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
24546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24547 | { | |
24548 | arg2 = &temp2; | |
24549 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24550 | } | |
24551 | { | |
24552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24553 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
24554 | ||
24555 | wxPyEndAllowThreads(__tstate); | |
24556 | if (PyErr_Occurred()) SWIG_fail; | |
24557 | } | |
24558 | Py_INCREF(Py_None); resultobj = Py_None; | |
24559 | return resultobj; | |
24560 | fail: | |
24561 | return NULL; | |
24562 | } | |
24563 | ||
24564 | ||
24565 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24566 | PyObject *resultobj; | |
24567 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24568 | wxString *result; | |
24569 | PyObject * obj0 = 0 ; | |
24570 | char *kwnames[] = { | |
24571 | (char *) "self", NULL | |
24572 | }; | |
24573 | ||
24574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
24575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24576 | { | |
24577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24578 | { | |
24579 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
24580 | result = (wxString *) &_result_ref; | |
24581 | } | |
24582 | ||
24583 | wxPyEndAllowThreads(__tstate); | |
24584 | if (PyErr_Occurred()) SWIG_fail; | |
24585 | } | |
24586 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
24587 | return resultobj; | |
24588 | fail: | |
24589 | return NULL; | |
24590 | } | |
24591 | ||
24592 | ||
24593 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24594 | PyObject *resultobj; | |
24595 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24596 | wxString *arg2 = 0 ; | |
e811c8ce | 24597 | bool temp2 = False ; |
d14a1e28 RD |
24598 | PyObject * obj0 = 0 ; |
24599 | PyObject * obj1 = 0 ; | |
24600 | char *kwnames[] = { | |
24601 | (char *) "self",(char *) "link", NULL | |
24602 | }; | |
24603 | ||
24604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
24605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24606 | { | |
24607 | arg2 = wxString_in_helper(obj1); | |
24608 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24609 | temp2 = True; |
d14a1e28 RD |
24610 | } |
24611 | { | |
24612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24613 | (arg1)->SetLink((wxString const &)*arg2); | |
24614 | ||
24615 | wxPyEndAllowThreads(__tstate); | |
24616 | if (PyErr_Occurred()) SWIG_fail; | |
24617 | } | |
24618 | Py_INCREF(Py_None); resultobj = Py_None; | |
24619 | { | |
24620 | if (temp2) | |
24621 | delete arg2; | |
24622 | } | |
24623 | return resultobj; | |
24624 | fail: | |
24625 | { | |
24626 | if (temp2) | |
24627 | delete arg2; | |
24628 | } | |
24629 | return NULL; | |
24630 | } | |
24631 | ||
24632 | ||
24633 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24634 | PyObject *resultobj; | |
24635 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24636 | wxString *result; | |
24637 | PyObject * obj0 = 0 ; | |
24638 | char *kwnames[] = { | |
24639 | (char *) "self", NULL | |
24640 | }; | |
24641 | ||
24642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
24643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24644 | { | |
24645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24646 | { | |
24647 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
24648 | result = (wxString *) &_result_ref; | |
24649 | } | |
24650 | ||
24651 | wxPyEndAllowThreads(__tstate); | |
24652 | if (PyErr_Occurred()) SWIG_fail; | |
24653 | } | |
24654 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
24655 | return resultobj; | |
24656 | fail: | |
24657 | return NULL; | |
24658 | } | |
24659 | ||
24660 | ||
24661 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24662 | PyObject *resultobj; | |
24663 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24664 | wxString *arg2 = 0 ; | |
e811c8ce | 24665 | bool temp2 = False ; |
d14a1e28 RD |
24666 | PyObject * obj0 = 0 ; |
24667 | PyObject * obj1 = 0 ; | |
24668 | char *kwnames[] = { | |
24669 | (char *) "self",(char *) "target", NULL | |
24670 | }; | |
24671 | ||
24672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
24673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24674 | { | |
24675 | arg2 = wxString_in_helper(obj1); | |
24676 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24677 | temp2 = True; |
d14a1e28 RD |
24678 | } |
24679 | { | |
24680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24681 | (arg1)->SetTarget((wxString const &)*arg2); | |
24682 | ||
24683 | wxPyEndAllowThreads(__tstate); | |
24684 | if (PyErr_Occurred()) SWIG_fail; | |
24685 | } | |
24686 | Py_INCREF(Py_None); resultobj = Py_None; | |
24687 | { | |
24688 | if (temp2) | |
24689 | delete arg2; | |
24690 | } | |
24691 | return resultobj; | |
24692 | fail: | |
24693 | { | |
24694 | if (temp2) | |
24695 | delete arg2; | |
24696 | } | |
24697 | return NULL; | |
24698 | } | |
24699 | ||
24700 | ||
24701 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
24702 | PyObject *obj; | |
24703 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24704 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
24705 | Py_INCREF(obj); | |
24706 | return Py_BuildValue((char *)""); | |
24707 | } | |
24708 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24709 | PyObject *resultobj; | |
24710 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 24711 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24712 | wxContextHelp *result; |
24713 | PyObject * obj0 = 0 ; | |
24714 | PyObject * obj1 = 0 ; | |
24715 | char *kwnames[] = { | |
24716 | (char *) "window",(char *) "doNow", NULL | |
24717 | }; | |
24718 | ||
24719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
24720 | if (obj0) { | |
24721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24722 | } | |
24723 | if (obj1) { | |
24724 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
24725 | if (PyErr_Occurred()) SWIG_fail; | |
24726 | } | |
24727 | { | |
24728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24729 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
24730 | ||
24731 | wxPyEndAllowThreads(__tstate); | |
24732 | if (PyErr_Occurred()) SWIG_fail; | |
24733 | } | |
24734 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
24735 | return resultobj; | |
24736 | fail: | |
24737 | return NULL; | |
24738 | } | |
24739 | ||
24740 | ||
24741 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24742 | PyObject *resultobj; | |
24743 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
24744 | PyObject * obj0 = 0 ; | |
24745 | char *kwnames[] = { | |
24746 | (char *) "self", NULL | |
24747 | }; | |
24748 | ||
24749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
24750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24751 | { | |
24752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24753 | delete arg1; | |
24754 | ||
24755 | wxPyEndAllowThreads(__tstate); | |
24756 | if (PyErr_Occurred()) SWIG_fail; | |
24757 | } | |
24758 | Py_INCREF(Py_None); resultobj = Py_None; | |
24759 | return resultobj; | |
24760 | fail: | |
24761 | return NULL; | |
24762 | } | |
24763 | ||
24764 | ||
24765 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24766 | PyObject *resultobj; | |
24767 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
24768 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24769 | bool result; | |
24770 | PyObject * obj0 = 0 ; | |
24771 | PyObject * obj1 = 0 ; | |
24772 | char *kwnames[] = { | |
24773 | (char *) "self",(char *) "window", NULL | |
24774 | }; | |
24775 | ||
24776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
24777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24778 | if (obj1) { | |
24779 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24780 | } | |
24781 | { | |
24782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24783 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
24784 | ||
24785 | wxPyEndAllowThreads(__tstate); | |
24786 | if (PyErr_Occurred()) SWIG_fail; | |
24787 | } | |
24788 | resultobj = PyInt_FromLong((long)result); | |
24789 | return resultobj; | |
24790 | fail: | |
24791 | return NULL; | |
24792 | } | |
24793 | ||
24794 | ||
24795 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24796 | PyObject *resultobj; | |
24797 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
24798 | bool result; | |
24799 | PyObject * obj0 = 0 ; | |
24800 | char *kwnames[] = { | |
24801 | (char *) "self", NULL | |
24802 | }; | |
24803 | ||
24804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
24805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24806 | { | |
24807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24808 | result = (bool)(arg1)->EndContextHelp(); | |
24809 | ||
24810 | wxPyEndAllowThreads(__tstate); | |
24811 | if (PyErr_Occurred()) SWIG_fail; | |
24812 | } | |
24813 | resultobj = PyInt_FromLong((long)result); | |
24814 | return resultobj; | |
24815 | fail: | |
24816 | return NULL; | |
24817 | } | |
24818 | ||
24819 | ||
24820 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
24821 | PyObject *obj; | |
24822 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24823 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
24824 | Py_INCREF(obj); | |
24825 | return Py_BuildValue((char *)""); | |
24826 | } | |
24827 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24828 | PyObject *resultobj; | |
24829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24830 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
24831 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24832 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24833 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24834 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24835 | long arg5 = (long) wxBU_AUTODRAW ; | |
24836 | wxContextHelpButton *result; | |
24837 | wxPoint temp3 ; | |
24838 | wxSize temp4 ; | |
24839 | PyObject * obj0 = 0 ; | |
24840 | PyObject * obj2 = 0 ; | |
24841 | PyObject * obj3 = 0 ; | |
24842 | char *kwnames[] = { | |
24843 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
24844 | }; | |
24845 | ||
24846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOl:new_ContextHelpButton",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
24847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24848 | if (obj2) { | |
24849 | { | |
24850 | arg3 = &temp3; | |
24851 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24852 | } | |
24853 | } | |
24854 | if (obj3) { | |
24855 | { | |
24856 | arg4 = &temp4; | |
24857 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24858 | } | |
24859 | } | |
24860 | { | |
24861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24862 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
24863 | ||
24864 | wxPyEndAllowThreads(__tstate); | |
24865 | if (PyErr_Occurred()) SWIG_fail; | |
24866 | } | |
24867 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
24868 | return resultobj; | |
24869 | fail: | |
24870 | return NULL; | |
24871 | } | |
24872 | ||
24873 | ||
24874 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
24875 | PyObject *obj; | |
24876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24877 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
24878 | Py_INCREF(obj); | |
24879 | return Py_BuildValue((char *)""); | |
24880 | } | |
24881 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24882 | PyObject *resultobj; | |
24883 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
24884 | wxHelpProvider *result; | |
24885 | PyObject * obj0 = 0 ; | |
24886 | char *kwnames[] = { | |
24887 | (char *) "helpProvider", NULL | |
24888 | }; | |
24889 | ||
24890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
24891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24892 | { | |
24893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24894 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
24895 | ||
24896 | wxPyEndAllowThreads(__tstate); | |
24897 | if (PyErr_Occurred()) SWIG_fail; | |
24898 | } | |
24899 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
24900 | return resultobj; | |
24901 | fail: | |
24902 | return NULL; | |
24903 | } | |
24904 | ||
24905 | ||
24906 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24907 | PyObject *resultobj; | |
24908 | wxHelpProvider *result; | |
24909 | char *kwnames[] = { | |
24910 | NULL | |
24911 | }; | |
24912 | ||
24913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
24914 | { | |
24915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24916 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
24917 | ||
24918 | wxPyEndAllowThreads(__tstate); | |
24919 | if (PyErr_Occurred()) SWIG_fail; | |
24920 | } | |
24921 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
24922 | return resultobj; | |
24923 | fail: | |
24924 | return NULL; | |
24925 | } | |
24926 | ||
24927 | ||
24928 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24929 | PyObject *resultobj; | |
24930 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
24931 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24932 | wxString result; | |
24933 | PyObject * obj0 = 0 ; | |
24934 | PyObject * obj1 = 0 ; | |
24935 | char *kwnames[] = { | |
24936 | (char *) "self",(char *) "window", NULL | |
24937 | }; | |
24938 | ||
24939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
24940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24941 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24942 | { | |
24943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24944 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
24945 | ||
24946 | wxPyEndAllowThreads(__tstate); | |
24947 | if (PyErr_Occurred()) SWIG_fail; | |
24948 | } | |
24949 | { | |
24950 | #if wxUSE_UNICODE | |
24951 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24952 | #else | |
24953 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24954 | #endif | |
24955 | } | |
24956 | return resultobj; | |
24957 | fail: | |
24958 | return NULL; | |
24959 | } | |
24960 | ||
24961 | ||
24962 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24963 | PyObject *resultobj; | |
24964 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
24965 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24966 | bool result; | |
24967 | PyObject * obj0 = 0 ; | |
24968 | PyObject * obj1 = 0 ; | |
24969 | char *kwnames[] = { | |
24970 | (char *) "self",(char *) "window", NULL | |
24971 | }; | |
24972 | ||
24973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
24974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24975 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24976 | { | |
24977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24978 | result = (bool)(arg1)->ShowHelp(arg2); | |
24979 | ||
24980 | wxPyEndAllowThreads(__tstate); | |
24981 | if (PyErr_Occurred()) SWIG_fail; | |
24982 | } | |
24983 | resultobj = PyInt_FromLong((long)result); | |
24984 | return resultobj; | |
24985 | fail: | |
24986 | return NULL; | |
24987 | } | |
24988 | ||
24989 | ||
24990 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24991 | PyObject *resultobj; | |
24992 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
24993 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24994 | wxString *arg3 = 0 ; | |
e811c8ce | 24995 | bool temp3 = False ; |
d14a1e28 RD |
24996 | PyObject * obj0 = 0 ; |
24997 | PyObject * obj1 = 0 ; | |
24998 | PyObject * obj2 = 0 ; | |
24999 | char *kwnames[] = { | |
25000 | (char *) "self",(char *) "window",(char *) "text", NULL | |
25001 | }; | |
25002 | ||
25003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25005 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25006 | { | |
25007 | arg3 = wxString_in_helper(obj2); | |
25008 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25009 | temp3 = True; |
d14a1e28 RD |
25010 | } |
25011 | { | |
25012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25013 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
25014 | ||
25015 | wxPyEndAllowThreads(__tstate); | |
25016 | if (PyErr_Occurred()) SWIG_fail; | |
25017 | } | |
25018 | Py_INCREF(Py_None); resultobj = Py_None; | |
25019 | { | |
25020 | if (temp3) | |
25021 | delete arg3; | |
25022 | } | |
25023 | return resultobj; | |
25024 | fail: | |
25025 | { | |
25026 | if (temp3) | |
25027 | delete arg3; | |
25028 | } | |
25029 | return NULL; | |
25030 | } | |
25031 | ||
25032 | ||
25033 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25034 | PyObject *resultobj; | |
25035 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 25036 | int arg2 ; |
d14a1e28 | 25037 | wxString *arg3 = 0 ; |
e811c8ce | 25038 | bool temp3 = False ; |
d14a1e28 RD |
25039 | PyObject * obj0 = 0 ; |
25040 | PyObject * obj2 = 0 ; | |
25041 | char *kwnames[] = { | |
25042 | (char *) "self",(char *) "id",(char *) "text", NULL | |
25043 | }; | |
25044 | ||
25045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:HelpProvider_AddHelpById",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
25046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25047 | { | |
25048 | arg3 = wxString_in_helper(obj2); | |
25049 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25050 | temp3 = True; |
d14a1e28 RD |
25051 | } |
25052 | { | |
25053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25054 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
25055 | ||
25056 | wxPyEndAllowThreads(__tstate); | |
25057 | if (PyErr_Occurred()) SWIG_fail; | |
25058 | } | |
25059 | Py_INCREF(Py_None); resultobj = Py_None; | |
25060 | { | |
25061 | if (temp3) | |
25062 | delete arg3; | |
25063 | } | |
25064 | return resultobj; | |
25065 | fail: | |
25066 | { | |
25067 | if (temp3) | |
25068 | delete arg3; | |
25069 | } | |
25070 | return NULL; | |
25071 | } | |
25072 | ||
25073 | ||
25074 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25075 | PyObject *resultobj; | |
25076 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25077 | PyObject * obj0 = 0 ; | |
25078 | char *kwnames[] = { | |
25079 | (char *) "self", NULL | |
25080 | }; | |
25081 | ||
25082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
25083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25084 | { | |
25085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25086 | wxHelpProvider_Destroy(arg1); | |
25087 | ||
25088 | wxPyEndAllowThreads(__tstate); | |
25089 | if (PyErr_Occurred()) SWIG_fail; | |
25090 | } | |
25091 | Py_INCREF(Py_None); resultobj = Py_None; | |
25092 | return resultobj; | |
25093 | fail: | |
25094 | return NULL; | |
25095 | } | |
25096 | ||
25097 | ||
25098 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
25099 | PyObject *obj; | |
25100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25101 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
25102 | Py_INCREF(obj); | |
25103 | return Py_BuildValue((char *)""); | |
25104 | } | |
25105 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25106 | PyObject *resultobj; | |
25107 | wxSimpleHelpProvider *result; | |
25108 | char *kwnames[] = { | |
25109 | NULL | |
25110 | }; | |
25111 | ||
25112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
25113 | { | |
25114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25115 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
25116 | ||
25117 | wxPyEndAllowThreads(__tstate); | |
25118 | if (PyErr_Occurred()) SWIG_fail; | |
25119 | } | |
25120 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
25121 | return resultobj; | |
25122 | fail: | |
25123 | return NULL; | |
25124 | } | |
25125 | ||
25126 | ||
25127 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
25128 | PyObject *obj; | |
25129 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25130 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
25131 | Py_INCREF(obj); | |
25132 | return Py_BuildValue((char *)""); | |
25133 | } | |
e811c8ce RD |
25134 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
25135 | PyObject *resultobj; | |
25136 | wxBitmap *arg1 = 0 ; | |
25137 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25138 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25139 | wxGenericDragImage *result; | |
25140 | PyObject * obj0 = 0 ; | |
25141 | PyObject * obj1 = 0 ; | |
25142 | char *kwnames[] = { | |
25143 | (char *) "image",(char *) "cursor", NULL | |
25144 | }; | |
25145 | ||
25146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
25147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25148 | if (arg1 == NULL) { | |
25149 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25150 | } | |
25151 | if (obj1) { | |
25152 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25153 | if (arg2 == NULL) { | |
25154 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25155 | } | |
25156 | } | |
25157 | { | |
25158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25159 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
25160 | ||
25161 | wxPyEndAllowThreads(__tstate); | |
25162 | if (PyErr_Occurred()) SWIG_fail; | |
25163 | } | |
25164 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25165 | return resultobj; | |
25166 | fail: | |
25167 | return NULL; | |
25168 | } | |
25169 | ||
25170 | ||
25171 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25172 | PyObject *resultobj; | |
25173 | wxIcon *arg1 = 0 ; | |
25174 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25175 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25176 | wxGenericDragImage *result; | |
25177 | PyObject * obj0 = 0 ; | |
25178 | PyObject * obj1 = 0 ; | |
25179 | char *kwnames[] = { | |
25180 | (char *) "image",(char *) "cursor", NULL | |
25181 | }; | |
25182 | ||
25183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
25184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25185 | if (arg1 == NULL) { | |
25186 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25187 | } | |
25188 | if (obj1) { | |
25189 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25190 | if (arg2 == NULL) { | |
25191 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25192 | } | |
25193 | } | |
25194 | { | |
25195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25196 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
25197 | ||
25198 | wxPyEndAllowThreads(__tstate); | |
25199 | if (PyErr_Occurred()) SWIG_fail; | |
25200 | } | |
25201 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25202 | return resultobj; | |
25203 | fail: | |
25204 | return NULL; | |
25205 | } | |
25206 | ||
25207 | ||
25208 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25209 | PyObject *resultobj; | |
25210 | wxString *arg1 = 0 ; | |
25211 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25212 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25213 | wxGenericDragImage *result; | |
25214 | bool temp1 = False ; | |
25215 | PyObject * obj0 = 0 ; | |
25216 | PyObject * obj1 = 0 ; | |
25217 | char *kwnames[] = { | |
25218 | (char *) "str",(char *) "cursor", NULL | |
25219 | }; | |
25220 | ||
25221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
25222 | { | |
25223 | arg1 = wxString_in_helper(obj0); | |
25224 | if (arg1 == NULL) SWIG_fail; | |
25225 | temp1 = True; | |
25226 | } | |
25227 | if (obj1) { | |
25228 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25229 | if (arg2 == NULL) { | |
25230 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25231 | } | |
25232 | } | |
25233 | { | |
25234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25235 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
25236 | ||
25237 | wxPyEndAllowThreads(__tstate); | |
25238 | if (PyErr_Occurred()) SWIG_fail; | |
25239 | } | |
25240 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25241 | { | |
25242 | if (temp1) | |
25243 | delete arg1; | |
25244 | } | |
25245 | return resultobj; | |
25246 | fail: | |
25247 | { | |
25248 | if (temp1) | |
25249 | delete arg1; | |
25250 | } | |
25251 | return NULL; | |
25252 | } | |
25253 | ||
25254 | ||
25255 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25256 | PyObject *resultobj; | |
25257 | wxPyTreeCtrl *arg1 = 0 ; | |
25258 | wxTreeItemId *arg2 = 0 ; | |
25259 | wxGenericDragImage *result; | |
25260 | PyObject * obj0 = 0 ; | |
25261 | PyObject * obj1 = 0 ; | |
25262 | char *kwnames[] = { | |
25263 | (char *) "treeCtrl",(char *) "id", NULL | |
25264 | }; | |
25265 | ||
25266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
25267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25268 | if (arg1 == NULL) { | |
25269 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25270 | } | |
25271 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25272 | if (arg2 == NULL) { | |
25273 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25274 | } | |
25275 | { | |
25276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25277 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
25278 | ||
25279 | wxPyEndAllowThreads(__tstate); | |
25280 | if (PyErr_Occurred()) SWIG_fail; | |
25281 | } | |
25282 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25283 | return resultobj; | |
25284 | fail: | |
25285 | return NULL; | |
25286 | } | |
25287 | ||
25288 | ||
25289 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25290 | PyObject *resultobj; | |
25291 | wxPyListCtrl *arg1 = 0 ; | |
25292 | long arg2 ; | |
25293 | wxGenericDragImage *result; | |
25294 | PyObject * obj0 = 0 ; | |
25295 | char *kwnames[] = { | |
25296 | (char *) "listCtrl",(char *) "id", NULL | |
25297 | }; | |
25298 | ||
25299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_DragListItem",kwnames,&obj0,&arg2)) goto fail; | |
25300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25301 | if (arg1 == NULL) { | |
25302 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25303 | } | |
25304 | { | |
25305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25306 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
25307 | ||
25308 | wxPyEndAllowThreads(__tstate); | |
25309 | if (PyErr_Occurred()) SWIG_fail; | |
25310 | } | |
25311 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25312 | return resultobj; | |
25313 | fail: | |
25314 | return NULL; | |
25315 | } | |
25316 | ||
25317 | ||
25318 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25319 | PyObject *resultobj; | |
25320 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25321 | PyObject * obj0 = 0 ; | |
25322 | char *kwnames[] = { | |
25323 | (char *) "self", NULL | |
25324 | }; | |
25325 | ||
25326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
25327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25328 | { | |
25329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25330 | delete arg1; | |
25331 | ||
25332 | wxPyEndAllowThreads(__tstate); | |
25333 | if (PyErr_Occurred()) SWIG_fail; | |
25334 | } | |
25335 | Py_INCREF(Py_None); resultobj = Py_None; | |
25336 | return resultobj; | |
25337 | fail: | |
25338 | return NULL; | |
25339 | } | |
25340 | ||
25341 | ||
25342 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25343 | PyObject *resultobj; | |
25344 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25345 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
25346 | PyObject * obj0 = 0 ; | |
25347 | PyObject * obj1 = 0 ; | |
25348 | char *kwnames[] = { | |
25349 | (char *) "self",(char *) "bitmap", NULL | |
25350 | }; | |
25351 | ||
25352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25354 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25355 | { | |
25356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25357 | (arg1)->SetBackingBitmap(arg2); | |
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_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25370 | PyObject *resultobj; | |
25371 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25372 | wxPoint *arg2 = 0 ; | |
25373 | wxWindow *arg3 = (wxWindow *) 0 ; | |
25374 | bool arg4 = (bool) False ; | |
25375 | wxRect *arg5 = (wxRect *) NULL ; | |
25376 | bool result; | |
25377 | wxPoint temp2 ; | |
25378 | PyObject * obj0 = 0 ; | |
25379 | PyObject * obj1 = 0 ; | |
25380 | PyObject * obj2 = 0 ; | |
25381 | PyObject * obj3 = 0 ; | |
25382 | PyObject * obj4 = 0 ; | |
25383 | char *kwnames[] = { | |
25384 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
25385 | }; | |
25386 | ||
25387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25389 | { | |
25390 | arg2 = &temp2; | |
25391 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25392 | } | |
25393 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25394 | if (obj3) { | |
25395 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
25396 | if (PyErr_Occurred()) SWIG_fail; | |
25397 | } | |
25398 | if (obj4) { | |
25399 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25400 | } | |
25401 | { | |
25402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25403 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
25404 | ||
25405 | wxPyEndAllowThreads(__tstate); | |
25406 | if (PyErr_Occurred()) SWIG_fail; | |
25407 | } | |
25408 | resultobj = PyInt_FromLong((long)result); | |
25409 | return resultobj; | |
25410 | fail: | |
25411 | return NULL; | |
25412 | } | |
25413 | ||
25414 | ||
25415 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25416 | PyObject *resultobj; | |
25417 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25418 | wxPoint *arg2 = 0 ; | |
25419 | wxWindow *arg3 = (wxWindow *) 0 ; | |
25420 | wxWindow *arg4 = (wxWindow *) 0 ; | |
25421 | bool result; | |
25422 | wxPoint temp2 ; | |
25423 | PyObject * obj0 = 0 ; | |
25424 | PyObject * obj1 = 0 ; | |
25425 | PyObject * obj2 = 0 ; | |
25426 | PyObject * obj3 = 0 ; | |
25427 | char *kwnames[] = { | |
25428 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
25429 | }; | |
25430 | ||
25431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25433 | { | |
25434 | arg2 = &temp2; | |
25435 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25436 | } | |
25437 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25438 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25439 | { | |
25440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25441 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
25442 | ||
25443 | wxPyEndAllowThreads(__tstate); | |
25444 | if (PyErr_Occurred()) SWIG_fail; | |
25445 | } | |
25446 | resultobj = PyInt_FromLong((long)result); | |
25447 | return resultobj; | |
25448 | fail: | |
25449 | return NULL; | |
25450 | } | |
25451 | ||
25452 | ||
25453 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25454 | PyObject *resultobj; | |
25455 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25456 | bool result; | |
25457 | PyObject * obj0 = 0 ; | |
25458 | char *kwnames[] = { | |
25459 | (char *) "self", NULL | |
25460 | }; | |
25461 | ||
25462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
25463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25464 | { | |
25465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25466 | result = (bool)(arg1)->EndDrag(); | |
25467 | ||
25468 | wxPyEndAllowThreads(__tstate); | |
25469 | if (PyErr_Occurred()) SWIG_fail; | |
25470 | } | |
25471 | resultobj = PyInt_FromLong((long)result); | |
25472 | return resultobj; | |
25473 | fail: | |
25474 | return NULL; | |
25475 | } | |
25476 | ||
25477 | ||
25478 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25479 | PyObject *resultobj; | |
25480 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25481 | wxPoint *arg2 = 0 ; | |
25482 | bool result; | |
25483 | wxPoint temp2 ; | |
25484 | PyObject * obj0 = 0 ; | |
25485 | PyObject * obj1 = 0 ; | |
25486 | char *kwnames[] = { | |
25487 | (char *) "self",(char *) "pt", NULL | |
25488 | }; | |
25489 | ||
25490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
25491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25492 | { | |
25493 | arg2 = &temp2; | |
25494 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25495 | } | |
25496 | { | |
25497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25498 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
25499 | ||
25500 | wxPyEndAllowThreads(__tstate); | |
25501 | if (PyErr_Occurred()) SWIG_fail; | |
25502 | } | |
25503 | resultobj = PyInt_FromLong((long)result); | |
25504 | return resultobj; | |
25505 | fail: | |
25506 | return NULL; | |
25507 | } | |
25508 | ||
25509 | ||
25510 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25511 | PyObject *resultobj; | |
25512 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25513 | bool result; | |
25514 | PyObject * obj0 = 0 ; | |
25515 | char *kwnames[] = { | |
25516 | (char *) "self", NULL | |
25517 | }; | |
25518 | ||
25519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
25520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25521 | { | |
25522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25523 | result = (bool)(arg1)->Show(); | |
25524 | ||
25525 | wxPyEndAllowThreads(__tstate); | |
25526 | if (PyErr_Occurred()) SWIG_fail; | |
25527 | } | |
25528 | resultobj = PyInt_FromLong((long)result); | |
25529 | return resultobj; | |
25530 | fail: | |
25531 | return NULL; | |
25532 | } | |
25533 | ||
25534 | ||
25535 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25536 | PyObject *resultobj; | |
25537 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25538 | bool result; | |
25539 | PyObject * obj0 = 0 ; | |
25540 | char *kwnames[] = { | |
25541 | (char *) "self", NULL | |
25542 | }; | |
25543 | ||
25544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
25545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25546 | { | |
25547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25548 | result = (bool)(arg1)->Hide(); | |
25549 | ||
25550 | wxPyEndAllowThreads(__tstate); | |
25551 | if (PyErr_Occurred()) SWIG_fail; | |
25552 | } | |
25553 | resultobj = PyInt_FromLong((long)result); | |
25554 | return resultobj; | |
25555 | fail: | |
25556 | return NULL; | |
25557 | } | |
25558 | ||
25559 | ||
25560 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25561 | PyObject *resultobj; | |
25562 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25563 | wxPoint *arg2 = 0 ; | |
25564 | wxRect result; | |
25565 | wxPoint temp2 ; | |
25566 | PyObject * obj0 = 0 ; | |
25567 | PyObject * obj1 = 0 ; | |
25568 | char *kwnames[] = { | |
25569 | (char *) "self",(char *) "pos", NULL | |
25570 | }; | |
25571 | ||
25572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
25573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25574 | { | |
25575 | arg2 = &temp2; | |
25576 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25577 | } | |
25578 | { | |
25579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25580 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
25581 | ||
25582 | wxPyEndAllowThreads(__tstate); | |
25583 | if (PyErr_Occurred()) SWIG_fail; | |
25584 | } | |
25585 | { | |
25586 | wxRect * resultptr; | |
25587 | resultptr = new wxRect((wxRect &) result); | |
25588 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
25589 | } | |
25590 | return resultobj; | |
25591 | fail: | |
25592 | return NULL; | |
25593 | } | |
25594 | ||
25595 | ||
25596 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25597 | PyObject *resultobj; | |
25598 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25599 | wxDC *arg2 = 0 ; | |
25600 | wxPoint *arg3 = 0 ; | |
25601 | bool result; | |
25602 | wxPoint temp3 ; | |
25603 | PyObject * obj0 = 0 ; | |
25604 | PyObject * obj1 = 0 ; | |
25605 | PyObject * obj2 = 0 ; | |
25606 | char *kwnames[] = { | |
25607 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
25608 | }; | |
25609 | ||
25610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25612 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25613 | if (arg2 == NULL) { | |
25614 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25615 | } | |
25616 | { | |
25617 | arg3 = &temp3; | |
25618 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25619 | } | |
25620 | { | |
25621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25622 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
25623 | ||
25624 | wxPyEndAllowThreads(__tstate); | |
25625 | if (PyErr_Occurred()) SWIG_fail; | |
25626 | } | |
25627 | resultobj = PyInt_FromLong((long)result); | |
25628 | return resultobj; | |
25629 | fail: | |
25630 | return NULL; | |
25631 | } | |
25632 | ||
25633 | ||
25634 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25635 | PyObject *resultobj; | |
25636 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25637 | wxDC *arg2 = 0 ; | |
25638 | wxMemoryDC *arg3 = 0 ; | |
25639 | wxRect *arg4 = 0 ; | |
25640 | wxRect *arg5 = 0 ; | |
25641 | bool result; | |
25642 | wxRect temp4 ; | |
25643 | wxRect temp5 ; | |
25644 | PyObject * obj0 = 0 ; | |
25645 | PyObject * obj1 = 0 ; | |
25646 | PyObject * obj2 = 0 ; | |
25647 | PyObject * obj3 = 0 ; | |
25648 | PyObject * obj4 = 0 ; | |
25649 | char *kwnames[] = { | |
25650 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
25651 | }; | |
25652 | ||
25653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25655 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25656 | if (arg2 == NULL) { | |
25657 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25658 | } | |
25659 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25660 | if (arg3 == NULL) { | |
25661 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25662 | } | |
25663 | { | |
25664 | arg4 = &temp4; | |
25665 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
25666 | } | |
25667 | { | |
25668 | arg5 = &temp5; | |
25669 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
25670 | } | |
25671 | { | |
25672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25673 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
25674 | ||
25675 | wxPyEndAllowThreads(__tstate); | |
25676 | if (PyErr_Occurred()) SWIG_fail; | |
25677 | } | |
25678 | resultobj = PyInt_FromLong((long)result); | |
25679 | return resultobj; | |
25680 | fail: | |
25681 | return NULL; | |
25682 | } | |
25683 | ||
25684 | ||
25685 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25686 | PyObject *resultobj; | |
25687 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25688 | wxPoint *arg2 = 0 ; | |
25689 | wxPoint *arg3 = 0 ; | |
25690 | bool arg4 ; | |
25691 | bool arg5 ; | |
25692 | bool result; | |
25693 | wxPoint temp2 ; | |
25694 | wxPoint temp3 ; | |
25695 | PyObject * obj0 = 0 ; | |
25696 | PyObject * obj1 = 0 ; | |
25697 | PyObject * obj2 = 0 ; | |
25698 | PyObject * obj3 = 0 ; | |
25699 | PyObject * obj4 = 0 ; | |
25700 | char *kwnames[] = { | |
25701 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
25702 | }; | |
25703 | ||
25704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25706 | { | |
25707 | arg2 = &temp2; | |
25708 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25709 | } | |
25710 | { | |
25711 | arg3 = &temp3; | |
25712 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25713 | } | |
25714 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
25715 | if (PyErr_Occurred()) SWIG_fail; | |
25716 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
25717 | if (PyErr_Occurred()) SWIG_fail; | |
25718 | { | |
25719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25720 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
25721 | ||
25722 | wxPyEndAllowThreads(__tstate); | |
25723 | if (PyErr_Occurred()) SWIG_fail; | |
25724 | } | |
25725 | resultobj = PyInt_FromLong((long)result); | |
25726 | return resultobj; | |
25727 | fail: | |
25728 | return NULL; | |
25729 | } | |
25730 | ||
25731 | ||
25732 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
25733 | PyObject *obj; | |
25734 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25735 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
25736 | Py_INCREF(obj); | |
25737 | return Py_BuildValue((char *)""); | |
25738 | } | |
25739 | static PyMethodDef SwigMethods[] = { | |
25740 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
25741 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
25742 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
25743 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
25744 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
25745 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
25746 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
25747 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
25748 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
25749 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
25750 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
25751 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
25752 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
25753 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
25754 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
25755 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
25756 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
25757 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
25758 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
25759 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
25760 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
25761 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
25762 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
25763 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25764 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25765 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
25766 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25767 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
25768 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
25769 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
25770 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
25771 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
25772 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
25773 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
25774 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
25775 | { (char *)"Choice_GetColumns", (PyCFunction) _wrap_Choice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
25776 | { (char *)"Choice_SetColumns", (PyCFunction) _wrap_Choice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
25777 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25778 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
25779 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
25780 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
25781 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
25782 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
25783 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25784 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25785 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25786 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
25787 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
25788 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
25789 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
25790 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
25791 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
25792 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
25793 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
25794 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
25795 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
25796 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
25797 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
25798 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
25799 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
25800 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
25801 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
25802 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
25803 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25804 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25805 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
25806 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
25807 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
25808 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
25809 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
25810 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
25811 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
25812 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
25813 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25814 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
25815 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
25816 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
25817 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
25818 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
25819 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
25820 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
25821 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
25822 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
25823 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
25824 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
25825 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25826 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25827 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
25828 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25829 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25830 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25831 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
25832 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
25833 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
25834 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25835 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
25836 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
25837 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
25838 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
25839 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25840 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
25841 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
25842 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
25843 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
25844 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
25845 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
25846 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
25847 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
25848 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
25849 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
25850 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, | |
25851 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
25852 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
25853 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25854 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
25855 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
25856 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
25857 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
25858 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
25859 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
25860 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
25861 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, | |
25862 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
25863 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
25864 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
25865 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25866 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
25867 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
25868 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
25869 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25870 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
25871 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
25872 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
25873 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25874 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
25875 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
25876 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
25877 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
25878 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
25879 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
25880 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
25881 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25882 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
25883 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
25884 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
25885 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25886 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
25887 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
25888 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
25889 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
25890 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
25891 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
25892 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25893 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25894 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
25895 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
25896 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
25897 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
25898 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
25899 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
25900 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
25901 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
25902 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25903 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
25904 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
25905 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
25906 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
25907 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
25908 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
25909 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
25910 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
25911 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
25912 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
25913 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
25914 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
25915 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25916 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25917 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
25918 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
25919 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
25920 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
25921 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
25922 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
25923 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
25924 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
25925 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
25926 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
25927 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
25928 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
25929 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
25930 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
25931 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
25932 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
25933 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
25934 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
25935 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
25936 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25937 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
25938 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
25939 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
25940 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
25941 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
25942 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
25943 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
25944 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
25945 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
25946 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
25947 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
25948 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
25949 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
25950 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
25951 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
25952 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
25953 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
25954 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
25955 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
25956 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
25957 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
25958 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
25959 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
25960 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
25961 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25962 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
25963 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
25964 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25965 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
25966 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
25967 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
25968 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
25969 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
25970 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
25971 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
25972 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
25973 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25974 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25975 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
25976 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
25977 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
25978 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
25979 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25980 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
25981 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, | |
25982 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
25983 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25984 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25985 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25986 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
25987 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
25988 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
25989 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
25990 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
25991 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
25992 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
25993 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
25994 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
25995 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
25996 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
25997 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
25998 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
25999 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
26000 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26001 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26002 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26003 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
26004 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
26005 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
26006 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
26007 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26008 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26009 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26010 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
26011 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
26012 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
26013 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
26014 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
26015 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26016 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
26017 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26018 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
26019 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
26020 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
26021 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
26022 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
26023 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
26024 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
26025 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
26026 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
26027 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26028 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
26029 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
26030 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
26031 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26032 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26033 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26034 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26035 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
26036 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
26037 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
26038 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26039 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
26040 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
26041 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26042 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26043 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26044 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
26045 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
26046 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26047 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
26048 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
26049 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
26050 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
26051 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
26052 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
26053 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26054 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
26055 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
26056 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
26057 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26058 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26059 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
26060 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
26061 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
26062 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
26063 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
26064 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
26065 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
26066 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
26067 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
26068 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26069 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
26070 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
26071 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
26072 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
26073 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
26074 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
26075 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
26076 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26077 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
26078 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
26079 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
26080 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
26081 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
26082 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
26083 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
26084 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
26085 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
26086 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
26087 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
26088 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
26089 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
26090 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26091 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
26092 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
26093 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
26094 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
26095 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
26096 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
26097 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
26098 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
26099 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
26100 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
26101 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26102 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26103 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26104 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26105 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26106 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26107 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
26108 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
26109 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
26110 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26111 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26112 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26113 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26114 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26115 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
26116 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
26117 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
26118 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
26119 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
26120 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
26121 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
26122 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, | |
26123 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
26124 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
26125 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
26126 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
26127 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
26128 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
26129 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
26130 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
26131 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
26132 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
26133 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
26134 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
26135 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
26136 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
26137 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
26138 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
26139 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
26140 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26141 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26142 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26143 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26144 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
26145 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
26146 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
26147 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
26148 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
26149 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
26150 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
26151 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
26152 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
26153 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
26154 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
26155 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
26156 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
26157 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
26158 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
26159 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
26160 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26161 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
26162 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
26163 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
26164 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
26165 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
26166 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
26167 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
26168 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26169 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26170 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26171 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26172 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26173 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
26174 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26175 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26176 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26177 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26178 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
26179 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
26180 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
26181 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
26182 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
26183 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
26184 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
26185 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26186 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
26187 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
26188 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
26189 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
26190 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
26191 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
26192 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
26193 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26194 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26195 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26196 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
26197 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26198 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26199 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
26200 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
26201 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
26202 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
26203 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
26204 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
26205 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
26206 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
26207 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26208 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26209 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26210 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
26211 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
26212 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
26213 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
26214 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
26215 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
26216 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
26217 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
26218 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
26219 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
26220 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
26221 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
26222 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
26223 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
26224 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
26225 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
26226 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
26227 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
26228 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
26229 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
26230 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
26231 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
26232 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
26233 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
26234 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
26235 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
26236 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
26237 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
26238 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
26239 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
26240 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
26241 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
26242 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
26243 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
26244 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
26245 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26246 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
26247 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26248 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
26249 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
26250 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
26251 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
26252 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
26253 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
26254 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
26255 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
26256 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
26257 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
26258 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26259 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26260 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26261 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26262 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26263 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26264 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26265 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26266 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
26267 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
26268 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
26269 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
26270 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
26271 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
26272 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
26273 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
26274 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
26275 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
26276 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26277 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26278 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26279 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26280 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
26281 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
26282 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
26283 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
26284 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
26285 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26286 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26287 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
26288 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26289 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26290 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
26291 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
26292 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
26293 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
26294 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26295 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26296 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26297 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
26298 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
26299 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
26300 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
26301 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
26302 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
26303 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
26304 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
26305 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
26306 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
26307 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26308 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
26309 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
26310 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
26311 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26312 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
26313 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
26314 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
26315 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
26316 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
26317 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
26318 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
26319 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
26320 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26321 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26322 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26323 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26324 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
26325 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
26326 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
26327 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
26328 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
26329 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
26330 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
26331 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
26332 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
26333 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
26334 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
26335 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
26336 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
26337 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
26338 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
26339 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
26340 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
26341 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
26342 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
26343 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
26344 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
26345 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
26346 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
26347 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
26348 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
26349 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
26350 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26351 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
26352 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26353 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
26354 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
26355 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
26356 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
26357 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
26358 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
26359 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
26360 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
26361 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
26362 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
26363 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
26364 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26365 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26366 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
26367 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
26368 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, | |
26369 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26370 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26371 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26372 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26373 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
26374 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
26375 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
26376 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26377 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26378 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26379 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
26380 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26381 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
26382 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26383 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
26384 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26385 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
26386 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26387 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
26388 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26389 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26390 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
26391 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26392 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
26393 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26394 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
26395 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
26396 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
26397 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26398 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26399 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
26400 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
26401 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
26402 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
26403 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
26404 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
26405 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
26406 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
26407 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26408 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
26409 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
26410 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
26411 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
26412 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
26413 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
26414 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
26415 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
26416 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
26417 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
26418 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
26419 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
26420 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
26421 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
26422 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
26423 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
26424 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
26425 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
26426 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
26427 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
26428 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
26429 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
26430 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
26431 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
26432 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
26433 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26434 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
26435 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
26436 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
26437 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
26438 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26439 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
26440 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
26441 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26442 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26443 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26444 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
26445 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
26446 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
26447 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
26448 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
26449 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
26450 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
26451 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
26452 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
26453 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
26454 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
26455 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
26456 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
26457 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26458 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26459 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
26460 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
26461 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
26462 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
26463 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26464 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26465 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26466 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
26467 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
26468 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
26469 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26470 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
26471 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
26472 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
26473 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
26474 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
26475 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
26476 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26477 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
26478 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
26479 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
26480 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
26481 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
26482 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
26483 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
26484 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
26485 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
26486 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
26487 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
26488 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
26489 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
26490 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26491 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26492 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
26493 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
26494 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
26495 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
26496 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
26497 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26498 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26499 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26500 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26501 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
26502 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
26503 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
26504 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
26505 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
26506 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
26507 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
26508 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
26509 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
26510 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26511 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
26512 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
26513 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
e811c8ce RD |
26514 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
26515 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
26516 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
26517 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
26518 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
26519 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
26520 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26521 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
26522 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
26523 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
26524 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
26525 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
26526 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
26527 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
26528 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
26529 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
26530 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
26531 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
26532 | { NULL, NULL } |
26533 | }; | |
26534 | ||
26535 | ||
26536 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
26537 | ||
26538 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
26539 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
26540 | } | |
26541 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
26542 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
26543 | } | |
26544 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
26545 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
26546 | } | |
26547 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
26548 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
26549 | } | |
26550 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
26551 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
26552 | } | |
26553 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
26554 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
26555 | } | |
26556 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
26557 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
26558 | } | |
26559 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
26560 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
26561 | } | |
26562 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
26563 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
26564 | } | |
26565 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
26566 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
26567 | } | |
26568 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
26569 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26570 | } | |
26571 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
26572 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
26573 | } | |
26574 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
26575 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
26576 | } | |
26577 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
26578 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
26579 | } | |
26580 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
26581 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
26582 | } | |
26583 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
26584 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
26585 | } | |
26586 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
26587 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
26588 | } | |
26589 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
26590 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
26591 | } | |
26592 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
26593 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
26594 | } | |
26595 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
26596 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
26597 | } | |
26598 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
26599 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
26600 | } | |
26601 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
26602 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
26603 | } | |
26604 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
26605 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26606 | } | |
26607 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
26608 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
26609 | } | |
26610 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
26611 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
26612 | } | |
26613 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
26614 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
26615 | } | |
26616 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
26617 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
26618 | } | |
26619 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
26620 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
26621 | } | |
26622 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
26623 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26624 | } | |
26625 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
26626 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
26627 | } | |
26628 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
26629 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
26630 | } | |
26631 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
26632 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
26633 | } | |
26634 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
26635 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
26636 | } | |
26637 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
26638 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
26639 | } | |
26640 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
26641 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
26642 | } | |
26643 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
26644 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
26645 | } | |
26646 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
26647 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
26648 | } | |
26649 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
26650 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26651 | } | |
26652 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
26653 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
26654 | } | |
26655 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
26656 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
26657 | } | |
26658 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
26659 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
26660 | } | |
26661 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
26662 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
26663 | } | |
26664 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
26665 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
26666 | } | |
26667 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
26668 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
26669 | } | |
26670 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
26671 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26672 | } | |
26673 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
26674 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
26675 | } | |
26676 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
26677 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
26678 | } | |
26679 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
26680 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26681 | } | |
26682 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
26683 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26684 | } | |
26685 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
26686 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
26687 | } | |
26688 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
26689 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
26690 | } | |
26691 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
26692 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
26693 | } | |
26694 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
26695 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
26696 | } | |
26697 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
26698 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
26699 | } | |
26700 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
26701 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
26702 | } | |
26703 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
26704 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
26705 | } | |
26706 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
26707 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
26708 | } | |
26709 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
26710 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
26711 | } | |
26712 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
26713 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
26714 | } | |
26715 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
26716 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
26717 | } | |
26718 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
26719 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
26720 | } | |
26721 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
26722 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
26723 | } | |
26724 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
26725 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
26726 | } | |
26727 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
26728 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
26729 | } | |
26730 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
26731 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
26732 | } | |
26733 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
26734 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
26735 | } | |
26736 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
26737 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
26738 | } | |
26739 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
26740 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
26741 | } | |
26742 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
26743 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
26744 | } | |
26745 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
26746 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
26747 | } | |
26748 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
26749 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
26750 | } | |
26751 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
26752 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
26753 | } | |
26754 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
26755 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
26756 | } | |
26757 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
26758 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
26759 | } | |
26760 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
26761 | return (void *)((wxControl *) ((wxGauge *) x)); | |
26762 | } | |
26763 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
26764 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
26765 | } | |
26766 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
26767 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
26768 | } | |
26769 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
26770 | return (void *)((wxControl *) ((wxButton *) x)); | |
26771 | } | |
26772 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
26773 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
26774 | } | |
26775 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
26776 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
26777 | } | |
26778 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
26779 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
26780 | } | |
26781 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
26782 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
26783 | } | |
26784 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
26785 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
26786 | } | |
26787 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
26788 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
26789 | } | |
26790 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
26791 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
26792 | } | |
26793 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
26794 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
26795 | } | |
26796 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
26797 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
26798 | } | |
26799 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
26800 | return (void *)((wxControl *) ((wxSlider *) x)); | |
26801 | } | |
26802 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
26803 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
26804 | } | |
26805 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
26806 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
26807 | } | |
26808 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
26809 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
26810 | } | |
26811 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
26812 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
26813 | } | |
26814 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
26815 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
26816 | } | |
26817 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
26818 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
26819 | } | |
26820 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
26821 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
26822 | } | |
26823 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
26824 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
26825 | } | |
26826 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
26827 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
26828 | } | |
26829 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
26830 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
26831 | } | |
26832 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
26833 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
26834 | } | |
26835 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
26836 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
26837 | } | |
26838 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
26839 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
26840 | } | |
26841 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
26842 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
26843 | } | |
26844 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
26845 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
26846 | } | |
26847 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
26848 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
26849 | } | |
26850 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
26851 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
26852 | } | |
26853 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
26854 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
26855 | } | |
26856 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
26857 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
26858 | } | |
26859 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
26860 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
26861 | } | |
26862 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
26863 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
26864 | } | |
26865 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
26866 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
26867 | } | |
26868 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
26869 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
26870 | } | |
26871 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
26872 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
26873 | } | |
26874 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
26875 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
26876 | } | |
26877 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
26878 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
26879 | } | |
26880 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
26881 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
26882 | } | |
26883 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
26884 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
26885 | } | |
26886 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
26887 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
26888 | } | |
26889 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
26890 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26891 | } | |
26892 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
26893 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
26894 | } | |
26895 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
26896 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
26897 | } | |
26898 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
26899 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
26900 | } | |
26901 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
26902 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
26903 | } | |
26904 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
26905 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
26906 | } | |
26907 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
26908 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
26909 | } | |
26910 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
26911 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
26912 | } | |
26913 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
26914 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
26915 | } | |
26916 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
26917 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
26918 | } | |
26919 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
26920 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
26921 | } | |
26922 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
26923 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
26924 | } | |
26925 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
26926 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
26927 | } | |
26928 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
26929 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
26930 | } | |
26931 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
26932 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
26933 | } | |
26934 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
26935 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
26936 | } | |
26937 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
26938 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
26939 | } | |
26940 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
26941 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
26942 | } | |
26943 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
26944 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
26945 | } | |
26946 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
26947 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
26948 | } | |
26949 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
26950 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
26951 | } | |
26952 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
26953 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
26954 | } | |
26955 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
26956 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
26957 | } | |
26958 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
26959 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
26960 | } | |
26961 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
26962 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
26963 | } | |
26964 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
26965 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
26966 | } | |
26967 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
26968 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
26969 | } | |
26970 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
26971 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
26972 | } | |
26973 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
26974 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
26975 | } | |
26976 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
26977 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
26978 | } | |
26979 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
26980 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
26981 | } | |
26982 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
26983 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
26984 | } | |
26985 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
26986 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
26987 | } | |
26988 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
26989 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
26990 | } | |
26991 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
26992 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
26993 | } | |
26994 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
26995 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
26996 | } | |
26997 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
26998 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
26999 | } | |
27000 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
27001 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
27002 | } | |
27003 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
27004 | return (void *)((wxObject *) ((wxSizer *) x)); | |
27005 | } | |
27006 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
27007 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
27008 | } | |
27009 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
27010 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
27011 | } | |
27012 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
27013 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
27014 | } | |
27015 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
27016 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27017 | } | |
27018 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
27019 | return (void *)((wxObject *) ((wxEvent *) x)); | |
27020 | } | |
27021 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
27022 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
27023 | } | |
27024 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
27025 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
27026 | } | |
27027 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
27028 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
27029 | } | |
27030 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
27031 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
27032 | } | |
27033 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
27034 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
27035 | } | |
27036 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
27037 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27038 | } | |
27039 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
27040 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
27041 | } | |
27042 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
27043 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
27044 | } | |
27045 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
27046 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27047 | } | |
27048 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
27049 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27050 | } | |
27051 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
27052 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27053 | } | |
27054 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
27055 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27056 | } | |
27057 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
27058 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
27059 | } | |
27060 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
27061 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
27062 | } | |
27063 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
27064 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
27065 | } | |
27066 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
27067 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
27068 | } | |
27069 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
27070 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
27071 | } | |
27072 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
27073 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
27074 | } | |
27075 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
27076 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
27077 | } | |
27078 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
27079 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
27080 | } | |
27081 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
27082 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
27083 | } | |
27084 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
27085 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
27086 | } | |
27087 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
27088 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
27089 | } | |
27090 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
27091 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
27092 | } | |
27093 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
27094 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
27095 | } | |
27096 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
27097 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
27098 | } | |
27099 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
27100 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
27101 | } | |
27102 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
27103 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27104 | } | |
27105 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
27106 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
27107 | } | |
27108 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
27109 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
27110 | } | |
27111 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
27112 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
27113 | } | |
27114 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
27115 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
27116 | } | |
27117 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
27118 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
27119 | } | |
27120 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
27121 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
27122 | } | |
27123 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
27124 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27125 | } | |
27126 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
27127 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27128 | } | |
27129 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
27130 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
27131 | } | |
27132 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
27133 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
27134 | } | |
27135 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
27136 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
27137 | } | |
27138 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
27139 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
27140 | } | |
27141 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
27142 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
27143 | } | |
27144 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
27145 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
27146 | } | |
27147 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
27148 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
27149 | } | |
27150 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
27151 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
27152 | } | |
27153 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
27154 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
27155 | } | |
27156 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
27157 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
27158 | } | |
27159 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
27160 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
27161 | } | |
27162 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
27163 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
27164 | } | |
27165 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
27166 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
27167 | } | |
27168 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
27169 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
27170 | } | |
27171 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
27172 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
27173 | } | |
27174 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
27175 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
27176 | } | |
27177 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
27178 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
27179 | } | |
27180 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
27181 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
27182 | } | |
27183 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
27184 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
27185 | } | |
27186 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
27187 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
27188 | } | |
27189 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
27190 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
27191 | } | |
27192 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
27193 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
27194 | } | |
27195 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
27196 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27197 | } | |
27198 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
27199 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
27200 | } | |
27201 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
27202 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
27203 | } | |
27204 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
27205 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
27206 | } | |
27207 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
27208 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
27209 | } | |
27210 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
27211 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27212 | } | |
27213 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
27214 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
27215 | } | |
27216 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
27217 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
27218 | } | |
27219 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
27220 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
27221 | } | |
27222 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
27223 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
27224 | } | |
27225 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
27226 | return (void *)((wxObject *) ((wxListItem *) x)); | |
27227 | } | |
27228 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
27229 | return (void *)((wxObject *) ((wxImage *) x)); | |
27230 | } | |
27231 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
27232 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
27233 | } | |
27234 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
27235 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
27236 | } | |
e811c8ce RD |
27237 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
27238 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
27239 | } | |
d14a1e28 RD |
27240 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
27241 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
27242 | } | |
27243 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
27244 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27245 | } | |
27246 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
27247 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27248 | } | |
27249 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
27250 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27251 | } | |
27252 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
27253 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27254 | } | |
27255 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
27256 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
27257 | } | |
27258 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
27259 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
27260 | } | |
27261 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
27262 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
27263 | } | |
27264 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
27265 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
27266 | } | |
27267 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
27268 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
27269 | } | |
27270 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
27271 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27272 | } | |
27273 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
27274 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
27275 | } | |
27276 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
27277 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
27278 | } | |
27279 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
27280 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
27281 | } | |
27282 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
27283 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
27284 | } | |
27285 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
27286 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
27287 | } | |
27288 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
27289 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27290 | } | |
27291 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
27292 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27293 | } | |
27294 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
27295 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
27296 | } | |
27297 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
27298 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
27299 | } | |
27300 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
27301 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
27302 | } | |
27303 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
27304 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
27305 | } | |
27306 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
27307 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27308 | } | |
27309 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
27310 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27311 | } | |
27312 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
27313 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
27314 | } | |
27315 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
27316 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
27317 | } | |
27318 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
27319 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
27320 | } | |
27321 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
27322 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
27323 | } | |
27324 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
27325 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
27326 | } | |
27327 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
27328 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
27329 | } | |
27330 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
27331 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
27332 | } | |
27333 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
27334 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
27335 | } | |
27336 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
27337 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
27338 | } | |
27339 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
27340 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
27341 | } | |
27342 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
27343 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
27344 | } | |
27345 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
27346 | return (void *)((wxWindow *) ((wxControl *) x)); | |
27347 | } | |
27348 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
27349 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
27350 | } | |
27351 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
27352 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27353 | } | |
27354 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
27355 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
27356 | } | |
27357 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
27358 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
27359 | } | |
27360 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
27361 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
27362 | } | |
27363 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
27364 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
27365 | } | |
27366 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
27367 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
27368 | } | |
27369 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
27370 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
27371 | } | |
27372 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
27373 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
27374 | } | |
27375 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
27376 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
27377 | } | |
27378 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
27379 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
27380 | } | |
27381 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
27382 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
27383 | } | |
27384 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
27385 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
27386 | } | |
27387 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
27388 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27389 | } | |
27390 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
27391 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
27392 | } | |
27393 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
27394 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
27395 | } | |
27396 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
27397 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
27398 | } | |
27399 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
27400 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
27401 | } | |
27402 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
27403 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
27404 | } | |
27405 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
27406 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
27407 | } | |
27408 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
27409 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
27410 | } | |
27411 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
27412 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
27413 | } | |
27414 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
27415 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
27416 | } | |
27417 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
27418 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
27419 | } | |
27420 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
27421 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
27422 | } | |
27423 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
27424 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
27425 | } | |
27426 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
27427 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27428 | } | |
27429 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
27430 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
27431 | } | |
27432 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
27433 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27434 | } | |
27435 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
27436 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27437 | } | |
27438 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
27439 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
27440 | } | |
27441 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
27442 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
27443 | } | |
27444 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
27445 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27446 | } | |
27447 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
27448 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27449 | } | |
27450 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
27451 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27452 | } | |
27453 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
27454 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27455 | } | |
27456 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
27457 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27458 | } | |
27459 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
27460 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
27461 | } | |
27462 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
27463 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27464 | } | |
27465 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
27466 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27467 | } | |
27468 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
27469 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
27470 | } | |
27471 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
27472 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27473 | } | |
27474 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
27475 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27476 | } | |
27477 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
27478 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27479 | } | |
27480 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
27481 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
27482 | } | |
27483 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
27484 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
27485 | } | |
27486 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
27487 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
27488 | } | |
27489 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
27490 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
27491 | } | |
27492 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
27493 | 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}}; | |
27494 | 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}}; | |
27495 | static swig_type_info _swigt__p_wxTreeItemIdValue[] = {{"_p_wxTreeItemIdValue", 0, "wxTreeItemIdValue *", 0},{"_p_wxTreeItemIdValue"},{0}}; | |
27496 | static swig_type_info _swigt__wxTreeItemIdValue[] = {{"_wxTreeItemIdValue", 0, "wxTreeItemIdValue", 0},{"_wxTreeItemIdValue"},{0}}; | |
27497 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; | |
27498 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
27499 | 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_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}}; | |
27500 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; | |
27501 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
27502 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
27503 | 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}}; | |
27504 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
27505 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
27506 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
27507 | 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}}; | |
27508 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
27509 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
27510 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
27511 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
27512 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
27513 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
27514 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}}; | |
e811c8ce | 27515 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; |
d14a1e28 RD |
27516 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; |
27517 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
27518 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
e811c8ce | 27519 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; |
d14a1e28 RD |
27520 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; |
27521 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
27522 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
27523 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
27524 | 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_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent},{"_p_wxNotifyEvent"},{0}}; | |
27525 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
27526 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
27527 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
27528 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
27529 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
27530 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
27531 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
27532 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
27533 | 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}}; | |
27534 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
27535 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
27536 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
27537 | 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}}; | |
27538 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
27539 | 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}}; | |
27540 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
27541 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
27542 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
27543 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
27544 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
27545 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; | |
27546 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
27547 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
27548 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
27549 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
e811c8ce | 27550 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; |
d14a1e28 RD |
27551 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; |
27552 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
27553 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
27554 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
27555 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
27556 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
27557 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
27558 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
e811c8ce RD |
27559 | 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_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject},{"_p_wxToggleButton", _p_wxToggleButtonTo_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_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_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}}; |
27560 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
d14a1e28 RD |
27561 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; |
27562 | 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}}; | |
27563 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
27564 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
27565 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
27566 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
27567 | 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_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{0}}; | |
27568 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; | |
27569 | 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}}; | |
27570 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
27571 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
27572 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
27573 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
27574 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
27575 | ||
27576 | static swig_type_info *swig_types_initial[] = { | |
27577 | _swigt__p_wxTextUrlEvent, | |
27578 | _swigt__p_wxBookCtrlEvent, | |
27579 | _swigt__p_wxSizer, | |
27580 | _swigt__p_wxTreeItemIdValue, | |
27581 | _swigt__wxTreeItemIdValue, | |
27582 | _swigt__p_wxCheckBox, | |
27583 | _swigt__p_wxPyTreeCtrl, | |
27584 | _swigt__p_wxEvent, | |
27585 | _swigt__p_wxGenericDirCtrl, | |
27586 | _swigt__p_bool, | |
27587 | _swigt__p_wxPyTreeItemData, | |
27588 | _swigt__p_wxItemContainer, | |
27589 | _swigt__p_wxDirFilterListCtrl, | |
27590 | _swigt__p_wxPyListCtrl, | |
27591 | _swigt__p_wxStaticLine, | |
27592 | _swigt__p_wxControl, | |
27593 | _swigt__p_wxPyControl, | |
27594 | _swigt__p_wxGauge, | |
27595 | _swigt__p_wxToolBarBase, | |
27596 | _swigt__p_wxFont, | |
27597 | _swigt__p_wxToggleButton, | |
27598 | _swigt__p_wxRadioButton, | |
27599 | _swigt__p_wxChoice, | |
e811c8ce | 27600 | _swigt__p_wxMemoryDC, |
d14a1e28 RD |
27601 | _swigt__p_wxListItemAttr, |
27602 | _swigt__p_int, | |
27603 | _swigt__p_wxSize, | |
e811c8ce | 27604 | _swigt__p_wxDC, |
d14a1e28 RD |
27605 | _swigt__p_wxListView, |
27606 | _swigt__p_wxIcon, | |
27607 | _swigt__p_wxTextCtrl, | |
27608 | _swigt__p_wxNotebook, | |
27609 | _swigt__p_wxNotifyEvent, | |
27610 | _swigt__p_wxArrayString, | |
27611 | _swigt__p_wxListbook, | |
27612 | _swigt__p_wxStaticBitmap, | |
27613 | _swigt__p_wxSlider, | |
27614 | _swigt__p_wxStaticBox, | |
27615 | _swigt__p_wxArrayInt, | |
27616 | _swigt__p_wxContextHelp, | |
27617 | _swigt__p_long, | |
27618 | _swigt__p_wxEvtHandler, | |
27619 | _swigt__p_wxListEvent, | |
27620 | _swigt__p_wxListBox, | |
27621 | _swigt__p_wxCheckListBox, | |
27622 | _swigt__p_wxBookCtrl, | |
27623 | _swigt__p_wxSpinButton, | |
27624 | _swigt__p_wxButton, | |
27625 | _swigt__p_wxBitmapButton, | |
27626 | _swigt__p_wxRect, | |
27627 | _swigt__p_wxContextHelpButton, | |
27628 | _swigt__p_wxRadioBox, | |
27629 | _swigt__p_wxScrollBar, | |
27630 | _swigt__p_wxTreeItemId, | |
27631 | _swigt__p_wxComboBox, | |
27632 | _swigt__p_wxHelpEvent, | |
27633 | _swigt__p_wxListItem, | |
27634 | _swigt__p_wxNotebookSizer, | |
e811c8ce | 27635 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
27636 | _swigt__p_wxSpinCtrl, |
27637 | _swigt__p_wxImageList, | |
27638 | _swigt__p_wxHelpProvider, | |
27639 | _swigt__p_wxTextAttr, | |
27640 | _swigt__p_wxSimpleHelpProvider, | |
27641 | _swigt__p_wxPoint, | |
27642 | _swigt__p_wxListbookEvent, | |
27643 | _swigt__p_wxNotebookEvent, | |
27644 | _swigt__p_wxObject, | |
e811c8ce | 27645 | _swigt__p_wxCursor, |
d14a1e28 RD |
27646 | _swigt__p_wxKeyEvent, |
27647 | _swigt__p_wxWindow, | |
27648 | _swigt__p_wxString, | |
27649 | _swigt__p_wxBitmap, | |
27650 | _swigt__p_wxTreeEvent, | |
27651 | _swigt__p_wxMouseEvent, | |
27652 | _swigt__p_wxCommandEvent, | |
27653 | _swigt__p_wxStaticText, | |
27654 | _swigt__p_wxControlWithItems, | |
27655 | _swigt__p_wxToolBarToolBase, | |
27656 | _swigt__p_wxColour, | |
27657 | _swigt__p_wxToolBar, | |
27658 | _swigt__p_wxBookCtrlSizer, | |
27659 | _swigt__p_wxValidator, | |
27660 | 0 | |
27661 | }; | |
27662 | ||
27663 | ||
27664 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
27665 | ||
27666 | static swig_const_info swig_const_table[] = { | |
27667 | { SWIG_PY_INT, (char *)"BU_LEFT", (long) wxBU_LEFT, 0, 0, 0}, | |
27668 | { SWIG_PY_INT, (char *)"BU_TOP", (long) wxBU_TOP, 0, 0, 0}, | |
27669 | { SWIG_PY_INT, (char *)"BU_RIGHT", (long) wxBU_RIGHT, 0, 0, 0}, | |
27670 | { SWIG_PY_INT, (char *)"BU_BOTTOM", (long) wxBU_BOTTOM, 0, 0, 0}, | |
27671 | { SWIG_PY_INT, (char *)"BU_EXACTFIT", (long) wxBU_EXACTFIT, 0, 0, 0}, | |
27672 | { SWIG_PY_INT, (char *)"BU_AUTODRAW", (long) wxBU_AUTODRAW, 0, 0, 0}, | |
27673 | { SWIG_PY_INT, (char *)"CHK_2STATE", (long) wxCHK_2STATE, 0, 0, 0}, | |
27674 | { SWIG_PY_INT, (char *)"CHK_3STATE", (long) wxCHK_3STATE, 0, 0, 0}, | |
27675 | { SWIG_PY_INT, (char *)"CHK_ALLOW_3RD_STATE_FOR_USER", (long) wxCHK_ALLOW_3RD_STATE_FOR_USER, 0, 0, 0}, | |
27676 | { SWIG_PY_INT, (char *)"CHK_UNCHECKED", (long) wxCHK_UNCHECKED, 0, 0, 0}, | |
27677 | { SWIG_PY_INT, (char *)"CHK_CHECKED", (long) wxCHK_CHECKED, 0, 0, 0}, | |
27678 | { SWIG_PY_INT, (char *)"CHK_UNDETERMINED", (long) wxCHK_UNDETERMINED, 0, 0, 0}, | |
27679 | { SWIG_PY_INT, (char *)"GA_HORIZONTAL", (long) wxGA_HORIZONTAL, 0, 0, 0}, | |
27680 | { SWIG_PY_INT, (char *)"GA_VERTICAL", (long) wxGA_VERTICAL, 0, 0, 0}, | |
27681 | { SWIG_PY_INT, (char *)"GA_SMOOTH", (long) wxGA_SMOOTH, 0, 0, 0}, | |
27682 | { SWIG_PY_INT, (char *)"GA_PROGRESSBAR", (long) wxGA_PROGRESSBAR, 0, 0, 0}, | |
27683 | { SWIG_PY_INT, (char *)"TE_NO_VSCROLL", (long) wxTE_NO_VSCROLL, 0, 0, 0}, | |
27684 | { SWIG_PY_INT, (char *)"TE_AUTO_SCROLL", (long) wxTE_AUTO_SCROLL, 0, 0, 0}, | |
27685 | { SWIG_PY_INT, (char *)"TE_READONLY", (long) wxTE_READONLY, 0, 0, 0}, | |
27686 | { SWIG_PY_INT, (char *)"TE_MULTILINE", (long) wxTE_MULTILINE, 0, 0, 0}, | |
27687 | { SWIG_PY_INT, (char *)"TE_PROCESS_TAB", (long) wxTE_PROCESS_TAB, 0, 0, 0}, | |
27688 | { SWIG_PY_INT, (char *)"TE_LEFT", (long) wxTE_LEFT, 0, 0, 0}, | |
27689 | { SWIG_PY_INT, (char *)"TE_CENTER", (long) wxTE_CENTER, 0, 0, 0}, | |
27690 | { SWIG_PY_INT, (char *)"TE_RIGHT", (long) wxTE_RIGHT, 0, 0, 0}, | |
27691 | { SWIG_PY_INT, (char *)"TE_CENTRE", (long) wxTE_CENTRE, 0, 0, 0}, | |
27692 | { SWIG_PY_INT, (char *)"TE_RICH", (long) wxTE_RICH, 0, 0, 0}, | |
27693 | { SWIG_PY_INT, (char *)"TE_PROCESS_ENTER", (long) wxTE_PROCESS_ENTER, 0, 0, 0}, | |
27694 | { SWIG_PY_INT, (char *)"TE_PASSWORD", (long) wxTE_PASSWORD, 0, 0, 0}, | |
27695 | { SWIG_PY_INT, (char *)"TE_AUTO_URL", (long) wxTE_AUTO_URL, 0, 0, 0}, | |
27696 | { SWIG_PY_INT, (char *)"TE_NOHIDESEL", (long) wxTE_NOHIDESEL, 0, 0, 0}, | |
27697 | { SWIG_PY_INT, (char *)"TE_DONTWRAP", (long) wxTE_DONTWRAP, 0, 0, 0}, | |
27698 | { SWIG_PY_INT, (char *)"TE_LINEWRAP", (long) wxTE_LINEWRAP, 0, 0, 0}, | |
27699 | { SWIG_PY_INT, (char *)"TE_WORDWRAP", (long) wxTE_WORDWRAP, 0, 0, 0}, | |
27700 | { SWIG_PY_INT, (char *)"TE_RICH2", (long) wxTE_RICH2, 0, 0, 0}, | |
27701 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_DEFAULT", (long) wxTEXT_ALIGNMENT_DEFAULT, 0, 0, 0}, | |
27702 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_LEFT", (long) wxTEXT_ALIGNMENT_LEFT, 0, 0, 0}, | |
27703 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_CENTRE", (long) wxTEXT_ALIGNMENT_CENTRE, 0, 0, 0}, | |
27704 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_CENTER", (long) wxTEXT_ALIGNMENT_CENTER, 0, 0, 0}, | |
27705 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_RIGHT", (long) wxTEXT_ALIGNMENT_RIGHT, 0, 0, 0}, | |
27706 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_JUSTIFIED", (long) wxTEXT_ALIGNMENT_JUSTIFIED, 0, 0, 0}, | |
27707 | { SWIG_PY_INT, (char *)"TEXT_ATTR_TEXT_COLOUR", (long) wxTEXT_ATTR_TEXT_COLOUR, 0, 0, 0}, | |
27708 | { SWIG_PY_INT, (char *)"TEXT_ATTR_BACKGROUND_COLOUR", (long) wxTEXT_ATTR_BACKGROUND_COLOUR, 0, 0, 0}, | |
27709 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_FACE", (long) wxTEXT_ATTR_FONT_FACE, 0, 0, 0}, | |
27710 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_SIZE", (long) wxTEXT_ATTR_FONT_SIZE, 0, 0, 0}, | |
27711 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_WEIGHT", (long) wxTEXT_ATTR_FONT_WEIGHT, 0, 0, 0}, | |
27712 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_ITALIC", (long) wxTEXT_ATTR_FONT_ITALIC, 0, 0, 0}, | |
27713 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_UNDERLINE", (long) wxTEXT_ATTR_FONT_UNDERLINE, 0, 0, 0}, | |
27714 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT", (long) wxTEXT_ATTR_FONT, 0, 0, 0}, | |
27715 | { SWIG_PY_INT, (char *)"TEXT_ATTR_ALIGNMENT", (long) wxTEXT_ATTR_ALIGNMENT, 0, 0, 0}, | |
27716 | { SWIG_PY_INT, (char *)"TEXT_ATTR_LEFT_INDENT", (long) wxTEXT_ATTR_LEFT_INDENT, 0, 0, 0}, | |
27717 | { SWIG_PY_INT, (char *)"TEXT_ATTR_RIGHT_INDENT", (long) wxTEXT_ATTR_RIGHT_INDENT, 0, 0, 0}, | |
27718 | { SWIG_PY_INT, (char *)"TEXT_ATTR_TABS", (long) wxTEXT_ATTR_TABS, 0, 0, 0}, | |
27719 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_UPDATED", (long) wxEVT_COMMAND_TEXT_UPDATED, 0, 0, 0}, | |
27720 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_ENTER", (long) wxEVT_COMMAND_TEXT_ENTER, 0, 0, 0}, | |
27721 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_URL", (long) wxEVT_COMMAND_TEXT_URL, 0, 0, 0}, | |
27722 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_MAXLEN", (long) wxEVT_COMMAND_TEXT_MAXLEN, 0, 0, 0}, | |
27723 | { SWIG_PY_INT, (char *)"SP_HORIZONTAL", (long) wxSP_HORIZONTAL, 0, 0, 0}, | |
27724 | { SWIG_PY_INT, (char *)"SP_VERTICAL", (long) wxSP_VERTICAL, 0, 0, 0}, | |
27725 | { SWIG_PY_INT, (char *)"SP_ARROW_KEYS", (long) wxSP_ARROW_KEYS, 0, 0, 0}, | |
27726 | { SWIG_PY_INT, (char *)"SP_WRAP", (long) wxSP_WRAP, 0, 0, 0}, | |
27727 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SPINCTRL_UPDATED", (long) wxEVT_COMMAND_SPINCTRL_UPDATED, 0, 0, 0}, | |
27728 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", (long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 0, 0, 0}, | |
27729 | { SWIG_PY_INT, (char *)"NB_FIXEDWIDTH", (long) wxNB_FIXEDWIDTH, 0, 0, 0}, | |
27730 | { SWIG_PY_INT, (char *)"NB_TOP", (long) wxNB_TOP, 0, 0, 0}, | |
27731 | { SWIG_PY_INT, (char *)"NB_LEFT", (long) wxNB_LEFT, 0, 0, 0}, | |
27732 | { SWIG_PY_INT, (char *)"NB_RIGHT", (long) wxNB_RIGHT, 0, 0, 0}, | |
27733 | { SWIG_PY_INT, (char *)"NB_BOTTOM", (long) wxNB_BOTTOM, 0, 0, 0}, | |
27734 | { SWIG_PY_INT, (char *)"NB_MULTILINE", (long) wxNB_MULTILINE, 0, 0, 0}, | |
27735 | { SWIG_PY_INT, (char *)"NB_HITTEST_NOWHERE", (long) wxNB_HITTEST_NOWHERE, 0, 0, 0}, | |
27736 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONICON", (long) wxNB_HITTEST_ONICON, 0, 0, 0}, | |
27737 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONLABEL", (long) wxNB_HITTEST_ONLABEL, 0, 0, 0}, | |
27738 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONITEM", (long) wxNB_HITTEST_ONITEM, 0, 0, 0}, | |
27739 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", (long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 0, 0, 0}, | |
27740 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", (long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 0, 0, 0}, | |
27741 | { SWIG_PY_INT, (char *)"LB_DEFAULT", (long) wxLB_DEFAULT, 0, 0, 0}, | |
27742 | { SWIG_PY_INT, (char *)"LB_TOP", (long) wxLB_TOP, 0, 0, 0}, | |
27743 | { SWIG_PY_INT, (char *)"LB_BOTTOM", (long) wxLB_BOTTOM, 0, 0, 0}, | |
27744 | { SWIG_PY_INT, (char *)"LB_LEFT", (long) wxLB_LEFT, 0, 0, 0}, | |
27745 | { SWIG_PY_INT, (char *)"LB_RIGHT", (long) wxLB_RIGHT, 0, 0, 0}, | |
27746 | { SWIG_PY_INT, (char *)"LB_ALIGN_MASK", (long) wxLB_ALIGN_MASK, 0, 0, 0}, | |
27747 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", (long) wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 0, 0, 0}, | |
27748 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", (long) wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 0, 0, 0}, | |
27749 | { SWIG_PY_INT, (char *)"TOOL_STYLE_BUTTON", (long) wxTOOL_STYLE_BUTTON, 0, 0, 0}, | |
27750 | { SWIG_PY_INT, (char *)"TOOL_STYLE_SEPARATOR", (long) wxTOOL_STYLE_SEPARATOR, 0, 0, 0}, | |
27751 | { SWIG_PY_INT, (char *)"TOOL_STYLE_CONTROL", (long) wxTOOL_STYLE_CONTROL, 0, 0, 0}, | |
27752 | { SWIG_PY_INT, (char *)"TB_HORIZONTAL", (long) wxTB_HORIZONTAL, 0, 0, 0}, | |
27753 | { SWIG_PY_INT, (char *)"TB_VERTICAL", (long) wxTB_VERTICAL, 0, 0, 0}, | |
27754 | { SWIG_PY_INT, (char *)"TB_3DBUTTONS", (long) wxTB_3DBUTTONS, 0, 0, 0}, | |
27755 | { SWIG_PY_INT, (char *)"TB_FLAT", (long) wxTB_FLAT, 0, 0, 0}, | |
27756 | { SWIG_PY_INT, (char *)"TB_DOCKABLE", (long) wxTB_DOCKABLE, 0, 0, 0}, | |
27757 | { SWIG_PY_INT, (char *)"TB_NOICONS", (long) wxTB_NOICONS, 0, 0, 0}, | |
27758 | { SWIG_PY_INT, (char *)"TB_TEXT", (long) wxTB_TEXT, 0, 0, 0}, | |
27759 | { SWIG_PY_INT, (char *)"TB_NODIVIDER", (long) wxTB_NODIVIDER, 0, 0, 0}, | |
27760 | { SWIG_PY_INT, (char *)"TB_NOALIGN", (long) wxTB_NOALIGN, 0, 0, 0}, | |
27761 | { SWIG_PY_INT, (char *)"TB_HORZ_LAYOUT", (long) wxTB_HORZ_LAYOUT, 0, 0, 0}, | |
27762 | { SWIG_PY_INT, (char *)"TB_HORZ_TEXT", (long) wxTB_HORZ_TEXT, 0, 0, 0}, | |
27763 | { SWIG_PY_INT, (char *)"LC_VRULES", (long) wxLC_VRULES, 0, 0, 0}, | |
27764 | { SWIG_PY_INT, (char *)"LC_HRULES", (long) wxLC_HRULES, 0, 0, 0}, | |
27765 | { SWIG_PY_INT, (char *)"LC_ICON", (long) wxLC_ICON, 0, 0, 0}, | |
27766 | { SWIG_PY_INT, (char *)"LC_SMALL_ICON", (long) wxLC_SMALL_ICON, 0, 0, 0}, | |
27767 | { SWIG_PY_INT, (char *)"LC_LIST", (long) wxLC_LIST, 0, 0, 0}, | |
27768 | { SWIG_PY_INT, (char *)"LC_REPORT", (long) wxLC_REPORT, 0, 0, 0}, | |
27769 | { SWIG_PY_INT, (char *)"LC_ALIGN_TOP", (long) wxLC_ALIGN_TOP, 0, 0, 0}, | |
27770 | { SWIG_PY_INT, (char *)"LC_ALIGN_LEFT", (long) wxLC_ALIGN_LEFT, 0, 0, 0}, | |
27771 | { SWIG_PY_INT, (char *)"LC_AUTOARRANGE", (long) wxLC_AUTOARRANGE, 0, 0, 0}, | |
27772 | { SWIG_PY_INT, (char *)"LC_VIRTUAL", (long) wxLC_VIRTUAL, 0, 0, 0}, | |
27773 | { SWIG_PY_INT, (char *)"LC_EDIT_LABELS", (long) wxLC_EDIT_LABELS, 0, 0, 0}, | |
27774 | { SWIG_PY_INT, (char *)"LC_NO_HEADER", (long) wxLC_NO_HEADER, 0, 0, 0}, | |
27775 | { SWIG_PY_INT, (char *)"LC_NO_SORT_HEADER", (long) wxLC_NO_SORT_HEADER, 0, 0, 0}, | |
27776 | { SWIG_PY_INT, (char *)"LC_SINGLE_SEL", (long) wxLC_SINGLE_SEL, 0, 0, 0}, | |
27777 | { SWIG_PY_INT, (char *)"LC_SORT_ASCENDING", (long) wxLC_SORT_ASCENDING, 0, 0, 0}, | |
27778 | { SWIG_PY_INT, (char *)"LC_SORT_DESCENDING", (long) wxLC_SORT_DESCENDING, 0, 0, 0}, | |
27779 | { SWIG_PY_INT, (char *)"LC_MASK_TYPE", (long) wxLC_MASK_TYPE, 0, 0, 0}, | |
27780 | { SWIG_PY_INT, (char *)"LC_MASK_ALIGN", (long) wxLC_MASK_ALIGN, 0, 0, 0}, | |
27781 | { SWIG_PY_INT, (char *)"LC_MASK_SORT", (long) wxLC_MASK_SORT, 0, 0, 0}, | |
27782 | { SWIG_PY_INT, (char *)"LIST_MASK_STATE", (long) wxLIST_MASK_STATE, 0, 0, 0}, | |
27783 | { SWIG_PY_INT, (char *)"LIST_MASK_TEXT", (long) wxLIST_MASK_TEXT, 0, 0, 0}, | |
27784 | { SWIG_PY_INT, (char *)"LIST_MASK_IMAGE", (long) wxLIST_MASK_IMAGE, 0, 0, 0}, | |
27785 | { SWIG_PY_INT, (char *)"LIST_MASK_DATA", (long) wxLIST_MASK_DATA, 0, 0, 0}, | |
27786 | { SWIG_PY_INT, (char *)"LIST_SET_ITEM", (long) wxLIST_SET_ITEM, 0, 0, 0}, | |
27787 | { SWIG_PY_INT, (char *)"LIST_MASK_WIDTH", (long) wxLIST_MASK_WIDTH, 0, 0, 0}, | |
27788 | { SWIG_PY_INT, (char *)"LIST_MASK_FORMAT", (long) wxLIST_MASK_FORMAT, 0, 0, 0}, | |
27789 | { SWIG_PY_INT, (char *)"LIST_STATE_DONTCARE", (long) wxLIST_STATE_DONTCARE, 0, 0, 0}, | |
27790 | { SWIG_PY_INT, (char *)"LIST_STATE_DROPHILITED", (long) wxLIST_STATE_DROPHILITED, 0, 0, 0}, | |
27791 | { SWIG_PY_INT, (char *)"LIST_STATE_FOCUSED", (long) wxLIST_STATE_FOCUSED, 0, 0, 0}, | |
27792 | { SWIG_PY_INT, (char *)"LIST_STATE_SELECTED", (long) wxLIST_STATE_SELECTED, 0, 0, 0}, | |
27793 | { SWIG_PY_INT, (char *)"LIST_STATE_CUT", (long) wxLIST_STATE_CUT, 0, 0, 0}, | |
27794 | { SWIG_PY_INT, (char *)"LIST_STATE_DISABLED", (long) wxLIST_STATE_DISABLED, 0, 0, 0}, | |
27795 | { SWIG_PY_INT, (char *)"LIST_STATE_FILTERED", (long) wxLIST_STATE_FILTERED, 0, 0, 0}, | |
27796 | { SWIG_PY_INT, (char *)"LIST_STATE_INUSE", (long) wxLIST_STATE_INUSE, 0, 0, 0}, | |
27797 | { SWIG_PY_INT, (char *)"LIST_STATE_PICKED", (long) wxLIST_STATE_PICKED, 0, 0, 0}, | |
27798 | { SWIG_PY_INT, (char *)"LIST_STATE_SOURCE", (long) wxLIST_STATE_SOURCE, 0, 0, 0}, | |
27799 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ABOVE", (long) wxLIST_HITTEST_ABOVE, 0, 0, 0}, | |
27800 | { SWIG_PY_INT, (char *)"LIST_HITTEST_BELOW", (long) wxLIST_HITTEST_BELOW, 0, 0, 0}, | |
27801 | { SWIG_PY_INT, (char *)"LIST_HITTEST_NOWHERE", (long) wxLIST_HITTEST_NOWHERE, 0, 0, 0}, | |
27802 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMICON", (long) wxLIST_HITTEST_ONITEMICON, 0, 0, 0}, | |
27803 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMLABEL", (long) wxLIST_HITTEST_ONITEMLABEL, 0, 0, 0}, | |
27804 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMRIGHT", (long) wxLIST_HITTEST_ONITEMRIGHT, 0, 0, 0}, | |
27805 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMSTATEICON", (long) wxLIST_HITTEST_ONITEMSTATEICON, 0, 0, 0}, | |
27806 | { SWIG_PY_INT, (char *)"LIST_HITTEST_TOLEFT", (long) wxLIST_HITTEST_TOLEFT, 0, 0, 0}, | |
27807 | { SWIG_PY_INT, (char *)"LIST_HITTEST_TORIGHT", (long) wxLIST_HITTEST_TORIGHT, 0, 0, 0}, | |
27808 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEM", (long) wxLIST_HITTEST_ONITEM, 0, 0, 0}, | |
27809 | { SWIG_PY_INT, (char *)"LIST_NEXT_ABOVE", (long) wxLIST_NEXT_ABOVE, 0, 0, 0}, | |
27810 | { SWIG_PY_INT, (char *)"LIST_NEXT_ALL", (long) wxLIST_NEXT_ALL, 0, 0, 0}, | |
27811 | { SWIG_PY_INT, (char *)"LIST_NEXT_BELOW", (long) wxLIST_NEXT_BELOW, 0, 0, 0}, | |
27812 | { SWIG_PY_INT, (char *)"LIST_NEXT_LEFT", (long) wxLIST_NEXT_LEFT, 0, 0, 0}, | |
27813 | { SWIG_PY_INT, (char *)"LIST_NEXT_RIGHT", (long) wxLIST_NEXT_RIGHT, 0, 0, 0}, | |
27814 | { SWIG_PY_INT, (char *)"LIST_ALIGN_DEFAULT", (long) wxLIST_ALIGN_DEFAULT, 0, 0, 0}, | |
27815 | { SWIG_PY_INT, (char *)"LIST_ALIGN_LEFT", (long) wxLIST_ALIGN_LEFT, 0, 0, 0}, | |
27816 | { SWIG_PY_INT, (char *)"LIST_ALIGN_TOP", (long) wxLIST_ALIGN_TOP, 0, 0, 0}, | |
27817 | { SWIG_PY_INT, (char *)"LIST_ALIGN_SNAP_TO_GRID", (long) wxLIST_ALIGN_SNAP_TO_GRID, 0, 0, 0}, | |
27818 | { SWIG_PY_INT, (char *)"LIST_FORMAT_LEFT", (long) wxLIST_FORMAT_LEFT, 0, 0, 0}, | |
27819 | { SWIG_PY_INT, (char *)"LIST_FORMAT_RIGHT", (long) wxLIST_FORMAT_RIGHT, 0, 0, 0}, | |
27820 | { SWIG_PY_INT, (char *)"LIST_FORMAT_CENTRE", (long) wxLIST_FORMAT_CENTRE, 0, 0, 0}, | |
27821 | { SWIG_PY_INT, (char *)"LIST_FORMAT_CENTER", (long) wxLIST_FORMAT_CENTER, 0, 0, 0}, | |
27822 | { SWIG_PY_INT, (char *)"LIST_AUTOSIZE", (long) wxLIST_AUTOSIZE, 0, 0, 0}, | |
27823 | { SWIG_PY_INT, (char *)"LIST_AUTOSIZE_USEHEADER", (long) wxLIST_AUTOSIZE_USEHEADER, 0, 0, 0}, | |
27824 | { SWIG_PY_INT, (char *)"LIST_RECT_BOUNDS", (long) wxLIST_RECT_BOUNDS, 0, 0, 0}, | |
27825 | { SWIG_PY_INT, (char *)"LIST_RECT_ICON", (long) wxLIST_RECT_ICON, 0, 0, 0}, | |
27826 | { SWIG_PY_INT, (char *)"LIST_RECT_LABEL", (long) wxLIST_RECT_LABEL, 0, 0, 0}, | |
27827 | { SWIG_PY_INT, (char *)"LIST_FIND_UP", (long) wxLIST_FIND_UP, 0, 0, 0}, | |
27828 | { SWIG_PY_INT, (char *)"LIST_FIND_DOWN", (long) wxLIST_FIND_DOWN, 0, 0, 0}, | |
27829 | { SWIG_PY_INT, (char *)"LIST_FIND_LEFT", (long) wxLIST_FIND_LEFT, 0, 0, 0}, | |
27830 | { SWIG_PY_INT, (char *)"LIST_FIND_RIGHT", (long) wxLIST_FIND_RIGHT, 0, 0, 0}, | |
27831 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_DRAG", (long) wxEVT_COMMAND_LIST_BEGIN_DRAG, 0, 0, 0}, | |
27832 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_RDRAG", (long) wxEVT_COMMAND_LIST_BEGIN_RDRAG, 0, 0, 0}, | |
27833 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", (long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, 0, 0, 0}, | |
27834 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_END_LABEL_EDIT", (long) wxEVT_COMMAND_LIST_END_LABEL_EDIT, 0, 0, 0}, | |
27835 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_DELETE_ITEM", (long) wxEVT_COMMAND_LIST_DELETE_ITEM, 0, 0, 0}, | |
27836 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", (long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, 0, 0, 0}, | |
27837 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_GET_INFO", (long) wxEVT_COMMAND_LIST_GET_INFO, 0, 0, 0}, | |
27838 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_SET_INFO", (long) wxEVT_COMMAND_LIST_SET_INFO, 0, 0, 0}, | |
27839 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_SELECTED", (long) wxEVT_COMMAND_LIST_ITEM_SELECTED, 0, 0, 0}, | |
27840 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_DESELECTED", (long) wxEVT_COMMAND_LIST_ITEM_DESELECTED, 0, 0, 0}, | |
27841 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_KEY_DOWN", (long) wxEVT_COMMAND_LIST_KEY_DOWN, 0, 0, 0}, | |
27842 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_INSERT_ITEM", (long) wxEVT_COMMAND_LIST_INSERT_ITEM, 0, 0, 0}, | |
27843 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_CLICK", (long) wxEVT_COMMAND_LIST_COL_CLICK, 0, 0, 0}, | |
27844 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", (long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, 0, 0, 0}, | |
27845 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", (long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 0, 0, 0}, | |
27846 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", (long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED, 0, 0, 0}, | |
27847 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_CACHE_HINT", (long) wxEVT_COMMAND_LIST_CACHE_HINT, 0, 0, 0}, | |
27848 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", (long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK, 0, 0, 0}, | |
27849 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", (long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, 0, 0, 0}, | |
27850 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_DRAGGING", (long) wxEVT_COMMAND_LIST_COL_DRAGGING, 0, 0, 0}, | |
27851 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_END_DRAG", (long) wxEVT_COMMAND_LIST_COL_END_DRAG, 0, 0, 0}, | |
27852 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_FOCUSED", (long) wxEVT_COMMAND_LIST_ITEM_FOCUSED, 0, 0, 0}, | |
27853 | { SWIG_PY_INT, (char *)"TR_NO_BUTTONS", (long) wxTR_NO_BUTTONS, 0, 0, 0}, | |
27854 | { SWIG_PY_INT, (char *)"TR_HAS_BUTTONS", (long) wxTR_HAS_BUTTONS, 0, 0, 0}, | |
27855 | { SWIG_PY_INT, (char *)"TR_NO_LINES", (long) wxTR_NO_LINES, 0, 0, 0}, | |
27856 | { SWIG_PY_INT, (char *)"TR_LINES_AT_ROOT", (long) wxTR_LINES_AT_ROOT, 0, 0, 0}, | |
27857 | { SWIG_PY_INT, (char *)"TR_SINGLE", (long) wxTR_SINGLE, 0, 0, 0}, | |
27858 | { SWIG_PY_INT, (char *)"TR_MULTIPLE", (long) wxTR_MULTIPLE, 0, 0, 0}, | |
27859 | { SWIG_PY_INT, (char *)"TR_EXTENDED", (long) wxTR_EXTENDED, 0, 0, 0}, | |
27860 | { SWIG_PY_INT, (char *)"TR_HAS_VARIABLE_ROW_HEIGHT", (long) wxTR_HAS_VARIABLE_ROW_HEIGHT, 0, 0, 0}, | |
27861 | { SWIG_PY_INT, (char *)"TR_EDIT_LABELS", (long) wxTR_EDIT_LABELS, 0, 0, 0}, | |
27862 | { SWIG_PY_INT, (char *)"TR_HIDE_ROOT", (long) wxTR_HIDE_ROOT, 0, 0, 0}, | |
27863 | { SWIG_PY_INT, (char *)"TR_ROW_LINES", (long) wxTR_ROW_LINES, 0, 0, 0}, | |
27864 | { SWIG_PY_INT, (char *)"TR_FULL_ROW_HIGHLIGHT", (long) wxTR_FULL_ROW_HIGHLIGHT, 0, 0, 0}, | |
27865 | { SWIG_PY_INT, (char *)"TR_DEFAULT_STYLE", (long) wxTR_DEFAULT_STYLE, 0, 0, 0}, | |
27866 | { SWIG_PY_INT, (char *)"TR_TWIST_BUTTONS", (long) wxTR_TWIST_BUTTONS, 0, 0, 0}, | |
27867 | { SWIG_PY_INT, (char *)"TR_MAC_BUTTONS", (long) wxTR_MAC_BUTTONS, 0, 0, 0}, | |
27868 | { SWIG_PY_INT, (char *)"TR_AQUA_BUTTONS", (long) wxTR_AQUA_BUTTONS, 0, 0, 0}, | |
27869 | { SWIG_PY_INT, (char *)"TreeItemIcon_Normal", (long) wxTreeItemIcon_Normal, 0, 0, 0}, | |
27870 | { SWIG_PY_INT, (char *)"TreeItemIcon_Selected", (long) wxTreeItemIcon_Selected, 0, 0, 0}, | |
27871 | { SWIG_PY_INT, (char *)"TreeItemIcon_Expanded", (long) wxTreeItemIcon_Expanded, 0, 0, 0}, | |
27872 | { SWIG_PY_INT, (char *)"TreeItemIcon_SelectedExpanded", (long) wxTreeItemIcon_SelectedExpanded, 0, 0, 0}, | |
27873 | { SWIG_PY_INT, (char *)"TreeItemIcon_Max", (long) wxTreeItemIcon_Max, 0, 0, 0}, | |
27874 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ABOVE", (long) wxTREE_HITTEST_ABOVE, 0, 0, 0}, | |
27875 | { SWIG_PY_INT, (char *)"TREE_HITTEST_BELOW", (long) wxTREE_HITTEST_BELOW, 0, 0, 0}, | |
27876 | { SWIG_PY_INT, (char *)"TREE_HITTEST_NOWHERE", (long) wxTREE_HITTEST_NOWHERE, 0, 0, 0}, | |
27877 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMBUTTON", (long) wxTREE_HITTEST_ONITEMBUTTON, 0, 0, 0}, | |
27878 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMICON", (long) wxTREE_HITTEST_ONITEMICON, 0, 0, 0}, | |
27879 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMINDENT", (long) wxTREE_HITTEST_ONITEMINDENT, 0, 0, 0}, | |
27880 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMLABEL", (long) wxTREE_HITTEST_ONITEMLABEL, 0, 0, 0}, | |
27881 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMRIGHT", (long) wxTREE_HITTEST_ONITEMRIGHT, 0, 0, 0}, | |
27882 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMSTATEICON", (long) wxTREE_HITTEST_ONITEMSTATEICON, 0, 0, 0}, | |
27883 | { SWIG_PY_INT, (char *)"TREE_HITTEST_TOLEFT", (long) wxTREE_HITTEST_TOLEFT, 0, 0, 0}, | |
27884 | { SWIG_PY_INT, (char *)"TREE_HITTEST_TORIGHT", (long) wxTREE_HITTEST_TORIGHT, 0, 0, 0}, | |
27885 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMUPPERPART", (long) wxTREE_HITTEST_ONITEMUPPERPART, 0, 0, 0}, | |
27886 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMLOWERPART", (long) wxTREE_HITTEST_ONITEMLOWERPART, 0, 0, 0}, | |
27887 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEM", (long) wxTREE_HITTEST_ONITEM, 0, 0, 0}, | |
27888 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_DRAG", (long) wxEVT_COMMAND_TREE_BEGIN_DRAG, 0, 0, 0}, | |
27889 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_RDRAG", (long) wxEVT_COMMAND_TREE_BEGIN_RDRAG, 0, 0, 0}, | |
27890 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", (long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, 0, 0, 0}, | |
27891 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_END_LABEL_EDIT", (long) wxEVT_COMMAND_TREE_END_LABEL_EDIT, 0, 0, 0}, | |
27892 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_DELETE_ITEM", (long) wxEVT_COMMAND_TREE_DELETE_ITEM, 0, 0, 0}, | |
27893 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_GET_INFO", (long) wxEVT_COMMAND_TREE_GET_INFO, 0, 0, 0}, | |
27894 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SET_INFO", (long) wxEVT_COMMAND_TREE_SET_INFO, 0, 0, 0}, | |
27895 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_EXPANDED", (long) wxEVT_COMMAND_TREE_ITEM_EXPANDED, 0, 0, 0}, | |
27896 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_EXPANDING", (long) wxEVT_COMMAND_TREE_ITEM_EXPANDING, 0, 0, 0}, | |
27897 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", (long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED, 0, 0, 0}, | |
27898 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", (long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING, 0, 0, 0}, | |
27899 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SEL_CHANGED", (long) wxEVT_COMMAND_TREE_SEL_CHANGED, 0, 0, 0}, | |
27900 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SEL_CHANGING", (long) wxEVT_COMMAND_TREE_SEL_CHANGING, 0, 0, 0}, | |
27901 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_KEY_DOWN", (long) wxEVT_COMMAND_TREE_KEY_DOWN, 0, 0, 0}, | |
27902 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", (long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED, 0, 0, 0}, | |
27903 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", (long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK, 0, 0, 0}, | |
27904 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", (long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 0, 0, 0}, | |
27905 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_END_DRAG", (long) wxEVT_COMMAND_TREE_END_DRAG, 0, 0, 0}, | |
27906 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", (long) wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 0, 0, 0}, | |
27907 | { SWIG_PY_INT, (char *)"DIRCTRL_DIR_ONLY", (long) wxDIRCTRL_DIR_ONLY, 0, 0, 0}, | |
27908 | { SWIG_PY_INT, (char *)"DIRCTRL_SELECT_FIRST", (long) wxDIRCTRL_SELECT_FIRST, 0, 0, 0}, | |
27909 | { SWIG_PY_INT, (char *)"DIRCTRL_SHOW_FILTERS", (long) wxDIRCTRL_SHOW_FILTERS, 0, 0, 0}, | |
27910 | { SWIG_PY_INT, (char *)"DIRCTRL_3D_INTERNAL", (long) wxDIRCTRL_3D_INTERNAL, 0, 0, 0}, | |
27911 | { SWIG_PY_INT, (char *)"DIRCTRL_EDIT_LABELS", (long) wxDIRCTRL_EDIT_LABELS, 0, 0, 0}, | |
27912 | { SWIG_PY_INT, (char *)"FRAME_EX_CONTEXTHELP", (long) wxFRAME_EX_CONTEXTHELP, 0, 0, 0}, | |
27913 | { SWIG_PY_INT, (char *)"DIALOG_EX_CONTEXTHELP", (long) wxDIALOG_EX_CONTEXTHELP, 0, 0, 0}, | |
27914 | { SWIG_PY_INT, (char *)"wxEVT_HELP", (long) wxEVT_HELP, 0, 0, 0}, | |
27915 | { SWIG_PY_INT, (char *)"wxEVT_DETAILED_HELP", (long) wxEVT_DETAILED_HELP, 0, 0, 0}, | |
27916 | {0}}; | |
27917 | ||
27918 | #ifdef __cplusplus | |
27919 | } | |
27920 | #endif | |
27921 | ||
27922 | #ifdef __cplusplus | |
27923 | extern "C" | |
27924 | #endif | |
27925 | SWIGEXPORT(void) SWIG_init(void) { | |
27926 | static PyObject *SWIG_globals = 0; | |
27927 | static int typeinit = 0; | |
27928 | PyObject *m, *d; | |
27929 | int i; | |
27930 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
27931 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
27932 | d = PyModule_GetDict(m); | |
27933 | ||
27934 | if (!typeinit) { | |
27935 | for (i = 0; swig_types_initial[i]; i++) { | |
27936 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
27937 | } | |
27938 | typeinit = 1; | |
27939 | } | |
27940 | SWIG_InstallConstants(d,swig_const_table); | |
27941 | ||
27942 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); | |
27943 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
27944 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
27945 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
27946 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
27947 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
27948 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); | |
27949 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
27950 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
27951 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
27952 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
27953 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
27954 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
27955 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
27956 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
27957 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
27958 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
27959 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
27960 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
27961 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
27962 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
27963 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
27964 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
27965 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
27966 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
27967 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
27968 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
27969 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
27970 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
27971 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
27972 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
27973 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
27974 | ||
27975 | // Map renamed classes back to their common name for OOR | |
27976 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
27977 | ||
27978 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
27979 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
27980 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
27981 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
27982 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
27983 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
27984 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
27985 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
27986 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
27987 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
27988 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
27989 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
27990 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
27991 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
27992 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
27993 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
27994 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
27995 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
27996 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
27997 | ||
27998 | // Map renamed classes back to their common name for OOR | |
27999 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
28000 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
28001 | ||
28002 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); | |
28003 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
28004 | |
28005 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
28006 | ||
d14a1e28 RD |
28007 | } |
28008 |