]>
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 | ||
fd3f2efe RD |
2858 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2859 | PyObject *resultobj; | |
2860 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2861 | int arg2 ; | |
2862 | PyObject * obj0 = 0 ; | |
2863 | char *kwnames[] = { | |
2864 | (char *) "self",(char *) "n", NULL | |
2865 | }; | |
2866 | ||
2867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ComboBox_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
2868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2869 | { | |
2870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2871 | (arg1)->SetSelection(arg2); | |
2872 | ||
2873 | wxPyEndAllowThreads(__tstate); | |
2874 | if (PyErr_Occurred()) SWIG_fail; | |
2875 | } | |
2876 | Py_INCREF(Py_None); resultobj = Py_None; | |
2877 | return resultobj; | |
2878 | fail: | |
2879 | return NULL; | |
2880 | } | |
2881 | ||
2882 | ||
d14a1e28 RD |
2883 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
2884 | PyObject *resultobj; | |
2885 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2886 | long arg2 ; | |
2887 | long arg3 ; | |
2888 | PyObject * obj0 = 0 ; | |
2889 | char *kwnames[] = { | |
2890 | (char *) "self",(char *) "from",(char *) "to", NULL | |
2891 | }; | |
2892 | ||
2893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ComboBox_SetMark",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2895 | { | |
2896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2897 | (arg1)->SetSelection(arg2,arg3); | |
2898 | ||
2899 | wxPyEndAllowThreads(__tstate); | |
2900 | if (PyErr_Occurred()) SWIG_fail; | |
2901 | } | |
2902 | Py_INCREF(Py_None); resultobj = Py_None; | |
2903 | return resultobj; | |
2904 | fail: | |
2905 | return NULL; | |
2906 | } | |
2907 | ||
2908 | ||
2909 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2910 | PyObject *resultobj; | |
2911 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2912 | bool arg2 ; | |
2913 | PyObject * obj0 = 0 ; | |
2914 | PyObject * obj1 = 0 ; | |
2915 | char *kwnames[] = { | |
2916 | (char *) "self",(char *) "editable", NULL | |
2917 | }; | |
2918 | ||
2919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
2920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2921 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
2922 | if (PyErr_Occurred()) SWIG_fail; | |
2923 | { | |
2924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2925 | (arg1)->SetEditable(arg2); | |
2926 | ||
2927 | wxPyEndAllowThreads(__tstate); | |
2928 | if (PyErr_Occurred()) SWIG_fail; | |
2929 | } | |
2930 | Py_INCREF(Py_None); resultobj = Py_None; | |
2931 | return resultobj; | |
2932 | fail: | |
2933 | return NULL; | |
2934 | } | |
2935 | ||
2936 | ||
2937 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2938 | PyObject *resultobj; | |
2939 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2940 | PyObject * obj0 = 0 ; | |
2941 | char *kwnames[] = { | |
2942 | (char *) "self", NULL | |
2943 | }; | |
2944 | ||
2945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
2946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2947 | { | |
2948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2949 | (arg1)->SetInsertionPointEnd(); | |
2950 | ||
2951 | wxPyEndAllowThreads(__tstate); | |
2952 | if (PyErr_Occurred()) SWIG_fail; | |
2953 | } | |
2954 | Py_INCREF(Py_None); resultobj = Py_None; | |
2955 | return resultobj; | |
2956 | fail: | |
2957 | return NULL; | |
2958 | } | |
2959 | ||
2960 | ||
2961 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2962 | PyObject *resultobj; | |
2963 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2964 | long arg2 ; | |
2965 | long arg3 ; | |
2966 | PyObject * obj0 = 0 ; | |
2967 | char *kwnames[] = { | |
2968 | (char *) "self",(char *) "from",(char *) "to", NULL | |
2969 | }; | |
2970 | ||
2971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ComboBox_Remove",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2973 | { | |
2974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2975 | (arg1)->Remove(arg2,arg3); | |
2976 | ||
2977 | wxPyEndAllowThreads(__tstate); | |
2978 | if (PyErr_Occurred()) SWIG_fail; | |
2979 | } | |
2980 | Py_INCREF(Py_None); resultobj = Py_None; | |
2981 | return resultobj; | |
2982 | fail: | |
2983 | return NULL; | |
2984 | } | |
2985 | ||
2986 | ||
2987 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
2988 | PyObject *obj; | |
2989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2990 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
2991 | Py_INCREF(obj); | |
2992 | return Py_BuildValue((char *)""); | |
2993 | } | |
2994 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2995 | PyObject *resultobj; | |
2996 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 2997 | int arg2 ; |
d14a1e28 RD |
2998 | int arg3 ; |
2999 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3000 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3001 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3002 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3003 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3004 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3005 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3006 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3007 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3008 | wxGauge *result; | |
3009 | wxPoint temp4 ; | |
3010 | wxSize temp5 ; | |
e811c8ce | 3011 | bool temp8 = False ; |
d14a1e28 RD |
3012 | PyObject * obj0 = 0 ; |
3013 | PyObject * obj3 = 0 ; | |
3014 | PyObject * obj4 = 0 ; | |
3015 | PyObject * obj6 = 0 ; | |
3016 | PyObject * obj7 = 0 ; | |
3017 | char *kwnames[] = { | |
3018 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3019 | }; | |
3020 | ||
3021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|OOlOO:new_Gauge",kwnames,&obj0,&arg2,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
3022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3023 | if (obj3) { | |
3024 | { | |
3025 | arg4 = &temp4; | |
3026 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3027 | } | |
3028 | } | |
3029 | if (obj4) { | |
3030 | { | |
3031 | arg5 = &temp5; | |
3032 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3033 | } | |
3034 | } | |
3035 | if (obj6) { | |
3036 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3037 | if (arg7 == NULL) { | |
3038 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3039 | } | |
3040 | } | |
3041 | if (obj7) { | |
3042 | { | |
3043 | arg8 = wxString_in_helper(obj7); | |
3044 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3045 | temp8 = True; |
d14a1e28 RD |
3046 | } |
3047 | } | |
3048 | { | |
3049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3050 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3051 | ||
3052 | wxPyEndAllowThreads(__tstate); | |
3053 | if (PyErr_Occurred()) SWIG_fail; | |
3054 | } | |
3055 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3056 | { | |
3057 | if (temp8) | |
3058 | delete arg8; | |
3059 | } | |
3060 | return resultobj; | |
3061 | fail: | |
3062 | { | |
3063 | if (temp8) | |
3064 | delete arg8; | |
3065 | } | |
3066 | return NULL; | |
3067 | } | |
3068 | ||
3069 | ||
3070 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3071 | PyObject *resultobj; | |
3072 | wxGauge *result; | |
3073 | char *kwnames[] = { | |
3074 | NULL | |
3075 | }; | |
3076 | ||
3077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3078 | { | |
3079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3080 | result = (wxGauge *)new wxGauge(); | |
3081 | ||
3082 | wxPyEndAllowThreads(__tstate); | |
3083 | if (PyErr_Occurred()) SWIG_fail; | |
3084 | } | |
3085 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3086 | return resultobj; | |
3087 | fail: | |
3088 | return NULL; | |
3089 | } | |
3090 | ||
3091 | ||
3092 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3093 | PyObject *resultobj; | |
3094 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3095 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3096 | int arg3 ; |
d14a1e28 RD |
3097 | int arg4 ; |
3098 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3099 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3100 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3101 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3102 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3103 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3104 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3105 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3106 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3107 | bool result; | |
3108 | wxPoint temp5 ; | |
3109 | wxSize temp6 ; | |
e811c8ce | 3110 | bool temp9 = False ; |
d14a1e28 RD |
3111 | PyObject * obj0 = 0 ; |
3112 | PyObject * obj1 = 0 ; | |
3113 | PyObject * obj4 = 0 ; | |
3114 | PyObject * obj5 = 0 ; | |
3115 | PyObject * obj7 = 0 ; | |
3116 | PyObject * obj8 = 0 ; | |
3117 | char *kwnames[] = { | |
3118 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3119 | }; | |
3120 | ||
3121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|OOlOO:Gauge_Create",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
3122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3123 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3124 | if (obj4) { | |
3125 | { | |
3126 | arg5 = &temp5; | |
3127 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3128 | } | |
3129 | } | |
3130 | if (obj5) { | |
3131 | { | |
3132 | arg6 = &temp6; | |
3133 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3134 | } | |
3135 | } | |
3136 | if (obj7) { | |
3137 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3138 | if (arg8 == NULL) { | |
3139 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3140 | } | |
3141 | } | |
3142 | if (obj8) { | |
3143 | { | |
3144 | arg9 = wxString_in_helper(obj8); | |
3145 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 3146 | temp9 = True; |
d14a1e28 RD |
3147 | } |
3148 | } | |
3149 | { | |
3150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3151 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3152 | ||
3153 | wxPyEndAllowThreads(__tstate); | |
3154 | if (PyErr_Occurred()) SWIG_fail; | |
3155 | } | |
3156 | resultobj = PyInt_FromLong((long)result); | |
3157 | { | |
3158 | if (temp9) | |
3159 | delete arg9; | |
3160 | } | |
3161 | return resultobj; | |
3162 | fail: | |
3163 | { | |
3164 | if (temp9) | |
3165 | delete arg9; | |
3166 | } | |
3167 | return NULL; | |
3168 | } | |
3169 | ||
3170 | ||
3171 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3172 | PyObject *resultobj; | |
3173 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3174 | int arg2 ; | |
3175 | PyObject * obj0 = 0 ; | |
3176 | char *kwnames[] = { | |
3177 | (char *) "self",(char *) "range", NULL | |
3178 | }; | |
3179 | ||
3180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetRange",kwnames,&obj0,&arg2)) 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 | (arg1)->SetRange(arg2); | |
3185 | ||
3186 | wxPyEndAllowThreads(__tstate); | |
3187 | if (PyErr_Occurred()) SWIG_fail; | |
3188 | } | |
3189 | Py_INCREF(Py_None); resultobj = Py_None; | |
3190 | return resultobj; | |
3191 | fail: | |
3192 | return NULL; | |
3193 | } | |
3194 | ||
3195 | ||
3196 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3197 | PyObject *resultobj; | |
3198 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3199 | int result; | |
3200 | PyObject * obj0 = 0 ; | |
3201 | char *kwnames[] = { | |
3202 | (char *) "self", NULL | |
3203 | }; | |
3204 | ||
3205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) 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 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3210 | ||
3211 | wxPyEndAllowThreads(__tstate); | |
3212 | if (PyErr_Occurred()) SWIG_fail; | |
3213 | } | |
3214 | resultobj = PyInt_FromLong((long)result); | |
3215 | return resultobj; | |
3216 | fail: | |
3217 | return NULL; | |
3218 | } | |
3219 | ||
3220 | ||
3221 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3222 | PyObject *resultobj; | |
3223 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3224 | int arg2 ; | |
3225 | PyObject * obj0 = 0 ; | |
3226 | char *kwnames[] = { | |
3227 | (char *) "self",(char *) "pos", NULL | |
3228 | }; | |
3229 | ||
3230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetValue",kwnames,&obj0,&arg2)) 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 | (arg1)->SetValue(arg2); | |
3235 | ||
3236 | wxPyEndAllowThreads(__tstate); | |
3237 | if (PyErr_Occurred()) SWIG_fail; | |
3238 | } | |
3239 | Py_INCREF(Py_None); resultobj = Py_None; | |
3240 | return resultobj; | |
3241 | fail: | |
3242 | return NULL; | |
3243 | } | |
3244 | ||
3245 | ||
3246 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3247 | PyObject *resultobj; | |
3248 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3249 | int result; | |
3250 | PyObject * obj0 = 0 ; | |
3251 | char *kwnames[] = { | |
3252 | (char *) "self", NULL | |
3253 | }; | |
3254 | ||
3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",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 = (int)((wxGauge const *)arg1)->GetValue(); | |
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_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3272 | PyObject *resultobj; | |
3273 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3274 | bool result; | |
3275 | PyObject * obj0 = 0 ; | |
3276 | char *kwnames[] = { | |
3277 | (char *) "self", NULL | |
3278 | }; | |
3279 | ||
3280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) 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 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3285 | ||
3286 | wxPyEndAllowThreads(__tstate); | |
3287 | if (PyErr_Occurred()) SWIG_fail; | |
3288 | } | |
3289 | resultobj = PyInt_FromLong((long)result); | |
3290 | return resultobj; | |
3291 | fail: | |
3292 | return NULL; | |
3293 | } | |
3294 | ||
3295 | ||
3296 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3297 | PyObject *resultobj; | |
3298 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3299 | int arg2 ; | |
3300 | PyObject * obj0 = 0 ; | |
3301 | char *kwnames[] = { | |
3302 | (char *) "self",(char *) "w", NULL | |
3303 | }; | |
3304 | ||
3305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetShadowWidth",kwnames,&obj0,&arg2)) 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 | (arg1)->SetShadowWidth(arg2); | |
3310 | ||
3311 | wxPyEndAllowThreads(__tstate); | |
3312 | if (PyErr_Occurred()) SWIG_fail; | |
3313 | } | |
3314 | Py_INCREF(Py_None); resultobj = Py_None; | |
3315 | return resultobj; | |
3316 | fail: | |
3317 | return NULL; | |
3318 | } | |
3319 | ||
3320 | ||
3321 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3322 | PyObject *resultobj; | |
3323 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3324 | int result; | |
3325 | PyObject * obj0 = 0 ; | |
3326 | char *kwnames[] = { | |
3327 | (char *) "self", NULL | |
3328 | }; | |
3329 | ||
3330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) 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 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3335 | ||
3336 | wxPyEndAllowThreads(__tstate); | |
3337 | if (PyErr_Occurred()) SWIG_fail; | |
3338 | } | |
3339 | resultobj = PyInt_FromLong((long)result); | |
3340 | return resultobj; | |
3341 | fail: | |
3342 | return NULL; | |
3343 | } | |
3344 | ||
3345 | ||
3346 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3347 | PyObject *resultobj; | |
3348 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3349 | int arg2 ; | |
3350 | PyObject * obj0 = 0 ; | |
3351 | char *kwnames[] = { | |
3352 | (char *) "self",(char *) "w", NULL | |
3353 | }; | |
3354 | ||
3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetBezelFace",kwnames,&obj0,&arg2)) 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 | (arg1)->SetBezelFace(arg2); | |
3360 | ||
3361 | wxPyEndAllowThreads(__tstate); | |
3362 | if (PyErr_Occurred()) SWIG_fail; | |
3363 | } | |
3364 | Py_INCREF(Py_None); resultobj = Py_None; | |
3365 | return resultobj; | |
3366 | fail: | |
3367 | return NULL; | |
3368 | } | |
3369 | ||
3370 | ||
3371 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3372 | PyObject *resultobj; | |
3373 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3374 | int result; | |
3375 | PyObject * obj0 = 0 ; | |
3376 | char *kwnames[] = { | |
3377 | (char *) "self", NULL | |
3378 | }; | |
3379 | ||
3380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3382 | { | |
3383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3384 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3385 | ||
3386 | wxPyEndAllowThreads(__tstate); | |
3387 | if (PyErr_Occurred()) SWIG_fail; | |
3388 | } | |
3389 | resultobj = PyInt_FromLong((long)result); | |
3390 | return resultobj; | |
3391 | fail: | |
3392 | return NULL; | |
3393 | } | |
3394 | ||
3395 | ||
3396 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3397 | PyObject *obj; | |
3398 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3399 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3400 | Py_INCREF(obj); | |
3401 | return Py_BuildValue((char *)""); | |
3402 | } | |
3403 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3404 | PyObject *resultobj; | |
3405 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3406 | int arg2 ; |
d14a1e28 RD |
3407 | wxString *arg3 = 0 ; |
3408 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3409 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3410 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3411 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3412 | long arg6 = (long) 0 ; | |
3413 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
3414 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3415 | wxStaticBox *result; | |
e811c8ce | 3416 | bool temp3 = False ; |
d14a1e28 RD |
3417 | wxPoint temp4 ; |
3418 | wxSize temp5 ; | |
e811c8ce | 3419 | bool temp7 = False ; |
d14a1e28 RD |
3420 | PyObject * obj0 = 0 ; |
3421 | PyObject * obj2 = 0 ; | |
3422 | PyObject * obj3 = 0 ; | |
3423 | PyObject * obj4 = 0 ; | |
3424 | PyObject * obj6 = 0 ; | |
3425 | char *kwnames[] = { | |
3426 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3427 | }; | |
3428 | ||
3429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3431 | { | |
3432 | arg3 = wxString_in_helper(obj2); | |
3433 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3434 | temp3 = True; |
d14a1e28 RD |
3435 | } |
3436 | if (obj3) { | |
3437 | { | |
3438 | arg4 = &temp4; | |
3439 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3440 | } | |
3441 | } | |
3442 | if (obj4) { | |
3443 | { | |
3444 | arg5 = &temp5; | |
3445 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3446 | } | |
3447 | } | |
3448 | if (obj6) { | |
3449 | { | |
3450 | arg7 = wxString_in_helper(obj6); | |
3451 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 3452 | temp7 = True; |
d14a1e28 RD |
3453 | } |
3454 | } | |
3455 | { | |
3456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3457 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3458 | ||
3459 | wxPyEndAllowThreads(__tstate); | |
3460 | if (PyErr_Occurred()) SWIG_fail; | |
3461 | } | |
3462 | { | |
3463 | resultobj = wxPyMake_wxObject(result); | |
3464 | } | |
3465 | { | |
3466 | if (temp3) | |
3467 | delete arg3; | |
3468 | } | |
3469 | { | |
3470 | if (temp7) | |
3471 | delete arg7; | |
3472 | } | |
3473 | return resultobj; | |
3474 | fail: | |
3475 | { | |
3476 | if (temp3) | |
3477 | delete arg3; | |
3478 | } | |
3479 | { | |
3480 | if (temp7) | |
3481 | delete arg7; | |
3482 | } | |
3483 | return NULL; | |
3484 | } | |
3485 | ||
3486 | ||
3487 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3488 | PyObject *resultobj; | |
3489 | wxStaticBox *result; | |
3490 | char *kwnames[] = { | |
3491 | NULL | |
3492 | }; | |
3493 | ||
3494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
3495 | { | |
3496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3497 | result = (wxStaticBox *)new wxStaticBox(); | |
3498 | ||
3499 | wxPyEndAllowThreads(__tstate); | |
3500 | if (PyErr_Occurred()) SWIG_fail; | |
3501 | } | |
3502 | { | |
3503 | resultobj = wxPyMake_wxObject(result); | |
3504 | } | |
3505 | return resultobj; | |
3506 | fail: | |
3507 | return NULL; | |
3508 | } | |
3509 | ||
3510 | ||
3511 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3512 | PyObject *resultobj; | |
3513 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
3514 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3515 | int arg3 ; |
d14a1e28 RD |
3516 | wxString *arg4 = 0 ; |
3517 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3518 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3519 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3520 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3521 | long arg7 = (long) 0 ; | |
3522 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
3523 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3524 | bool result; | |
e811c8ce | 3525 | bool temp4 = False ; |
d14a1e28 RD |
3526 | wxPoint temp5 ; |
3527 | wxSize temp6 ; | |
e811c8ce | 3528 | bool temp8 = False ; |
d14a1e28 RD |
3529 | PyObject * obj0 = 0 ; |
3530 | PyObject * obj1 = 0 ; | |
3531 | PyObject * obj3 = 0 ; | |
3532 | PyObject * obj4 = 0 ; | |
3533 | PyObject * obj5 = 0 ; | |
3534 | PyObject * obj7 = 0 ; | |
3535 | char *kwnames[] = { | |
3536 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3537 | }; | |
3538 | ||
3539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
3540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3541 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3542 | { | |
3543 | arg4 = wxString_in_helper(obj3); | |
3544 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3545 | temp4 = True; |
d14a1e28 RD |
3546 | } |
3547 | if (obj4) { | |
3548 | { | |
3549 | arg5 = &temp5; | |
3550 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3551 | } | |
3552 | } | |
3553 | if (obj5) { | |
3554 | { | |
3555 | arg6 = &temp6; | |
3556 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3557 | } | |
3558 | } | |
3559 | if (obj7) { | |
3560 | { | |
3561 | arg8 = wxString_in_helper(obj7); | |
3562 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3563 | temp8 = True; |
d14a1e28 RD |
3564 | } |
3565 | } | |
3566 | { | |
3567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3568 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3569 | ||
3570 | wxPyEndAllowThreads(__tstate); | |
3571 | if (PyErr_Occurred()) SWIG_fail; | |
3572 | } | |
3573 | resultobj = PyInt_FromLong((long)result); | |
3574 | { | |
3575 | if (temp4) | |
3576 | delete arg4; | |
3577 | } | |
3578 | { | |
3579 | if (temp8) | |
3580 | delete arg8; | |
3581 | } | |
3582 | return resultobj; | |
3583 | fail: | |
3584 | { | |
3585 | if (temp4) | |
3586 | delete arg4; | |
3587 | } | |
3588 | { | |
3589 | if (temp8) | |
3590 | delete arg8; | |
3591 | } | |
3592 | return NULL; | |
3593 | } | |
3594 | ||
3595 | ||
3596 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
3597 | PyObject *obj; | |
3598 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3599 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
3600 | Py_INCREF(obj); | |
3601 | return Py_BuildValue((char *)""); | |
3602 | } | |
3603 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3604 | PyObject *resultobj; | |
3605 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3606 | int arg2 ; |
d14a1e28 RD |
3607 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
3608 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3609 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3610 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3611 | long arg5 = (long) wxLI_HORIZONTAL ; | |
3612 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
3613 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
3614 | wxStaticLine *result; | |
3615 | wxPoint temp3 ; | |
3616 | wxSize temp4 ; | |
e811c8ce | 3617 | bool temp6 = False ; |
d14a1e28 RD |
3618 | PyObject * obj0 = 0 ; |
3619 | PyObject * obj2 = 0 ; | |
3620 | PyObject * obj3 = 0 ; | |
3621 | PyObject * obj5 = 0 ; | |
3622 | char *kwnames[] = { | |
3623 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3624 | }; | |
3625 | ||
3626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_StaticLine",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
3627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3628 | if (obj2) { | |
3629 | { | |
3630 | arg3 = &temp3; | |
3631 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
3632 | } | |
3633 | } | |
3634 | if (obj3) { | |
3635 | { | |
3636 | arg4 = &temp4; | |
3637 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
3638 | } | |
3639 | } | |
3640 | if (obj5) { | |
3641 | { | |
3642 | arg6 = wxString_in_helper(obj5); | |
3643 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 3644 | temp6 = True; |
d14a1e28 RD |
3645 | } |
3646 | } | |
3647 | { | |
3648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3649 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
3650 | ||
3651 | wxPyEndAllowThreads(__tstate); | |
3652 | if (PyErr_Occurred()) SWIG_fail; | |
3653 | } | |
3654 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
3655 | { | |
3656 | if (temp6) | |
3657 | delete arg6; | |
3658 | } | |
3659 | return resultobj; | |
3660 | fail: | |
3661 | { | |
3662 | if (temp6) | |
3663 | delete arg6; | |
3664 | } | |
3665 | return NULL; | |
3666 | } | |
3667 | ||
3668 | ||
3669 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3670 | PyObject *resultobj; | |
3671 | wxStaticLine *result; | |
3672 | char *kwnames[] = { | |
3673 | NULL | |
3674 | }; | |
3675 | ||
3676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
3677 | { | |
3678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3679 | result = (wxStaticLine *)new wxStaticLine(); | |
3680 | ||
3681 | wxPyEndAllowThreads(__tstate); | |
3682 | if (PyErr_Occurred()) SWIG_fail; | |
3683 | } | |
3684 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
3685 | return resultobj; | |
3686 | fail: | |
3687 | return NULL; | |
3688 | } | |
3689 | ||
3690 | ||
3691 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3692 | PyObject *resultobj; | |
3693 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
3694 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3695 | int arg3 ; |
d14a1e28 RD |
3696 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3697 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3698 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3699 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3700 | long arg6 = (long) wxLI_HORIZONTAL ; | |
3701 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
3702 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3703 | bool result; | |
3704 | wxPoint temp4 ; | |
3705 | wxSize temp5 ; | |
e811c8ce | 3706 | bool temp7 = False ; |
d14a1e28 RD |
3707 | PyObject * obj0 = 0 ; |
3708 | PyObject * obj1 = 0 ; | |
3709 | PyObject * obj3 = 0 ; | |
3710 | PyObject * obj4 = 0 ; | |
3711 | PyObject * obj6 = 0 ; | |
3712 | char *kwnames[] = { | |
3713 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3714 | }; | |
3715 | ||
3716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:StaticLine_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3718 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3719 | if (obj3) { | |
3720 | { | |
3721 | arg4 = &temp4; | |
3722 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3723 | } | |
3724 | } | |
3725 | if (obj4) { | |
3726 | { | |
3727 | arg5 = &temp5; | |
3728 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3729 | } | |
3730 | } | |
3731 | if (obj6) { | |
3732 | { | |
3733 | arg7 = wxString_in_helper(obj6); | |
3734 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 3735 | temp7 = True; |
d14a1e28 RD |
3736 | } |
3737 | } | |
3738 | { | |
3739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3740 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3741 | ||
3742 | wxPyEndAllowThreads(__tstate); | |
3743 | if (PyErr_Occurred()) SWIG_fail; | |
3744 | } | |
3745 | resultobj = PyInt_FromLong((long)result); | |
3746 | { | |
3747 | if (temp7) | |
3748 | delete arg7; | |
3749 | } | |
3750 | return resultobj; | |
3751 | fail: | |
3752 | { | |
3753 | if (temp7) | |
3754 | delete arg7; | |
3755 | } | |
3756 | return NULL; | |
3757 | } | |
3758 | ||
3759 | ||
3760 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3761 | PyObject *resultobj; | |
3762 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
3763 | bool result; | |
3764 | PyObject * obj0 = 0 ; | |
3765 | char *kwnames[] = { | |
3766 | (char *) "self", NULL | |
3767 | }; | |
3768 | ||
3769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
3770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3771 | { | |
3772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3773 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
3774 | ||
3775 | wxPyEndAllowThreads(__tstate); | |
3776 | if (PyErr_Occurred()) SWIG_fail; | |
3777 | } | |
3778 | resultobj = PyInt_FromLong((long)result); | |
3779 | return resultobj; | |
3780 | fail: | |
3781 | return NULL; | |
3782 | } | |
3783 | ||
3784 | ||
3785 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3786 | PyObject *resultobj; | |
3787 | int result; | |
3788 | char *kwnames[] = { | |
3789 | NULL | |
3790 | }; | |
3791 | ||
3792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
3793 | { | |
3794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3795 | result = (int)wxStaticLine::GetDefaultSize(); | |
3796 | ||
3797 | wxPyEndAllowThreads(__tstate); | |
3798 | if (PyErr_Occurred()) SWIG_fail; | |
3799 | } | |
3800 | resultobj = PyInt_FromLong((long)result); | |
3801 | return resultobj; | |
3802 | fail: | |
3803 | return NULL; | |
3804 | } | |
3805 | ||
3806 | ||
3807 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
3808 | PyObject *obj; | |
3809 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3810 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
3811 | Py_INCREF(obj); | |
3812 | return Py_BuildValue((char *)""); | |
3813 | } | |
3814 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3815 | PyObject *resultobj; | |
3816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3817 | int arg2 ; |
d14a1e28 RD |
3818 | wxString *arg3 = 0 ; |
3819 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3820 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3821 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3822 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3823 | long arg6 = (long) 0 ; | |
3824 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
3825 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3826 | wxStaticText *result; | |
e811c8ce | 3827 | bool temp3 = False ; |
d14a1e28 RD |
3828 | wxPoint temp4 ; |
3829 | wxSize temp5 ; | |
e811c8ce | 3830 | bool temp7 = False ; |
d14a1e28 RD |
3831 | PyObject * obj0 = 0 ; |
3832 | PyObject * obj2 = 0 ; | |
3833 | PyObject * obj3 = 0 ; | |
3834 | PyObject * obj4 = 0 ; | |
3835 | PyObject * obj6 = 0 ; | |
3836 | char *kwnames[] = { | |
3837 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3838 | }; | |
3839 | ||
3840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticText",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3842 | { | |
3843 | arg3 = wxString_in_helper(obj2); | |
3844 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3845 | temp3 = True; |
d14a1e28 RD |
3846 | } |
3847 | if (obj3) { | |
3848 | { | |
3849 | arg4 = &temp4; | |
3850 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3851 | } | |
3852 | } | |
3853 | if (obj4) { | |
3854 | { | |
3855 | arg5 = &temp5; | |
3856 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3857 | } | |
3858 | } | |
3859 | if (obj6) { | |
3860 | { | |
3861 | arg7 = wxString_in_helper(obj6); | |
3862 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 3863 | temp7 = True; |
d14a1e28 RD |
3864 | } |
3865 | } | |
3866 | { | |
3867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3868 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3869 | ||
3870 | wxPyEndAllowThreads(__tstate); | |
3871 | if (PyErr_Occurred()) SWIG_fail; | |
3872 | } | |
3873 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
3874 | { | |
3875 | if (temp3) | |
3876 | delete arg3; | |
3877 | } | |
3878 | { | |
3879 | if (temp7) | |
3880 | delete arg7; | |
3881 | } | |
3882 | return resultobj; | |
3883 | fail: | |
3884 | { | |
3885 | if (temp3) | |
3886 | delete arg3; | |
3887 | } | |
3888 | { | |
3889 | if (temp7) | |
3890 | delete arg7; | |
3891 | } | |
3892 | return NULL; | |
3893 | } | |
3894 | ||
3895 | ||
3896 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3897 | PyObject *resultobj; | |
3898 | wxStaticText *result; | |
3899 | char *kwnames[] = { | |
3900 | NULL | |
3901 | }; | |
3902 | ||
3903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
3904 | { | |
3905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3906 | result = (wxStaticText *)new wxStaticText(); | |
3907 | ||
3908 | wxPyEndAllowThreads(__tstate); | |
3909 | if (PyErr_Occurred()) SWIG_fail; | |
3910 | } | |
3911 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
3912 | return resultobj; | |
3913 | fail: | |
3914 | return NULL; | |
3915 | } | |
3916 | ||
3917 | ||
3918 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3919 | PyObject *resultobj; | |
3920 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
3921 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3922 | int arg3 ; |
d14a1e28 RD |
3923 | wxString *arg4 = 0 ; |
3924 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3925 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3926 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3927 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3928 | long arg7 = (long) 0 ; | |
3929 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
3930 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3931 | bool result; | |
e811c8ce | 3932 | bool temp4 = False ; |
d14a1e28 RD |
3933 | wxPoint temp5 ; |
3934 | wxSize temp6 ; | |
e811c8ce | 3935 | bool temp8 = False ; |
d14a1e28 RD |
3936 | PyObject * obj0 = 0 ; |
3937 | PyObject * obj1 = 0 ; | |
3938 | PyObject * obj3 = 0 ; | |
3939 | PyObject * obj4 = 0 ; | |
3940 | PyObject * obj5 = 0 ; | |
3941 | PyObject * obj7 = 0 ; | |
3942 | char *kwnames[] = { | |
3943 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3944 | }; | |
3945 | ||
3946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticText_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
3947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3948 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3949 | { | |
3950 | arg4 = wxString_in_helper(obj3); | |
3951 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3952 | temp4 = True; |
d14a1e28 RD |
3953 | } |
3954 | if (obj4) { | |
3955 | { | |
3956 | arg5 = &temp5; | |
3957 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3958 | } | |
3959 | } | |
3960 | if (obj5) { | |
3961 | { | |
3962 | arg6 = &temp6; | |
3963 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3964 | } | |
3965 | } | |
3966 | if (obj7) { | |
3967 | { | |
3968 | arg8 = wxString_in_helper(obj7); | |
3969 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3970 | temp8 = True; |
d14a1e28 RD |
3971 | } |
3972 | } | |
3973 | { | |
3974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3975 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3976 | ||
3977 | wxPyEndAllowThreads(__tstate); | |
3978 | if (PyErr_Occurred()) SWIG_fail; | |
3979 | } | |
3980 | resultobj = PyInt_FromLong((long)result); | |
3981 | { | |
3982 | if (temp4) | |
3983 | delete arg4; | |
3984 | } | |
3985 | { | |
3986 | if (temp8) | |
3987 | delete arg8; | |
3988 | } | |
3989 | return resultobj; | |
3990 | fail: | |
3991 | { | |
3992 | if (temp4) | |
3993 | delete arg4; | |
3994 | } | |
3995 | { | |
3996 | if (temp8) | |
3997 | delete arg8; | |
3998 | } | |
3999 | return NULL; | |
4000 | } | |
4001 | ||
4002 | ||
4003 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4004 | PyObject *obj; | |
4005 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4006 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4007 | Py_INCREF(obj); | |
4008 | return Py_BuildValue((char *)""); | |
4009 | } | |
4010 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4011 | PyObject *resultobj; | |
4012 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4013 | int arg2 ; |
d14a1e28 RD |
4014 | wxBitmap *arg3 = 0 ; |
4015 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4016 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4017 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4018 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4019 | long arg6 = (long) 0 ; | |
4020 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4021 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4022 | wxStaticBitmap *result; | |
4023 | wxPoint temp4 ; | |
4024 | wxSize temp5 ; | |
e811c8ce | 4025 | bool temp7 = False ; |
d14a1e28 RD |
4026 | PyObject * obj0 = 0 ; |
4027 | PyObject * obj2 = 0 ; | |
4028 | PyObject * obj3 = 0 ; | |
4029 | PyObject * obj4 = 0 ; | |
4030 | PyObject * obj6 = 0 ; | |
4031 | char *kwnames[] = { | |
4032 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4033 | }; | |
4034 | ||
4035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticBitmap",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
4036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4037 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4038 | if (arg3 == NULL) { | |
4039 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4040 | } | |
4041 | if (obj3) { | |
4042 | { | |
4043 | arg4 = &temp4; | |
4044 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4045 | } | |
4046 | } | |
4047 | if (obj4) { | |
4048 | { | |
4049 | arg5 = &temp5; | |
4050 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4051 | } | |
4052 | } | |
4053 | if (obj6) { | |
4054 | { | |
4055 | arg7 = wxString_in_helper(obj6); | |
4056 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4057 | temp7 = True; |
d14a1e28 RD |
4058 | } |
4059 | } | |
4060 | { | |
4061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4062 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4063 | ||
4064 | wxPyEndAllowThreads(__tstate); | |
4065 | if (PyErr_Occurred()) SWIG_fail; | |
4066 | } | |
4067 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4068 | { | |
4069 | if (temp7) | |
4070 | delete arg7; | |
4071 | } | |
4072 | return resultobj; | |
4073 | fail: | |
4074 | { | |
4075 | if (temp7) | |
4076 | delete arg7; | |
4077 | } | |
4078 | return NULL; | |
4079 | } | |
4080 | ||
4081 | ||
4082 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4083 | PyObject *resultobj; | |
4084 | wxStaticBitmap *result; | |
4085 | char *kwnames[] = { | |
4086 | NULL | |
4087 | }; | |
4088 | ||
4089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4090 | { | |
4091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4092 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4093 | ||
4094 | wxPyEndAllowThreads(__tstate); | |
4095 | if (PyErr_Occurred()) SWIG_fail; | |
4096 | } | |
4097 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4098 | return resultobj; | |
4099 | fail: | |
4100 | return NULL; | |
4101 | } | |
4102 | ||
4103 | ||
4104 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4105 | PyObject *resultobj; | |
4106 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4107 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4108 | int arg3 ; |
d14a1e28 RD |
4109 | wxBitmap *arg4 = 0 ; |
4110 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4111 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4112 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4113 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4114 | long arg7 = (long) 0 ; | |
4115 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4116 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4117 | bool result; | |
4118 | wxPoint temp5 ; | |
4119 | wxSize temp6 ; | |
e811c8ce | 4120 | bool temp8 = False ; |
d14a1e28 RD |
4121 | PyObject * obj0 = 0 ; |
4122 | PyObject * obj1 = 0 ; | |
4123 | PyObject * obj3 = 0 ; | |
4124 | PyObject * obj4 = 0 ; | |
4125 | PyObject * obj5 = 0 ; | |
4126 | PyObject * obj7 = 0 ; | |
4127 | char *kwnames[] = { | |
4128 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4129 | }; | |
4130 | ||
4131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticBitmap_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
4132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4133 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4134 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4135 | if (arg4 == NULL) { | |
4136 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4137 | } | |
4138 | if (obj4) { | |
4139 | { | |
4140 | arg5 = &temp5; | |
4141 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4142 | } | |
4143 | } | |
4144 | if (obj5) { | |
4145 | { | |
4146 | arg6 = &temp6; | |
4147 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4148 | } | |
4149 | } | |
4150 | if (obj7) { | |
4151 | { | |
4152 | arg8 = wxString_in_helper(obj7); | |
4153 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4154 | temp8 = True; |
d14a1e28 RD |
4155 | } |
4156 | } | |
4157 | { | |
4158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4159 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4160 | ||
4161 | wxPyEndAllowThreads(__tstate); | |
4162 | if (PyErr_Occurred()) SWIG_fail; | |
4163 | } | |
4164 | resultobj = PyInt_FromLong((long)result); | |
4165 | { | |
4166 | if (temp8) | |
4167 | delete arg8; | |
4168 | } | |
4169 | return resultobj; | |
4170 | fail: | |
4171 | { | |
4172 | if (temp8) | |
4173 | delete arg8; | |
4174 | } | |
4175 | return NULL; | |
4176 | } | |
4177 | ||
4178 | ||
4179 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4180 | PyObject *resultobj; | |
4181 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4182 | wxBitmap result; | |
4183 | PyObject * obj0 = 0 ; | |
4184 | char *kwnames[] = { | |
4185 | (char *) "self", NULL | |
4186 | }; | |
4187 | ||
4188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4190 | { | |
4191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4192 | result = (arg1)->GetBitmap(); | |
4193 | ||
4194 | wxPyEndAllowThreads(__tstate); | |
4195 | if (PyErr_Occurred()) SWIG_fail; | |
4196 | } | |
4197 | { | |
4198 | wxBitmap * resultptr; | |
4199 | resultptr = new wxBitmap((wxBitmap &) result); | |
4200 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4201 | } | |
4202 | return resultobj; | |
4203 | fail: | |
4204 | return NULL; | |
4205 | } | |
4206 | ||
4207 | ||
4208 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4209 | PyObject *resultobj; | |
4210 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4211 | wxBitmap *arg2 = 0 ; | |
4212 | PyObject * obj0 = 0 ; | |
4213 | PyObject * obj1 = 0 ; | |
4214 | char *kwnames[] = { | |
4215 | (char *) "self",(char *) "bitmap", NULL | |
4216 | }; | |
4217 | ||
4218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4220 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4221 | if (arg2 == NULL) { | |
4222 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4223 | } | |
4224 | { | |
4225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4226 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4227 | ||
4228 | wxPyEndAllowThreads(__tstate); | |
4229 | if (PyErr_Occurred()) SWIG_fail; | |
4230 | } | |
4231 | Py_INCREF(Py_None); resultobj = Py_None; | |
4232 | return resultobj; | |
4233 | fail: | |
4234 | return NULL; | |
4235 | } | |
4236 | ||
4237 | ||
4238 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4239 | PyObject *resultobj; | |
4240 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4241 | wxIcon *arg2 = 0 ; | |
4242 | PyObject * obj0 = 0 ; | |
4243 | PyObject * obj1 = 0 ; | |
4244 | char *kwnames[] = { | |
4245 | (char *) "self",(char *) "icon", NULL | |
4246 | }; | |
4247 | ||
4248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4250 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4251 | if (arg2 == NULL) { | |
4252 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4253 | } | |
4254 | { | |
4255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4256 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
4257 | ||
4258 | wxPyEndAllowThreads(__tstate); | |
4259 | if (PyErr_Occurred()) SWIG_fail; | |
4260 | } | |
4261 | Py_INCREF(Py_None); resultobj = Py_None; | |
4262 | return resultobj; | |
4263 | fail: | |
4264 | return NULL; | |
4265 | } | |
4266 | ||
4267 | ||
4268 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
4269 | PyObject *obj; | |
4270 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4271 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
4272 | Py_INCREF(obj); | |
4273 | return Py_BuildValue((char *)""); | |
4274 | } | |
4275 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4276 | PyObject *resultobj; | |
4277 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4278 | int arg2 ; |
d14a1e28 RD |
4279 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4280 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4281 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4282 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4283 | int arg5 = (int) 0 ; | |
4284 | wxString *arg6 = (wxString *) NULL ; | |
4285 | long arg7 = (long) 0 ; | |
4286 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4287 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4288 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
4289 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4290 | wxListBox *result; | |
4291 | wxPoint temp3 ; | |
4292 | wxSize temp4 ; | |
e811c8ce | 4293 | bool temp8 = False ; |
d14a1e28 RD |
4294 | PyObject * obj0 = 0 ; |
4295 | PyObject * obj2 = 0 ; | |
4296 | PyObject * obj3 = 0 ; | |
4297 | PyObject * obj4 = 0 ; | |
4298 | PyObject * obj6 = 0 ; | |
4299 | PyObject * obj7 = 0 ; | |
4300 | char *kwnames[] = { | |
4301 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4302 | }; | |
4303 | ||
4304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_ListBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
4305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4306 | if (obj2) { | |
4307 | { | |
4308 | arg3 = &temp3; | |
4309 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4310 | } | |
4311 | } | |
4312 | if (obj3) { | |
4313 | { | |
4314 | arg4 = &temp4; | |
4315 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4316 | } | |
4317 | } | |
4318 | if (obj4) { | |
4319 | { | |
4320 | arg5 = PyList_Size(obj4); | |
4321 | arg6 = wxString_LIST_helper(obj4); | |
4322 | if (arg6 == NULL) SWIG_fail; | |
4323 | } | |
4324 | } | |
4325 | if (obj6) { | |
4326 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4327 | if (arg8 == NULL) { | |
4328 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4329 | } | |
4330 | } | |
4331 | if (obj7) { | |
4332 | { | |
4333 | arg9 = wxString_in_helper(obj7); | |
4334 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 4335 | temp8 = True; |
d14a1e28 RD |
4336 | } |
4337 | } | |
4338 | { | |
4339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4340 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4341 | ||
4342 | wxPyEndAllowThreads(__tstate); | |
4343 | if (PyErr_Occurred()) SWIG_fail; | |
4344 | } | |
4345 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4346 | { | |
4347 | if (arg6) delete [] arg6; | |
4348 | } | |
4349 | { | |
4350 | if (temp8) | |
4351 | delete arg9; | |
4352 | } | |
4353 | return resultobj; | |
4354 | fail: | |
4355 | { | |
4356 | if (arg6) delete [] arg6; | |
4357 | } | |
4358 | { | |
4359 | if (temp8) | |
4360 | delete arg9; | |
4361 | } | |
4362 | return NULL; | |
4363 | } | |
4364 | ||
4365 | ||
4366 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4367 | PyObject *resultobj; | |
4368 | wxListBox *result; | |
4369 | char *kwnames[] = { | |
4370 | NULL | |
4371 | }; | |
4372 | ||
4373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
4374 | { | |
4375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4376 | result = (wxListBox *)new wxListBox(); | |
4377 | ||
4378 | wxPyEndAllowThreads(__tstate); | |
4379 | if (PyErr_Occurred()) SWIG_fail; | |
4380 | } | |
4381 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4382 | return resultobj; | |
4383 | fail: | |
4384 | return NULL; | |
4385 | } | |
4386 | ||
4387 | ||
4388 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4389 | PyObject *resultobj; | |
4390 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4391 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4392 | int arg3 ; |
d14a1e28 RD |
4393 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4394 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4395 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4396 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4397 | int arg6 = (int) 0 ; | |
4398 | wxString *arg7 = (wxString *) NULL ; | |
4399 | long arg8 = (long) 0 ; | |
4400 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
4401 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
4402 | wxString const &arg10_defvalue = wxPyListBoxNameStr ; | |
4403 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
4404 | bool result; | |
4405 | wxPoint temp4 ; | |
4406 | wxSize temp5 ; | |
e811c8ce | 4407 | bool temp9 = False ; |
d14a1e28 RD |
4408 | PyObject * obj0 = 0 ; |
4409 | PyObject * obj1 = 0 ; | |
4410 | PyObject * obj3 = 0 ; | |
4411 | PyObject * obj4 = 0 ; | |
4412 | PyObject * obj5 = 0 ; | |
4413 | PyObject * obj7 = 0 ; | |
4414 | PyObject * obj8 = 0 ; | |
4415 | char *kwnames[] = { | |
4416 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4417 | }; | |
4418 | ||
4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:ListBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
4420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4421 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4422 | if (obj3) { | |
4423 | { | |
4424 | arg4 = &temp4; | |
4425 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4426 | } | |
4427 | } | |
4428 | if (obj4) { | |
4429 | { | |
4430 | arg5 = &temp5; | |
4431 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4432 | } | |
4433 | } | |
4434 | if (obj5) { | |
4435 | { | |
4436 | arg6 = PyList_Size(obj5); | |
4437 | arg7 = wxString_LIST_helper(obj5); | |
4438 | if (arg7 == NULL) SWIG_fail; | |
4439 | } | |
4440 | } | |
4441 | if (obj7) { | |
4442 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4443 | if (arg9 == NULL) { | |
4444 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4445 | } | |
4446 | } | |
4447 | if (obj8) { | |
4448 | { | |
4449 | arg10 = wxString_in_helper(obj8); | |
4450 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 4451 | temp9 = True; |
d14a1e28 RD |
4452 | } |
4453 | } | |
4454 | { | |
4455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4456 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
4457 | ||
4458 | wxPyEndAllowThreads(__tstate); | |
4459 | if (PyErr_Occurred()) SWIG_fail; | |
4460 | } | |
4461 | resultobj = PyInt_FromLong((long)result); | |
4462 | { | |
4463 | if (arg7) delete [] arg7; | |
4464 | } | |
4465 | { | |
4466 | if (temp9) | |
4467 | delete arg10; | |
4468 | } | |
4469 | return resultobj; | |
4470 | fail: | |
4471 | { | |
4472 | if (arg7) delete [] arg7; | |
4473 | } | |
4474 | { | |
4475 | if (temp9) | |
4476 | delete arg10; | |
4477 | } | |
4478 | return NULL; | |
4479 | } | |
4480 | ||
4481 | ||
4482 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4483 | PyObject *resultobj; | |
4484 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4485 | wxString *arg2 = 0 ; | |
4486 | int arg3 ; | |
4487 | PyObject *arg4 = (PyObject *) NULL ; | |
e811c8ce | 4488 | bool temp2 = False ; |
d14a1e28 RD |
4489 | PyObject * obj0 = 0 ; |
4490 | PyObject * obj1 = 0 ; | |
4491 | PyObject * obj3 = 0 ; | |
4492 | char *kwnames[] = { | |
4493 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
4494 | }; | |
4495 | ||
4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:ListBox_Insert",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
4497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4498 | { | |
4499 | arg2 = wxString_in_helper(obj1); | |
4500 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4501 | temp2 = True; |
d14a1e28 RD |
4502 | } |
4503 | if (obj3) { | |
4504 | arg4 = obj3; | |
4505 | } | |
4506 | { | |
4507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4508 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
4509 | ||
4510 | wxPyEndAllowThreads(__tstate); | |
4511 | if (PyErr_Occurred()) SWIG_fail; | |
4512 | } | |
4513 | Py_INCREF(Py_None); resultobj = Py_None; | |
4514 | { | |
4515 | if (temp2) | |
4516 | delete arg2; | |
4517 | } | |
4518 | return resultobj; | |
4519 | fail: | |
4520 | { | |
4521 | if (temp2) | |
4522 | delete arg2; | |
4523 | } | |
4524 | return NULL; | |
4525 | } | |
4526 | ||
4527 | ||
4528 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4529 | PyObject *resultobj; | |
4530 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4531 | wxArrayString *arg2 = 0 ; | |
4532 | int arg3 ; | |
4533 | PyObject * obj0 = 0 ; | |
4534 | PyObject * obj1 = 0 ; | |
4535 | char *kwnames[] = { | |
4536 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
4537 | }; | |
4538 | ||
4539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListBox_InsertItems",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
4540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4541 | { | |
4542 | if (! PySequence_Check(obj1)) { | |
4543 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4544 | SWIG_fail; | |
4545 | } | |
4546 | arg2 = new wxArrayString; | |
4547 | int i, len=PySequence_Length(obj1); | |
4548 | for (i=0; i<len; i++) { | |
4549 | PyObject* item = PySequence_GetItem(obj1, i); | |
4550 | #if wxUSE_UNICODE | |
4551 | PyObject* str = PyObject_Unicode(item); | |
4552 | #else | |
4553 | PyObject* str = PyObject_Str(item); | |
4554 | #endif | |
4555 | arg2->Add(Py2wxString(str)); | |
4556 | Py_DECREF(item); | |
4557 | Py_DECREF(str); | |
4558 | } | |
4559 | } | |
4560 | { | |
4561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4562 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
4563 | ||
4564 | wxPyEndAllowThreads(__tstate); | |
4565 | if (PyErr_Occurred()) SWIG_fail; | |
4566 | } | |
4567 | Py_INCREF(Py_None); resultobj = Py_None; | |
4568 | { | |
4569 | if (arg2) delete arg2; | |
4570 | } | |
4571 | return resultobj; | |
4572 | fail: | |
4573 | { | |
4574 | if (arg2) delete arg2; | |
4575 | } | |
4576 | return NULL; | |
4577 | } | |
4578 | ||
4579 | ||
4580 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4581 | PyObject *resultobj; | |
4582 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4583 | wxArrayString *arg2 = 0 ; | |
4584 | PyObject * obj0 = 0 ; | |
4585 | PyObject * obj1 = 0 ; | |
4586 | char *kwnames[] = { | |
4587 | (char *) "self",(char *) "items", NULL | |
4588 | }; | |
4589 | ||
4590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
4591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4592 | { | |
4593 | if (! PySequence_Check(obj1)) { | |
4594 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4595 | SWIG_fail; | |
4596 | } | |
4597 | arg2 = new wxArrayString; | |
4598 | int i, len=PySequence_Length(obj1); | |
4599 | for (i=0; i<len; i++) { | |
4600 | PyObject* item = PySequence_GetItem(obj1, i); | |
4601 | #if wxUSE_UNICODE | |
4602 | PyObject* str = PyObject_Unicode(item); | |
4603 | #else | |
4604 | PyObject* str = PyObject_Str(item); | |
4605 | #endif | |
4606 | arg2->Add(Py2wxString(str)); | |
4607 | Py_DECREF(item); | |
4608 | Py_DECREF(str); | |
4609 | } | |
4610 | } | |
4611 | { | |
4612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4613 | (arg1)->Set((wxArrayString const &)*arg2); | |
4614 | ||
4615 | wxPyEndAllowThreads(__tstate); | |
4616 | if (PyErr_Occurred()) SWIG_fail; | |
4617 | } | |
4618 | Py_INCREF(Py_None); resultobj = Py_None; | |
4619 | { | |
4620 | if (arg2) delete arg2; | |
4621 | } | |
4622 | return resultobj; | |
4623 | fail: | |
4624 | { | |
4625 | if (arg2) delete arg2; | |
4626 | } | |
4627 | return NULL; | |
4628 | } | |
4629 | ||
4630 | ||
4631 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4632 | PyObject *resultobj; | |
4633 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4634 | int arg2 ; | |
4635 | bool result; | |
4636 | PyObject * obj0 = 0 ; | |
4637 | char *kwnames[] = { | |
4638 | (char *) "self",(char *) "n", NULL | |
4639 | }; | |
4640 | ||
4641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_IsSelected",kwnames,&obj0,&arg2)) goto fail; | |
4642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4643 | { | |
4644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4645 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
4646 | ||
4647 | wxPyEndAllowThreads(__tstate); | |
4648 | if (PyErr_Occurred()) SWIG_fail; | |
4649 | } | |
4650 | resultobj = PyInt_FromLong((long)result); | |
4651 | return resultobj; | |
4652 | fail: | |
4653 | return NULL; | |
4654 | } | |
4655 | ||
4656 | ||
4657 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4658 | PyObject *resultobj; | |
4659 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4660 | int arg2 ; | |
e811c8ce | 4661 | bool arg3 = (bool) True ; |
d14a1e28 RD |
4662 | PyObject * obj0 = 0 ; |
4663 | PyObject * obj2 = 0 ; | |
4664 | char *kwnames[] = { | |
4665 | (char *) "self",(char *) "n",(char *) "select", NULL | |
4666 | }; | |
4667 | ||
4668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:ListBox_SetSelection",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
4669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4670 | if (obj2) { | |
4671 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
4672 | if (PyErr_Occurred()) SWIG_fail; | |
4673 | } | |
4674 | { | |
4675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4676 | (arg1)->SetSelection(arg2,arg3); | |
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_Select(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_Select",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)->Select(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_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4714 | PyObject *resultobj; | |
4715 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4716 | int arg2 ; | |
4717 | PyObject * obj0 = 0 ; | |
4718 | char *kwnames[] = { | |
4719 | (char *) "self",(char *) "n", NULL | |
4720 | }; | |
4721 | ||
4722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_Deselect",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)->Deselect(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_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4739 | PyObject *resultobj; | |
4740 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4741 | int arg2 = (int) -1 ; | |
4742 | PyObject * obj0 = 0 ; | |
4743 | char *kwnames[] = { | |
4744 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
4745 | }; | |
4746 | ||
4747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:ListBox_DeselectAll",kwnames,&obj0,&arg2)) goto fail; | |
4748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4749 | { | |
4750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4751 | (arg1)->DeselectAll(arg2); | |
4752 | ||
4753 | wxPyEndAllowThreads(__tstate); | |
4754 | if (PyErr_Occurred()) SWIG_fail; | |
4755 | } | |
4756 | Py_INCREF(Py_None); resultobj = Py_None; | |
4757 | return resultobj; | |
4758 | fail: | |
4759 | return NULL; | |
4760 | } | |
4761 | ||
4762 | ||
4763 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4764 | PyObject *resultobj; | |
4765 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4766 | wxString *arg2 = 0 ; | |
e811c8ce | 4767 | bool arg3 = (bool) True ; |
d14a1e28 | 4768 | bool result; |
e811c8ce | 4769 | bool temp2 = False ; |
d14a1e28 RD |
4770 | PyObject * obj0 = 0 ; |
4771 | PyObject * obj1 = 0 ; | |
4772 | PyObject * obj2 = 0 ; | |
4773 | char *kwnames[] = { | |
4774 | (char *) "self",(char *) "s",(char *) "select", NULL | |
4775 | }; | |
4776 | ||
4777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4779 | { | |
4780 | arg2 = wxString_in_helper(obj1); | |
4781 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4782 | temp2 = True; |
d14a1e28 RD |
4783 | } |
4784 | if (obj2) { | |
4785 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
4786 | if (PyErr_Occurred()) SWIG_fail; | |
4787 | } | |
4788 | { | |
4789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4790 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
4791 | ||
4792 | wxPyEndAllowThreads(__tstate); | |
4793 | if (PyErr_Occurred()) SWIG_fail; | |
4794 | } | |
4795 | resultobj = PyInt_FromLong((long)result); | |
4796 | { | |
4797 | if (temp2) | |
4798 | delete arg2; | |
4799 | } | |
4800 | return resultobj; | |
4801 | fail: | |
4802 | { | |
4803 | if (temp2) | |
4804 | delete arg2; | |
4805 | } | |
4806 | return NULL; | |
4807 | } | |
4808 | ||
4809 | ||
4810 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4811 | PyObject *resultobj; | |
4812 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4813 | PyObject *result; | |
4814 | PyObject * obj0 = 0 ; | |
4815 | char *kwnames[] = { | |
4816 | (char *) "self", NULL | |
4817 | }; | |
4818 | ||
4819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) 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 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
4824 | ||
4825 | wxPyEndAllowThreads(__tstate); | |
4826 | if (PyErr_Occurred()) SWIG_fail; | |
4827 | } | |
4828 | resultobj = result; | |
4829 | return resultobj; | |
4830 | fail: | |
4831 | return NULL; | |
4832 | } | |
4833 | ||
4834 | ||
4835 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4836 | PyObject *resultobj; | |
4837 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4838 | int arg2 ; | |
4839 | PyObject * obj0 = 0 ; | |
4840 | char *kwnames[] = { | |
4841 | (char *) "self",(char *) "n", NULL | |
4842 | }; | |
4843 | ||
4844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_SetFirstItem",kwnames,&obj0,&arg2)) goto fail; | |
4845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4846 | { | |
4847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4848 | (arg1)->SetFirstItem(arg2); | |
4849 | ||
4850 | wxPyEndAllowThreads(__tstate); | |
4851 | if (PyErr_Occurred()) SWIG_fail; | |
4852 | } | |
4853 | Py_INCREF(Py_None); resultobj = Py_None; | |
4854 | return resultobj; | |
4855 | fail: | |
4856 | return NULL; | |
4857 | } | |
4858 | ||
4859 | ||
4860 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4861 | PyObject *resultobj; | |
4862 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4863 | wxString *arg2 = 0 ; | |
e811c8ce | 4864 | bool temp2 = False ; |
d14a1e28 RD |
4865 | PyObject * obj0 = 0 ; |
4866 | PyObject * obj1 = 0 ; | |
4867 | char *kwnames[] = { | |
4868 | (char *) "self",(char *) "s", NULL | |
4869 | }; | |
4870 | ||
4871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
4872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4873 | { | |
4874 | arg2 = wxString_in_helper(obj1); | |
4875 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4876 | temp2 = True; |
d14a1e28 RD |
4877 | } |
4878 | { | |
4879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4880 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
4881 | ||
4882 | wxPyEndAllowThreads(__tstate); | |
4883 | if (PyErr_Occurred()) SWIG_fail; | |
4884 | } | |
4885 | Py_INCREF(Py_None); resultobj = Py_None; | |
4886 | { | |
4887 | if (temp2) | |
4888 | delete arg2; | |
4889 | } | |
4890 | return resultobj; | |
4891 | fail: | |
4892 | { | |
4893 | if (temp2) | |
4894 | delete arg2; | |
4895 | } | |
4896 | return NULL; | |
4897 | } | |
4898 | ||
4899 | ||
4900 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4901 | PyObject *resultobj; | |
4902 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4903 | int arg2 ; | |
4904 | PyObject * obj0 = 0 ; | |
4905 | char *kwnames[] = { | |
4906 | (char *) "self",(char *) "n", NULL | |
4907 | }; | |
4908 | ||
4909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_EnsureVisible",kwnames,&obj0,&arg2)) goto fail; | |
4910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4911 | { | |
4912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4913 | (arg1)->EnsureVisible(arg2); | |
4914 | ||
4915 | wxPyEndAllowThreads(__tstate); | |
4916 | if (PyErr_Occurred()) SWIG_fail; | |
4917 | } | |
4918 | Py_INCREF(Py_None); resultobj = Py_None; | |
4919 | return resultobj; | |
4920 | fail: | |
4921 | return NULL; | |
4922 | } | |
4923 | ||
4924 | ||
4925 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4926 | PyObject *resultobj; | |
4927 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4928 | wxString *arg2 = 0 ; | |
e811c8ce | 4929 | bool temp2 = False ; |
d14a1e28 RD |
4930 | PyObject * obj0 = 0 ; |
4931 | PyObject * obj1 = 0 ; | |
4932 | char *kwnames[] = { | |
4933 | (char *) "self",(char *) "s", NULL | |
4934 | }; | |
4935 | ||
4936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
4937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4938 | { | |
4939 | arg2 = wxString_in_helper(obj1); | |
4940 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4941 | temp2 = True; |
d14a1e28 RD |
4942 | } |
4943 | { | |
4944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4945 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
4946 | ||
4947 | wxPyEndAllowThreads(__tstate); | |
4948 | if (PyErr_Occurred()) SWIG_fail; | |
4949 | } | |
4950 | Py_INCREF(Py_None); resultobj = Py_None; | |
4951 | { | |
4952 | if (temp2) | |
4953 | delete arg2; | |
4954 | } | |
4955 | return resultobj; | |
4956 | fail: | |
4957 | { | |
4958 | if (temp2) | |
4959 | delete arg2; | |
4960 | } | |
4961 | return NULL; | |
4962 | } | |
4963 | ||
4964 | ||
4965 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4966 | PyObject *resultobj; | |
4967 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4968 | bool result; | |
4969 | PyObject * obj0 = 0 ; | |
4970 | char *kwnames[] = { | |
4971 | (char *) "self", NULL | |
4972 | }; | |
4973 | ||
4974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
4975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4976 | { | |
4977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4978 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
4979 | ||
4980 | wxPyEndAllowThreads(__tstate); | |
4981 | if (PyErr_Occurred()) SWIG_fail; | |
4982 | } | |
4983 | resultobj = PyInt_FromLong((long)result); | |
4984 | return resultobj; | |
4985 | fail: | |
4986 | return NULL; | |
4987 | } | |
4988 | ||
4989 | ||
4990 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { | |
4991 | PyObject *obj; | |
4992 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4993 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
4994 | Py_INCREF(obj); | |
4995 | return Py_BuildValue((char *)""); | |
4996 | } | |
4997 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4998 | PyObject *resultobj; | |
4999 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 5000 | int arg2 ; |
d14a1e28 RD |
5001 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5002 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5003 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5004 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5005 | int arg5 = (int) 0 ; | |
5006 | wxString *arg6 = (wxString *) NULL ; | |
5007 | long arg7 = (long) 0 ; | |
5008 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5009 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5010 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5011 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5012 | wxCheckListBox *result; | |
5013 | wxPoint temp3 ; | |
5014 | wxSize temp4 ; | |
e811c8ce | 5015 | bool temp8 = False ; |
d14a1e28 RD |
5016 | PyObject * obj0 = 0 ; |
5017 | PyObject * obj2 = 0 ; | |
5018 | PyObject * obj3 = 0 ; | |
5019 | PyObject * obj4 = 0 ; | |
5020 | PyObject * obj6 = 0 ; | |
5021 | PyObject * obj7 = 0 ; | |
5022 | char *kwnames[] = { | |
5023 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5024 | }; | |
5025 | ||
5026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_CheckListBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
5027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5028 | if (obj2) { | |
5029 | { | |
5030 | arg3 = &temp3; | |
5031 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5032 | } | |
5033 | } | |
5034 | if (obj3) { | |
5035 | { | |
5036 | arg4 = &temp4; | |
5037 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5038 | } | |
5039 | } | |
5040 | if (obj4) { | |
5041 | { | |
5042 | arg5 = PyList_Size(obj4); | |
5043 | arg6 = wxString_LIST_helper(obj4); | |
5044 | if (arg6 == NULL) SWIG_fail; | |
5045 | } | |
5046 | } | |
5047 | if (obj6) { | |
5048 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5049 | if (arg8 == NULL) { | |
5050 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5051 | } | |
5052 | } | |
5053 | if (obj7) { | |
5054 | { | |
5055 | arg9 = wxString_in_helper(obj7); | |
5056 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 5057 | temp8 = True; |
d14a1e28 RD |
5058 | } |
5059 | } | |
5060 | { | |
5061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5062 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5063 | ||
5064 | wxPyEndAllowThreads(__tstate); | |
5065 | if (PyErr_Occurred()) SWIG_fail; | |
5066 | } | |
5067 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5068 | { | |
5069 | if (arg6) delete [] arg6; | |
5070 | } | |
5071 | { | |
5072 | if (temp8) | |
5073 | delete arg9; | |
5074 | } | |
5075 | return resultobj; | |
5076 | fail: | |
5077 | { | |
5078 | if (arg6) delete [] arg6; | |
5079 | } | |
5080 | { | |
5081 | if (temp8) | |
5082 | delete arg9; | |
5083 | } | |
5084 | return NULL; | |
5085 | } | |
5086 | ||
5087 | ||
5088 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5089 | PyObject *resultobj; | |
5090 | wxCheckListBox *result; | |
5091 | char *kwnames[] = { | |
5092 | NULL | |
5093 | }; | |
5094 | ||
5095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
5096 | { | |
5097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5098 | result = (wxCheckListBox *)new wxCheckListBox(); | |
5099 | ||
5100 | wxPyEndAllowThreads(__tstate); | |
5101 | if (PyErr_Occurred()) SWIG_fail; | |
5102 | } | |
5103 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5104 | return resultobj; | |
5105 | fail: | |
5106 | return NULL; | |
5107 | } | |
5108 | ||
5109 | ||
5110 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5111 | PyObject *resultobj; | |
5112 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5113 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 5114 | int arg3 ; |
d14a1e28 RD |
5115 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5116 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5117 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5118 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5119 | int arg6 = (int) 0 ; | |
5120 | wxString *arg7 = (wxString *) NULL ; | |
5121 | long arg8 = (long) 0 ; | |
5122 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5123 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5124 | wxString const &arg10_defvalue = wxPyListBoxNameStr ; | |
5125 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5126 | bool result; | |
5127 | wxPoint temp4 ; | |
5128 | wxSize temp5 ; | |
e811c8ce | 5129 | bool temp9 = False ; |
d14a1e28 RD |
5130 | PyObject * obj0 = 0 ; |
5131 | PyObject * obj1 = 0 ; | |
5132 | PyObject * obj3 = 0 ; | |
5133 | PyObject * obj4 = 0 ; | |
5134 | PyObject * obj5 = 0 ; | |
5135 | PyObject * obj7 = 0 ; | |
5136 | PyObject * obj8 = 0 ; | |
5137 | char *kwnames[] = { | |
5138 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5139 | }; | |
5140 | ||
5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:CheckListBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
5142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5143 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5144 | if (obj3) { | |
5145 | { | |
5146 | arg4 = &temp4; | |
5147 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5148 | } | |
5149 | } | |
5150 | if (obj4) { | |
5151 | { | |
5152 | arg5 = &temp5; | |
5153 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5154 | } | |
5155 | } | |
5156 | if (obj5) { | |
5157 | { | |
5158 | arg6 = PyList_Size(obj5); | |
5159 | arg7 = wxString_LIST_helper(obj5); | |
5160 | if (arg7 == NULL) SWIG_fail; | |
5161 | } | |
5162 | } | |
5163 | if (obj7) { | |
5164 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5165 | if (arg9 == NULL) { | |
5166 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5167 | } | |
5168 | } | |
5169 | if (obj8) { | |
5170 | { | |
5171 | arg10 = wxString_in_helper(obj8); | |
5172 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 5173 | temp9 = True; |
d14a1e28 RD |
5174 | } |
5175 | } | |
5176 | { | |
5177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5178 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
5179 | ||
5180 | wxPyEndAllowThreads(__tstate); | |
5181 | if (PyErr_Occurred()) SWIG_fail; | |
5182 | } | |
5183 | resultobj = PyInt_FromLong((long)result); | |
5184 | { | |
5185 | if (arg7) delete [] arg7; | |
5186 | } | |
5187 | { | |
5188 | if (temp9) | |
5189 | delete arg10; | |
5190 | } | |
5191 | return resultobj; | |
5192 | fail: | |
5193 | { | |
5194 | if (arg7) delete [] arg7; | |
5195 | } | |
5196 | { | |
5197 | if (temp9) | |
5198 | delete arg10; | |
5199 | } | |
5200 | return NULL; | |
5201 | } | |
5202 | ||
5203 | ||
5204 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5205 | PyObject *resultobj; | |
5206 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5207 | int arg2 ; | |
5208 | bool result; | |
5209 | PyObject * obj0 = 0 ; | |
5210 | char *kwnames[] = { | |
5211 | (char *) "self",(char *) "index", NULL | |
5212 | }; | |
5213 | ||
5214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CheckListBox_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
5215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5216 | { | |
5217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5218 | result = (bool)(arg1)->IsChecked(arg2); | |
5219 | ||
5220 | wxPyEndAllowThreads(__tstate); | |
5221 | if (PyErr_Occurred()) SWIG_fail; | |
5222 | } | |
5223 | resultobj = PyInt_FromLong((long)result); | |
5224 | return resultobj; | |
5225 | fail: | |
5226 | return NULL; | |
5227 | } | |
5228 | ||
5229 | ||
5230 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5231 | PyObject *resultobj; | |
5232 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5233 | int arg2 ; | |
e811c8ce | 5234 | int arg3 = (int) True ; |
d14a1e28 RD |
5235 | PyObject * obj0 = 0 ; |
5236 | char *kwnames[] = { | |
5237 | (char *) "self",(char *) "index",(char *) "check", NULL | |
5238 | }; | |
5239 | ||
5240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:CheckListBox_Check",kwnames,&obj0,&arg2,&arg3)) 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 | (arg1)->Check(arg2,arg3); | |
5245 | ||
5246 | wxPyEndAllowThreads(__tstate); | |
5247 | if (PyErr_Occurred()) SWIG_fail; | |
5248 | } | |
5249 | Py_INCREF(Py_None); resultobj = Py_None; | |
5250 | return resultobj; | |
5251 | fail: | |
5252 | return NULL; | |
5253 | } | |
5254 | ||
5255 | ||
5256 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5257 | PyObject *resultobj; | |
5258 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5259 | int result; | |
5260 | PyObject * obj0 = 0 ; | |
5261 | char *kwnames[] = { | |
5262 | (char *) "self", NULL | |
5263 | }; | |
5264 | ||
5265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
5266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5267 | { | |
5268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5269 | result = (int)(arg1)->GetItemHeight(); | |
5270 | ||
5271 | wxPyEndAllowThreads(__tstate); | |
5272 | if (PyErr_Occurred()) SWIG_fail; | |
5273 | } | |
5274 | resultobj = PyInt_FromLong((long)result); | |
5275 | return resultobj; | |
5276 | fail: | |
5277 | return NULL; | |
5278 | } | |
5279 | ||
5280 | ||
5281 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5282 | PyObject *resultobj; | |
5283 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5284 | wxPoint *arg2 = 0 ; | |
5285 | int result; | |
5286 | wxPoint temp2 ; | |
5287 | PyObject * obj0 = 0 ; | |
5288 | PyObject * obj1 = 0 ; | |
5289 | char *kwnames[] = { | |
5290 | (char *) "self",(char *) "pt", NULL | |
5291 | }; | |
5292 | ||
5293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
5294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5295 | { | |
5296 | arg2 = &temp2; | |
5297 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5298 | } | |
5299 | { | |
5300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5301 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
5302 | ||
5303 | wxPyEndAllowThreads(__tstate); | |
5304 | if (PyErr_Occurred()) SWIG_fail; | |
5305 | } | |
5306 | resultobj = PyInt_FromLong((long)result); | |
5307 | return resultobj; | |
5308 | fail: | |
5309 | return NULL; | |
5310 | } | |
5311 | ||
5312 | ||
5313 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5314 | PyObject *resultobj; | |
5315 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
5316 | int arg2 ; |
5317 | int arg3 ; | |
d14a1e28 RD |
5318 | int result; |
5319 | PyObject * obj0 = 0 ; | |
5320 | char *kwnames[] = { | |
5321 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5322 | }; | |
5323 | ||
5324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:CheckListBox_HitTestXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5326 | { | |
5327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5328 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
5329 | ||
5330 | wxPyEndAllowThreads(__tstate); | |
5331 | if (PyErr_Occurred()) SWIG_fail; | |
5332 | } | |
5333 | resultobj = PyInt_FromLong((long)result); | |
5334 | return resultobj; | |
5335 | fail: | |
5336 | return NULL; | |
5337 | } | |
5338 | ||
5339 | ||
5340 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
5341 | PyObject *obj; | |
5342 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5343 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
5344 | Py_INCREF(obj); | |
5345 | return Py_BuildValue((char *)""); | |
5346 | } | |
5347 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { | |
5348 | PyObject *resultobj; | |
5349 | wxTextAttr *result; | |
5350 | ||
5351 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
5352 | { | |
5353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5354 | result = (wxTextAttr *)new wxTextAttr(); | |
5355 | ||
5356 | wxPyEndAllowThreads(__tstate); | |
5357 | if (PyErr_Occurred()) SWIG_fail; | |
5358 | } | |
5359 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
5360 | return resultobj; | |
5361 | fail: | |
5362 | return NULL; | |
5363 | } | |
5364 | ||
5365 | ||
5366 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
5367 | PyObject *resultobj; | |
5368 | wxColour *arg1 = 0 ; | |
5369 | wxColour const &arg2_defvalue = wxNullColour ; | |
5370 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
5371 | wxFont const &arg3_defvalue = wxNullFont ; | |
5372 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
5373 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
5374 | wxTextAttr *result; | |
5375 | wxColour temp1 ; | |
5376 | wxColour temp2 ; | |
5377 | PyObject * obj0 = 0 ; | |
5378 | PyObject * obj1 = 0 ; | |
5379 | PyObject * obj2 = 0 ; | |
5380 | ||
5381 | if(!PyArg_ParseTuple(args,(char *)"O|OOi:new_TextAttr",&obj0,&obj1,&obj2,&arg4)) goto fail; | |
5382 | { | |
5383 | arg1 = &temp1; | |
5384 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5385 | } | |
5386 | if (obj1) { | |
5387 | { | |
5388 | arg2 = &temp2; | |
5389 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5390 | } | |
5391 | } | |
5392 | if (obj2) { | |
5393 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5394 | if (arg3 == NULL) { | |
5395 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5396 | } | |
5397 | } | |
5398 | { | |
5399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5400 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
5401 | ||
5402 | wxPyEndAllowThreads(__tstate); | |
5403 | if (PyErr_Occurred()) SWIG_fail; | |
5404 | } | |
5405 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
5406 | return resultobj; | |
5407 | fail: | |
5408 | return NULL; | |
5409 | } | |
5410 | ||
5411 | ||
5412 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
5413 | int argc; | |
5414 | PyObject *argv[5]; | |
5415 | int ii; | |
5416 | ||
5417 | argc = PyObject_Length(args); | |
5418 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
5419 | argv[ii] = PyTuple_GetItem(args,ii); | |
5420 | } | |
5421 | if (argc == 0) { | |
5422 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
5423 | } | |
5424 | if ((argc >= 1) && (argc <= 4)) { | |
5425 | int _v; | |
5426 | { | |
5427 | _v = wxColour_typecheck(argv[0]); | |
5428 | } | |
5429 | if (_v) { | |
5430 | if (argc <= 1) { | |
5431 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5432 | } | |
5433 | { | |
5434 | _v = wxColour_typecheck(argv[1]); | |
5435 | } | |
5436 | if (_v) { | |
5437 | if (argc <= 2) { | |
5438 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5439 | } | |
5440 | { | |
5441 | void *ptr; | |
5442 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
5443 | _v = 0; | |
5444 | PyErr_Clear(); | |
5445 | } else { | |
5446 | _v = 1; | |
5447 | } | |
5448 | } | |
5449 | if (_v) { | |
5450 | if (argc <= 3) { | |
5451 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5452 | } | |
5453 | { | |
5454 | _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0; | |
5455 | } | |
5456 | if (_v) { | |
5457 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5458 | } | |
5459 | } | |
5460 | } | |
5461 | } | |
5462 | } | |
5463 | ||
5464 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
5465 | return NULL; | |
5466 | } | |
5467 | ||
5468 | ||
5469 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5470 | PyObject *resultobj; | |
5471 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5472 | PyObject * obj0 = 0 ; | |
5473 | char *kwnames[] = { | |
5474 | (char *) "self", NULL | |
5475 | }; | |
5476 | ||
5477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
5478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5479 | { | |
5480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5481 | (arg1)->Init(); | |
5482 | ||
5483 | wxPyEndAllowThreads(__tstate); | |
5484 | if (PyErr_Occurred()) SWIG_fail; | |
5485 | } | |
5486 | Py_INCREF(Py_None); resultobj = Py_None; | |
5487 | return resultobj; | |
5488 | fail: | |
5489 | return NULL; | |
5490 | } | |
5491 | ||
5492 | ||
5493 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5494 | PyObject *resultobj; | |
5495 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5496 | wxColour *arg2 = 0 ; | |
5497 | wxColour temp2 ; | |
5498 | PyObject * obj0 = 0 ; | |
5499 | PyObject * obj1 = 0 ; | |
5500 | char *kwnames[] = { | |
5501 | (char *) "self",(char *) "colText", NULL | |
5502 | }; | |
5503 | ||
5504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
5505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5506 | { | |
5507 | arg2 = &temp2; | |
5508 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5509 | } | |
5510 | { | |
5511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5512 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
5513 | ||
5514 | wxPyEndAllowThreads(__tstate); | |
5515 | if (PyErr_Occurred()) SWIG_fail; | |
5516 | } | |
5517 | Py_INCREF(Py_None); resultobj = Py_None; | |
5518 | return resultobj; | |
5519 | fail: | |
5520 | return NULL; | |
5521 | } | |
5522 | ||
5523 | ||
5524 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5525 | PyObject *resultobj; | |
5526 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5527 | wxColour *arg2 = 0 ; | |
5528 | wxColour temp2 ; | |
5529 | PyObject * obj0 = 0 ; | |
5530 | PyObject * obj1 = 0 ; | |
5531 | char *kwnames[] = { | |
5532 | (char *) "self",(char *) "colBack", NULL | |
5533 | }; | |
5534 | ||
5535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
5536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5537 | { | |
5538 | arg2 = &temp2; | |
5539 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5540 | } | |
5541 | { | |
5542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5543 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
5544 | ||
5545 | wxPyEndAllowThreads(__tstate); | |
5546 | if (PyErr_Occurred()) SWIG_fail; | |
5547 | } | |
5548 | Py_INCREF(Py_None); resultobj = Py_None; | |
5549 | return resultobj; | |
5550 | fail: | |
5551 | return NULL; | |
5552 | } | |
5553 | ||
5554 | ||
5555 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5556 | PyObject *resultobj; | |
5557 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5558 | wxFont *arg2 = 0 ; | |
5559 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
5560 | PyObject * obj0 = 0 ; | |
5561 | PyObject * obj1 = 0 ; | |
5562 | char *kwnames[] = { | |
5563 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
5564 | }; | |
5565 | ||
5566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:TextAttr_SetFont",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5568 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5569 | if (arg2 == NULL) { | |
5570 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5571 | } | |
5572 | { | |
5573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5574 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
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_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5587 | PyObject *resultobj; | |
5588 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5589 | int arg2 ; | |
5590 | PyObject * obj0 = 0 ; | |
5591 | char *kwnames[] = { | |
5592 | (char *) "self",(char *) "alignment", NULL | |
5593 | }; | |
5594 | ||
5595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetAlignment",kwnames,&obj0,&arg2)) goto fail; | |
5596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5597 | { | |
5598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5599 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
5600 | ||
5601 | wxPyEndAllowThreads(__tstate); | |
5602 | if (PyErr_Occurred()) SWIG_fail; | |
5603 | } | |
5604 | Py_INCREF(Py_None); resultobj = Py_None; | |
5605 | return resultobj; | |
5606 | fail: | |
5607 | return NULL; | |
5608 | } | |
5609 | ||
5610 | ||
5611 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5612 | PyObject *resultobj; | |
5613 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5614 | wxArrayInt *arg2 = 0 ; | |
5615 | PyObject * obj0 = 0 ; | |
5616 | PyObject * obj1 = 0 ; | |
5617 | char *kwnames[] = { | |
5618 | (char *) "self",(char *) "tabs", NULL | |
5619 | }; | |
5620 | ||
5621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
5622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5623 | { | |
5624 | if (! PySequence_Check(obj1)) { | |
5625 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
5626 | SWIG_fail; | |
5627 | } | |
5628 | arg2 = new wxArrayInt; | |
5629 | int i, len=PySequence_Length(obj1); | |
5630 | for (i=0; i<len; i++) { | |
5631 | PyObject* item = PySequence_GetItem(obj1, i); | |
5632 | PyObject* number = PyNumber_Int(item); | |
5633 | arg2->Add(PyInt_AS_LONG(number)); | |
5634 | Py_DECREF(item); | |
5635 | Py_DECREF(number); | |
5636 | } | |
5637 | } | |
5638 | { | |
5639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5640 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
5641 | ||
5642 | wxPyEndAllowThreads(__tstate); | |
5643 | if (PyErr_Occurred()) SWIG_fail; | |
5644 | } | |
5645 | Py_INCREF(Py_None); resultobj = Py_None; | |
5646 | { | |
5647 | if (arg2) delete arg2; | |
5648 | } | |
5649 | return resultobj; | |
5650 | fail: | |
5651 | { | |
5652 | if (arg2) delete arg2; | |
5653 | } | |
5654 | return NULL; | |
5655 | } | |
5656 | ||
5657 | ||
5658 | static PyObject *_wrap_TextAttr_SetLeftIndent(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_SetLeftIndent",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)->SetLeftIndent(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_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5684 | PyObject *resultobj; | |
5685 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5686 | int arg2 ; | |
5687 | PyObject * obj0 = 0 ; | |
5688 | char *kwnames[] = { | |
5689 | (char *) "self",(char *) "indent", NULL | |
5690 | }; | |
5691 | ||
5692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetRightIndent",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)->SetRightIndent(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_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5709 | PyObject *resultobj; | |
5710 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5711 | long arg2 ; | |
5712 | PyObject * obj0 = 0 ; | |
5713 | char *kwnames[] = { | |
5714 | (char *) "self",(char *) "flags", NULL | |
5715 | }; | |
5716 | ||
5717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextAttr_SetFlags",kwnames,&obj0,&arg2)) 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 | (arg1)->SetFlags(arg2); | |
5722 | ||
5723 | wxPyEndAllowThreads(__tstate); | |
5724 | if (PyErr_Occurred()) SWIG_fail; | |
5725 | } | |
5726 | Py_INCREF(Py_None); resultobj = Py_None; | |
5727 | return resultobj; | |
5728 | fail: | |
5729 | return NULL; | |
5730 | } | |
5731 | ||
5732 | ||
5733 | static PyObject *_wrap_TextAttr_HasTextColour(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_HasTextColour",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)->HasTextColour(); | |
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_HasBackgroundColour(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_HasBackgroundColour",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)->HasBackgroundColour(); | |
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_HasFont(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_HasFont",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)->HasFont(); | |
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_HasAlignment(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_HasAlignment",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)->HasAlignment(); | |
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_HasTabs(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_HasTabs",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)->HasTabs(); | |
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_HasLeftIndent(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_HasLeftIndent",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)->HasLeftIndent(); | |
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_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5884 | PyObject *resultobj; | |
5885 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5886 | bool result; | |
5887 | PyObject * obj0 = 0 ; | |
5888 | char *kwnames[] = { | |
5889 | (char *) "self", NULL | |
5890 | }; | |
5891 | ||
5892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
5893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5894 | { | |
5895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5896 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
5897 | ||
5898 | wxPyEndAllowThreads(__tstate); | |
5899 | if (PyErr_Occurred()) SWIG_fail; | |
5900 | } | |
5901 | resultobj = PyInt_FromLong((long)result); | |
5902 | return resultobj; | |
5903 | fail: | |
5904 | return NULL; | |
5905 | } | |
5906 | ||
5907 | ||
5908 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5909 | PyObject *resultobj; | |
5910 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5911 | long arg2 ; | |
5912 | bool result; | |
5913 | PyObject * obj0 = 0 ; | |
5914 | char *kwnames[] = { | |
5915 | (char *) "self",(char *) "flag", NULL | |
5916 | }; | |
5917 | ||
5918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextAttr_HasFlag",kwnames,&obj0,&arg2)) 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 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
5923 | ||
5924 | wxPyEndAllowThreads(__tstate); | |
5925 | if (PyErr_Occurred()) SWIG_fail; | |
5926 | } | |
5927 | resultobj = PyInt_FromLong((long)result); | |
5928 | return resultobj; | |
5929 | fail: | |
5930 | return NULL; | |
5931 | } | |
5932 | ||
5933 | ||
5934 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5935 | PyObject *resultobj; | |
5936 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5937 | wxColour *result; | |
5938 | PyObject * obj0 = 0 ; | |
5939 | char *kwnames[] = { | |
5940 | (char *) "self", NULL | |
5941 | }; | |
5942 | ||
5943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
5944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5945 | { | |
5946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5947 | { | |
5948 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
5949 | result = (wxColour *) &_result_ref; | |
5950 | } | |
5951 | ||
5952 | wxPyEndAllowThreads(__tstate); | |
5953 | if (PyErr_Occurred()) SWIG_fail; | |
5954 | } | |
5955 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
5956 | return resultobj; | |
5957 | fail: | |
5958 | return NULL; | |
5959 | } | |
5960 | ||
5961 | ||
5962 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5963 | PyObject *resultobj; | |
5964 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5965 | wxColour *result; | |
5966 | PyObject * obj0 = 0 ; | |
5967 | char *kwnames[] = { | |
5968 | (char *) "self", NULL | |
5969 | }; | |
5970 | ||
5971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
5972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5973 | { | |
5974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5975 | { | |
5976 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
5977 | result = (wxColour *) &_result_ref; | |
5978 | } | |
5979 | ||
5980 | wxPyEndAllowThreads(__tstate); | |
5981 | if (PyErr_Occurred()) SWIG_fail; | |
5982 | } | |
5983 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
5984 | return resultobj; | |
5985 | fail: | |
5986 | return NULL; | |
5987 | } | |
5988 | ||
5989 | ||
5990 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5991 | PyObject *resultobj; | |
5992 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5993 | wxFont *result; | |
5994 | PyObject * obj0 = 0 ; | |
5995 | char *kwnames[] = { | |
5996 | (char *) "self", NULL | |
5997 | }; | |
5998 | ||
5999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
6000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6001 | { | |
6002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6003 | { | |
6004 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
6005 | result = (wxFont *) &_result_ref; | |
6006 | } | |
6007 | ||
6008 | wxPyEndAllowThreads(__tstate); | |
6009 | if (PyErr_Occurred()) SWIG_fail; | |
6010 | } | |
6011 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
6012 | return resultobj; | |
6013 | fail: | |
6014 | return NULL; | |
6015 | } | |
6016 | ||
6017 | ||
6018 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6019 | PyObject *resultobj; | |
6020 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6021 | int result; | |
6022 | PyObject * obj0 = 0 ; | |
6023 | char *kwnames[] = { | |
6024 | (char *) "self", NULL | |
6025 | }; | |
6026 | ||
6027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",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 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
6032 | ||
6033 | wxPyEndAllowThreads(__tstate); | |
6034 | if (PyErr_Occurred()) SWIG_fail; | |
6035 | } | |
6036 | resultobj = PyInt_FromLong((long)result); | |
6037 | return resultobj; | |
6038 | fail: | |
6039 | return NULL; | |
6040 | } | |
6041 | ||
6042 | ||
6043 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6044 | PyObject *resultobj; | |
6045 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6046 | wxArrayInt *result; | |
6047 | PyObject * obj0 = 0 ; | |
6048 | char *kwnames[] = { | |
6049 | (char *) "self", NULL | |
6050 | }; | |
6051 | ||
6052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
6053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6054 | { | |
6055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6056 | { | |
6057 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
6058 | result = (wxArrayInt *) &_result_ref; | |
6059 | } | |
6060 | ||
6061 | wxPyEndAllowThreads(__tstate); | |
6062 | if (PyErr_Occurred()) SWIG_fail; | |
6063 | } | |
6064 | { | |
6065 | resultobj = PyList_New(0); | |
6066 | size_t idx; | |
6067 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
6068 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
6069 | PyList_Append(resultobj, val); | |
6070 | Py_DECREF(val); | |
6071 | } | |
6072 | } | |
6073 | return resultobj; | |
6074 | fail: | |
6075 | return NULL; | |
6076 | } | |
6077 | ||
6078 | ||
6079 | static PyObject *_wrap_TextAttr_GetLeftIndent(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_GetLeftIndent",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)->GetLeftIndent(); | |
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_GetRightIndent(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_GetRightIndent",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)->GetRightIndent(); | |
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_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6130 | PyObject *resultobj; | |
6131 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6132 | long result; | |
6133 | PyObject * obj0 = 0 ; | |
6134 | char *kwnames[] = { | |
6135 | (char *) "self", NULL | |
6136 | }; | |
6137 | ||
6138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",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 = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
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_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6155 | PyObject *resultobj; | |
6156 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6157 | bool result; | |
6158 | PyObject * obj0 = 0 ; | |
6159 | char *kwnames[] = { | |
6160 | (char *) "self", NULL | |
6161 | }; | |
6162 | ||
6163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
6164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6165 | { | |
6166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6167 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
6168 | ||
6169 | wxPyEndAllowThreads(__tstate); | |
6170 | if (PyErr_Occurred()) SWIG_fail; | |
6171 | } | |
6172 | resultobj = PyInt_FromLong((long)result); | |
6173 | return resultobj; | |
6174 | fail: | |
6175 | return NULL; | |
6176 | } | |
6177 | ||
6178 | ||
6179 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6180 | PyObject *resultobj; | |
6181 | wxTextAttr *arg1 = 0 ; | |
6182 | wxTextAttr *arg2 = 0 ; | |
6183 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
6184 | wxTextAttr result; | |
6185 | PyObject * obj0 = 0 ; | |
6186 | PyObject * obj1 = 0 ; | |
6187 | PyObject * obj2 = 0 ; | |
6188 | char *kwnames[] = { | |
6189 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
6190 | }; | |
6191 | ||
6192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6194 | if (arg1 == NULL) { | |
6195 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6196 | } | |
6197 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6198 | if (arg2 == NULL) { | |
6199 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6200 | } | |
6201 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6202 | { | |
6203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6204 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
6205 | ||
6206 | wxPyEndAllowThreads(__tstate); | |
6207 | if (PyErr_Occurred()) SWIG_fail; | |
6208 | } | |
6209 | { | |
6210 | wxTextAttr * resultptr; | |
6211 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
6212 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
6213 | } | |
6214 | return resultobj; | |
6215 | fail: | |
6216 | return NULL; | |
6217 | } | |
6218 | ||
6219 | ||
6220 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
6221 | PyObject *obj; | |
6222 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6223 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
6224 | Py_INCREF(obj); | |
6225 | return Py_BuildValue((char *)""); | |
6226 | } | |
6227 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6228 | PyObject *resultobj; | |
6229 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 6230 | int arg2 ; |
d14a1e28 RD |
6231 | wxString const &arg3_defvalue = wxPyEmptyString ; |
6232 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6233 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6234 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6235 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6236 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6237 | long arg6 = (long) 0 ; | |
6238 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6239 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6240 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
6241 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6242 | wxTextCtrl *result; | |
e811c8ce | 6243 | bool temp3 = False ; |
d14a1e28 RD |
6244 | wxPoint temp4 ; |
6245 | wxSize temp5 ; | |
e811c8ce | 6246 | bool temp8 = False ; |
d14a1e28 RD |
6247 | PyObject * obj0 = 0 ; |
6248 | PyObject * obj2 = 0 ; | |
6249 | PyObject * obj3 = 0 ; | |
6250 | PyObject * obj4 = 0 ; | |
6251 | PyObject * obj6 = 0 ; | |
6252 | PyObject * obj7 = 0 ; | |
6253 | char *kwnames[] = { | |
6254 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6255 | }; | |
6256 | ||
6257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_TextCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
6258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6259 | if (obj2) { | |
6260 | { | |
6261 | arg3 = wxString_in_helper(obj2); | |
6262 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6263 | temp3 = True; |
d14a1e28 RD |
6264 | } |
6265 | } | |
6266 | if (obj3) { | |
6267 | { | |
6268 | arg4 = &temp4; | |
6269 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6270 | } | |
6271 | } | |
6272 | if (obj4) { | |
6273 | { | |
6274 | arg5 = &temp5; | |
6275 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6276 | } | |
6277 | } | |
6278 | if (obj6) { | |
6279 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6280 | if (arg7 == NULL) { | |
6281 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6282 | } | |
6283 | } | |
6284 | if (obj7) { | |
6285 | { | |
6286 | arg8 = wxString_in_helper(obj7); | |
6287 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 6288 | temp8 = True; |
d14a1e28 RD |
6289 | } |
6290 | } | |
6291 | { | |
6292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6293 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6294 | ||
6295 | wxPyEndAllowThreads(__tstate); | |
6296 | if (PyErr_Occurred()) SWIG_fail; | |
6297 | } | |
6298 | { | |
6299 | resultobj = wxPyMake_wxObject(result); | |
6300 | } | |
6301 | { | |
6302 | if (temp3) | |
6303 | delete arg3; | |
6304 | } | |
6305 | { | |
6306 | if (temp8) | |
6307 | delete arg8; | |
6308 | } | |
6309 | return resultobj; | |
6310 | fail: | |
6311 | { | |
6312 | if (temp3) | |
6313 | delete arg3; | |
6314 | } | |
6315 | { | |
6316 | if (temp8) | |
6317 | delete arg8; | |
6318 | } | |
6319 | return NULL; | |
6320 | } | |
6321 | ||
6322 | ||
6323 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6324 | PyObject *resultobj; | |
6325 | wxTextCtrl *result; | |
6326 | char *kwnames[] = { | |
6327 | NULL | |
6328 | }; | |
6329 | ||
6330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
6331 | { | |
6332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6333 | result = (wxTextCtrl *)new wxTextCtrl(); | |
6334 | ||
6335 | wxPyEndAllowThreads(__tstate); | |
6336 | if (PyErr_Occurred()) SWIG_fail; | |
6337 | } | |
6338 | { | |
6339 | resultobj = wxPyMake_wxObject(result); | |
6340 | } | |
6341 | return resultobj; | |
6342 | fail: | |
6343 | return NULL; | |
6344 | } | |
6345 | ||
6346 | ||
6347 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6348 | PyObject *resultobj; | |
6349 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6350 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 6351 | int arg3 ; |
d14a1e28 RD |
6352 | wxString const &arg4_defvalue = wxPyEmptyString ; |
6353 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6354 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6355 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6356 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6357 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6358 | long arg7 = (long) 0 ; | |
6359 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6360 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6361 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
6362 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6363 | bool result; | |
e811c8ce | 6364 | bool temp4 = False ; |
d14a1e28 RD |
6365 | wxPoint temp5 ; |
6366 | wxSize temp6 ; | |
e811c8ce | 6367 | bool temp9 = False ; |
d14a1e28 RD |
6368 | PyObject * obj0 = 0 ; |
6369 | PyObject * obj1 = 0 ; | |
6370 | PyObject * obj3 = 0 ; | |
6371 | PyObject * obj4 = 0 ; | |
6372 | PyObject * obj5 = 0 ; | |
6373 | PyObject * obj7 = 0 ; | |
6374 | PyObject * obj8 = 0 ; | |
6375 | char *kwnames[] = { | |
6376 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6377 | }; | |
6378 | ||
6379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:TextCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
6380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6381 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6382 | if (obj3) { | |
6383 | { | |
6384 | arg4 = wxString_in_helper(obj3); | |
6385 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 6386 | temp4 = True; |
d14a1e28 RD |
6387 | } |
6388 | } | |
6389 | if (obj4) { | |
6390 | { | |
6391 | arg5 = &temp5; | |
6392 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6393 | } | |
6394 | } | |
6395 | if (obj5) { | |
6396 | { | |
6397 | arg6 = &temp6; | |
6398 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6399 | } | |
6400 | } | |
6401 | if (obj7) { | |
6402 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6403 | if (arg8 == NULL) { | |
6404 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6405 | } | |
6406 | } | |
6407 | if (obj8) { | |
6408 | { | |
6409 | arg9 = wxString_in_helper(obj8); | |
6410 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 6411 | temp9 = True; |
d14a1e28 RD |
6412 | } |
6413 | } | |
6414 | { | |
6415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6416 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6417 | ||
6418 | wxPyEndAllowThreads(__tstate); | |
6419 | if (PyErr_Occurred()) SWIG_fail; | |
6420 | } | |
6421 | resultobj = PyInt_FromLong((long)result); | |
6422 | { | |
6423 | if (temp4) | |
6424 | delete arg4; | |
6425 | } | |
6426 | { | |
6427 | if (temp9) | |
6428 | delete arg9; | |
6429 | } | |
6430 | return resultobj; | |
6431 | fail: | |
6432 | { | |
6433 | if (temp4) | |
6434 | delete arg4; | |
6435 | } | |
6436 | { | |
6437 | if (temp9) | |
6438 | delete arg9; | |
6439 | } | |
6440 | return NULL; | |
6441 | } | |
6442 | ||
6443 | ||
6444 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6445 | PyObject *resultobj; | |
6446 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6447 | wxString result; | |
6448 | PyObject * obj0 = 0 ; | |
6449 | char *kwnames[] = { | |
6450 | (char *) "self", NULL | |
6451 | }; | |
6452 | ||
6453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
6454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6455 | { | |
6456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6457 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
6458 | ||
6459 | wxPyEndAllowThreads(__tstate); | |
6460 | if (PyErr_Occurred()) SWIG_fail; | |
6461 | } | |
6462 | { | |
6463 | #if wxUSE_UNICODE | |
6464 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6465 | #else | |
6466 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6467 | #endif | |
6468 | } | |
6469 | return resultobj; | |
6470 | fail: | |
6471 | return NULL; | |
6472 | } | |
6473 | ||
6474 | ||
6475 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6476 | PyObject *resultobj; | |
6477 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6478 | wxString *arg2 = 0 ; | |
e811c8ce | 6479 | bool temp2 = False ; |
d14a1e28 RD |
6480 | PyObject * obj0 = 0 ; |
6481 | PyObject * obj1 = 0 ; | |
6482 | char *kwnames[] = { | |
6483 | (char *) "self",(char *) "value", NULL | |
6484 | }; | |
6485 | ||
6486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
6487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6488 | { | |
6489 | arg2 = wxString_in_helper(obj1); | |
6490 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6491 | temp2 = True; |
d14a1e28 RD |
6492 | } |
6493 | { | |
6494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6495 | (arg1)->SetValue((wxString const &)*arg2); | |
6496 | ||
6497 | wxPyEndAllowThreads(__tstate); | |
6498 | if (PyErr_Occurred()) SWIG_fail; | |
6499 | } | |
6500 | Py_INCREF(Py_None); resultobj = Py_None; | |
6501 | { | |
6502 | if (temp2) | |
6503 | delete arg2; | |
6504 | } | |
6505 | return resultobj; | |
6506 | fail: | |
6507 | { | |
6508 | if (temp2) | |
6509 | delete arg2; | |
6510 | } | |
6511 | return NULL; | |
6512 | } | |
6513 | ||
6514 | ||
6515 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6516 | PyObject *resultobj; | |
6517 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6518 | long arg2 ; | |
6519 | long arg3 ; | |
6520 | wxString result; | |
6521 | PyObject * obj0 = 0 ; | |
6522 | char *kwnames[] = { | |
6523 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6524 | }; | |
6525 | ||
6526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_GetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
6527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6528 | { | |
6529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6530 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
6531 | ||
6532 | wxPyEndAllowThreads(__tstate); | |
6533 | if (PyErr_Occurred()) SWIG_fail; | |
6534 | } | |
6535 | { | |
6536 | #if wxUSE_UNICODE | |
6537 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6538 | #else | |
6539 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6540 | #endif | |
6541 | } | |
6542 | return resultobj; | |
6543 | fail: | |
6544 | return NULL; | |
6545 | } | |
6546 | ||
6547 | ||
6548 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6549 | PyObject *resultobj; | |
6550 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6551 | long arg2 ; | |
6552 | int result; | |
6553 | PyObject * obj0 = 0 ; | |
6554 | char *kwnames[] = { | |
6555 | (char *) "self",(char *) "lineNo", NULL | |
6556 | }; | |
6557 | ||
6558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_GetLineLength",kwnames,&obj0,&arg2)) goto fail; | |
6559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6560 | { | |
6561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6562 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
6563 | ||
6564 | wxPyEndAllowThreads(__tstate); | |
6565 | if (PyErr_Occurred()) SWIG_fail; | |
6566 | } | |
6567 | resultobj = PyInt_FromLong((long)result); | |
6568 | return resultobj; | |
6569 | fail: | |
6570 | return NULL; | |
6571 | } | |
6572 | ||
6573 | ||
6574 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6575 | PyObject *resultobj; | |
6576 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6577 | long arg2 ; | |
6578 | wxString result; | |
6579 | PyObject * obj0 = 0 ; | |
6580 | char *kwnames[] = { | |
6581 | (char *) "self",(char *) "lineNo", NULL | |
6582 | }; | |
6583 | ||
6584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_GetLineText",kwnames,&obj0,&arg2)) goto fail; | |
6585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6586 | { | |
6587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6588 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
6589 | ||
6590 | wxPyEndAllowThreads(__tstate); | |
6591 | if (PyErr_Occurred()) SWIG_fail; | |
6592 | } | |
6593 | { | |
6594 | #if wxUSE_UNICODE | |
6595 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6596 | #else | |
6597 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6598 | #endif | |
6599 | } | |
6600 | return resultobj; | |
6601 | fail: | |
6602 | return NULL; | |
6603 | } | |
6604 | ||
6605 | ||
6606 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6607 | PyObject *resultobj; | |
6608 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6609 | int result; | |
6610 | PyObject * obj0 = 0 ; | |
6611 | char *kwnames[] = { | |
6612 | (char *) "self", NULL | |
6613 | }; | |
6614 | ||
6615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",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 = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
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_IsModified(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_IsModified",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)->IsModified(); | |
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_IsEditable(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_IsEditable",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)->IsEditable(); | |
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_IsSingleLine(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_IsSingleLine",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)->IsSingleLine(); | |
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_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6707 | PyObject *resultobj; | |
6708 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6709 | bool result; | |
6710 | PyObject * obj0 = 0 ; | |
6711 | char *kwnames[] = { | |
6712 | (char *) "self", NULL | |
6713 | }; | |
6714 | ||
6715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
6716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6717 | { | |
6718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6719 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
6720 | ||
6721 | wxPyEndAllowThreads(__tstate); | |
6722 | if (PyErr_Occurred()) SWIG_fail; | |
6723 | } | |
6724 | resultobj = PyInt_FromLong((long)result); | |
6725 | return resultobj; | |
6726 | fail: | |
6727 | return NULL; | |
6728 | } | |
6729 | ||
6730 | ||
6731 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6732 | PyObject *resultobj; | |
6733 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6734 | long *arg2 = (long *) 0 ; | |
6735 | long *arg3 = (long *) 0 ; | |
6736 | long temp2 ; | |
6737 | long temp3 ; | |
6738 | PyObject * obj0 = 0 ; | |
6739 | char *kwnames[] = { | |
6740 | (char *) "self", NULL | |
6741 | }; | |
6742 | ||
6743 | arg2 = &temp2; | |
6744 | arg3 = &temp3; | |
6745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
6746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6747 | { | |
6748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6749 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
6750 | ||
6751 | wxPyEndAllowThreads(__tstate); | |
6752 | if (PyErr_Occurred()) SWIG_fail; | |
6753 | } | |
6754 | Py_INCREF(Py_None); resultobj = Py_None; | |
6755 | { | |
6756 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
6757 | resultobj = t_output_helper(resultobj,o); | |
6758 | } | |
6759 | { | |
6760 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
6761 | resultobj = t_output_helper(resultobj,o); | |
6762 | } | |
6763 | return resultobj; | |
6764 | fail: | |
6765 | return NULL; | |
6766 | } | |
6767 | ||
6768 | ||
6769 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6770 | PyObject *resultobj; | |
6771 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6772 | wxString result; | |
6773 | PyObject * obj0 = 0 ; | |
6774 | char *kwnames[] = { | |
6775 | (char *) "self", NULL | |
6776 | }; | |
6777 | ||
6778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
6779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6780 | { | |
6781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6782 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
6783 | ||
6784 | wxPyEndAllowThreads(__tstate); | |
6785 | if (PyErr_Occurred()) SWIG_fail; | |
6786 | } | |
6787 | { | |
6788 | #if wxUSE_UNICODE | |
6789 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6790 | #else | |
6791 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6792 | #endif | |
6793 | } | |
6794 | return resultobj; | |
6795 | fail: | |
6796 | return NULL; | |
6797 | } | |
6798 | ||
6799 | ||
6800 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6801 | PyObject *resultobj; | |
6802 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6803 | PyObject * obj0 = 0 ; | |
6804 | char *kwnames[] = { | |
6805 | (char *) "self", NULL | |
6806 | }; | |
6807 | ||
6808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
6809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6810 | { | |
6811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6812 | (arg1)->Clear(); | |
6813 | ||
6814 | wxPyEndAllowThreads(__tstate); | |
6815 | if (PyErr_Occurred()) SWIG_fail; | |
6816 | } | |
6817 | Py_INCREF(Py_None); resultobj = Py_None; | |
6818 | return resultobj; | |
6819 | fail: | |
6820 | return NULL; | |
6821 | } | |
6822 | ||
6823 | ||
6824 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6825 | PyObject *resultobj; | |
6826 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6827 | long arg2 ; | |
6828 | long arg3 ; | |
6829 | wxString *arg4 = 0 ; | |
e811c8ce | 6830 | bool temp4 = False ; |
d14a1e28 RD |
6831 | PyObject * obj0 = 0 ; |
6832 | PyObject * obj3 = 0 ; | |
6833 | char *kwnames[] = { | |
6834 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
6835 | }; | |
6836 | ||
6837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:TextCtrl_Replace",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
6838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6839 | { | |
6840 | arg4 = wxString_in_helper(obj3); | |
6841 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 6842 | temp4 = True; |
d14a1e28 RD |
6843 | } |
6844 | { | |
6845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6846 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6847 | ||
6848 | wxPyEndAllowThreads(__tstate); | |
6849 | if (PyErr_Occurred()) SWIG_fail; | |
6850 | } | |
6851 | Py_INCREF(Py_None); resultobj = Py_None; | |
6852 | { | |
6853 | if (temp4) | |
6854 | delete arg4; | |
6855 | } | |
6856 | return resultobj; | |
6857 | fail: | |
6858 | { | |
6859 | if (temp4) | |
6860 | delete arg4; | |
6861 | } | |
6862 | return NULL; | |
6863 | } | |
6864 | ||
6865 | ||
6866 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6867 | PyObject *resultobj; | |
6868 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6869 | long arg2 ; | |
6870 | long arg3 ; | |
6871 | PyObject * obj0 = 0 ; | |
6872 | char *kwnames[] = { | |
6873 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6874 | }; | |
6875 | ||
6876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_Remove",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
6877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6878 | { | |
6879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6880 | (arg1)->Remove(arg2,arg3); | |
6881 | ||
6882 | wxPyEndAllowThreads(__tstate); | |
6883 | if (PyErr_Occurred()) SWIG_fail; | |
6884 | } | |
6885 | Py_INCREF(Py_None); resultobj = Py_None; | |
6886 | return resultobj; | |
6887 | fail: | |
6888 | return NULL; | |
6889 | } | |
6890 | ||
6891 | ||
6892 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6893 | PyObject *resultobj; | |
6894 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6895 | wxString *arg2 = 0 ; | |
6896 | bool result; | |
e811c8ce | 6897 | bool temp2 = False ; |
d14a1e28 RD |
6898 | PyObject * obj0 = 0 ; |
6899 | PyObject * obj1 = 0 ; | |
6900 | char *kwnames[] = { | |
6901 | (char *) "self",(char *) "file", NULL | |
6902 | }; | |
6903 | ||
6904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
6905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6906 | { | |
6907 | arg2 = wxString_in_helper(obj1); | |
6908 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6909 | temp2 = True; |
d14a1e28 RD |
6910 | } |
6911 | { | |
6912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6913 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
6914 | ||
6915 | wxPyEndAllowThreads(__tstate); | |
6916 | if (PyErr_Occurred()) SWIG_fail; | |
6917 | } | |
6918 | resultobj = PyInt_FromLong((long)result); | |
6919 | { | |
6920 | if (temp2) | |
6921 | delete arg2; | |
6922 | } | |
6923 | return resultobj; | |
6924 | fail: | |
6925 | { | |
6926 | if (temp2) | |
6927 | delete arg2; | |
6928 | } | |
6929 | return NULL; | |
6930 | } | |
6931 | ||
6932 | ||
6933 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6934 | PyObject *resultobj; | |
6935 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6936 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6937 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6938 | bool result; | |
e811c8ce | 6939 | bool temp2 = False ; |
d14a1e28 RD |
6940 | PyObject * obj0 = 0 ; |
6941 | PyObject * obj1 = 0 ; | |
6942 | char *kwnames[] = { | |
6943 | (char *) "self",(char *) "file", NULL | |
6944 | }; | |
6945 | ||
6946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
6947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6948 | if (obj1) { | |
6949 | { | |
6950 | arg2 = wxString_in_helper(obj1); | |
6951 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6952 | temp2 = True; |
d14a1e28 RD |
6953 | } |
6954 | } | |
6955 | { | |
6956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6957 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
6958 | ||
6959 | wxPyEndAllowThreads(__tstate); | |
6960 | if (PyErr_Occurred()) SWIG_fail; | |
6961 | } | |
6962 | resultobj = PyInt_FromLong((long)result); | |
6963 | { | |
6964 | if (temp2) | |
6965 | delete arg2; | |
6966 | } | |
6967 | return resultobj; | |
6968 | fail: | |
6969 | { | |
6970 | if (temp2) | |
6971 | delete arg2; | |
6972 | } | |
6973 | return NULL; | |
6974 | } | |
6975 | ||
6976 | ||
6977 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6978 | PyObject *resultobj; | |
6979 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6980 | PyObject * obj0 = 0 ; | |
6981 | char *kwnames[] = { | |
6982 | (char *) "self", NULL | |
6983 | }; | |
6984 | ||
6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
6986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6987 | { | |
6988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6989 | (arg1)->MarkDirty(); | |
6990 | ||
6991 | wxPyEndAllowThreads(__tstate); | |
6992 | if (PyErr_Occurred()) SWIG_fail; | |
6993 | } | |
6994 | Py_INCREF(Py_None); resultobj = Py_None; | |
6995 | return resultobj; | |
6996 | fail: | |
6997 | return NULL; | |
6998 | } | |
6999 | ||
7000 | ||
7001 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7002 | PyObject *resultobj; | |
7003 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7004 | PyObject * obj0 = 0 ; | |
7005 | char *kwnames[] = { | |
7006 | (char *) "self", NULL | |
7007 | }; | |
7008 | ||
7009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
7010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7011 | { | |
7012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7013 | (arg1)->DiscardEdits(); | |
7014 | ||
7015 | wxPyEndAllowThreads(__tstate); | |
7016 | if (PyErr_Occurred()) SWIG_fail; | |
7017 | } | |
7018 | Py_INCREF(Py_None); resultobj = Py_None; | |
7019 | return resultobj; | |
7020 | fail: | |
7021 | return NULL; | |
7022 | } | |
7023 | ||
7024 | ||
7025 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7026 | PyObject *resultobj; | |
7027 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7028 | unsigned long arg2 ; | |
7029 | PyObject * obj0 = 0 ; | |
7030 | PyObject * obj1 = 0 ; | |
7031 | char *kwnames[] = { | |
7032 | (char *) "self",(char *) "len", NULL | |
7033 | }; | |
7034 | ||
7035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
7036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7037 | arg2 = (unsigned long) PyInt_AsLong(obj1); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
7039 | { | |
7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7041 | (arg1)->SetMaxLength(arg2); | |
7042 | ||
7043 | wxPyEndAllowThreads(__tstate); | |
7044 | if (PyErr_Occurred()) SWIG_fail; | |
7045 | } | |
7046 | Py_INCREF(Py_None); resultobj = Py_None; | |
7047 | return resultobj; | |
7048 | fail: | |
7049 | return NULL; | |
7050 | } | |
7051 | ||
7052 | ||
7053 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7054 | PyObject *resultobj; | |
7055 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7056 | wxString *arg2 = 0 ; | |
e811c8ce | 7057 | bool temp2 = False ; |
d14a1e28 RD |
7058 | PyObject * obj0 = 0 ; |
7059 | PyObject * obj1 = 0 ; | |
7060 | char *kwnames[] = { | |
7061 | (char *) "self",(char *) "text", NULL | |
7062 | }; | |
7063 | ||
7064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
7065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7066 | { | |
7067 | arg2 = wxString_in_helper(obj1); | |
7068 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7069 | temp2 = True; |
d14a1e28 RD |
7070 | } |
7071 | { | |
7072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7073 | (arg1)->WriteText((wxString const &)*arg2); | |
7074 | ||
7075 | wxPyEndAllowThreads(__tstate); | |
7076 | if (PyErr_Occurred()) SWIG_fail; | |
7077 | } | |
7078 | Py_INCREF(Py_None); resultobj = Py_None; | |
7079 | { | |
7080 | if (temp2) | |
7081 | delete arg2; | |
7082 | } | |
7083 | return resultobj; | |
7084 | fail: | |
7085 | { | |
7086 | if (temp2) | |
7087 | delete arg2; | |
7088 | } | |
7089 | return NULL; | |
7090 | } | |
7091 | ||
7092 | ||
7093 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7094 | PyObject *resultobj; | |
7095 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7096 | wxString *arg2 = 0 ; | |
e811c8ce | 7097 | bool temp2 = False ; |
d14a1e28 RD |
7098 | PyObject * obj0 = 0 ; |
7099 | PyObject * obj1 = 0 ; | |
7100 | char *kwnames[] = { | |
7101 | (char *) "self",(char *) "text", NULL | |
7102 | }; | |
7103 | ||
7104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
7105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7106 | { | |
7107 | arg2 = wxString_in_helper(obj1); | |
7108 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7109 | temp2 = True; |
d14a1e28 RD |
7110 | } |
7111 | { | |
7112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7113 | (arg1)->AppendText((wxString const &)*arg2); | |
7114 | ||
7115 | wxPyEndAllowThreads(__tstate); | |
7116 | if (PyErr_Occurred()) SWIG_fail; | |
7117 | } | |
7118 | Py_INCREF(Py_None); resultobj = Py_None; | |
7119 | { | |
7120 | if (temp2) | |
7121 | delete arg2; | |
7122 | } | |
7123 | return resultobj; | |
7124 | fail: | |
7125 | { | |
7126 | if (temp2) | |
7127 | delete arg2; | |
7128 | } | |
7129 | return NULL; | |
7130 | } | |
7131 | ||
7132 | ||
7133 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7134 | PyObject *resultobj; | |
7135 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7136 | wxKeyEvent *arg2 = 0 ; | |
7137 | bool result; | |
7138 | PyObject * obj0 = 0 ; | |
7139 | PyObject * obj1 = 0 ; | |
7140 | char *kwnames[] = { | |
7141 | (char *) "self",(char *) "event", NULL | |
7142 | }; | |
7143 | ||
7144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
7145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7146 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7147 | if (arg2 == NULL) { | |
7148 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7149 | } | |
7150 | { | |
7151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7152 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
7153 | ||
7154 | wxPyEndAllowThreads(__tstate); | |
7155 | if (PyErr_Occurred()) SWIG_fail; | |
7156 | } | |
7157 | resultobj = PyInt_FromLong((long)result); | |
7158 | return resultobj; | |
7159 | fail: | |
7160 | return NULL; | |
7161 | } | |
7162 | ||
7163 | ||
7164 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7165 | PyObject *resultobj; | |
7166 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7167 | long arg2 ; | |
7168 | long arg3 ; | |
7169 | wxTextAttr *arg4 = 0 ; | |
7170 | bool result; | |
7171 | PyObject * obj0 = 0 ; | |
7172 | PyObject * obj3 = 0 ; | |
7173 | char *kwnames[] = { | |
7174 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
7175 | }; | |
7176 | ||
7177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:TextCtrl_SetStyle",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
7178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7179 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7180 | if (arg4 == NULL) { | |
7181 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7182 | } | |
7183 | { | |
7184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7185 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
7186 | ||
7187 | wxPyEndAllowThreads(__tstate); | |
7188 | if (PyErr_Occurred()) SWIG_fail; | |
7189 | } | |
7190 | resultobj = PyInt_FromLong((long)result); | |
7191 | return resultobj; | |
7192 | fail: | |
7193 | return NULL; | |
7194 | } | |
7195 | ||
7196 | ||
7197 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7198 | PyObject *resultobj; | |
7199 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7200 | long arg2 ; | |
7201 | wxTextAttr *arg3 = 0 ; | |
7202 | bool result; | |
7203 | PyObject * obj0 = 0 ; | |
7204 | PyObject * obj2 = 0 ; | |
7205 | char *kwnames[] = { | |
7206 | (char *) "self",(char *) "position",(char *) "style", NULL | |
7207 | }; | |
7208 | ||
7209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:TextCtrl_GetStyle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
7210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7211 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7212 | if (arg3 == NULL) { | |
7213 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7214 | } | |
7215 | { | |
7216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7217 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
7218 | ||
7219 | wxPyEndAllowThreads(__tstate); | |
7220 | if (PyErr_Occurred()) SWIG_fail; | |
7221 | } | |
7222 | resultobj = PyInt_FromLong((long)result); | |
7223 | return resultobj; | |
7224 | fail: | |
7225 | return NULL; | |
7226 | } | |
7227 | ||
7228 | ||
7229 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7230 | PyObject *resultobj; | |
7231 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7232 | wxTextAttr *arg2 = 0 ; | |
7233 | bool result; | |
7234 | PyObject * obj0 = 0 ; | |
7235 | PyObject * obj1 = 0 ; | |
7236 | char *kwnames[] = { | |
7237 | (char *) "self",(char *) "style", NULL | |
7238 | }; | |
7239 | ||
7240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
7241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7242 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7243 | if (arg2 == NULL) { | |
7244 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7245 | } | |
7246 | { | |
7247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7248 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
7249 | ||
7250 | wxPyEndAllowThreads(__tstate); | |
7251 | if (PyErr_Occurred()) SWIG_fail; | |
7252 | } | |
7253 | resultobj = PyInt_FromLong((long)result); | |
7254 | return resultobj; | |
7255 | fail: | |
7256 | return NULL; | |
7257 | } | |
7258 | ||
7259 | ||
7260 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7261 | PyObject *resultobj; | |
7262 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7263 | wxTextAttr *result; | |
7264 | PyObject * obj0 = 0 ; | |
7265 | char *kwnames[] = { | |
7266 | (char *) "self", NULL | |
7267 | }; | |
7268 | ||
7269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
7270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7271 | { | |
7272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7273 | { | |
7274 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
7275 | result = (wxTextAttr *) &_result_ref; | |
7276 | } | |
7277 | ||
7278 | wxPyEndAllowThreads(__tstate); | |
7279 | if (PyErr_Occurred()) SWIG_fail; | |
7280 | } | |
7281 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
7282 | return resultobj; | |
7283 | fail: | |
7284 | return NULL; | |
7285 | } | |
7286 | ||
7287 | ||
7288 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7289 | PyObject *resultobj; | |
7290 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7291 | long arg2 ; | |
7292 | long arg3 ; | |
7293 | long result; | |
7294 | PyObject * obj0 = 0 ; | |
7295 | char *kwnames[] = { | |
7296 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7297 | }; | |
7298 | ||
7299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_XYToPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7301 | { | |
7302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7303 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
7304 | ||
7305 | wxPyEndAllowThreads(__tstate); | |
7306 | if (PyErr_Occurred()) SWIG_fail; | |
7307 | } | |
7308 | resultobj = PyInt_FromLong((long)result); | |
7309 | return resultobj; | |
7310 | fail: | |
7311 | return NULL; | |
7312 | } | |
7313 | ||
7314 | ||
7315 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7316 | PyObject *resultobj; | |
7317 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7318 | long arg2 ; | |
7319 | long *arg3 = (long *) 0 ; | |
7320 | long *arg4 = (long *) 0 ; | |
7321 | long temp3 ; | |
7322 | long temp4 ; | |
7323 | PyObject * obj0 = 0 ; | |
7324 | char *kwnames[] = { | |
7325 | (char *) "self",(char *) "pos", NULL | |
7326 | }; | |
7327 | ||
7328 | arg3 = &temp3; | |
7329 | arg4 = &temp4; | |
7330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_PositionToXY",kwnames,&obj0,&arg2)) goto fail; | |
7331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7332 | { | |
7333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7334 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
7335 | ||
7336 | wxPyEndAllowThreads(__tstate); | |
7337 | if (PyErr_Occurred()) SWIG_fail; | |
7338 | } | |
7339 | Py_INCREF(Py_None); resultobj = Py_None; | |
7340 | { | |
7341 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7342 | resultobj = t_output_helper(resultobj,o); | |
7343 | } | |
7344 | { | |
7345 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
7346 | resultobj = t_output_helper(resultobj,o); | |
7347 | } | |
7348 | return resultobj; | |
7349 | fail: | |
7350 | return NULL; | |
7351 | } | |
7352 | ||
7353 | ||
7354 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7355 | PyObject *resultobj; | |
7356 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7357 | long arg2 ; | |
7358 | PyObject * obj0 = 0 ; | |
7359 | char *kwnames[] = { | |
7360 | (char *) "self",(char *) "pos", NULL | |
7361 | }; | |
7362 | ||
7363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_ShowPosition",kwnames,&obj0,&arg2)) goto fail; | |
7364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7365 | { | |
7366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7367 | (arg1)->ShowPosition(arg2); | |
7368 | ||
7369 | wxPyEndAllowThreads(__tstate); | |
7370 | if (PyErr_Occurred()) SWIG_fail; | |
7371 | } | |
7372 | Py_INCREF(Py_None); resultobj = Py_None; | |
7373 | return resultobj; | |
7374 | fail: | |
7375 | return NULL; | |
7376 | } | |
7377 | ||
7378 | ||
7379 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7380 | PyObject *resultobj; | |
7381 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7382 | PyObject * obj0 = 0 ; | |
7383 | char *kwnames[] = { | |
7384 | (char *) "self", NULL | |
7385 | }; | |
7386 | ||
7387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
7388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7389 | { | |
7390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7391 | (arg1)->Copy(); | |
7392 | ||
7393 | wxPyEndAllowThreads(__tstate); | |
7394 | if (PyErr_Occurred()) SWIG_fail; | |
7395 | } | |
7396 | Py_INCREF(Py_None); resultobj = Py_None; | |
7397 | return resultobj; | |
7398 | fail: | |
7399 | return NULL; | |
7400 | } | |
7401 | ||
7402 | ||
7403 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7404 | PyObject *resultobj; | |
7405 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7406 | PyObject * obj0 = 0 ; | |
7407 | char *kwnames[] = { | |
7408 | (char *) "self", NULL | |
7409 | }; | |
7410 | ||
7411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
7412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7413 | { | |
7414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7415 | (arg1)->Cut(); | |
7416 | ||
7417 | wxPyEndAllowThreads(__tstate); | |
7418 | if (PyErr_Occurred()) SWIG_fail; | |
7419 | } | |
7420 | Py_INCREF(Py_None); resultobj = Py_None; | |
7421 | return resultobj; | |
7422 | fail: | |
7423 | return NULL; | |
7424 | } | |
7425 | ||
7426 | ||
7427 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7428 | PyObject *resultobj; | |
7429 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7430 | PyObject * obj0 = 0 ; | |
7431 | char *kwnames[] = { | |
7432 | (char *) "self", NULL | |
7433 | }; | |
7434 | ||
7435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",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 | (arg1)->Paste(); | |
7440 | ||
7441 | wxPyEndAllowThreads(__tstate); | |
7442 | if (PyErr_Occurred()) SWIG_fail; | |
7443 | } | |
7444 | Py_INCREF(Py_None); resultobj = Py_None; | |
7445 | return resultobj; | |
7446 | fail: | |
7447 | return NULL; | |
7448 | } | |
7449 | ||
7450 | ||
7451 | static PyObject *_wrap_TextCtrl_CanCopy(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_CanCopy",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)->CanCopy(); | |
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_CanCut(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_CanCut",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)->CanCut(); | |
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_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7502 | PyObject *resultobj; | |
7503 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7504 | bool result; | |
7505 | PyObject * obj0 = 0 ; | |
7506 | char *kwnames[] = { | |
7507 | (char *) "self", NULL | |
7508 | }; | |
7509 | ||
7510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
7511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7512 | { | |
7513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7514 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
7515 | ||
7516 | wxPyEndAllowThreads(__tstate); | |
7517 | if (PyErr_Occurred()) SWIG_fail; | |
7518 | } | |
7519 | resultobj = PyInt_FromLong((long)result); | |
7520 | return resultobj; | |
7521 | fail: | |
7522 | return NULL; | |
7523 | } | |
7524 | ||
7525 | ||
7526 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7527 | PyObject *resultobj; | |
7528 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7529 | PyObject * obj0 = 0 ; | |
7530 | char *kwnames[] = { | |
7531 | (char *) "self", NULL | |
7532 | }; | |
7533 | ||
7534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
7535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7536 | { | |
7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7538 | (arg1)->Undo(); | |
7539 | ||
7540 | wxPyEndAllowThreads(__tstate); | |
7541 | if (PyErr_Occurred()) SWIG_fail; | |
7542 | } | |
7543 | Py_INCREF(Py_None); resultobj = Py_None; | |
7544 | return resultobj; | |
7545 | fail: | |
7546 | return NULL; | |
7547 | } | |
7548 | ||
7549 | ||
7550 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7551 | PyObject *resultobj; | |
7552 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7553 | PyObject * obj0 = 0 ; | |
7554 | char *kwnames[] = { | |
7555 | (char *) "self", NULL | |
7556 | }; | |
7557 | ||
7558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",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 | (arg1)->Redo(); | |
7563 | ||
7564 | wxPyEndAllowThreads(__tstate); | |
7565 | if (PyErr_Occurred()) SWIG_fail; | |
7566 | } | |
7567 | Py_INCREF(Py_None); resultobj = Py_None; | |
7568 | return resultobj; | |
7569 | fail: | |
7570 | return NULL; | |
7571 | } | |
7572 | ||
7573 | ||
7574 | static PyObject *_wrap_TextCtrl_CanUndo(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_CanUndo",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)->CanUndo(); | |
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_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7600 | PyObject *resultobj; | |
7601 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7602 | bool result; | |
7603 | PyObject * obj0 = 0 ; | |
7604 | char *kwnames[] = { | |
7605 | (char *) "self", NULL | |
7606 | }; | |
7607 | ||
7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) 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 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
7613 | ||
7614 | wxPyEndAllowThreads(__tstate); | |
7615 | if (PyErr_Occurred()) SWIG_fail; | |
7616 | } | |
7617 | resultobj = PyInt_FromLong((long)result); | |
7618 | return resultobj; | |
7619 | fail: | |
7620 | return NULL; | |
7621 | } | |
7622 | ||
7623 | ||
7624 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7625 | PyObject *resultobj; | |
7626 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7627 | long arg2 ; | |
7628 | PyObject * obj0 = 0 ; | |
7629 | char *kwnames[] = { | |
7630 | (char *) "self",(char *) "pos", NULL | |
7631 | }; | |
7632 | ||
7633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_SetInsertionPoint",kwnames,&obj0,&arg2)) goto fail; | |
7634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7635 | { | |
7636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7637 | (arg1)->SetInsertionPoint(arg2); | |
7638 | ||
7639 | wxPyEndAllowThreads(__tstate); | |
7640 | if (PyErr_Occurred()) SWIG_fail; | |
7641 | } | |
7642 | Py_INCREF(Py_None); resultobj = Py_None; | |
7643 | return resultobj; | |
7644 | fail: | |
7645 | return NULL; | |
7646 | } | |
7647 | ||
7648 | ||
7649 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7650 | PyObject *resultobj; | |
7651 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7652 | PyObject * obj0 = 0 ; | |
7653 | char *kwnames[] = { | |
7654 | (char *) "self", NULL | |
7655 | }; | |
7656 | ||
7657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",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 | (arg1)->SetInsertionPointEnd(); | |
7662 | ||
7663 | wxPyEndAllowThreads(__tstate); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | } | |
7666 | Py_INCREF(Py_None); resultobj = Py_None; | |
7667 | return resultobj; | |
7668 | fail: | |
7669 | return NULL; | |
7670 | } | |
7671 | ||
7672 | ||
7673 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(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_GetInsertionPoint",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)->GetInsertionPoint(); | |
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_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7699 | PyObject *resultobj; | |
7700 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7701 | long result; | |
7702 | PyObject * obj0 = 0 ; | |
7703 | char *kwnames[] = { | |
7704 | (char *) "self", NULL | |
7705 | }; | |
7706 | ||
7707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
7708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7709 | { | |
7710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7711 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
7712 | ||
7713 | wxPyEndAllowThreads(__tstate); | |
7714 | if (PyErr_Occurred()) SWIG_fail; | |
7715 | } | |
7716 | resultobj = PyInt_FromLong((long)result); | |
7717 | return resultobj; | |
7718 | fail: | |
7719 | return NULL; | |
7720 | } | |
7721 | ||
7722 | ||
7723 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7724 | PyObject *resultobj; | |
7725 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7726 | long arg2 ; | |
7727 | long arg3 ; | |
7728 | PyObject * obj0 = 0 ; | |
7729 | char *kwnames[] = { | |
7730 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7731 | }; | |
7732 | ||
7733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7735 | { | |
7736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7737 | (arg1)->SetSelection(arg2,arg3); | |
7738 | ||
7739 | wxPyEndAllowThreads(__tstate); | |
7740 | if (PyErr_Occurred()) SWIG_fail; | |
7741 | } | |
7742 | Py_INCREF(Py_None); resultobj = Py_None; | |
7743 | return resultobj; | |
7744 | fail: | |
7745 | return NULL; | |
7746 | } | |
7747 | ||
7748 | ||
7749 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7750 | PyObject *resultobj; | |
7751 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7752 | PyObject * obj0 = 0 ; | |
7753 | char *kwnames[] = { | |
7754 | (char *) "self", NULL | |
7755 | }; | |
7756 | ||
7757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
7758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7759 | { | |
7760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7761 | (arg1)->SelectAll(); | |
7762 | ||
7763 | wxPyEndAllowThreads(__tstate); | |
7764 | if (PyErr_Occurred()) SWIG_fail; | |
7765 | } | |
7766 | Py_INCREF(Py_None); resultobj = Py_None; | |
7767 | return resultobj; | |
7768 | fail: | |
7769 | return NULL; | |
7770 | } | |
7771 | ||
7772 | ||
7773 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7774 | PyObject *resultobj; | |
7775 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7776 | bool arg2 ; | |
7777 | PyObject * obj0 = 0 ; | |
7778 | PyObject * obj1 = 0 ; | |
7779 | char *kwnames[] = { | |
7780 | (char *) "self",(char *) "editable", NULL | |
7781 | }; | |
7782 | ||
7783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
7784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7785 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7786 | if (PyErr_Occurred()) SWIG_fail; | |
7787 | { | |
7788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7789 | (arg1)->SetEditable(arg2); | |
7790 | ||
7791 | wxPyEndAllowThreads(__tstate); | |
7792 | if (PyErr_Occurred()) SWIG_fail; | |
7793 | } | |
7794 | Py_INCREF(Py_None); resultobj = Py_None; | |
7795 | return resultobj; | |
7796 | fail: | |
7797 | return NULL; | |
7798 | } | |
7799 | ||
7800 | ||
7801 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7802 | PyObject *resultobj; | |
7803 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7804 | wxString *arg2 = 0 ; | |
e811c8ce | 7805 | bool temp2 = False ; |
d14a1e28 RD |
7806 | PyObject * obj0 = 0 ; |
7807 | PyObject * obj1 = 0 ; | |
7808 | char *kwnames[] = { | |
7809 | (char *) "self",(char *) "text", NULL | |
7810 | }; | |
7811 | ||
7812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
7813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7814 | { | |
7815 | arg2 = wxString_in_helper(obj1); | |
7816 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7817 | temp2 = True; |
d14a1e28 RD |
7818 | } |
7819 | { | |
7820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7821 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
7822 | ||
7823 | wxPyEndAllowThreads(__tstate); | |
7824 | if (PyErr_Occurred()) SWIG_fail; | |
7825 | } | |
7826 | Py_INCREF(Py_None); resultobj = Py_None; | |
7827 | { | |
7828 | if (temp2) | |
7829 | delete arg2; | |
7830 | } | |
7831 | return resultobj; | |
7832 | fail: | |
7833 | { | |
7834 | if (temp2) | |
7835 | delete arg2; | |
7836 | } | |
7837 | return NULL; | |
7838 | } | |
7839 | ||
7840 | ||
7841 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7842 | PyObject *resultobj; | |
7843 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7844 | long arg2 ; | |
7845 | long arg3 ; | |
7846 | wxString result; | |
7847 | PyObject * obj0 = 0 ; | |
7848 | char *kwnames[] = { | |
7849 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7850 | }; | |
7851 | ||
7852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_GetString",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7854 | { | |
7855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7856 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
7857 | ||
7858 | wxPyEndAllowThreads(__tstate); | |
7859 | if (PyErr_Occurred()) SWIG_fail; | |
7860 | } | |
7861 | { | |
7862 | #if wxUSE_UNICODE | |
7863 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7864 | #else | |
7865 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7866 | #endif | |
7867 | } | |
7868 | return resultobj; | |
7869 | fail: | |
7870 | return NULL; | |
7871 | } | |
7872 | ||
7873 | ||
7874 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7875 | PyObject *obj; | |
7876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7877 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
7878 | Py_INCREF(obj); | |
7879 | return Py_BuildValue((char *)""); | |
7880 | } | |
7881 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7882 | PyObject *resultobj; | |
7883 | int arg1 ; | |
7884 | wxMouseEvent *arg2 = 0 ; | |
7885 | long arg3 ; | |
7886 | long arg4 ; | |
7887 | wxTextUrlEvent *result; | |
7888 | PyObject * obj1 = 0 ; | |
7889 | char *kwnames[] = { | |
7890 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
7891 | }; | |
7892 | ||
7893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOll:new_TextUrlEvent",kwnames,&arg1,&obj1,&arg3,&arg4)) goto fail; | |
7894 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7895 | if (arg2 == NULL) { | |
7896 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7897 | } | |
7898 | { | |
7899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7900 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
7901 | ||
7902 | wxPyEndAllowThreads(__tstate); | |
7903 | if (PyErr_Occurred()) SWIG_fail; | |
7904 | } | |
7905 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
7906 | return resultobj; | |
7907 | fail: | |
7908 | return NULL; | |
7909 | } | |
7910 | ||
7911 | ||
7912 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7913 | PyObject *resultobj; | |
7914 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
7915 | wxMouseEvent *result; | |
7916 | PyObject * obj0 = 0 ; | |
7917 | char *kwnames[] = { | |
7918 | (char *) "self", NULL | |
7919 | }; | |
7920 | ||
7921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
7922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7923 | { | |
7924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7925 | { | |
7926 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
7927 | result = (wxMouseEvent *) &_result_ref; | |
7928 | } | |
7929 | ||
7930 | wxPyEndAllowThreads(__tstate); | |
7931 | if (PyErr_Occurred()) SWIG_fail; | |
7932 | } | |
7933 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
7934 | return resultobj; | |
7935 | fail: | |
7936 | return NULL; | |
7937 | } | |
7938 | ||
7939 | ||
7940 | static PyObject *_wrap_TextUrlEvent_GetURLStart(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_GetURLStart",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)->GetURLStart(); | |
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 *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7966 | PyObject *resultobj; | |
7967 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
7968 | long result; | |
7969 | PyObject * obj0 = 0 ; | |
7970 | char *kwnames[] = { | |
7971 | (char *) "self", NULL | |
7972 | }; | |
7973 | ||
7974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
7975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7976 | { | |
7977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7978 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
7979 | ||
7980 | wxPyEndAllowThreads(__tstate); | |
7981 | if (PyErr_Occurred()) SWIG_fail; | |
7982 | } | |
7983 | resultobj = PyInt_FromLong((long)result); | |
7984 | return resultobj; | |
7985 | fail: | |
7986 | return NULL; | |
7987 | } | |
7988 | ||
7989 | ||
7990 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
7991 | PyObject *obj; | |
7992 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7993 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
7994 | Py_INCREF(obj); | |
7995 | return Py_BuildValue((char *)""); | |
7996 | } | |
7997 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7998 | PyObject *resultobj; | |
7999 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 8000 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8001 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8002 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8003 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8004 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8005 | long arg5 = (long) wxSB_HORIZONTAL ; | |
8006 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
8007 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
8008 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
8009 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8010 | wxScrollBar *result; | |
8011 | wxPoint temp3 ; | |
8012 | wxSize temp4 ; | |
e811c8ce | 8013 | bool temp7 = False ; |
d14a1e28 RD |
8014 | PyObject * obj0 = 0 ; |
8015 | PyObject * obj2 = 0 ; | |
8016 | PyObject * obj3 = 0 ; | |
8017 | PyObject * obj5 = 0 ; | |
8018 | PyObject * obj6 = 0 ; | |
8019 | char *kwnames[] = { | |
8020 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8021 | }; | |
8022 | ||
8023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ScrollBar",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
8024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8025 | if (obj2) { | |
8026 | { | |
8027 | arg3 = &temp3; | |
8028 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8029 | } | |
8030 | } | |
8031 | if (obj3) { | |
8032 | { | |
8033 | arg4 = &temp4; | |
8034 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8035 | } | |
8036 | } | |
8037 | if (obj5) { | |
8038 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8039 | if (arg6 == NULL) { | |
8040 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8041 | } | |
8042 | } | |
8043 | if (obj6) { | |
8044 | { | |
8045 | arg7 = wxString_in_helper(obj6); | |
8046 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 8047 | temp7 = True; |
d14a1e28 RD |
8048 | } |
8049 | } | |
8050 | { | |
8051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8052 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
8053 | ||
8054 | wxPyEndAllowThreads(__tstate); | |
8055 | if (PyErr_Occurred()) SWIG_fail; | |
8056 | } | |
8057 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
8058 | { | |
8059 | if (temp7) | |
8060 | delete arg7; | |
8061 | } | |
8062 | return resultobj; | |
8063 | fail: | |
8064 | { | |
8065 | if (temp7) | |
8066 | delete arg7; | |
8067 | } | |
8068 | return NULL; | |
8069 | } | |
8070 | ||
8071 | ||
8072 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8073 | PyObject *resultobj; | |
8074 | wxScrollBar *result; | |
8075 | char *kwnames[] = { | |
8076 | NULL | |
8077 | }; | |
8078 | ||
8079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
8080 | { | |
8081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8082 | result = (wxScrollBar *)new wxScrollBar(); | |
8083 | ||
8084 | wxPyEndAllowThreads(__tstate); | |
8085 | if (PyErr_Occurred()) SWIG_fail; | |
8086 | } | |
8087 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
8088 | return resultobj; | |
8089 | fail: | |
8090 | return NULL; | |
8091 | } | |
8092 | ||
8093 | ||
8094 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8095 | PyObject *resultobj; | |
8096 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8097 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 8098 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8099 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8100 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8101 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8102 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8103 | long arg6 = (long) wxSB_HORIZONTAL ; | |
8104 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8105 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8106 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
8107 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8108 | bool result; | |
8109 | wxPoint temp4 ; | |
8110 | wxSize temp5 ; | |
e811c8ce | 8111 | bool temp8 = False ; |
d14a1e28 RD |
8112 | PyObject * obj0 = 0 ; |
8113 | PyObject * obj1 = 0 ; | |
8114 | PyObject * obj3 = 0 ; | |
8115 | PyObject * obj4 = 0 ; | |
8116 | PyObject * obj6 = 0 ; | |
8117 | PyObject * obj7 = 0 ; | |
8118 | char *kwnames[] = { | |
8119 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8120 | }; | |
8121 | ||
8122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ScrollBar_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
8123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8124 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8125 | if (obj3) { | |
8126 | { | |
8127 | arg4 = &temp4; | |
8128 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8129 | } | |
8130 | } | |
8131 | if (obj4) { | |
8132 | { | |
8133 | arg5 = &temp5; | |
8134 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8135 | } | |
8136 | } | |
8137 | if (obj6) { | |
8138 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8139 | if (arg7 == NULL) { | |
8140 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8141 | } | |
8142 | } | |
8143 | if (obj7) { | |
8144 | { | |
8145 | arg8 = wxString_in_helper(obj7); | |
8146 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 8147 | temp8 = True; |
d14a1e28 RD |
8148 | } |
8149 | } | |
8150 | { | |
8151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8152 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8153 | ||
8154 | wxPyEndAllowThreads(__tstate); | |
8155 | if (PyErr_Occurred()) SWIG_fail; | |
8156 | } | |
8157 | resultobj = PyInt_FromLong((long)result); | |
8158 | { | |
8159 | if (temp8) | |
8160 | delete arg8; | |
8161 | } | |
8162 | return resultobj; | |
8163 | fail: | |
8164 | { | |
8165 | if (temp8) | |
8166 | delete arg8; | |
8167 | } | |
8168 | return NULL; | |
8169 | } | |
8170 | ||
8171 | ||
8172 | static PyObject *_wrap_ScrollBar_GetThumbPosition(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_GetThumbPosition",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)->GetThumbPosition(); | |
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_GetThumbSize(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_GetThumbSize",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)->GetThumbSize(); | |
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_GetPageSize(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_GetPageSize",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)->GetPageSize(); | |
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_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8248 | PyObject *resultobj; | |
8249 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8250 | int result; | |
8251 | PyObject * obj0 = 0 ; | |
8252 | char *kwnames[] = { | |
8253 | (char *) "self", NULL | |
8254 | }; | |
8255 | ||
8256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",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 = (int)((wxScrollBar const *)arg1)->GetRange(); | |
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_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8273 | PyObject *resultobj; | |
8274 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8275 | bool result; | |
8276 | PyObject * obj0 = 0 ; | |
8277 | char *kwnames[] = { | |
8278 | (char *) "self", NULL | |
8279 | }; | |
8280 | ||
8281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) 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 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
8286 | ||
8287 | wxPyEndAllowThreads(__tstate); | |
8288 | if (PyErr_Occurred()) SWIG_fail; | |
8289 | } | |
8290 | resultobj = PyInt_FromLong((long)result); | |
8291 | return resultobj; | |
8292 | fail: | |
8293 | return NULL; | |
8294 | } | |
8295 | ||
8296 | ||
8297 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8298 | PyObject *resultobj; | |
8299 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8300 | int arg2 ; | |
8301 | PyObject * obj0 = 0 ; | |
8302 | char *kwnames[] = { | |
8303 | (char *) "self",(char *) "viewStart", NULL | |
8304 | }; | |
8305 | ||
8306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollBar_SetThumbPosition",kwnames,&obj0,&arg2)) goto fail; | |
8307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8308 | { | |
8309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8310 | (arg1)->SetThumbPosition(arg2); | |
8311 | ||
8312 | wxPyEndAllowThreads(__tstate); | |
8313 | if (PyErr_Occurred()) SWIG_fail; | |
8314 | } | |
8315 | Py_INCREF(Py_None); resultobj = Py_None; | |
8316 | return resultobj; | |
8317 | fail: | |
8318 | return NULL; | |
8319 | } | |
8320 | ||
8321 | ||
8322 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8323 | PyObject *resultobj; | |
8324 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8325 | int arg2 ; | |
8326 | int arg3 ; | |
8327 | int arg4 ; | |
8328 | int arg5 ; | |
e811c8ce | 8329 | bool arg6 = (bool) True ; |
d14a1e28 RD |
8330 | PyObject * obj0 = 0 ; |
8331 | PyObject * obj5 = 0 ; | |
8332 | char *kwnames[] = { | |
8333 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
8334 | }; | |
8335 | ||
8336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|O:ScrollBar_SetScrollbar",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
8337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8338 | if (obj5) { | |
8339 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
8340 | if (PyErr_Occurred()) SWIG_fail; | |
8341 | } | |
8342 | { | |
8343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8344 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
8345 | ||
8346 | wxPyEndAllowThreads(__tstate); | |
8347 | if (PyErr_Occurred()) SWIG_fail; | |
8348 | } | |
8349 | Py_INCREF(Py_None); resultobj = Py_None; | |
8350 | return resultobj; | |
8351 | fail: | |
8352 | return NULL; | |
8353 | } | |
8354 | ||
8355 | ||
8356 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
8357 | PyObject *obj; | |
8358 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8359 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
8360 | Py_INCREF(obj); | |
8361 | return Py_BuildValue((char *)""); | |
8362 | } | |
8363 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8364 | PyObject *resultobj; | |
8365 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 8366 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8367 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8368 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8369 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8370 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8371 | long arg5 = (long) wxSP_HORIZONTAL ; | |
8372 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
8373 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8374 | wxSpinButton *result; | |
8375 | wxPoint temp3 ; | |
8376 | wxSize temp4 ; | |
e811c8ce | 8377 | bool temp6 = False ; |
d14a1e28 RD |
8378 | PyObject * obj0 = 0 ; |
8379 | PyObject * obj2 = 0 ; | |
8380 | PyObject * obj3 = 0 ; | |
8381 | PyObject * obj5 = 0 ; | |
8382 | char *kwnames[] = { | |
8383 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8384 | }; | |
8385 | ||
8386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlO:new_SpinButton",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
8387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8388 | if (obj2) { | |
8389 | { | |
8390 | arg3 = &temp3; | |
8391 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8392 | } | |
8393 | } | |
8394 | if (obj3) { | |
8395 | { | |
8396 | arg4 = &temp4; | |
8397 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8398 | } | |
8399 | } | |
8400 | if (obj5) { | |
8401 | { | |
8402 | arg6 = wxString_in_helper(obj5); | |
8403 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 8404 | temp6 = True; |
d14a1e28 RD |
8405 | } |
8406 | } | |
8407 | { | |
8408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8409 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8410 | ||
8411 | wxPyEndAllowThreads(__tstate); | |
8412 | if (PyErr_Occurred()) SWIG_fail; | |
8413 | } | |
8414 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
8415 | { | |
8416 | if (temp6) | |
8417 | delete arg6; | |
8418 | } | |
8419 | return resultobj; | |
8420 | fail: | |
8421 | { | |
8422 | if (temp6) | |
8423 | delete arg6; | |
8424 | } | |
8425 | return NULL; | |
8426 | } | |
8427 | ||
8428 | ||
8429 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8430 | PyObject *resultobj; | |
8431 | wxSpinButton *result; | |
8432 | char *kwnames[] = { | |
8433 | NULL | |
8434 | }; | |
8435 | ||
8436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
8437 | { | |
8438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8439 | result = (wxSpinButton *)new wxSpinButton(); | |
8440 | ||
8441 | wxPyEndAllowThreads(__tstate); | |
8442 | if (PyErr_Occurred()) SWIG_fail; | |
8443 | } | |
8444 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
8445 | return resultobj; | |
8446 | fail: | |
8447 | return NULL; | |
8448 | } | |
8449 | ||
8450 | ||
8451 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8452 | PyObject *resultobj; | |
8453 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8454 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 8455 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8456 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8457 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8458 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8459 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8460 | long arg6 = (long) wxSP_HORIZONTAL ; | |
8461 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
8462 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8463 | bool result; | |
8464 | wxPoint temp4 ; | |
8465 | wxSize temp5 ; | |
e811c8ce | 8466 | bool temp7 = False ; |
d14a1e28 RD |
8467 | PyObject * obj0 = 0 ; |
8468 | PyObject * obj1 = 0 ; | |
8469 | PyObject * obj3 = 0 ; | |
8470 | PyObject * obj4 = 0 ; | |
8471 | PyObject * obj6 = 0 ; | |
8472 | char *kwnames[] = { | |
8473 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8474 | }; | |
8475 | ||
8476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlO:SpinButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
8477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8478 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8479 | if (obj3) { | |
8480 | { | |
8481 | arg4 = &temp4; | |
8482 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8483 | } | |
8484 | } | |
8485 | if (obj4) { | |
8486 | { | |
8487 | arg5 = &temp5; | |
8488 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8489 | } | |
8490 | } | |
8491 | if (obj6) { | |
8492 | { | |
8493 | arg7 = wxString_in_helper(obj6); | |
8494 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 8495 | temp7 = True; |
d14a1e28 RD |
8496 | } |
8497 | } | |
8498 | { | |
8499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8500 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8501 | ||
8502 | wxPyEndAllowThreads(__tstate); | |
8503 | if (PyErr_Occurred()) SWIG_fail; | |
8504 | } | |
8505 | resultobj = PyInt_FromLong((long)result); | |
8506 | { | |
8507 | if (temp7) | |
8508 | delete arg7; | |
8509 | } | |
8510 | return resultobj; | |
8511 | fail: | |
8512 | { | |
8513 | if (temp7) | |
8514 | delete arg7; | |
8515 | } | |
8516 | return NULL; | |
8517 | } | |
8518 | ||
8519 | ||
8520 | static PyObject *_wrap_SpinButton_GetValue(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_GetValue",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)->GetValue(); | |
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_GetMin(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_GetMin",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)->GetMin(); | |
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_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8571 | PyObject *resultobj; | |
8572 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8573 | int result; | |
8574 | PyObject * obj0 = 0 ; | |
8575 | char *kwnames[] = { | |
8576 | (char *) "self", NULL | |
8577 | }; | |
8578 | ||
8579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) 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 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
8584 | ||
8585 | wxPyEndAllowThreads(__tstate); | |
8586 | if (PyErr_Occurred()) SWIG_fail; | |
8587 | } | |
8588 | resultobj = PyInt_FromLong((long)result); | |
8589 | return resultobj; | |
8590 | fail: | |
8591 | return NULL; | |
8592 | } | |
8593 | ||
8594 | ||
8595 | static PyObject *_wrap_SpinButton_SetValue(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 *) "val", NULL | |
8602 | }; | |
8603 | ||
8604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetValue",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)->SetValue(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_SetMin(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 *) "minVal", NULL | |
8627 | }; | |
8628 | ||
8629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetMin",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)->SetMin(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_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8646 | PyObject *resultobj; | |
8647 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8648 | int arg2 ; | |
8649 | PyObject * obj0 = 0 ; | |
8650 | char *kwnames[] = { | |
8651 | (char *) "self",(char *) "maxVal", NULL | |
8652 | }; | |
8653 | ||
8654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetMax",kwnames,&obj0,&arg2)) goto fail; | |
8655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8656 | { | |
8657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8658 | (arg1)->SetMax(arg2); | |
8659 | ||
8660 | wxPyEndAllowThreads(__tstate); | |
8661 | if (PyErr_Occurred()) SWIG_fail; | |
8662 | } | |
8663 | Py_INCREF(Py_None); resultobj = Py_None; | |
8664 | return resultobj; | |
8665 | fail: | |
8666 | return NULL; | |
8667 | } | |
8668 | ||
8669 | ||
8670 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8671 | PyObject *resultobj; | |
8672 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8673 | int arg2 ; | |
8674 | int arg3 ; | |
8675 | PyObject * obj0 = 0 ; | |
8676 | char *kwnames[] = { | |
8677 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
8678 | }; | |
8679 | ||
8680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SpinButton_SetRange",kwnames,&obj0,&arg2,&arg3)) 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 | (arg1)->SetRange(arg2,arg3); | |
8685 | ||
8686 | wxPyEndAllowThreads(__tstate); | |
8687 | if (PyErr_Occurred()) SWIG_fail; | |
8688 | } | |
8689 | Py_INCREF(Py_None); resultobj = Py_None; | |
8690 | return resultobj; | |
8691 | fail: | |
8692 | return NULL; | |
8693 | } | |
8694 | ||
8695 | ||
8696 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8697 | PyObject *resultobj; | |
8698 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8699 | bool result; | |
8700 | PyObject * obj0 = 0 ; | |
8701 | char *kwnames[] = { | |
8702 | (char *) "self", NULL | |
8703 | }; | |
8704 | ||
8705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
8706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8707 | { | |
8708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8709 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
8710 | ||
8711 | wxPyEndAllowThreads(__tstate); | |
8712 | if (PyErr_Occurred()) SWIG_fail; | |
8713 | } | |
8714 | resultobj = PyInt_FromLong((long)result); | |
8715 | return resultobj; | |
8716 | fail: | |
8717 | return NULL; | |
8718 | } | |
8719 | ||
8720 | ||
8721 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
8722 | PyObject *obj; | |
8723 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8724 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
8725 | Py_INCREF(obj); | |
8726 | return Py_BuildValue((char *)""); | |
8727 | } | |
8728 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8729 | PyObject *resultobj; | |
8730 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 8731 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8732 | wxString const &arg3_defvalue = wxPyEmptyString ; |
8733 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8734 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8735 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8736 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8737 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8738 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
8739 | int arg7 = (int) 0 ; | |
8740 | int arg8 = (int) 100 ; | |
8741 | int arg9 = (int) 0 ; | |
8742 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
8743 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
8744 | wxSpinCtrl *result; | |
e811c8ce | 8745 | bool temp3 = False ; |
d14a1e28 RD |
8746 | wxPoint temp4 ; |
8747 | wxSize temp5 ; | |
e811c8ce | 8748 | bool temp10 = False ; |
d14a1e28 RD |
8749 | PyObject * obj0 = 0 ; |
8750 | PyObject * obj2 = 0 ; | |
8751 | PyObject * obj3 = 0 ; | |
8752 | PyObject * obj4 = 0 ; | |
8753 | PyObject * obj9 = 0 ; | |
8754 | char *kwnames[] = { | |
8755 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
8756 | }; | |
8757 | ||
8758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOOliiiO:new_SpinCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&arg7,&arg8,&arg9,&obj9)) goto fail; | |
8759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8760 | if (obj2) { | |
8761 | { | |
8762 | arg3 = wxString_in_helper(obj2); | |
8763 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8764 | temp3 = True; |
d14a1e28 RD |
8765 | } |
8766 | } | |
8767 | if (obj3) { | |
8768 | { | |
8769 | arg4 = &temp4; | |
8770 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8771 | } | |
8772 | } | |
8773 | if (obj4) { | |
8774 | { | |
8775 | arg5 = &temp5; | |
8776 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8777 | } | |
8778 | } | |
8779 | if (obj9) { | |
8780 | { | |
8781 | arg10 = wxString_in_helper(obj9); | |
8782 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 8783 | temp10 = True; |
d14a1e28 RD |
8784 | } |
8785 | } | |
8786 | { | |
8787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8788 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
8789 | ||
8790 | wxPyEndAllowThreads(__tstate); | |
8791 | if (PyErr_Occurred()) SWIG_fail; | |
8792 | } | |
8793 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
8794 | { | |
8795 | if (temp3) | |
8796 | delete arg3; | |
8797 | } | |
8798 | { | |
8799 | if (temp10) | |
8800 | delete arg10; | |
8801 | } | |
8802 | return resultobj; | |
8803 | fail: | |
8804 | { | |
8805 | if (temp3) | |
8806 | delete arg3; | |
8807 | } | |
8808 | { | |
8809 | if (temp10) | |
8810 | delete arg10; | |
8811 | } | |
8812 | return NULL; | |
8813 | } | |
8814 | ||
8815 | ||
8816 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8817 | PyObject *resultobj; | |
8818 | wxSpinCtrl *result; | |
8819 | char *kwnames[] = { | |
8820 | NULL | |
8821 | }; | |
8822 | ||
8823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
8824 | { | |
8825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8826 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
8827 | ||
8828 | wxPyEndAllowThreads(__tstate); | |
8829 | if (PyErr_Occurred()) SWIG_fail; | |
8830 | } | |
8831 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
8832 | return resultobj; | |
8833 | fail: | |
8834 | return NULL; | |
8835 | } | |
8836 | ||
8837 | ||
8838 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8839 | PyObject *resultobj; | |
8840 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
8841 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 8842 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8843 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8844 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8845 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8846 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8847 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8848 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8849 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
8850 | int arg8 = (int) 0 ; | |
8851 | int arg9 = (int) 100 ; | |
8852 | int arg10 = (int) 0 ; | |
8853 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
8854 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
8855 | bool result; | |
e811c8ce | 8856 | bool temp4 = False ; |
d14a1e28 RD |
8857 | wxPoint temp5 ; |
8858 | wxSize temp6 ; | |
e811c8ce | 8859 | bool temp11 = False ; |
d14a1e28 RD |
8860 | PyObject * obj0 = 0 ; |
8861 | PyObject * obj1 = 0 ; | |
8862 | PyObject * obj3 = 0 ; | |
8863 | PyObject * obj4 = 0 ; | |
8864 | PyObject * obj5 = 0 ; | |
8865 | PyObject * obj10 = 0 ; | |
8866 | char *kwnames[] = { | |
8867 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
8868 | }; | |
8869 | ||
8870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOOliiiO:SpinCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&arg8,&arg9,&arg10,&obj10)) goto fail; | |
8871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8872 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8873 | if (obj3) { | |
8874 | { | |
8875 | arg4 = wxString_in_helper(obj3); | |
8876 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8877 | temp4 = True; |
d14a1e28 RD |
8878 | } |
8879 | } | |
8880 | if (obj4) { | |
8881 | { | |
8882 | arg5 = &temp5; | |
8883 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8884 | } | |
8885 | } | |
8886 | if (obj5) { | |
8887 | { | |
8888 | arg6 = &temp6; | |
8889 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8890 | } | |
8891 | } | |
8892 | if (obj10) { | |
8893 | { | |
8894 | arg11 = wxString_in_helper(obj10); | |
8895 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 8896 | temp11 = True; |
d14a1e28 RD |
8897 | } |
8898 | } | |
8899 | { | |
8900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8901 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
8902 | ||
8903 | wxPyEndAllowThreads(__tstate); | |
8904 | if (PyErr_Occurred()) SWIG_fail; | |
8905 | } | |
8906 | resultobj = PyInt_FromLong((long)result); | |
8907 | { | |
8908 | if (temp4) | |
8909 | delete arg4; | |
8910 | } | |
8911 | { | |
8912 | if (temp11) | |
8913 | delete arg11; | |
8914 | } | |
8915 | return resultobj; | |
8916 | fail: | |
8917 | { | |
8918 | if (temp4) | |
8919 | delete arg4; | |
8920 | } | |
8921 | { | |
8922 | if (temp11) | |
8923 | delete arg11; | |
8924 | } | |
8925 | return NULL; | |
8926 | } | |
8927 | ||
8928 | ||
8929 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8930 | PyObject *resultobj; | |
8931 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
8932 | int result; | |
8933 | PyObject * obj0 = 0 ; | |
8934 | char *kwnames[] = { | |
8935 | (char *) "self", NULL | |
8936 | }; | |
8937 | ||
8938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) 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 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
8943 | ||
8944 | wxPyEndAllowThreads(__tstate); | |
8945 | if (PyErr_Occurred()) SWIG_fail; | |
8946 | } | |
8947 | resultobj = PyInt_FromLong((long)result); | |
8948 | return resultobj; | |
8949 | fail: | |
8950 | return NULL; | |
8951 | } | |
8952 | ||
8953 | ||
8954 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8955 | PyObject *resultobj; | |
8956 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
8957 | int arg2 ; | |
8958 | PyObject * obj0 = 0 ; | |
8959 | char *kwnames[] = { | |
8960 | (char *) "self",(char *) "value", NULL | |
8961 | }; | |
8962 | ||
8963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinCtrl_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
8964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8965 | { | |
8966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8967 | (arg1)->SetValue(arg2); | |
8968 | ||
8969 | wxPyEndAllowThreads(__tstate); | |
8970 | if (PyErr_Occurred()) SWIG_fail; | |
8971 | } | |
8972 | Py_INCREF(Py_None); resultobj = Py_None; | |
8973 | return resultobj; | |
8974 | fail: | |
8975 | return NULL; | |
8976 | } | |
8977 | ||
8978 | ||
8979 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8980 | PyObject *resultobj; | |
8981 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
8982 | wxString *arg2 = 0 ; | |
e811c8ce | 8983 | bool temp2 = False ; |
d14a1e28 RD |
8984 | PyObject * obj0 = 0 ; |
8985 | PyObject * obj1 = 0 ; | |
8986 | char *kwnames[] = { | |
8987 | (char *) "self",(char *) "text", NULL | |
8988 | }; | |
8989 | ||
8990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
8991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8992 | { | |
8993 | arg2 = wxString_in_helper(obj1); | |
8994 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8995 | temp2 = True; |
d14a1e28 RD |
8996 | } |
8997 | { | |
8998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8999 | (arg1)->SetValue((wxString const &)*arg2); | |
9000 | ||
9001 | wxPyEndAllowThreads(__tstate); | |
9002 | if (PyErr_Occurred()) SWIG_fail; | |
9003 | } | |
9004 | Py_INCREF(Py_None); resultobj = Py_None; | |
9005 | { | |
9006 | if (temp2) | |
9007 | delete arg2; | |
9008 | } | |
9009 | return resultobj; | |
9010 | fail: | |
9011 | { | |
9012 | if (temp2) | |
9013 | delete arg2; | |
9014 | } | |
9015 | return NULL; | |
9016 | } | |
9017 | ||
9018 | ||
9019 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9020 | PyObject *resultobj; | |
9021 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9022 | int arg2 ; | |
9023 | int arg3 ; | |
9024 | PyObject * obj0 = 0 ; | |
9025 | char *kwnames[] = { | |
9026 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
9027 | }; | |
9028 | ||
9029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SpinCtrl_SetRange",kwnames,&obj0,&arg2,&arg3)) 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 | (arg1)->SetRange(arg2,arg3); | |
9034 | ||
9035 | wxPyEndAllowThreads(__tstate); | |
9036 | if (PyErr_Occurred()) SWIG_fail; | |
9037 | } | |
9038 | Py_INCREF(Py_None); resultobj = Py_None; | |
9039 | return resultobj; | |
9040 | fail: | |
9041 | return NULL; | |
9042 | } | |
9043 | ||
9044 | ||
9045 | static PyObject *_wrap_SpinCtrl_GetMin(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_GetMin",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)->GetMin(); | |
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_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9071 | PyObject *resultobj; | |
9072 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9073 | int result; | |
9074 | PyObject * obj0 = 0 ; | |
9075 | char *kwnames[] = { | |
9076 | (char *) "self", NULL | |
9077 | }; | |
9078 | ||
9079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
9080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9081 | { | |
9082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9083 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
9084 | ||
9085 | wxPyEndAllowThreads(__tstate); | |
9086 | if (PyErr_Occurred()) SWIG_fail; | |
9087 | } | |
9088 | resultobj = PyInt_FromLong((long)result); | |
9089 | return resultobj; | |
9090 | fail: | |
9091 | return NULL; | |
9092 | } | |
9093 | ||
9094 | ||
9095 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9096 | PyObject *resultobj; | |
9097 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9098 | long arg2 ; | |
9099 | long arg3 ; | |
9100 | PyObject * obj0 = 0 ; | |
9101 | char *kwnames[] = { | |
9102 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9103 | }; | |
9104 | ||
9105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:SpinCtrl_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9107 | { | |
9108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9109 | wxSpinCtrl_SetSelection(arg1,arg2,arg3); | |
9110 | ||
9111 | wxPyEndAllowThreads(__tstate); | |
9112 | if (PyErr_Occurred()) SWIG_fail; | |
9113 | } | |
9114 | Py_INCREF(Py_None); resultobj = Py_None; | |
9115 | return resultobj; | |
9116 | fail: | |
9117 | return NULL; | |
9118 | } | |
9119 | ||
9120 | ||
9121 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
9122 | PyObject *obj; | |
9123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9124 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
9125 | Py_INCREF(obj); | |
9126 | return Py_BuildValue((char *)""); | |
9127 | } | |
9128 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9129 | PyObject *resultobj; | |
9130 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 9131 | int arg2 ; |
d14a1e28 RD |
9132 | wxString *arg3 = 0 ; |
9133 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9134 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9135 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9136 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9137 | int arg6 = (int) 0 ; | |
9138 | wxString *arg7 = (wxString *) NULL ; | |
9139 | int arg8 = (int) 0 ; | |
9140 | long arg9 = (long) wxRA_HORIZONTAL ; | |
9141 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
9142 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
9143 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
9144 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
9145 | wxRadioBox *result; | |
e811c8ce | 9146 | bool temp3 = False ; |
d14a1e28 RD |
9147 | wxPoint temp4 ; |
9148 | wxSize temp5 ; | |
e811c8ce | 9149 | bool temp10 = False ; |
d14a1e28 RD |
9150 | PyObject * obj0 = 0 ; |
9151 | PyObject * obj2 = 0 ; | |
9152 | PyObject * obj3 = 0 ; | |
9153 | PyObject * obj4 = 0 ; | |
9154 | PyObject * obj5 = 0 ; | |
9155 | PyObject * obj8 = 0 ; | |
9156 | PyObject * obj9 = 0 ; | |
9157 | char *kwnames[] = { | |
9158 | (char *) "parent",(char *) "id",(char *) "label",(char *) "point",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9159 | }; | |
9160 | ||
9161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOOilOO:new_RadioBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&arg8,&arg9,&obj8,&obj9)) goto fail; | |
9162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9163 | { | |
9164 | arg3 = wxString_in_helper(obj2); | |
9165 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9166 | temp3 = True; |
d14a1e28 RD |
9167 | } |
9168 | if (obj3) { | |
9169 | { | |
9170 | arg4 = &temp4; | |
9171 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9172 | } | |
9173 | } | |
9174 | if (obj4) { | |
9175 | { | |
9176 | arg5 = &temp5; | |
9177 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9178 | } | |
9179 | } | |
9180 | if (obj5) { | |
9181 | { | |
9182 | arg6 = PyList_Size(obj5); | |
9183 | arg7 = wxString_LIST_helper(obj5); | |
9184 | if (arg7 == NULL) SWIG_fail; | |
9185 | } | |
9186 | } | |
9187 | if (obj8) { | |
9188 | if ((SWIG_ConvertPtr(obj8,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9189 | if (arg10 == NULL) { | |
9190 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9191 | } | |
9192 | } | |
9193 | if (obj9) { | |
9194 | { | |
9195 | arg11 = wxString_in_helper(obj9); | |
9196 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 9197 | temp10 = True; |
d14a1e28 RD |
9198 | } |
9199 | } | |
9200 | { | |
9201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9202 | 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); | |
9203 | ||
9204 | wxPyEndAllowThreads(__tstate); | |
9205 | if (PyErr_Occurred()) SWIG_fail; | |
9206 | } | |
9207 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
9208 | { | |
9209 | if (temp3) | |
9210 | delete arg3; | |
9211 | } | |
9212 | { | |
9213 | if (arg7) delete [] arg7; | |
9214 | } | |
9215 | { | |
9216 | if (temp10) | |
9217 | delete arg11; | |
9218 | } | |
9219 | return resultobj; | |
9220 | fail: | |
9221 | { | |
9222 | if (temp3) | |
9223 | delete arg3; | |
9224 | } | |
9225 | { | |
9226 | if (arg7) delete [] arg7; | |
9227 | } | |
9228 | { | |
9229 | if (temp10) | |
9230 | delete arg11; | |
9231 | } | |
9232 | return NULL; | |
9233 | } | |
9234 | ||
9235 | ||
9236 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9237 | PyObject *resultobj; | |
9238 | wxRadioBox *result; | |
9239 | char *kwnames[] = { | |
9240 | NULL | |
9241 | }; | |
9242 | ||
9243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
9244 | { | |
9245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9246 | result = (wxRadioBox *)new wxRadioBox(); | |
9247 | ||
9248 | wxPyEndAllowThreads(__tstate); | |
9249 | if (PyErr_Occurred()) SWIG_fail; | |
9250 | } | |
9251 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
9252 | return resultobj; | |
9253 | fail: | |
9254 | return NULL; | |
9255 | } | |
9256 | ||
9257 | ||
9258 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9259 | PyObject *resultobj; | |
9260 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9261 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 9262 | int arg3 ; |
d14a1e28 RD |
9263 | wxString *arg4 = 0 ; |
9264 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9265 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9266 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9267 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9268 | int arg7 = (int) 0 ; | |
9269 | wxString *arg8 = (wxString *) NULL ; | |
9270 | int arg9 = (int) 0 ; | |
9271 | long arg10 = (long) wxRA_HORIZONTAL ; | |
9272 | wxValidator const &arg11_defvalue = wxDefaultValidator ; | |
9273 | wxValidator *arg11 = (wxValidator *) &arg11_defvalue ; | |
9274 | wxString const &arg12_defvalue = wxPyRadioBoxNameStr ; | |
9275 | wxString *arg12 = (wxString *) &arg12_defvalue ; | |
9276 | bool result; | |
e811c8ce | 9277 | bool temp4 = False ; |
d14a1e28 RD |
9278 | wxPoint temp5 ; |
9279 | wxSize temp6 ; | |
e811c8ce | 9280 | bool temp11 = False ; |
d14a1e28 RD |
9281 | PyObject * obj0 = 0 ; |
9282 | PyObject * obj1 = 0 ; | |
9283 | PyObject * obj3 = 0 ; | |
9284 | PyObject * obj4 = 0 ; | |
9285 | PyObject * obj5 = 0 ; | |
9286 | PyObject * obj6 = 0 ; | |
9287 | PyObject * obj9 = 0 ; | |
9288 | PyObject * obj10 = 0 ; | |
9289 | char *kwnames[] = { | |
9290 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "point",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9291 | }; | |
9292 | ||
9293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOOilOO:RadioBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&obj6,&arg9,&arg10,&obj9,&obj10)) goto fail; | |
9294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9295 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9296 | { | |
9297 | arg4 = wxString_in_helper(obj3); | |
9298 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 9299 | temp4 = True; |
d14a1e28 RD |
9300 | } |
9301 | if (obj4) { | |
9302 | { | |
9303 | arg5 = &temp5; | |
9304 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9305 | } | |
9306 | } | |
9307 | if (obj5) { | |
9308 | { | |
9309 | arg6 = &temp6; | |
9310 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9311 | } | |
9312 | } | |
9313 | if (obj6) { | |
9314 | { | |
9315 | arg7 = PyList_Size(obj6); | |
9316 | arg8 = wxString_LIST_helper(obj6); | |
9317 | if (arg8 == NULL) SWIG_fail; | |
9318 | } | |
9319 | } | |
9320 | if (obj9) { | |
9321 | if ((SWIG_ConvertPtr(obj9,(void **) &arg11, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9322 | if (arg11 == NULL) { | |
9323 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9324 | } | |
9325 | } | |
9326 | if (obj10) { | |
9327 | { | |
9328 | arg12 = wxString_in_helper(obj10); | |
9329 | if (arg12 == NULL) SWIG_fail; | |
e811c8ce | 9330 | temp11 = True; |
d14a1e28 RD |
9331 | } |
9332 | } | |
9333 | { | |
9334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9335 | 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); | |
9336 | ||
9337 | wxPyEndAllowThreads(__tstate); | |
9338 | if (PyErr_Occurred()) SWIG_fail; | |
9339 | } | |
9340 | resultobj = PyInt_FromLong((long)result); | |
9341 | { | |
9342 | if (temp4) | |
9343 | delete arg4; | |
9344 | } | |
9345 | { | |
9346 | if (arg8) delete [] arg8; | |
9347 | } | |
9348 | { | |
9349 | if (temp11) | |
9350 | delete arg12; | |
9351 | } | |
9352 | return resultobj; | |
9353 | fail: | |
9354 | { | |
9355 | if (temp4) | |
9356 | delete arg4; | |
9357 | } | |
9358 | { | |
9359 | if (arg8) delete [] arg8; | |
9360 | } | |
9361 | { | |
9362 | if (temp11) | |
9363 | delete arg12; | |
9364 | } | |
9365 | return NULL; | |
9366 | } | |
9367 | ||
9368 | ||
9369 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9370 | PyObject *resultobj; | |
9371 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9372 | int arg2 ; | |
9373 | PyObject * obj0 = 0 ; | |
9374 | char *kwnames[] = { | |
9375 | (char *) "self",(char *) "n", NULL | |
9376 | }; | |
9377 | ||
9378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:RadioBox_SetSelection",kwnames,&obj0,&arg2)) 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 | (arg1)->SetSelection(arg2); | |
9383 | ||
9384 | wxPyEndAllowThreads(__tstate); | |
9385 | if (PyErr_Occurred()) SWIG_fail; | |
9386 | } | |
9387 | Py_INCREF(Py_None); resultobj = Py_None; | |
9388 | return resultobj; | |
9389 | fail: | |
9390 | return NULL; | |
9391 | } | |
9392 | ||
9393 | ||
9394 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9395 | PyObject *resultobj; | |
9396 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9397 | int result; | |
9398 | PyObject * obj0 = 0 ; | |
9399 | char *kwnames[] = { | |
9400 | (char *) "self", NULL | |
9401 | }; | |
9402 | ||
9403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",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 = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
9408 | ||
9409 | wxPyEndAllowThreads(__tstate); | |
9410 | if (PyErr_Occurred()) SWIG_fail; | |
9411 | } | |
9412 | resultobj = PyInt_FromLong((long)result); | |
9413 | return resultobj; | |
9414 | fail: | |
9415 | return NULL; | |
9416 | } | |
9417 | ||
9418 | ||
9419 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9420 | PyObject *resultobj; | |
9421 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9422 | wxString result; | |
9423 | PyObject * obj0 = 0 ; | |
9424 | char *kwnames[] = { | |
9425 | (char *) "self", NULL | |
9426 | }; | |
9427 | ||
9428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
9429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9430 | { | |
9431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9432 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
9433 | ||
9434 | wxPyEndAllowThreads(__tstate); | |
9435 | if (PyErr_Occurred()) SWIG_fail; | |
9436 | } | |
9437 | { | |
9438 | #if wxUSE_UNICODE | |
9439 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9440 | #else | |
9441 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9442 | #endif | |
9443 | } | |
9444 | return resultobj; | |
9445 | fail: | |
9446 | return NULL; | |
9447 | } | |
9448 | ||
9449 | ||
9450 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9451 | PyObject *resultobj; | |
9452 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9453 | wxString *arg2 = 0 ; | |
9454 | bool result; | |
e811c8ce | 9455 | bool temp2 = False ; |
d14a1e28 RD |
9456 | PyObject * obj0 = 0 ; |
9457 | PyObject * obj1 = 0 ; | |
9458 | char *kwnames[] = { | |
9459 | (char *) "self",(char *) "s", NULL | |
9460 | }; | |
9461 | ||
9462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
9463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9464 | { | |
9465 | arg2 = wxString_in_helper(obj1); | |
9466 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9467 | temp2 = True; |
d14a1e28 RD |
9468 | } |
9469 | { | |
9470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9471 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
9472 | ||
9473 | wxPyEndAllowThreads(__tstate); | |
9474 | if (PyErr_Occurred()) SWIG_fail; | |
9475 | } | |
9476 | resultobj = PyInt_FromLong((long)result); | |
9477 | { | |
9478 | if (temp2) | |
9479 | delete arg2; | |
9480 | } | |
9481 | return resultobj; | |
9482 | fail: | |
9483 | { | |
9484 | if (temp2) | |
9485 | delete arg2; | |
9486 | } | |
9487 | return NULL; | |
9488 | } | |
9489 | ||
9490 | ||
9491 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9492 | PyObject *resultobj; | |
9493 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9494 | int result; | |
9495 | PyObject * obj0 = 0 ; | |
9496 | char *kwnames[] = { | |
9497 | (char *) "self", NULL | |
9498 | }; | |
9499 | ||
9500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
9501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9502 | { | |
9503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9504 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
9505 | ||
9506 | wxPyEndAllowThreads(__tstate); | |
9507 | if (PyErr_Occurred()) SWIG_fail; | |
9508 | } | |
9509 | resultobj = PyInt_FromLong((long)result); | |
9510 | return resultobj; | |
9511 | fail: | |
9512 | return NULL; | |
9513 | } | |
9514 | ||
9515 | ||
9516 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9517 | PyObject *resultobj; | |
9518 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9519 | wxString *arg2 = 0 ; | |
9520 | int result; | |
e811c8ce | 9521 | bool temp2 = False ; |
d14a1e28 RD |
9522 | PyObject * obj0 = 0 ; |
9523 | PyObject * obj1 = 0 ; | |
9524 | char *kwnames[] = { | |
9525 | (char *) "self",(char *) "s", NULL | |
9526 | }; | |
9527 | ||
9528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
9529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9530 | { | |
9531 | arg2 = wxString_in_helper(obj1); | |
9532 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9533 | temp2 = True; |
d14a1e28 RD |
9534 | } |
9535 | { | |
9536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9537 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
9538 | ||
9539 | wxPyEndAllowThreads(__tstate); | |
9540 | if (PyErr_Occurred()) SWIG_fail; | |
9541 | } | |
9542 | resultobj = PyInt_FromLong((long)result); | |
9543 | { | |
9544 | if (temp2) | |
9545 | delete arg2; | |
9546 | } | |
9547 | return resultobj; | |
9548 | fail: | |
9549 | { | |
9550 | if (temp2) | |
9551 | delete arg2; | |
9552 | } | |
9553 | return NULL; | |
9554 | } | |
9555 | ||
9556 | ||
9557 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9558 | PyObject *resultobj; | |
9559 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9560 | int arg2 ; | |
9561 | wxString result; | |
9562 | PyObject * obj0 = 0 ; | |
9563 | char *kwnames[] = { | |
9564 | (char *) "self",(char *) "n", NULL | |
9565 | }; | |
9566 | ||
9567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:RadioBox_GetString",kwnames,&obj0,&arg2)) goto fail; | |
9568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9569 | { | |
9570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9571 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
9572 | ||
9573 | wxPyEndAllowThreads(__tstate); | |
9574 | if (PyErr_Occurred()) SWIG_fail; | |
9575 | } | |
9576 | { | |
9577 | #if wxUSE_UNICODE | |
9578 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9579 | #else | |
9580 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9581 | #endif | |
9582 | } | |
9583 | return resultobj; | |
9584 | fail: | |
9585 | return NULL; | |
9586 | } | |
9587 | ||
9588 | ||
9589 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9590 | PyObject *resultobj; | |
9591 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9592 | int arg2 ; | |
9593 | wxString *arg3 = 0 ; | |
e811c8ce | 9594 | bool temp3 = False ; |
d14a1e28 RD |
9595 | PyObject * obj0 = 0 ; |
9596 | PyObject * obj2 = 0 ; | |
9597 | char *kwnames[] = { | |
9598 | (char *) "self",(char *) "n",(char *) "label", NULL | |
9599 | }; | |
9600 | ||
9601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:RadioBox_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
9602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9603 | { | |
9604 | arg3 = wxString_in_helper(obj2); | |
9605 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9606 | temp3 = True; |
d14a1e28 RD |
9607 | } |
9608 | { | |
9609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9610 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
9611 | ||
9612 | wxPyEndAllowThreads(__tstate); | |
9613 | if (PyErr_Occurred()) SWIG_fail; | |
9614 | } | |
9615 | Py_INCREF(Py_None); resultobj = Py_None; | |
9616 | { | |
9617 | if (temp3) | |
9618 | delete arg3; | |
9619 | } | |
9620 | return resultobj; | |
9621 | fail: | |
9622 | { | |
9623 | if (temp3) | |
9624 | delete arg3; | |
9625 | } | |
9626 | return NULL; | |
9627 | } | |
9628 | ||
9629 | ||
9630 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9631 | PyObject *resultobj; | |
9632 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9633 | int arg2 ; | |
e811c8ce | 9634 | bool arg3 = (bool) True ; |
d14a1e28 RD |
9635 | PyObject * obj0 = 0 ; |
9636 | PyObject * obj2 = 0 ; | |
9637 | char *kwnames[] = { | |
9638 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
9639 | }; | |
9640 | ||
9641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:RadioBox_EnableItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
9642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9643 | if (obj2) { | |
9644 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
9645 | if (PyErr_Occurred()) SWIG_fail; | |
9646 | } | |
9647 | { | |
9648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9649 | (arg1)->Enable(arg2,arg3); | |
9650 | ||
9651 | wxPyEndAllowThreads(__tstate); | |
9652 | if (PyErr_Occurred()) SWIG_fail; | |
9653 | } | |
9654 | Py_INCREF(Py_None); resultobj = Py_None; | |
9655 | return resultobj; | |
9656 | fail: | |
9657 | return NULL; | |
9658 | } | |
9659 | ||
9660 | ||
9661 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9662 | PyObject *resultobj; | |
9663 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9664 | int arg2 ; | |
e811c8ce | 9665 | bool arg3 = (bool) True ; |
d14a1e28 RD |
9666 | PyObject * obj0 = 0 ; |
9667 | PyObject * obj2 = 0 ; | |
9668 | char *kwnames[] = { | |
9669 | (char *) "self",(char *) "n",(char *) "show", NULL | |
9670 | }; | |
9671 | ||
9672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:RadioBox_ShowItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
9673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9674 | if (obj2) { | |
9675 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
9676 | if (PyErr_Occurred()) SWIG_fail; | |
9677 | } | |
9678 | { | |
9679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9680 | (arg1)->Show(arg2,arg3); | |
9681 | ||
9682 | wxPyEndAllowThreads(__tstate); | |
9683 | if (PyErr_Occurred()) SWIG_fail; | |
9684 | } | |
9685 | Py_INCREF(Py_None); resultobj = Py_None; | |
9686 | return resultobj; | |
9687 | fail: | |
9688 | return NULL; | |
9689 | } | |
9690 | ||
9691 | ||
9692 | static PyObject *_wrap_RadioBox_GetColumnCount(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_GetColumnCount",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_GetColumnCount((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_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9718 | PyObject *resultobj; | |
9719 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9720 | int result; | |
9721 | PyObject * obj0 = 0 ; | |
9722 | char *kwnames[] = { | |
9723 | (char *) "self", NULL | |
9724 | }; | |
9725 | ||
9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
9727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9728 | { | |
9729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9730 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
9731 | ||
9732 | wxPyEndAllowThreads(__tstate); | |
9733 | if (PyErr_Occurred()) SWIG_fail; | |
9734 | } | |
9735 | resultobj = PyInt_FromLong((long)result); | |
9736 | return resultobj; | |
9737 | fail: | |
9738 | return NULL; | |
9739 | } | |
9740 | ||
9741 | ||
9742 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9743 | PyObject *resultobj; | |
9744 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9745 | int arg2 ; | |
9746 | int arg3 ; | |
9747 | long arg4 ; | |
9748 | int result; | |
9749 | PyObject * obj0 = 0 ; | |
9750 | char *kwnames[] = { | |
9751 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
9752 | }; | |
9753 | ||
9754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiil:RadioBox_GetNextItem",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
9755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9756 | { | |
9757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9758 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
9759 | ||
9760 | wxPyEndAllowThreads(__tstate); | |
9761 | if (PyErr_Occurred()) SWIG_fail; | |
9762 | } | |
9763 | resultobj = PyInt_FromLong((long)result); | |
9764 | return resultobj; | |
9765 | fail: | |
9766 | return NULL; | |
9767 | } | |
9768 | ||
9769 | ||
9770 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
9771 | PyObject *obj; | |
9772 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9773 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
9774 | Py_INCREF(obj); | |
9775 | return Py_BuildValue((char *)""); | |
9776 | } | |
9777 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9778 | PyObject *resultobj; | |
9779 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 9780 | int arg2 ; |
d14a1e28 RD |
9781 | wxString *arg3 = 0 ; |
9782 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9783 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9784 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9785 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9786 | long arg6 = (long) 0 ; | |
9787 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9788 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9789 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
9790 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9791 | wxRadioButton *result; | |
e811c8ce | 9792 | bool temp3 = False ; |
d14a1e28 RD |
9793 | wxPoint temp4 ; |
9794 | wxSize temp5 ; | |
e811c8ce | 9795 | bool temp8 = False ; |
d14a1e28 RD |
9796 | PyObject * obj0 = 0 ; |
9797 | PyObject * obj2 = 0 ; | |
9798 | PyObject * obj3 = 0 ; | |
9799 | PyObject * obj4 = 0 ; | |
9800 | PyObject * obj6 = 0 ; | |
9801 | PyObject * obj7 = 0 ; | |
9802 | char *kwnames[] = { | |
9803 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9804 | }; | |
9805 | ||
9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_RadioButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
9807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9808 | { | |
9809 | arg3 = wxString_in_helper(obj2); | |
9810 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9811 | temp3 = True; |
d14a1e28 RD |
9812 | } |
9813 | if (obj3) { | |
9814 | { | |
9815 | arg4 = &temp4; | |
9816 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9817 | } | |
9818 | } | |
9819 | if (obj4) { | |
9820 | { | |
9821 | arg5 = &temp5; | |
9822 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9823 | } | |
9824 | } | |
9825 | if (obj6) { | |
9826 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9827 | if (arg7 == NULL) { | |
9828 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9829 | } | |
9830 | } | |
9831 | if (obj7) { | |
9832 | { | |
9833 | arg8 = wxString_in_helper(obj7); | |
9834 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 9835 | temp8 = True; |
d14a1e28 RD |
9836 | } |
9837 | } | |
9838 | { | |
9839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9840 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9841 | ||
9842 | wxPyEndAllowThreads(__tstate); | |
9843 | if (PyErr_Occurred()) SWIG_fail; | |
9844 | } | |
9845 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
9846 | { | |
9847 | if (temp3) | |
9848 | delete arg3; | |
9849 | } | |
9850 | { | |
9851 | if (temp8) | |
9852 | delete arg8; | |
9853 | } | |
9854 | return resultobj; | |
9855 | fail: | |
9856 | { | |
9857 | if (temp3) | |
9858 | delete arg3; | |
9859 | } | |
9860 | { | |
9861 | if (temp8) | |
9862 | delete arg8; | |
9863 | } | |
9864 | return NULL; | |
9865 | } | |
9866 | ||
9867 | ||
9868 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9869 | PyObject *resultobj; | |
9870 | wxRadioButton *result; | |
9871 | char *kwnames[] = { | |
9872 | NULL | |
9873 | }; | |
9874 | ||
9875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
9876 | { | |
9877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9878 | result = (wxRadioButton *)new wxRadioButton(); | |
9879 | ||
9880 | wxPyEndAllowThreads(__tstate); | |
9881 | if (PyErr_Occurred()) SWIG_fail; | |
9882 | } | |
9883 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
9884 | return resultobj; | |
9885 | fail: | |
9886 | return NULL; | |
9887 | } | |
9888 | ||
9889 | ||
9890 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9891 | PyObject *resultobj; | |
9892 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
9893 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 9894 | int arg3 ; |
d14a1e28 RD |
9895 | wxString *arg4 = 0 ; |
9896 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9897 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9898 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9899 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9900 | long arg7 = (long) 0 ; | |
9901 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
9902 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
9903 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
9904 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
9905 | bool result; | |
e811c8ce | 9906 | bool temp4 = False ; |
d14a1e28 RD |
9907 | wxPoint temp5 ; |
9908 | wxSize temp6 ; | |
e811c8ce | 9909 | bool temp9 = False ; |
d14a1e28 RD |
9910 | PyObject * obj0 = 0 ; |
9911 | PyObject * obj1 = 0 ; | |
9912 | PyObject * obj3 = 0 ; | |
9913 | PyObject * obj4 = 0 ; | |
9914 | PyObject * obj5 = 0 ; | |
9915 | PyObject * obj7 = 0 ; | |
9916 | PyObject * obj8 = 0 ; | |
9917 | char *kwnames[] = { | |
9918 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9919 | }; | |
9920 | ||
9921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:RadioButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
9922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9923 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9924 | { | |
9925 | arg4 = wxString_in_helper(obj3); | |
9926 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 9927 | temp4 = True; |
d14a1e28 RD |
9928 | } |
9929 | if (obj4) { | |
9930 | { | |
9931 | arg5 = &temp5; | |
9932 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9933 | } | |
9934 | } | |
9935 | if (obj5) { | |
9936 | { | |
9937 | arg6 = &temp6; | |
9938 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9939 | } | |
9940 | } | |
9941 | if (obj7) { | |
9942 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9943 | if (arg8 == NULL) { | |
9944 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9945 | } | |
9946 | } | |
9947 | if (obj8) { | |
9948 | { | |
9949 | arg9 = wxString_in_helper(obj8); | |
9950 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 9951 | temp9 = True; |
d14a1e28 RD |
9952 | } |
9953 | } | |
9954 | { | |
9955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9956 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9957 | ||
9958 | wxPyEndAllowThreads(__tstate); | |
9959 | if (PyErr_Occurred()) SWIG_fail; | |
9960 | } | |
9961 | resultobj = PyInt_FromLong((long)result); | |
9962 | { | |
9963 | if (temp4) | |
9964 | delete arg4; | |
9965 | } | |
9966 | { | |
9967 | if (temp9) | |
9968 | delete arg9; | |
9969 | } | |
9970 | return resultobj; | |
9971 | fail: | |
9972 | { | |
9973 | if (temp4) | |
9974 | delete arg4; | |
9975 | } | |
9976 | { | |
9977 | if (temp9) | |
9978 | delete arg9; | |
9979 | } | |
9980 | return NULL; | |
9981 | } | |
9982 | ||
9983 | ||
9984 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9985 | PyObject *resultobj; | |
9986 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
9987 | bool result; | |
9988 | PyObject * obj0 = 0 ; | |
9989 | char *kwnames[] = { | |
9990 | (char *) "self", NULL | |
9991 | }; | |
9992 | ||
9993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
9994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9995 | { | |
9996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9997 | result = (bool)(arg1)->GetValue(); | |
9998 | ||
9999 | wxPyEndAllowThreads(__tstate); | |
10000 | if (PyErr_Occurred()) SWIG_fail; | |
10001 | } | |
10002 | resultobj = PyInt_FromLong((long)result); | |
10003 | return resultobj; | |
10004 | fail: | |
10005 | return NULL; | |
10006 | } | |
10007 | ||
10008 | ||
10009 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10010 | PyObject *resultobj; | |
10011 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
10012 | bool arg2 ; | |
10013 | PyObject * obj0 = 0 ; | |
10014 | PyObject * obj1 = 0 ; | |
10015 | char *kwnames[] = { | |
10016 | (char *) "self",(char *) "value", NULL | |
10017 | }; | |
10018 | ||
10019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10021 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10022 | if (PyErr_Occurred()) SWIG_fail; | |
10023 | { | |
10024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10025 | (arg1)->SetValue(arg2); | |
10026 | ||
10027 | wxPyEndAllowThreads(__tstate); | |
10028 | if (PyErr_Occurred()) SWIG_fail; | |
10029 | } | |
10030 | Py_INCREF(Py_None); resultobj = Py_None; | |
10031 | return resultobj; | |
10032 | fail: | |
10033 | return NULL; | |
10034 | } | |
10035 | ||
10036 | ||
10037 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
10038 | PyObject *obj; | |
10039 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10040 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
10041 | Py_INCREF(obj); | |
10042 | return Py_BuildValue((char *)""); | |
10043 | } | |
10044 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10045 | PyObject *resultobj; | |
10046 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10047 | int arg2 ; |
d14a1e28 RD |
10048 | int arg3 ; |
10049 | int arg4 ; | |
10050 | int arg5 ; | |
10051 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
10052 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
10053 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
10054 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
10055 | long arg8 = (long) wxSL_HORIZONTAL ; | |
10056 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10057 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10058 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
10059 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10060 | wxSlider *result; | |
10061 | wxPoint temp6 ; | |
10062 | wxSize temp7 ; | |
e811c8ce | 10063 | bool temp10 = False ; |
d14a1e28 RD |
10064 | PyObject * obj0 = 0 ; |
10065 | PyObject * obj5 = 0 ; | |
10066 | PyObject * obj6 = 0 ; | |
10067 | PyObject * obj8 = 0 ; | |
10068 | PyObject * obj9 = 0 ; | |
10069 | char *kwnames[] = { | |
10070 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "point",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10071 | }; | |
10072 | ||
10073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOlOO:new_Slider",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8,&obj8,&obj9)) goto fail; | |
10074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10075 | if (obj5) { | |
10076 | { | |
10077 | arg6 = &temp6; | |
10078 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
10079 | } | |
10080 | } | |
10081 | if (obj6) { | |
10082 | { | |
10083 | arg7 = &temp7; | |
10084 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
10085 | } | |
10086 | } | |
10087 | if (obj8) { | |
10088 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10089 | if (arg9 == NULL) { | |
10090 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10091 | } | |
10092 | } | |
10093 | if (obj9) { | |
10094 | { | |
10095 | arg10 = wxString_in_helper(obj9); | |
10096 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 10097 | temp10 = True; |
d14a1e28 RD |
10098 | } |
10099 | } | |
10100 | { | |
10101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10102 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
10103 | ||
10104 | wxPyEndAllowThreads(__tstate); | |
10105 | if (PyErr_Occurred()) SWIG_fail; | |
10106 | } | |
10107 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
10108 | { | |
10109 | if (temp10) | |
10110 | delete arg10; | |
10111 | } | |
10112 | return resultobj; | |
10113 | fail: | |
10114 | { | |
10115 | if (temp10) | |
10116 | delete arg10; | |
10117 | } | |
10118 | return NULL; | |
10119 | } | |
10120 | ||
10121 | ||
10122 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10123 | PyObject *resultobj; | |
10124 | wxSlider *result; | |
10125 | char *kwnames[] = { | |
10126 | NULL | |
10127 | }; | |
10128 | ||
10129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
10130 | { | |
10131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10132 | result = (wxSlider *)new wxSlider(); | |
10133 | ||
10134 | wxPyEndAllowThreads(__tstate); | |
10135 | if (PyErr_Occurred()) SWIG_fail; | |
10136 | } | |
10137 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
10138 | return resultobj; | |
10139 | fail: | |
10140 | return NULL; | |
10141 | } | |
10142 | ||
10143 | ||
10144 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10145 | PyObject *resultobj; | |
10146 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10147 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10148 | int arg3 ; |
d14a1e28 RD |
10149 | int arg4 ; |
10150 | int arg5 ; | |
10151 | int arg6 ; | |
10152 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
10153 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
10154 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
10155 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
10156 | long arg9 = (long) wxSL_HORIZONTAL ; | |
10157 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
10158 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
10159 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
10160 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10161 | bool result; | |
10162 | wxPoint temp7 ; | |
10163 | wxSize temp8 ; | |
e811c8ce | 10164 | bool temp11 = False ; |
d14a1e28 RD |
10165 | PyObject * obj0 = 0 ; |
10166 | PyObject * obj1 = 0 ; | |
10167 | PyObject * obj6 = 0 ; | |
10168 | PyObject * obj7 = 0 ; | |
10169 | PyObject * obj9 = 0 ; | |
10170 | PyObject * obj10 = 0 ; | |
10171 | char *kwnames[] = { | |
10172 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "point",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10173 | }; | |
10174 | ||
10175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiiii|OOlOO:Slider_Create",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6,&obj7,&arg9,&obj9,&obj10)) goto fail; | |
10176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10177 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10178 | if (obj6) { | |
10179 | { | |
10180 | arg7 = &temp7; | |
10181 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
10182 | } | |
10183 | } | |
10184 | if (obj7) { | |
10185 | { | |
10186 | arg8 = &temp8; | |
10187 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
10188 | } | |
10189 | } | |
10190 | if (obj9) { | |
10191 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10192 | if (arg10 == NULL) { | |
10193 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10194 | } | |
10195 | } | |
10196 | if (obj10) { | |
10197 | { | |
10198 | arg11 = wxString_in_helper(obj10); | |
10199 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 10200 | temp11 = True; |
d14a1e28 RD |
10201 | } |
10202 | } | |
10203 | { | |
10204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10205 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
10206 | ||
10207 | wxPyEndAllowThreads(__tstate); | |
10208 | if (PyErr_Occurred()) SWIG_fail; | |
10209 | } | |
10210 | resultobj = PyInt_FromLong((long)result); | |
10211 | { | |
10212 | if (temp11) | |
10213 | delete arg11; | |
10214 | } | |
10215 | return resultobj; | |
10216 | fail: | |
10217 | { | |
10218 | if (temp11) | |
10219 | delete arg11; | |
10220 | } | |
10221 | return NULL; | |
10222 | } | |
10223 | ||
10224 | ||
10225 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10226 | PyObject *resultobj; | |
10227 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10228 | int result; | |
10229 | PyObject * obj0 = 0 ; | |
10230 | char *kwnames[] = { | |
10231 | (char *) "self", NULL | |
10232 | }; | |
10233 | ||
10234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) 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 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
10239 | ||
10240 | wxPyEndAllowThreads(__tstate); | |
10241 | if (PyErr_Occurred()) SWIG_fail; | |
10242 | } | |
10243 | resultobj = PyInt_FromLong((long)result); | |
10244 | return resultobj; | |
10245 | fail: | |
10246 | return NULL; | |
10247 | } | |
10248 | ||
10249 | ||
10250 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10251 | PyObject *resultobj; | |
10252 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10253 | int arg2 ; | |
10254 | PyObject * obj0 = 0 ; | |
10255 | char *kwnames[] = { | |
10256 | (char *) "self",(char *) "value", NULL | |
10257 | }; | |
10258 | ||
10259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
10260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10261 | { | |
10262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10263 | (arg1)->SetValue(arg2); | |
10264 | ||
10265 | wxPyEndAllowThreads(__tstate); | |
10266 | if (PyErr_Occurred()) SWIG_fail; | |
10267 | } | |
10268 | Py_INCREF(Py_None); resultobj = Py_None; | |
10269 | return resultobj; | |
10270 | fail: | |
10271 | return NULL; | |
10272 | } | |
10273 | ||
10274 | ||
10275 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10276 | PyObject *resultobj; | |
10277 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10278 | int arg2 ; | |
10279 | int arg3 ; | |
10280 | PyObject * obj0 = 0 ; | |
10281 | char *kwnames[] = { | |
10282 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
10283 | }; | |
10284 | ||
10285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetRange",kwnames,&obj0,&arg2,&arg3)) 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 | (arg1)->SetRange(arg2,arg3); | |
10290 | ||
10291 | wxPyEndAllowThreads(__tstate); | |
10292 | if (PyErr_Occurred()) SWIG_fail; | |
10293 | } | |
10294 | Py_INCREF(Py_None); resultobj = Py_None; | |
10295 | return resultobj; | |
10296 | fail: | |
10297 | return NULL; | |
10298 | } | |
10299 | ||
10300 | ||
10301 | static PyObject *_wrap_Slider_GetMin(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_GetMin",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)->GetMin(); | |
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_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10327 | PyObject *resultobj; | |
10328 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10329 | int result; | |
10330 | PyObject * obj0 = 0 ; | |
10331 | char *kwnames[] = { | |
10332 | (char *) "self", NULL | |
10333 | }; | |
10334 | ||
10335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) 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 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
10340 | ||
10341 | wxPyEndAllowThreads(__tstate); | |
10342 | if (PyErr_Occurred()) SWIG_fail; | |
10343 | } | |
10344 | resultobj = PyInt_FromLong((long)result); | |
10345 | return resultobj; | |
10346 | fail: | |
10347 | return NULL; | |
10348 | } | |
10349 | ||
10350 | ||
10351 | static PyObject *_wrap_Slider_SetMin(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 *) "minValue", NULL | |
10358 | }; | |
10359 | ||
10360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetMin",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)->SetMin(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_SetMax(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 *) "maxValue", NULL | |
10383 | }; | |
10384 | ||
10385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetMax",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)->SetMax(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_SetLineSize(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 *) "lineSize", NULL | |
10408 | }; | |
10409 | ||
10410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetLineSize",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)->SetLineSize(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_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10427 | PyObject *resultobj; | |
10428 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10429 | int arg2 ; | |
10430 | PyObject * obj0 = 0 ; | |
10431 | char *kwnames[] = { | |
10432 | (char *) "self",(char *) "pageSize", NULL | |
10433 | }; | |
10434 | ||
10435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetPageSize",kwnames,&obj0,&arg2)) 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 | (arg1)->SetPageSize(arg2); | |
10440 | ||
10441 | wxPyEndAllowThreads(__tstate); | |
10442 | if (PyErr_Occurred()) SWIG_fail; | |
10443 | } | |
10444 | Py_INCREF(Py_None); resultobj = Py_None; | |
10445 | return resultobj; | |
10446 | fail: | |
10447 | return NULL; | |
10448 | } | |
10449 | ||
10450 | ||
10451 | static PyObject *_wrap_Slider_GetLineSize(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_GetLineSize",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)->GetLineSize(); | |
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_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10477 | PyObject *resultobj; | |
10478 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10479 | int result; | |
10480 | PyObject * obj0 = 0 ; | |
10481 | char *kwnames[] = { | |
10482 | (char *) "self", NULL | |
10483 | }; | |
10484 | ||
10485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) 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 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
10490 | ||
10491 | wxPyEndAllowThreads(__tstate); | |
10492 | if (PyErr_Occurred()) SWIG_fail; | |
10493 | } | |
10494 | resultobj = PyInt_FromLong((long)result); | |
10495 | return resultobj; | |
10496 | fail: | |
10497 | return NULL; | |
10498 | } | |
10499 | ||
10500 | ||
10501 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10502 | PyObject *resultobj; | |
10503 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10504 | int arg2 ; | |
10505 | PyObject * obj0 = 0 ; | |
10506 | char *kwnames[] = { | |
10507 | (char *) "self",(char *) "lenPixels", NULL | |
10508 | }; | |
10509 | ||
10510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetThumbLength",kwnames,&obj0,&arg2)) 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 | (arg1)->SetThumbLength(arg2); | |
10515 | ||
10516 | wxPyEndAllowThreads(__tstate); | |
10517 | if (PyErr_Occurred()) SWIG_fail; | |
10518 | } | |
10519 | Py_INCREF(Py_None); resultobj = Py_None; | |
10520 | return resultobj; | |
10521 | fail: | |
10522 | return NULL; | |
10523 | } | |
10524 | ||
10525 | ||
10526 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10527 | PyObject *resultobj; | |
10528 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10529 | int result; | |
10530 | PyObject * obj0 = 0 ; | |
10531 | char *kwnames[] = { | |
10532 | (char *) "self", NULL | |
10533 | }; | |
10534 | ||
10535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
10536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10537 | { | |
10538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10539 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
10540 | ||
10541 | wxPyEndAllowThreads(__tstate); | |
10542 | if (PyErr_Occurred()) SWIG_fail; | |
10543 | } | |
10544 | resultobj = PyInt_FromLong((long)result); | |
10545 | return resultobj; | |
10546 | fail: | |
10547 | return NULL; | |
10548 | } | |
10549 | ||
10550 | ||
10551 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10552 | PyObject *resultobj; | |
10553 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10554 | int arg2 ; | |
10555 | int arg3 ; | |
10556 | PyObject * obj0 = 0 ; | |
10557 | char *kwnames[] = { | |
10558 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
10559 | }; | |
10560 | ||
10561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetTickFreq",kwnames,&obj0,&arg2,&arg3)) 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 | (arg1)->SetTickFreq(arg2,arg3); | |
10566 | ||
10567 | wxPyEndAllowThreads(__tstate); | |
10568 | if (PyErr_Occurred()) SWIG_fail; | |
10569 | } | |
10570 | Py_INCREF(Py_None); resultobj = Py_None; | |
10571 | return resultobj; | |
10572 | fail: | |
10573 | return NULL; | |
10574 | } | |
10575 | ||
10576 | ||
10577 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10578 | PyObject *resultobj; | |
10579 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10580 | int result; | |
10581 | PyObject * obj0 = 0 ; | |
10582 | char *kwnames[] = { | |
10583 | (char *) "self", NULL | |
10584 | }; | |
10585 | ||
10586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
10587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10588 | { | |
10589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10590 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
10591 | ||
10592 | wxPyEndAllowThreads(__tstate); | |
10593 | if (PyErr_Occurred()) SWIG_fail; | |
10594 | } | |
10595 | resultobj = PyInt_FromLong((long)result); | |
10596 | return resultobj; | |
10597 | fail: | |
10598 | return NULL; | |
10599 | } | |
10600 | ||
10601 | ||
10602 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10603 | PyObject *resultobj; | |
10604 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10605 | PyObject * obj0 = 0 ; | |
10606 | char *kwnames[] = { | |
10607 | (char *) "self", NULL | |
10608 | }; | |
10609 | ||
10610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) 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)->ClearTicks(); | |
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_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10627 | PyObject *resultobj; | |
10628 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10629 | int arg2 ; | |
10630 | PyObject * obj0 = 0 ; | |
10631 | char *kwnames[] = { | |
10632 | (char *) "self",(char *) "tickPos", NULL | |
10633 | }; | |
10634 | ||
10635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetTick",kwnames,&obj0,&arg2)) goto fail; | |
10636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10637 | { | |
10638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10639 | (arg1)->SetTick(arg2); | |
10640 | ||
10641 | wxPyEndAllowThreads(__tstate); | |
10642 | if (PyErr_Occurred()) SWIG_fail; | |
10643 | } | |
10644 | Py_INCREF(Py_None); resultobj = Py_None; | |
10645 | return resultobj; | |
10646 | fail: | |
10647 | return NULL; | |
10648 | } | |
10649 | ||
10650 | ||
10651 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10652 | PyObject *resultobj; | |
10653 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10654 | PyObject * obj0 = 0 ; | |
10655 | char *kwnames[] = { | |
10656 | (char *) "self", NULL | |
10657 | }; | |
10658 | ||
10659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",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 | (arg1)->ClearSel(); | |
10664 | ||
10665 | wxPyEndAllowThreads(__tstate); | |
10666 | if (PyErr_Occurred()) SWIG_fail; | |
10667 | } | |
10668 | Py_INCREF(Py_None); resultobj = Py_None; | |
10669 | return resultobj; | |
10670 | fail: | |
10671 | return NULL; | |
10672 | } | |
10673 | ||
10674 | ||
10675 | static PyObject *_wrap_Slider_GetSelEnd(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_GetSelEnd",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)->GetSelEnd(); | |
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_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10701 | PyObject *resultobj; | |
10702 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10703 | int result; | |
10704 | PyObject * obj0 = 0 ; | |
10705 | char *kwnames[] = { | |
10706 | (char *) "self", NULL | |
10707 | }; | |
10708 | ||
10709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
10710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10711 | { | |
10712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10713 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
10714 | ||
10715 | wxPyEndAllowThreads(__tstate); | |
10716 | if (PyErr_Occurred()) SWIG_fail; | |
10717 | } | |
10718 | resultobj = PyInt_FromLong((long)result); | |
10719 | return resultobj; | |
10720 | fail: | |
10721 | return NULL; | |
10722 | } | |
10723 | ||
10724 | ||
10725 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10726 | PyObject *resultobj; | |
10727 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10728 | int arg2 ; | |
10729 | int arg3 ; | |
10730 | PyObject * obj0 = 0 ; | |
10731 | char *kwnames[] = { | |
10732 | (char *) "self",(char *) "min",(char *) "max", NULL | |
10733 | }; | |
10734 | ||
10735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10737 | { | |
10738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10739 | (arg1)->SetSelection(arg2,arg3); | |
10740 | ||
10741 | wxPyEndAllowThreads(__tstate); | |
10742 | if (PyErr_Occurred()) SWIG_fail; | |
10743 | } | |
10744 | Py_INCREF(Py_None); resultobj = Py_None; | |
10745 | return resultobj; | |
10746 | fail: | |
10747 | return NULL; | |
10748 | } | |
10749 | ||
10750 | ||
10751 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
10752 | PyObject *obj; | |
10753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10754 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
10755 | Py_INCREF(obj); | |
10756 | return Py_BuildValue((char *)""); | |
10757 | } | |
10758 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10759 | PyObject *resultobj; | |
10760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10761 | int arg2 ; |
d14a1e28 RD |
10762 | wxString *arg3 = 0 ; |
10763 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10764 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10765 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10766 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10767 | long arg6 = (long) 0 ; | |
10768 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10769 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10770 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
10771 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10772 | wxToggleButton *result; | |
e811c8ce | 10773 | bool temp3 = False ; |
d14a1e28 RD |
10774 | wxPoint temp4 ; |
10775 | wxSize temp5 ; | |
e811c8ce | 10776 | bool temp8 = False ; |
d14a1e28 RD |
10777 | PyObject * obj0 = 0 ; |
10778 | PyObject * obj2 = 0 ; | |
10779 | PyObject * obj3 = 0 ; | |
10780 | PyObject * obj4 = 0 ; | |
10781 | PyObject * obj6 = 0 ; | |
10782 | PyObject * obj7 = 0 ; | |
10783 | char *kwnames[] = { | |
10784 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10785 | }; | |
10786 | ||
10787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_ToggleButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
10788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10789 | { | |
10790 | arg3 = wxString_in_helper(obj2); | |
10791 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10792 | temp3 = True; |
d14a1e28 RD |
10793 | } |
10794 | if (obj3) { | |
10795 | { | |
10796 | arg4 = &temp4; | |
10797 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10798 | } | |
10799 | } | |
10800 | if (obj4) { | |
10801 | { | |
10802 | arg5 = &temp5; | |
10803 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10804 | } | |
10805 | } | |
10806 | if (obj6) { | |
10807 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10808 | if (arg7 == NULL) { | |
10809 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10810 | } | |
10811 | } | |
10812 | if (obj7) { | |
10813 | { | |
10814 | arg8 = wxString_in_helper(obj7); | |
10815 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 10816 | temp8 = True; |
d14a1e28 RD |
10817 | } |
10818 | } | |
10819 | { | |
10820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10821 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10822 | ||
10823 | wxPyEndAllowThreads(__tstate); | |
10824 | if (PyErr_Occurred()) SWIG_fail; | |
10825 | } | |
10826 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
10827 | { | |
10828 | if (temp3) | |
10829 | delete arg3; | |
10830 | } | |
10831 | { | |
10832 | if (temp8) | |
10833 | delete arg8; | |
10834 | } | |
10835 | return resultobj; | |
10836 | fail: | |
10837 | { | |
10838 | if (temp3) | |
10839 | delete arg3; | |
10840 | } | |
10841 | { | |
10842 | if (temp8) | |
10843 | delete arg8; | |
10844 | } | |
10845 | return NULL; | |
10846 | } | |
10847 | ||
10848 | ||
10849 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10850 | PyObject *resultobj; | |
10851 | wxToggleButton *result; | |
10852 | char *kwnames[] = { | |
10853 | NULL | |
10854 | }; | |
10855 | ||
10856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
10857 | { | |
10858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10859 | result = (wxToggleButton *)new wxToggleButton(); | |
10860 | ||
10861 | wxPyEndAllowThreads(__tstate); | |
10862 | if (PyErr_Occurred()) SWIG_fail; | |
10863 | } | |
10864 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
10865 | return resultobj; | |
10866 | fail: | |
10867 | return NULL; | |
10868 | } | |
10869 | ||
10870 | ||
10871 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10872 | PyObject *resultobj; | |
10873 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
10874 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10875 | int arg3 ; |
d14a1e28 RD |
10876 | wxString *arg4 = 0 ; |
10877 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10878 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10879 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10880 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10881 | long arg7 = (long) 0 ; | |
10882 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
10883 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
10884 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
10885 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
10886 | bool result; | |
e811c8ce | 10887 | bool temp4 = False ; |
d14a1e28 RD |
10888 | wxPoint temp5 ; |
10889 | wxSize temp6 ; | |
e811c8ce | 10890 | bool temp9 = False ; |
d14a1e28 RD |
10891 | PyObject * obj0 = 0 ; |
10892 | PyObject * obj1 = 0 ; | |
10893 | PyObject * obj3 = 0 ; | |
10894 | PyObject * obj4 = 0 ; | |
10895 | PyObject * obj5 = 0 ; | |
10896 | PyObject * obj7 = 0 ; | |
10897 | PyObject * obj8 = 0 ; | |
10898 | char *kwnames[] = { | |
10899 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10900 | }; | |
10901 | ||
10902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:ToggleButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
10903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10904 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10905 | { | |
10906 | arg4 = wxString_in_helper(obj3); | |
10907 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 10908 | temp4 = True; |
d14a1e28 RD |
10909 | } |
10910 | if (obj4) { | |
10911 | { | |
10912 | arg5 = &temp5; | |
10913 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10914 | } | |
10915 | } | |
10916 | if (obj5) { | |
10917 | { | |
10918 | arg6 = &temp6; | |
10919 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10920 | } | |
10921 | } | |
10922 | if (obj7) { | |
10923 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10924 | if (arg8 == NULL) { | |
10925 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10926 | } | |
10927 | } | |
10928 | if (obj8) { | |
10929 | { | |
10930 | arg9 = wxString_in_helper(obj8); | |
10931 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 10932 | temp9 = True; |
d14a1e28 RD |
10933 | } |
10934 | } | |
10935 | { | |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10937 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10938 | ||
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
10942 | resultobj = PyInt_FromLong((long)result); | |
10943 | { | |
10944 | if (temp4) | |
10945 | delete arg4; | |
10946 | } | |
10947 | { | |
10948 | if (temp9) | |
10949 | delete arg9; | |
10950 | } | |
10951 | return resultobj; | |
10952 | fail: | |
10953 | { | |
10954 | if (temp4) | |
10955 | delete arg4; | |
10956 | } | |
10957 | { | |
10958 | if (temp9) | |
10959 | delete arg9; | |
10960 | } | |
10961 | return NULL; | |
10962 | } | |
10963 | ||
10964 | ||
10965 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10966 | PyObject *resultobj; | |
10967 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
10968 | bool arg2 ; | |
10969 | PyObject * obj0 = 0 ; | |
10970 | PyObject * obj1 = 0 ; | |
10971 | char *kwnames[] = { | |
10972 | (char *) "self",(char *) "value", NULL | |
10973 | }; | |
10974 | ||
10975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10977 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10978 | if (PyErr_Occurred()) SWIG_fail; | |
10979 | { | |
10980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10981 | (arg1)->SetValue(arg2); | |
10982 | ||
10983 | wxPyEndAllowThreads(__tstate); | |
10984 | if (PyErr_Occurred()) SWIG_fail; | |
10985 | } | |
10986 | Py_INCREF(Py_None); resultobj = Py_None; | |
10987 | return resultobj; | |
10988 | fail: | |
10989 | return NULL; | |
10990 | } | |
10991 | ||
10992 | ||
10993 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10994 | PyObject *resultobj; | |
10995 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
10996 | bool result; | |
10997 | PyObject * obj0 = 0 ; | |
10998 | char *kwnames[] = { | |
10999 | (char *) "self", NULL | |
11000 | }; | |
11001 | ||
11002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
11003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11004 | { | |
11005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11006 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
11007 | ||
11008 | wxPyEndAllowThreads(__tstate); | |
11009 | if (PyErr_Occurred()) SWIG_fail; | |
11010 | } | |
11011 | resultobj = PyInt_FromLong((long)result); | |
11012 | return resultobj; | |
11013 | fail: | |
11014 | return NULL; | |
11015 | } | |
11016 | ||
11017 | ||
11018 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11019 | PyObject *resultobj; | |
11020 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
11021 | wxString *arg2 = 0 ; | |
e811c8ce | 11022 | bool temp2 = False ; |
d14a1e28 RD |
11023 | PyObject * obj0 = 0 ; |
11024 | PyObject * obj1 = 0 ; | |
11025 | char *kwnames[] = { | |
11026 | (char *) "self",(char *) "label", NULL | |
11027 | }; | |
11028 | ||
11029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
11030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11031 | { | |
11032 | arg2 = wxString_in_helper(obj1); | |
11033 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11034 | temp2 = True; |
d14a1e28 RD |
11035 | } |
11036 | { | |
11037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11038 | (arg1)->SetLabel((wxString const &)*arg2); | |
11039 | ||
11040 | wxPyEndAllowThreads(__tstate); | |
11041 | if (PyErr_Occurred()) SWIG_fail; | |
11042 | } | |
11043 | Py_INCREF(Py_None); resultobj = Py_None; | |
11044 | { | |
11045 | if (temp2) | |
11046 | delete arg2; | |
11047 | } | |
11048 | return resultobj; | |
11049 | fail: | |
11050 | { | |
11051 | if (temp2) | |
11052 | delete arg2; | |
11053 | } | |
11054 | return NULL; | |
11055 | } | |
11056 | ||
11057 | ||
11058 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
11059 | PyObject *obj; | |
11060 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11061 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
11062 | Py_INCREF(obj); | |
11063 | return Py_BuildValue((char *)""); | |
11064 | } | |
11065 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11066 | PyObject *resultobj; | |
11067 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11068 | size_t result; | |
11069 | PyObject * obj0 = 0 ; | |
11070 | char *kwnames[] = { | |
11071 | (char *) "self", NULL | |
11072 | }; | |
11073 | ||
11074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
11075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11076 | { | |
11077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11078 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
11079 | ||
11080 | wxPyEndAllowThreads(__tstate); | |
11081 | if (PyErr_Occurred()) SWIG_fail; | |
11082 | } | |
11083 | resultobj = PyInt_FromLong((long)result); | |
11084 | return resultobj; | |
11085 | fail: | |
11086 | return NULL; | |
11087 | } | |
11088 | ||
11089 | ||
11090 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11091 | PyObject *resultobj; | |
11092 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11093 | size_t arg2 ; | |
11094 | wxWindow *result; | |
11095 | PyObject * obj0 = 0 ; | |
11096 | PyObject * obj1 = 0 ; | |
11097 | char *kwnames[] = { | |
11098 | (char *) "self",(char *) "n", NULL | |
11099 | }; | |
11100 | ||
11101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
11102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11103 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11104 | if (PyErr_Occurred()) SWIG_fail; | |
11105 | { | |
11106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11107 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
11108 | ||
11109 | wxPyEndAllowThreads(__tstate); | |
11110 | if (PyErr_Occurred()) SWIG_fail; | |
11111 | } | |
11112 | { | |
11113 | resultobj = wxPyMake_wxObject(result); | |
11114 | } | |
11115 | return resultobj; | |
11116 | fail: | |
11117 | return NULL; | |
11118 | } | |
11119 | ||
11120 | ||
11121 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11122 | PyObject *resultobj; | |
11123 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11124 | int result; | |
11125 | PyObject * obj0 = 0 ; | |
11126 | char *kwnames[] = { | |
11127 | (char *) "self", NULL | |
11128 | }; | |
11129 | ||
11130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
11131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11132 | { | |
11133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11134 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
11135 | ||
11136 | wxPyEndAllowThreads(__tstate); | |
11137 | if (PyErr_Occurred()) SWIG_fail; | |
11138 | } | |
11139 | resultobj = PyInt_FromLong((long)result); | |
11140 | return resultobj; | |
11141 | fail: | |
11142 | return NULL; | |
11143 | } | |
11144 | ||
11145 | ||
11146 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11147 | PyObject *resultobj; | |
11148 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11149 | size_t arg2 ; | |
11150 | wxString *arg3 = 0 ; | |
11151 | bool result; | |
e811c8ce | 11152 | bool temp3 = False ; |
d14a1e28 RD |
11153 | PyObject * obj0 = 0 ; |
11154 | PyObject * obj1 = 0 ; | |
11155 | PyObject * obj2 = 0 ; | |
11156 | char *kwnames[] = { | |
11157 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
11158 | }; | |
11159 | ||
11160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11162 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11163 | if (PyErr_Occurred()) SWIG_fail; | |
11164 | { | |
11165 | arg3 = wxString_in_helper(obj2); | |
11166 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11167 | temp3 = True; |
d14a1e28 RD |
11168 | } |
11169 | { | |
11170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11171 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
11172 | ||
11173 | wxPyEndAllowThreads(__tstate); | |
11174 | if (PyErr_Occurred()) SWIG_fail; | |
11175 | } | |
11176 | resultobj = PyInt_FromLong((long)result); | |
11177 | { | |
11178 | if (temp3) | |
11179 | delete arg3; | |
11180 | } | |
11181 | return resultobj; | |
11182 | fail: | |
11183 | { | |
11184 | if (temp3) | |
11185 | delete arg3; | |
11186 | } | |
11187 | return NULL; | |
11188 | } | |
11189 | ||
11190 | ||
11191 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11192 | PyObject *resultobj; | |
11193 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11194 | size_t arg2 ; | |
11195 | wxString result; | |
11196 | PyObject * obj0 = 0 ; | |
11197 | PyObject * obj1 = 0 ; | |
11198 | char *kwnames[] = { | |
11199 | (char *) "self",(char *) "n", NULL | |
11200 | }; | |
11201 | ||
11202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
11203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11204 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11205 | if (PyErr_Occurred()) SWIG_fail; | |
11206 | { | |
11207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11208 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
11209 | ||
11210 | wxPyEndAllowThreads(__tstate); | |
11211 | if (PyErr_Occurred()) SWIG_fail; | |
11212 | } | |
11213 | { | |
11214 | #if wxUSE_UNICODE | |
11215 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11216 | #else | |
11217 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11218 | #endif | |
11219 | } | |
11220 | return resultobj; | |
11221 | fail: | |
11222 | return NULL; | |
11223 | } | |
11224 | ||
11225 | ||
11226 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11227 | PyObject *resultobj; | |
11228 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11229 | wxImageList *arg2 = (wxImageList *) 0 ; | |
11230 | PyObject * obj0 = 0 ; | |
11231 | PyObject * obj1 = 0 ; | |
11232 | char *kwnames[] = { | |
11233 | (char *) "self",(char *) "imageList", NULL | |
11234 | }; | |
11235 | ||
11236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
11237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11238 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11239 | { | |
11240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11241 | (arg1)->SetImageList(arg2); | |
11242 | ||
11243 | wxPyEndAllowThreads(__tstate); | |
11244 | if (PyErr_Occurred()) SWIG_fail; | |
11245 | } | |
11246 | Py_INCREF(Py_None); resultobj = Py_None; | |
11247 | return resultobj; | |
11248 | fail: | |
11249 | return NULL; | |
11250 | } | |
11251 | ||
11252 | ||
11253 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11254 | PyObject *resultobj; | |
11255 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11256 | wxImageList *arg2 = (wxImageList *) 0 ; | |
11257 | PyObject * obj0 = 0 ; | |
11258 | PyObject * obj1 = 0 ; | |
11259 | char *kwnames[] = { | |
11260 | (char *) "self",(char *) "imageList", NULL | |
11261 | }; | |
11262 | ||
11263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
11264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11265 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11266 | { | |
11267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11268 | (arg1)->AssignImageList(arg2); | |
11269 | ||
11270 | wxPyEndAllowThreads(__tstate); | |
11271 | if (PyErr_Occurred()) SWIG_fail; | |
11272 | } | |
11273 | Py_INCREF(Py_None); resultobj = Py_None; | |
11274 | return resultobj; | |
11275 | fail: | |
11276 | return NULL; | |
11277 | } | |
11278 | ||
11279 | ||
11280 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11281 | PyObject *resultobj; | |
11282 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11283 | wxImageList *result; | |
11284 | PyObject * obj0 = 0 ; | |
11285 | char *kwnames[] = { | |
11286 | (char *) "self", NULL | |
11287 | }; | |
11288 | ||
11289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
11290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11291 | { | |
11292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11293 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
11294 | ||
11295 | wxPyEndAllowThreads(__tstate); | |
11296 | if (PyErr_Occurred()) SWIG_fail; | |
11297 | } | |
11298 | { | |
11299 | resultobj = wxPyMake_wxObject(result); | |
11300 | } | |
11301 | return resultobj; | |
11302 | fail: | |
11303 | return NULL; | |
11304 | } | |
11305 | ||
11306 | ||
11307 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11308 | PyObject *resultobj; | |
11309 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11310 | size_t arg2 ; | |
11311 | int result; | |
11312 | PyObject * obj0 = 0 ; | |
11313 | PyObject * obj1 = 0 ; | |
11314 | char *kwnames[] = { | |
11315 | (char *) "self",(char *) "n", NULL | |
11316 | }; | |
11317 | ||
11318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
11319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11320 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11321 | if (PyErr_Occurred()) SWIG_fail; | |
11322 | { | |
11323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11324 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
11325 | ||
11326 | wxPyEndAllowThreads(__tstate); | |
11327 | if (PyErr_Occurred()) SWIG_fail; | |
11328 | } | |
11329 | resultobj = PyInt_FromLong((long)result); | |
11330 | return resultobj; | |
11331 | fail: | |
11332 | return NULL; | |
11333 | } | |
11334 | ||
11335 | ||
11336 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11337 | PyObject *resultobj; | |
11338 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11339 | size_t arg2 ; | |
11340 | int arg3 ; | |
11341 | bool result; | |
11342 | PyObject * obj0 = 0 ; | |
11343 | PyObject * obj1 = 0 ; | |
11344 | char *kwnames[] = { | |
11345 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
11346 | }; | |
11347 | ||
11348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
11349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11350 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11351 | if (PyErr_Occurred()) SWIG_fail; | |
11352 | { | |
11353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11354 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
11355 | ||
11356 | wxPyEndAllowThreads(__tstate); | |
11357 | if (PyErr_Occurred()) SWIG_fail; | |
11358 | } | |
11359 | resultobj = PyInt_FromLong((long)result); | |
11360 | return resultobj; | |
11361 | fail: | |
11362 | return NULL; | |
11363 | } | |
11364 | ||
11365 | ||
11366 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11367 | PyObject *resultobj; | |
11368 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11369 | wxSize *arg2 = 0 ; | |
11370 | wxSize temp2 ; | |
11371 | PyObject * obj0 = 0 ; | |
11372 | PyObject * obj1 = 0 ; | |
11373 | char *kwnames[] = { | |
11374 | (char *) "self",(char *) "size", NULL | |
11375 | }; | |
11376 | ||
11377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
11378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11379 | { | |
11380 | arg2 = &temp2; | |
11381 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11382 | } | |
11383 | { | |
11384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11385 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
11386 | ||
11387 | wxPyEndAllowThreads(__tstate); | |
11388 | if (PyErr_Occurred()) SWIG_fail; | |
11389 | } | |
11390 | Py_INCREF(Py_None); resultobj = Py_None; | |
11391 | return resultobj; | |
11392 | fail: | |
11393 | return NULL; | |
11394 | } | |
11395 | ||
11396 | ||
11397 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11398 | PyObject *resultobj; | |
11399 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11400 | wxSize *arg2 = 0 ; | |
11401 | wxSize result; | |
11402 | wxSize temp2 ; | |
11403 | PyObject * obj0 = 0 ; | |
11404 | PyObject * obj1 = 0 ; | |
11405 | char *kwnames[] = { | |
11406 | (char *) "self",(char *) "sizePage", NULL | |
11407 | }; | |
11408 | ||
11409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
11410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11411 | { | |
11412 | arg2 = &temp2; | |
11413 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11414 | } | |
11415 | { | |
11416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11417 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
11418 | ||
11419 | wxPyEndAllowThreads(__tstate); | |
11420 | if (PyErr_Occurred()) SWIG_fail; | |
11421 | } | |
11422 | { | |
11423 | wxSize * resultptr; | |
11424 | resultptr = new wxSize((wxSize &) result); | |
11425 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11426 | } | |
11427 | return resultobj; | |
11428 | fail: | |
11429 | return NULL; | |
11430 | } | |
11431 | ||
11432 | ||
11433 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11434 | PyObject *resultobj; | |
11435 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11436 | size_t arg2 ; | |
11437 | bool result; | |
11438 | PyObject * obj0 = 0 ; | |
11439 | PyObject * obj1 = 0 ; | |
11440 | char *kwnames[] = { | |
11441 | (char *) "self",(char *) "n", NULL | |
11442 | }; | |
11443 | ||
11444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
11445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11446 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11447 | if (PyErr_Occurred()) SWIG_fail; | |
11448 | { | |
11449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11450 | result = (bool)(arg1)->DeletePage(arg2); | |
11451 | ||
11452 | wxPyEndAllowThreads(__tstate); | |
11453 | if (PyErr_Occurred()) SWIG_fail; | |
11454 | } | |
11455 | resultobj = PyInt_FromLong((long)result); | |
11456 | return resultobj; | |
11457 | fail: | |
11458 | return NULL; | |
11459 | } | |
11460 | ||
11461 | ||
11462 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11463 | PyObject *resultobj; | |
11464 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11465 | size_t arg2 ; | |
11466 | bool result; | |
11467 | PyObject * obj0 = 0 ; | |
11468 | PyObject * obj1 = 0 ; | |
11469 | char *kwnames[] = { | |
11470 | (char *) "self",(char *) "n", NULL | |
11471 | }; | |
11472 | ||
11473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
11474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11475 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11476 | if (PyErr_Occurred()) SWIG_fail; | |
11477 | { | |
11478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11479 | result = (bool)(arg1)->RemovePage(arg2); | |
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_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11492 | PyObject *resultobj; | |
11493 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11494 | bool result; | |
11495 | PyObject * obj0 = 0 ; | |
11496 | char *kwnames[] = { | |
11497 | (char *) "self", NULL | |
11498 | }; | |
11499 | ||
11500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
11501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11502 | { | |
11503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11504 | result = (bool)(arg1)->DeleteAllPages(); | |
11505 | ||
11506 | wxPyEndAllowThreads(__tstate); | |
11507 | if (PyErr_Occurred()) SWIG_fail; | |
11508 | } | |
11509 | resultobj = PyInt_FromLong((long)result); | |
11510 | return resultobj; | |
11511 | fail: | |
11512 | return NULL; | |
11513 | } | |
11514 | ||
11515 | ||
11516 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11517 | PyObject *resultobj; | |
11518 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11519 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11520 | wxString *arg3 = 0 ; | |
e811c8ce | 11521 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11522 | int arg5 = (int) -1 ; |
11523 | bool result; | |
e811c8ce | 11524 | bool temp3 = False ; |
d14a1e28 RD |
11525 | PyObject * obj0 = 0 ; |
11526 | PyObject * obj1 = 0 ; | |
11527 | PyObject * obj2 = 0 ; | |
11528 | PyObject * obj3 = 0 ; | |
11529 | char *kwnames[] = { | |
11530 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
11531 | }; | |
11532 | ||
11533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|Oi:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
11534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11535 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11536 | { | |
11537 | arg3 = wxString_in_helper(obj2); | |
11538 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11539 | temp3 = True; |
d14a1e28 RD |
11540 | } |
11541 | if (obj3) { | |
11542 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
11543 | if (PyErr_Occurred()) SWIG_fail; | |
11544 | } | |
11545 | { | |
11546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11547 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
11548 | ||
11549 | wxPyEndAllowThreads(__tstate); | |
11550 | if (PyErr_Occurred()) SWIG_fail; | |
11551 | } | |
11552 | resultobj = PyInt_FromLong((long)result); | |
11553 | { | |
11554 | if (temp3) | |
11555 | delete arg3; | |
11556 | } | |
11557 | return resultobj; | |
11558 | fail: | |
11559 | { | |
11560 | if (temp3) | |
11561 | delete arg3; | |
11562 | } | |
11563 | return NULL; | |
11564 | } | |
11565 | ||
11566 | ||
11567 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11568 | PyObject *resultobj; | |
11569 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11570 | size_t arg2 ; | |
11571 | wxWindow *arg3 = (wxWindow *) 0 ; | |
11572 | wxString *arg4 = 0 ; | |
e811c8ce | 11573 | bool arg5 = (bool) False ; |
d14a1e28 RD |
11574 | int arg6 = (int) -1 ; |
11575 | bool result; | |
e811c8ce | 11576 | bool temp4 = False ; |
d14a1e28 RD |
11577 | PyObject * obj0 = 0 ; |
11578 | PyObject * obj1 = 0 ; | |
11579 | PyObject * obj2 = 0 ; | |
11580 | PyObject * obj3 = 0 ; | |
11581 | PyObject * obj4 = 0 ; | |
11582 | char *kwnames[] = { | |
11583 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
11584 | }; | |
11585 | ||
11586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|Oi:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6)) goto fail; | |
11587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11588 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11589 | if (PyErr_Occurred()) SWIG_fail; | |
11590 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11591 | { | |
11592 | arg4 = wxString_in_helper(obj3); | |
11593 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11594 | temp4 = True; |
d14a1e28 RD |
11595 | } |
11596 | if (obj4) { | |
11597 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
11598 | if (PyErr_Occurred()) SWIG_fail; | |
11599 | } | |
11600 | { | |
11601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11602 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
11603 | ||
11604 | wxPyEndAllowThreads(__tstate); | |
11605 | if (PyErr_Occurred()) SWIG_fail; | |
11606 | } | |
11607 | resultobj = PyInt_FromLong((long)result); | |
11608 | { | |
11609 | if (temp4) | |
11610 | delete arg4; | |
11611 | } | |
11612 | return resultobj; | |
11613 | fail: | |
11614 | { | |
11615 | if (temp4) | |
11616 | delete arg4; | |
11617 | } | |
11618 | return NULL; | |
11619 | } | |
11620 | ||
11621 | ||
11622 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11623 | PyObject *resultobj; | |
11624 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11625 | size_t arg2 ; | |
11626 | int result; | |
11627 | PyObject * obj0 = 0 ; | |
11628 | PyObject * obj1 = 0 ; | |
11629 | char *kwnames[] = { | |
11630 | (char *) "self",(char *) "n", NULL | |
11631 | }; | |
11632 | ||
11633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
11634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11635 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11636 | if (PyErr_Occurred()) SWIG_fail; | |
11637 | { | |
11638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11639 | result = (int)(arg1)->SetSelection(arg2); | |
11640 | ||
11641 | wxPyEndAllowThreads(__tstate); | |
11642 | if (PyErr_Occurred()) SWIG_fail; | |
11643 | } | |
11644 | resultobj = PyInt_FromLong((long)result); | |
11645 | return resultobj; | |
11646 | fail: | |
11647 | return NULL; | |
11648 | } | |
11649 | ||
11650 | ||
11651 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11652 | PyObject *resultobj; | |
11653 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
e811c8ce | 11654 | bool arg2 = (bool) True ; |
d14a1e28 RD |
11655 | PyObject * obj0 = 0 ; |
11656 | PyObject * obj1 = 0 ; | |
11657 | char *kwnames[] = { | |
11658 | (char *) "self",(char *) "forward", NULL | |
11659 | }; | |
11660 | ||
11661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
11662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11663 | if (obj1) { | |
11664 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
11665 | if (PyErr_Occurred()) SWIG_fail; | |
11666 | } | |
11667 | { | |
11668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11669 | (arg1)->AdvanceSelection(arg2); | |
11670 | ||
11671 | wxPyEndAllowThreads(__tstate); | |
11672 | if (PyErr_Occurred()) SWIG_fail; | |
11673 | } | |
11674 | Py_INCREF(Py_None); resultobj = Py_None; | |
11675 | return resultobj; | |
11676 | fail: | |
11677 | return NULL; | |
11678 | } | |
11679 | ||
11680 | ||
11681 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
11682 | PyObject *obj; | |
11683 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11684 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
11685 | Py_INCREF(obj); | |
11686 | return Py_BuildValue((char *)""); | |
11687 | } | |
11688 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11689 | PyObject *resultobj; | |
11690 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11691 | int arg2 = (int) 0 ; | |
11692 | int arg3 = (int) -1 ; | |
11693 | int arg4 = (int) -1 ; | |
11694 | wxBookCtrlEvent *result; | |
11695 | char *kwnames[] = { | |
11696 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
11697 | }; | |
11698 | ||
11699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_BookCtrlEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
11700 | { | |
11701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11702 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
11703 | ||
11704 | wxPyEndAllowThreads(__tstate); | |
11705 | if (PyErr_Occurred()) SWIG_fail; | |
11706 | } | |
11707 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
11708 | return resultobj; | |
11709 | fail: | |
11710 | return NULL; | |
11711 | } | |
11712 | ||
11713 | ||
11714 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11715 | PyObject *resultobj; | |
11716 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11717 | int result; | |
11718 | PyObject * obj0 = 0 ; | |
11719 | char *kwnames[] = { | |
11720 | (char *) "self", NULL | |
11721 | }; | |
11722 | ||
11723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) 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 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
11728 | ||
11729 | wxPyEndAllowThreads(__tstate); | |
11730 | if (PyErr_Occurred()) SWIG_fail; | |
11731 | } | |
11732 | resultobj = PyInt_FromLong((long)result); | |
11733 | return resultobj; | |
11734 | fail: | |
11735 | return NULL; | |
11736 | } | |
11737 | ||
11738 | ||
11739 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11740 | PyObject *resultobj; | |
11741 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11742 | int arg2 ; | |
11743 | PyObject * obj0 = 0 ; | |
11744 | char *kwnames[] = { | |
11745 | (char *) "self",(char *) "nSel", NULL | |
11746 | }; | |
11747 | ||
11748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BookCtrlEvent_SetSelection",kwnames,&obj0,&arg2)) 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 | (arg1)->SetSelection(arg2); | |
11753 | ||
11754 | wxPyEndAllowThreads(__tstate); | |
11755 | if (PyErr_Occurred()) SWIG_fail; | |
11756 | } | |
11757 | Py_INCREF(Py_None); resultobj = Py_None; | |
11758 | return resultobj; | |
11759 | fail: | |
11760 | return NULL; | |
11761 | } | |
11762 | ||
11763 | ||
11764 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11765 | PyObject *resultobj; | |
11766 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11767 | int result; | |
11768 | PyObject * obj0 = 0 ; | |
11769 | char *kwnames[] = { | |
11770 | (char *) "self", NULL | |
11771 | }; | |
11772 | ||
11773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) 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 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
11778 | ||
11779 | wxPyEndAllowThreads(__tstate); | |
11780 | if (PyErr_Occurred()) SWIG_fail; | |
11781 | } | |
11782 | resultobj = PyInt_FromLong((long)result); | |
11783 | return resultobj; | |
11784 | fail: | |
11785 | return NULL; | |
11786 | } | |
11787 | ||
11788 | ||
11789 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11790 | PyObject *resultobj; | |
11791 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11792 | int arg2 ; | |
11793 | PyObject * obj0 = 0 ; | |
11794 | char *kwnames[] = { | |
11795 | (char *) "self",(char *) "nOldSel", NULL | |
11796 | }; | |
11797 | ||
11798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&arg2)) goto fail; | |
11799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11800 | { | |
11801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11802 | (arg1)->SetOldSelection(arg2); | |
11803 | ||
11804 | wxPyEndAllowThreads(__tstate); | |
11805 | if (PyErr_Occurred()) SWIG_fail; | |
11806 | } | |
11807 | Py_INCREF(Py_None); resultobj = Py_None; | |
11808 | return resultobj; | |
11809 | fail: | |
11810 | return NULL; | |
11811 | } | |
11812 | ||
11813 | ||
11814 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
11815 | PyObject *obj; | |
11816 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11817 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
11818 | Py_INCREF(obj); | |
11819 | return Py_BuildValue((char *)""); | |
11820 | } | |
11821 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11822 | PyObject *resultobj; | |
11823 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11824 | int arg2 ; |
d14a1e28 RD |
11825 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
11826 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
11827 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
11828 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
11829 | long arg5 = (long) 0 ; | |
11830 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
11831 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
11832 | wxNotebook *result; | |
11833 | wxPoint temp3 ; | |
11834 | wxSize temp4 ; | |
e811c8ce | 11835 | bool temp6 = False ; |
d14a1e28 RD |
11836 | PyObject * obj0 = 0 ; |
11837 | PyObject * obj2 = 0 ; | |
11838 | PyObject * obj3 = 0 ; | |
11839 | PyObject * obj5 = 0 ; | |
11840 | char *kwnames[] = { | |
11841 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
11842 | }; | |
11843 | ||
11844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Notebook",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
11845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11846 | if (obj2) { | |
11847 | { | |
11848 | arg3 = &temp3; | |
11849 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11850 | } | |
11851 | } | |
11852 | if (obj3) { | |
11853 | { | |
11854 | arg4 = &temp4; | |
11855 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
11856 | } | |
11857 | } | |
11858 | if (obj5) { | |
11859 | { | |
11860 | arg6 = wxString_in_helper(obj5); | |
11861 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 11862 | temp6 = True; |
d14a1e28 RD |
11863 | } |
11864 | } | |
11865 | { | |
11866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11867 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
11868 | ||
11869 | wxPyEndAllowThreads(__tstate); | |
11870 | if (PyErr_Occurred()) SWIG_fail; | |
11871 | } | |
11872 | { | |
11873 | resultobj = wxPyMake_wxObject(result); | |
11874 | } | |
11875 | { | |
11876 | if (temp6) | |
11877 | delete arg6; | |
11878 | } | |
11879 | return resultobj; | |
11880 | fail: | |
11881 | { | |
11882 | if (temp6) | |
11883 | delete arg6; | |
11884 | } | |
11885 | return NULL; | |
11886 | } | |
11887 | ||
11888 | ||
11889 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11890 | PyObject *resultobj; | |
11891 | wxNotebook *result; | |
11892 | char *kwnames[] = { | |
11893 | NULL | |
11894 | }; | |
11895 | ||
11896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
11897 | { | |
11898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11899 | result = (wxNotebook *)new wxNotebook(); | |
11900 | ||
11901 | wxPyEndAllowThreads(__tstate); | |
11902 | if (PyErr_Occurred()) SWIG_fail; | |
11903 | } | |
11904 | { | |
11905 | resultobj = wxPyMake_wxObject(result); | |
11906 | } | |
11907 | return resultobj; | |
11908 | fail: | |
11909 | return NULL; | |
11910 | } | |
11911 | ||
11912 | ||
11913 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11914 | PyObject *resultobj; | |
11915 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
11916 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11917 | int arg3 ; |
d14a1e28 RD |
11918 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11919 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11920 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11921 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11922 | long arg6 = (long) 0 ; | |
11923 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
11924 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11925 | bool result; | |
11926 | wxPoint temp4 ; | |
11927 | wxSize temp5 ; | |
e811c8ce | 11928 | bool temp7 = False ; |
d14a1e28 RD |
11929 | PyObject * obj0 = 0 ; |
11930 | PyObject * obj1 = 0 ; | |
11931 | PyObject * obj3 = 0 ; | |
11932 | PyObject * obj4 = 0 ; | |
11933 | PyObject * obj6 = 0 ; | |
11934 | char *kwnames[] = { | |
11935 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
11936 | }; | |
11937 | ||
11938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Notebook_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
11939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11940 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11941 | if (obj3) { | |
11942 | { | |
11943 | arg4 = &temp4; | |
11944 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11945 | } | |
11946 | } | |
11947 | if (obj4) { | |
11948 | { | |
11949 | arg5 = &temp5; | |
11950 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11951 | } | |
11952 | } | |
11953 | if (obj6) { | |
11954 | { | |
11955 | arg7 = wxString_in_helper(obj6); | |
11956 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 11957 | temp7 = True; |
d14a1e28 RD |
11958 | } |
11959 | } | |
11960 | { | |
11961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11962 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
11963 | ||
11964 | wxPyEndAllowThreads(__tstate); | |
11965 | if (PyErr_Occurred()) SWIG_fail; | |
11966 | } | |
11967 | resultobj = PyInt_FromLong((long)result); | |
11968 | { | |
11969 | if (temp7) | |
11970 | delete arg7; | |
11971 | } | |
11972 | return resultobj; | |
11973 | fail: | |
11974 | { | |
11975 | if (temp7) | |
11976 | delete arg7; | |
11977 | } | |
11978 | return NULL; | |
11979 | } | |
11980 | ||
11981 | ||
11982 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11983 | PyObject *resultobj; | |
11984 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
11985 | int result; | |
11986 | PyObject * obj0 = 0 ; | |
11987 | char *kwnames[] = { | |
11988 | (char *) "self", NULL | |
11989 | }; | |
11990 | ||
11991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
11992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11993 | { | |
11994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11995 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
11996 | ||
11997 | wxPyEndAllowThreads(__tstate); | |
11998 | if (PyErr_Occurred()) SWIG_fail; | |
11999 | } | |
12000 | resultobj = PyInt_FromLong((long)result); | |
12001 | return resultobj; | |
12002 | fail: | |
12003 | return NULL; | |
12004 | } | |
12005 | ||
12006 | ||
12007 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12008 | PyObject *resultobj; | |
12009 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12010 | wxSize *arg2 = 0 ; | |
12011 | wxSize temp2 ; | |
12012 | PyObject * obj0 = 0 ; | |
12013 | PyObject * obj1 = 0 ; | |
12014 | char *kwnames[] = { | |
12015 | (char *) "self",(char *) "padding", NULL | |
12016 | }; | |
12017 | ||
12018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
12019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12020 | { | |
12021 | arg2 = &temp2; | |
12022 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12023 | } | |
12024 | { | |
12025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12026 | (arg1)->SetPadding((wxSize const &)*arg2); | |
12027 | ||
12028 | wxPyEndAllowThreads(__tstate); | |
12029 | if (PyErr_Occurred()) SWIG_fail; | |
12030 | } | |
12031 | Py_INCREF(Py_None); resultobj = Py_None; | |
12032 | return resultobj; | |
12033 | fail: | |
12034 | return NULL; | |
12035 | } | |
12036 | ||
12037 | ||
12038 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12039 | PyObject *resultobj; | |
12040 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12041 | wxSize *arg2 = 0 ; | |
12042 | wxSize temp2 ; | |
12043 | PyObject * obj0 = 0 ; | |
12044 | PyObject * obj1 = 0 ; | |
12045 | char *kwnames[] = { | |
12046 | (char *) "self",(char *) "sz", NULL | |
12047 | }; | |
12048 | ||
12049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
12050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12051 | { | |
12052 | arg2 = &temp2; | |
12053 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12054 | } | |
12055 | { | |
12056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12057 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
12058 | ||
12059 | wxPyEndAllowThreads(__tstate); | |
12060 | if (PyErr_Occurred()) SWIG_fail; | |
12061 | } | |
12062 | Py_INCREF(Py_None); resultobj = Py_None; | |
12063 | return resultobj; | |
12064 | fail: | |
12065 | return NULL; | |
12066 | } | |
12067 | ||
12068 | ||
12069 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12070 | PyObject *resultobj; | |
12071 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12072 | wxPoint *arg2 = 0 ; | |
12073 | long *arg3 = (long *) 0 ; | |
12074 | int result; | |
12075 | wxPoint temp2 ; | |
12076 | long temp3 ; | |
12077 | PyObject * obj0 = 0 ; | |
12078 | PyObject * obj1 = 0 ; | |
12079 | char *kwnames[] = { | |
12080 | (char *) "self",(char *) "pt", NULL | |
12081 | }; | |
12082 | ||
12083 | arg3 = &temp3; | |
12084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
12085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12086 | { | |
12087 | arg2 = &temp2; | |
12088 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12089 | } | |
12090 | { | |
12091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12092 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
12093 | ||
12094 | wxPyEndAllowThreads(__tstate); | |
12095 | if (PyErr_Occurred()) SWIG_fail; | |
12096 | } | |
12097 | resultobj = PyInt_FromLong((long)result); | |
12098 | { | |
12099 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12100 | resultobj = t_output_helper(resultobj,o); | |
12101 | } | |
12102 | return resultobj; | |
12103 | fail: | |
12104 | return NULL; | |
12105 | } | |
12106 | ||
12107 | ||
12108 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12109 | PyObject *resultobj; | |
12110 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12111 | wxSize *arg2 = 0 ; | |
12112 | wxSize result; | |
12113 | wxSize temp2 ; | |
12114 | PyObject * obj0 = 0 ; | |
12115 | PyObject * obj1 = 0 ; | |
12116 | char *kwnames[] = { | |
12117 | (char *) "self",(char *) "sizePage", NULL | |
12118 | }; | |
12119 | ||
12120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
12121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12122 | { | |
12123 | arg2 = &temp2; | |
12124 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12125 | } | |
12126 | { | |
12127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12128 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
12129 | ||
12130 | wxPyEndAllowThreads(__tstate); | |
12131 | if (PyErr_Occurred()) SWIG_fail; | |
12132 | } | |
12133 | { | |
12134 | wxSize * resultptr; | |
12135 | resultptr = new wxSize((wxSize &) result); | |
12136 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12137 | } | |
12138 | return resultobj; | |
12139 | fail: | |
12140 | return NULL; | |
12141 | } | |
12142 | ||
12143 | ||
12144 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
12145 | PyObject *obj; | |
12146 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12147 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
12148 | Py_INCREF(obj); | |
12149 | return Py_BuildValue((char *)""); | |
12150 | } | |
12151 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12152 | PyObject *resultobj; | |
12153 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12154 | int arg2 = (int) 0 ; | |
12155 | int arg3 = (int) -1 ; | |
12156 | int arg4 = (int) -1 ; | |
12157 | wxNotebookEvent *result; | |
12158 | char *kwnames[] = { | |
12159 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
12160 | }; | |
12161 | ||
12162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_NotebookEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
12163 | { | |
12164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12165 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
12166 | ||
12167 | wxPyEndAllowThreads(__tstate); | |
12168 | if (PyErr_Occurred()) SWIG_fail; | |
12169 | } | |
12170 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
12171 | return resultobj; | |
12172 | fail: | |
12173 | return NULL; | |
12174 | } | |
12175 | ||
12176 | ||
12177 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
12178 | PyObject *obj; | |
12179 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12180 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
12181 | Py_INCREF(obj); | |
12182 | return Py_BuildValue((char *)""); | |
12183 | } | |
12184 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12185 | PyObject *resultobj; | |
12186 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12187 | int arg2 ; |
d14a1e28 RD |
12188 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12189 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12190 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12191 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12192 | long arg5 = (long) 0 ; | |
12193 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
12194 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12195 | wxListbook *result; | |
12196 | wxPoint temp3 ; | |
12197 | wxSize temp4 ; | |
e811c8ce | 12198 | bool temp6 = False ; |
d14a1e28 RD |
12199 | PyObject * obj0 = 0 ; |
12200 | PyObject * obj2 = 0 ; | |
12201 | PyObject * obj3 = 0 ; | |
12202 | PyObject * obj5 = 0 ; | |
12203 | char *kwnames[] = { | |
12204 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12205 | }; | |
12206 | ||
12207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Listbook",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
12208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12209 | if (obj2) { | |
12210 | { | |
12211 | arg3 = &temp3; | |
12212 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12213 | } | |
12214 | } | |
12215 | if (obj3) { | |
12216 | { | |
12217 | arg4 = &temp4; | |
12218 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12219 | } | |
12220 | } | |
12221 | if (obj5) { | |
12222 | { | |
12223 | arg6 = wxString_in_helper(obj5); | |
12224 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 12225 | temp6 = True; |
d14a1e28 RD |
12226 | } |
12227 | } | |
12228 | { | |
12229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12230 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12231 | ||
12232 | wxPyEndAllowThreads(__tstate); | |
12233 | if (PyErr_Occurred()) SWIG_fail; | |
12234 | } | |
12235 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
12236 | { | |
12237 | if (temp6) | |
12238 | delete arg6; | |
12239 | } | |
12240 | return resultobj; | |
12241 | fail: | |
12242 | { | |
12243 | if (temp6) | |
12244 | delete arg6; | |
12245 | } | |
12246 | return NULL; | |
12247 | } | |
12248 | ||
12249 | ||
12250 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12251 | PyObject *resultobj; | |
12252 | wxListbook *result; | |
12253 | char *kwnames[] = { | |
12254 | NULL | |
12255 | }; | |
12256 | ||
12257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
12258 | { | |
12259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12260 | result = (wxListbook *)new wxListbook(); | |
12261 | ||
12262 | wxPyEndAllowThreads(__tstate); | |
12263 | if (PyErr_Occurred()) SWIG_fail; | |
12264 | } | |
12265 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
12266 | return resultobj; | |
12267 | fail: | |
12268 | return NULL; | |
12269 | } | |
12270 | ||
12271 | ||
12272 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12273 | PyObject *resultobj; | |
12274 | wxListbook *arg1 = (wxListbook *) 0 ; | |
12275 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12276 | int arg3 ; |
d14a1e28 RD |
12277 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12278 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12279 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12280 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12281 | long arg6 = (long) 0 ; | |
12282 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
12283 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12284 | bool result; | |
12285 | wxPoint temp4 ; | |
12286 | wxSize temp5 ; | |
e811c8ce | 12287 | bool temp7 = False ; |
d14a1e28 RD |
12288 | PyObject * obj0 = 0 ; |
12289 | PyObject * obj1 = 0 ; | |
12290 | PyObject * obj3 = 0 ; | |
12291 | PyObject * obj4 = 0 ; | |
12292 | PyObject * obj6 = 0 ; | |
12293 | char *kwnames[] = { | |
12294 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12295 | }; | |
12296 | ||
12297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Listbook_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
12298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12299 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12300 | if (obj3) { | |
12301 | { | |
12302 | arg4 = &temp4; | |
12303 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12304 | } | |
12305 | } | |
12306 | if (obj4) { | |
12307 | { | |
12308 | arg5 = &temp5; | |
12309 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12310 | } | |
12311 | } | |
12312 | if (obj6) { | |
12313 | { | |
12314 | arg7 = wxString_in_helper(obj6); | |
12315 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 12316 | temp7 = True; |
d14a1e28 RD |
12317 | } |
12318 | } | |
12319 | { | |
12320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12321 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12322 | ||
12323 | wxPyEndAllowThreads(__tstate); | |
12324 | if (PyErr_Occurred()) SWIG_fail; | |
12325 | } | |
12326 | resultobj = PyInt_FromLong((long)result); | |
12327 | { | |
12328 | if (temp7) | |
12329 | delete arg7; | |
12330 | } | |
12331 | return resultobj; | |
12332 | fail: | |
12333 | { | |
12334 | if (temp7) | |
12335 | delete arg7; | |
12336 | } | |
12337 | return NULL; | |
12338 | } | |
12339 | ||
12340 | ||
12341 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12342 | PyObject *resultobj; | |
12343 | wxListbook *arg1 = (wxListbook *) 0 ; | |
12344 | bool result; | |
12345 | PyObject * obj0 = 0 ; | |
12346 | char *kwnames[] = { | |
12347 | (char *) "self", NULL | |
12348 | }; | |
12349 | ||
12350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
12351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12352 | { | |
12353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12354 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
12355 | ||
12356 | wxPyEndAllowThreads(__tstate); | |
12357 | if (PyErr_Occurred()) SWIG_fail; | |
12358 | } | |
12359 | resultobj = PyInt_FromLong((long)result); | |
12360 | return resultobj; | |
12361 | fail: | |
12362 | return NULL; | |
12363 | } | |
12364 | ||
12365 | ||
12366 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
12367 | PyObject *obj; | |
12368 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12369 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
12370 | Py_INCREF(obj); | |
12371 | return Py_BuildValue((char *)""); | |
12372 | } | |
12373 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12374 | PyObject *resultobj; | |
12375 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12376 | int arg2 = (int) 0 ; | |
12377 | int arg3 = (int) -1 ; | |
12378 | int arg4 = (int) -1 ; | |
12379 | wxListbookEvent *result; | |
12380 | char *kwnames[] = { | |
12381 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
12382 | }; | |
12383 | ||
12384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_ListbookEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
12385 | { | |
12386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12387 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
12388 | ||
12389 | wxPyEndAllowThreads(__tstate); | |
12390 | if (PyErr_Occurred()) SWIG_fail; | |
12391 | } | |
12392 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
12393 | return resultobj; | |
12394 | fail: | |
12395 | return NULL; | |
12396 | } | |
12397 | ||
12398 | ||
12399 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
12400 | PyObject *obj; | |
12401 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12402 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
12403 | Py_INCREF(obj); | |
12404 | return Py_BuildValue((char *)""); | |
12405 | } | |
12406 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12407 | PyObject *resultobj; | |
12408 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12409 | wxBookCtrlSizer *result; | |
12410 | PyObject * obj0 = 0 ; | |
12411 | char *kwnames[] = { | |
12412 | (char *) "nb", NULL | |
12413 | }; | |
12414 | ||
12415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
12416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12417 | { | |
12418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12419 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
12420 | ||
12421 | wxPyEndAllowThreads(__tstate); | |
12422 | if (PyErr_Occurred()) SWIG_fail; | |
12423 | } | |
12424 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
12425 | return resultobj; | |
12426 | fail: | |
12427 | return NULL; | |
12428 | } | |
12429 | ||
12430 | ||
12431 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12432 | PyObject *resultobj; | |
12433 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
12434 | PyObject * obj0 = 0 ; | |
12435 | char *kwnames[] = { | |
12436 | (char *) "self", NULL | |
12437 | }; | |
12438 | ||
12439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",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 | (arg1)->RecalcSizes(); | |
12444 | ||
12445 | wxPyEndAllowThreads(__tstate); | |
12446 | if (PyErr_Occurred()) SWIG_fail; | |
12447 | } | |
12448 | Py_INCREF(Py_None); resultobj = Py_None; | |
12449 | return resultobj; | |
12450 | fail: | |
12451 | return NULL; | |
12452 | } | |
12453 | ||
12454 | ||
12455 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12456 | PyObject *resultobj; | |
12457 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
12458 | wxSize result; | |
12459 | PyObject * obj0 = 0 ; | |
12460 | char *kwnames[] = { | |
12461 | (char *) "self", NULL | |
12462 | }; | |
12463 | ||
12464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
12465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12466 | { | |
12467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12468 | result = (arg1)->CalcMin(); | |
12469 | ||
12470 | wxPyEndAllowThreads(__tstate); | |
12471 | if (PyErr_Occurred()) SWIG_fail; | |
12472 | } | |
12473 | { | |
12474 | wxSize * resultptr; | |
12475 | resultptr = new wxSize((wxSize &) result); | |
12476 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12477 | } | |
12478 | return resultobj; | |
12479 | fail: | |
12480 | return NULL; | |
12481 | } | |
12482 | ||
12483 | ||
12484 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12485 | PyObject *resultobj; | |
12486 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
12487 | wxBookCtrl *result; | |
12488 | PyObject * obj0 = 0 ; | |
12489 | char *kwnames[] = { | |
12490 | (char *) "self", NULL | |
12491 | }; | |
12492 | ||
12493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
12494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12495 | { | |
12496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12497 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
12498 | ||
12499 | wxPyEndAllowThreads(__tstate); | |
12500 | if (PyErr_Occurred()) SWIG_fail; | |
12501 | } | |
12502 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
12503 | return resultobj; | |
12504 | fail: | |
12505 | return NULL; | |
12506 | } | |
12507 | ||
12508 | ||
12509 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
12510 | PyObject *obj; | |
12511 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12512 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
12513 | Py_INCREF(obj); | |
12514 | return Py_BuildValue((char *)""); | |
12515 | } | |
12516 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12517 | PyObject *resultobj; | |
12518 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12519 | wxNotebookSizer *result; | |
12520 | PyObject * obj0 = 0 ; | |
12521 | char *kwnames[] = { | |
12522 | (char *) "nb", NULL | |
12523 | }; | |
12524 | ||
12525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
12526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12527 | { | |
12528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12529 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
12530 | ||
12531 | wxPyEndAllowThreads(__tstate); | |
12532 | if (PyErr_Occurred()) SWIG_fail; | |
12533 | } | |
12534 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
12535 | return resultobj; | |
12536 | fail: | |
12537 | return NULL; | |
12538 | } | |
12539 | ||
12540 | ||
12541 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12542 | PyObject *resultobj; | |
12543 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
12544 | PyObject * obj0 = 0 ; | |
12545 | char *kwnames[] = { | |
12546 | (char *) "self", NULL | |
12547 | }; | |
12548 | ||
12549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",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 | (arg1)->RecalcSizes(); | |
12554 | ||
12555 | wxPyEndAllowThreads(__tstate); | |
12556 | if (PyErr_Occurred()) SWIG_fail; | |
12557 | } | |
12558 | Py_INCREF(Py_None); resultobj = Py_None; | |
12559 | return resultobj; | |
12560 | fail: | |
12561 | return NULL; | |
12562 | } | |
12563 | ||
12564 | ||
12565 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12566 | PyObject *resultobj; | |
12567 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
12568 | wxSize result; | |
12569 | PyObject * obj0 = 0 ; | |
12570 | char *kwnames[] = { | |
12571 | (char *) "self", NULL | |
12572 | }; | |
12573 | ||
12574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
12575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12576 | { | |
12577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12578 | result = (arg1)->CalcMin(); | |
12579 | ||
12580 | wxPyEndAllowThreads(__tstate); | |
12581 | if (PyErr_Occurred()) SWIG_fail; | |
12582 | } | |
12583 | { | |
12584 | wxSize * resultptr; | |
12585 | resultptr = new wxSize((wxSize &) result); | |
12586 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12587 | } | |
12588 | return resultobj; | |
12589 | fail: | |
12590 | return NULL; | |
12591 | } | |
12592 | ||
12593 | ||
12594 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12595 | PyObject *resultobj; | |
12596 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
12597 | wxNotebook *result; | |
12598 | PyObject * obj0 = 0 ; | |
12599 | char *kwnames[] = { | |
12600 | (char *) "self", NULL | |
12601 | }; | |
12602 | ||
12603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
12604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12605 | { | |
12606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12607 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
12608 | ||
12609 | wxPyEndAllowThreads(__tstate); | |
12610 | if (PyErr_Occurred()) SWIG_fail; | |
12611 | } | |
12612 | { | |
12613 | resultobj = wxPyMake_wxObject(result); | |
12614 | } | |
12615 | return resultobj; | |
12616 | fail: | |
12617 | return NULL; | |
12618 | } | |
12619 | ||
12620 | ||
12621 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
12622 | PyObject *obj; | |
12623 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12624 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
12625 | Py_INCREF(obj); | |
12626 | return Py_BuildValue((char *)""); | |
12627 | } | |
12628 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12629 | PyObject *resultobj; | |
12630 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12631 | int result; | |
12632 | PyObject * obj0 = 0 ; | |
12633 | char *kwnames[] = { | |
12634 | (char *) "self", NULL | |
12635 | }; | |
12636 | ||
12637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",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 = (int)(arg1)->GetId(); | |
12642 | ||
12643 | wxPyEndAllowThreads(__tstate); | |
12644 | if (PyErr_Occurred()) SWIG_fail; | |
12645 | } | |
12646 | resultobj = PyInt_FromLong((long)result); | |
12647 | return resultobj; | |
12648 | fail: | |
12649 | return NULL; | |
12650 | } | |
12651 | ||
12652 | ||
12653 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12654 | PyObject *resultobj; | |
12655 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12656 | wxControl *result; | |
12657 | PyObject * obj0 = 0 ; | |
12658 | char *kwnames[] = { | |
12659 | (char *) "self", NULL | |
12660 | }; | |
12661 | ||
12662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
12663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12664 | { | |
12665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12666 | result = (wxControl *)(arg1)->GetControl(); | |
12667 | ||
12668 | wxPyEndAllowThreads(__tstate); | |
12669 | if (PyErr_Occurred()) SWIG_fail; | |
12670 | } | |
12671 | { | |
12672 | resultobj = wxPyMake_wxObject(result); | |
12673 | } | |
12674 | return resultobj; | |
12675 | fail: | |
12676 | return NULL; | |
12677 | } | |
12678 | ||
12679 | ||
12680 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12681 | PyObject *resultobj; | |
12682 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12683 | wxToolBarBase *result; | |
12684 | PyObject * obj0 = 0 ; | |
12685 | char *kwnames[] = { | |
12686 | (char *) "self", NULL | |
12687 | }; | |
12688 | ||
12689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
12690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12691 | { | |
12692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12693 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
12694 | ||
12695 | wxPyEndAllowThreads(__tstate); | |
12696 | if (PyErr_Occurred()) SWIG_fail; | |
12697 | } | |
12698 | { | |
12699 | resultobj = wxPyMake_wxObject(result); | |
12700 | } | |
12701 | return resultobj; | |
12702 | fail: | |
12703 | return NULL; | |
12704 | } | |
12705 | ||
12706 | ||
12707 | static PyObject *_wrap_ToolBarToolBase_IsButton(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_IsButton",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)->IsButton(); | |
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_IsControl(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_IsControl",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)->IsControl(); | |
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_IsSeparator(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_IsSeparator",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)->IsSeparator(); | |
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_GetStyle(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_GetStyle",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)->GetStyle(); | |
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_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12808 | PyObject *resultobj; | |
12809 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12810 | int result; | |
12811 | PyObject * obj0 = 0 ; | |
12812 | char *kwnames[] = { | |
12813 | (char *) "self", NULL | |
12814 | }; | |
12815 | ||
12816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",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 = (int)(arg1)->GetKind(); | |
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_IsEnabled(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_IsEnabled",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)->IsEnabled(); | |
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_IsToggled(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_IsToggled",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)->IsToggled(); | |
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_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12883 | PyObject *resultobj; | |
12884 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12885 | bool result; | |
12886 | PyObject * obj0 = 0 ; | |
12887 | char *kwnames[] = { | |
12888 | (char *) "self", NULL | |
12889 | }; | |
12890 | ||
12891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",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 | result = (bool)(arg1)->CanBeToggled(); | |
12896 | ||
12897 | wxPyEndAllowThreads(__tstate); | |
12898 | if (PyErr_Occurred()) SWIG_fail; | |
12899 | } | |
12900 | resultobj = PyInt_FromLong((long)result); | |
12901 | return resultobj; | |
12902 | fail: | |
12903 | return NULL; | |
12904 | } | |
12905 | ||
12906 | ||
12907 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12908 | PyObject *resultobj; | |
12909 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12910 | wxBitmap *result; | |
12911 | PyObject * obj0 = 0 ; | |
12912 | char *kwnames[] = { | |
12913 | (char *) "self", NULL | |
12914 | }; | |
12915 | ||
12916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
12917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12918 | { | |
12919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12920 | { | |
12921 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
12922 | result = (wxBitmap *) &_result_ref; | |
12923 | } | |
12924 | ||
12925 | wxPyEndAllowThreads(__tstate); | |
12926 | if (PyErr_Occurred()) SWIG_fail; | |
12927 | } | |
12928 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
12929 | return resultobj; | |
12930 | fail: | |
12931 | return NULL; | |
12932 | } | |
12933 | ||
12934 | ||
12935 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12936 | PyObject *resultobj; | |
12937 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12938 | wxBitmap *result; | |
12939 | PyObject * obj0 = 0 ; | |
12940 | char *kwnames[] = { | |
12941 | (char *) "self", NULL | |
12942 | }; | |
12943 | ||
12944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
12945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12946 | { | |
12947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12948 | { | |
12949 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
12950 | result = (wxBitmap *) &_result_ref; | |
12951 | } | |
12952 | ||
12953 | wxPyEndAllowThreads(__tstate); | |
12954 | if (PyErr_Occurred()) SWIG_fail; | |
12955 | } | |
12956 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
12957 | return resultobj; | |
12958 | fail: | |
12959 | return NULL; | |
12960 | } | |
12961 | ||
12962 | ||
12963 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12964 | PyObject *resultobj; | |
12965 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12966 | wxBitmap result; | |
12967 | PyObject * obj0 = 0 ; | |
12968 | char *kwnames[] = { | |
12969 | (char *) "self", NULL | |
12970 | }; | |
12971 | ||
12972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
12973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12974 | { | |
12975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12976 | result = (arg1)->GetBitmap(); | |
12977 | ||
12978 | wxPyEndAllowThreads(__tstate); | |
12979 | if (PyErr_Occurred()) SWIG_fail; | |
12980 | } | |
12981 | { | |
12982 | wxBitmap * resultptr; | |
12983 | resultptr = new wxBitmap((wxBitmap &) result); | |
12984 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
12985 | } | |
12986 | return resultobj; | |
12987 | fail: | |
12988 | return NULL; | |
12989 | } | |
12990 | ||
12991 | ||
12992 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12993 | PyObject *resultobj; | |
12994 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12995 | wxString result; | |
12996 | PyObject * obj0 = 0 ; | |
12997 | char *kwnames[] = { | |
12998 | (char *) "self", NULL | |
12999 | }; | |
13000 | ||
13001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
13002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13003 | { | |
13004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13005 | result = (arg1)->GetLabel(); | |
13006 | ||
13007 | wxPyEndAllowThreads(__tstate); | |
13008 | if (PyErr_Occurred()) SWIG_fail; | |
13009 | } | |
13010 | { | |
13011 | #if wxUSE_UNICODE | |
13012 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13013 | #else | |
13014 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13015 | #endif | |
13016 | } | |
13017 | return resultobj; | |
13018 | fail: | |
13019 | return NULL; | |
13020 | } | |
13021 | ||
13022 | ||
13023 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13024 | PyObject *resultobj; | |
13025 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13026 | wxString result; | |
13027 | PyObject * obj0 = 0 ; | |
13028 | char *kwnames[] = { | |
13029 | (char *) "self", NULL | |
13030 | }; | |
13031 | ||
13032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
13033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13034 | { | |
13035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13036 | result = (arg1)->GetShortHelp(); | |
13037 | ||
13038 | wxPyEndAllowThreads(__tstate); | |
13039 | if (PyErr_Occurred()) SWIG_fail; | |
13040 | } | |
13041 | { | |
13042 | #if wxUSE_UNICODE | |
13043 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13044 | #else | |
13045 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13046 | #endif | |
13047 | } | |
13048 | return resultobj; | |
13049 | fail: | |
13050 | return NULL; | |
13051 | } | |
13052 | ||
13053 | ||
13054 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13055 | PyObject *resultobj; | |
13056 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13057 | wxString result; | |
13058 | PyObject * obj0 = 0 ; | |
13059 | char *kwnames[] = { | |
13060 | (char *) "self", NULL | |
13061 | }; | |
13062 | ||
13063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
13064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13065 | { | |
13066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13067 | result = (arg1)->GetLongHelp(); | |
13068 | ||
13069 | wxPyEndAllowThreads(__tstate); | |
13070 | if (PyErr_Occurred()) SWIG_fail; | |
13071 | } | |
13072 | { | |
13073 | #if wxUSE_UNICODE | |
13074 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13075 | #else | |
13076 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13077 | #endif | |
13078 | } | |
13079 | return resultobj; | |
13080 | fail: | |
13081 | return NULL; | |
13082 | } | |
13083 | ||
13084 | ||
13085 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13086 | PyObject *resultobj; | |
13087 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13088 | bool arg2 ; | |
13089 | bool result; | |
13090 | PyObject * obj0 = 0 ; | |
13091 | PyObject * obj1 = 0 ; | |
13092 | char *kwnames[] = { | |
13093 | (char *) "self",(char *) "enable", NULL | |
13094 | }; | |
13095 | ||
13096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
13097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13098 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13099 | if (PyErr_Occurred()) SWIG_fail; | |
13100 | { | |
13101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13102 | result = (bool)(arg1)->Enable(arg2); | |
13103 | ||
13104 | wxPyEndAllowThreads(__tstate); | |
13105 | if (PyErr_Occurred()) SWIG_fail; | |
13106 | } | |
13107 | resultobj = PyInt_FromLong((long)result); | |
13108 | return resultobj; | |
13109 | fail: | |
13110 | return NULL; | |
13111 | } | |
13112 | ||
13113 | ||
13114 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13115 | PyObject *resultobj; | |
13116 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13117 | PyObject * obj0 = 0 ; | |
13118 | char *kwnames[] = { | |
13119 | (char *) "self", NULL | |
13120 | }; | |
13121 | ||
13122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
13123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13124 | { | |
13125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13126 | (arg1)->Toggle(); | |
13127 | ||
13128 | wxPyEndAllowThreads(__tstate); | |
13129 | if (PyErr_Occurred()) SWIG_fail; | |
13130 | } | |
13131 | Py_INCREF(Py_None); resultobj = Py_None; | |
13132 | return resultobj; | |
13133 | fail: | |
13134 | return NULL; | |
13135 | } | |
13136 | ||
13137 | ||
13138 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13139 | PyObject *resultobj; | |
13140 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13141 | bool arg2 ; | |
13142 | bool result; | |
13143 | PyObject * obj0 = 0 ; | |
13144 | PyObject * obj1 = 0 ; | |
13145 | char *kwnames[] = { | |
13146 | (char *) "self",(char *) "toggle", NULL | |
13147 | }; | |
13148 | ||
13149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
13150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13151 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13152 | if (PyErr_Occurred()) SWIG_fail; | |
13153 | { | |
13154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13155 | result = (bool)(arg1)->SetToggle(arg2); | |
13156 | ||
13157 | wxPyEndAllowThreads(__tstate); | |
13158 | if (PyErr_Occurred()) SWIG_fail; | |
13159 | } | |
13160 | resultobj = PyInt_FromLong((long)result); | |
13161 | return resultobj; | |
13162 | fail: | |
13163 | return NULL; | |
13164 | } | |
13165 | ||
13166 | ||
13167 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13168 | PyObject *resultobj; | |
13169 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13170 | wxString *arg2 = 0 ; | |
13171 | bool result; | |
e811c8ce | 13172 | bool temp2 = False ; |
d14a1e28 RD |
13173 | PyObject * obj0 = 0 ; |
13174 | PyObject * obj1 = 0 ; | |
13175 | char *kwnames[] = { | |
13176 | (char *) "self",(char *) "help", NULL | |
13177 | }; | |
13178 | ||
13179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
13180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13181 | { | |
13182 | arg2 = wxString_in_helper(obj1); | |
13183 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13184 | temp2 = True; |
d14a1e28 RD |
13185 | } |
13186 | { | |
13187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13188 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
13189 | ||
13190 | wxPyEndAllowThreads(__tstate); | |
13191 | if (PyErr_Occurred()) SWIG_fail; | |
13192 | } | |
13193 | resultobj = PyInt_FromLong((long)result); | |
13194 | { | |
13195 | if (temp2) | |
13196 | delete arg2; | |
13197 | } | |
13198 | return resultobj; | |
13199 | fail: | |
13200 | { | |
13201 | if (temp2) | |
13202 | delete arg2; | |
13203 | } | |
13204 | return NULL; | |
13205 | } | |
13206 | ||
13207 | ||
13208 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13209 | PyObject *resultobj; | |
13210 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13211 | wxString *arg2 = 0 ; | |
13212 | bool result; | |
e811c8ce | 13213 | bool temp2 = False ; |
d14a1e28 RD |
13214 | PyObject * obj0 = 0 ; |
13215 | PyObject * obj1 = 0 ; | |
13216 | char *kwnames[] = { | |
13217 | (char *) "self",(char *) "help", NULL | |
13218 | }; | |
13219 | ||
13220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
13221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13222 | { | |
13223 | arg2 = wxString_in_helper(obj1); | |
13224 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13225 | temp2 = True; |
d14a1e28 RD |
13226 | } |
13227 | { | |
13228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13229 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
13230 | ||
13231 | wxPyEndAllowThreads(__tstate); | |
13232 | if (PyErr_Occurred()) SWIG_fail; | |
13233 | } | |
13234 | resultobj = PyInt_FromLong((long)result); | |
13235 | { | |
13236 | if (temp2) | |
13237 | delete arg2; | |
13238 | } | |
13239 | return resultobj; | |
13240 | fail: | |
13241 | { | |
13242 | if (temp2) | |
13243 | delete arg2; | |
13244 | } | |
13245 | return NULL; | |
13246 | } | |
13247 | ||
13248 | ||
13249 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13250 | PyObject *resultobj; | |
13251 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13252 | wxBitmap *arg2 = 0 ; | |
13253 | PyObject * obj0 = 0 ; | |
13254 | PyObject * obj1 = 0 ; | |
13255 | char *kwnames[] = { | |
13256 | (char *) "self",(char *) "bmp", NULL | |
13257 | }; | |
13258 | ||
13259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
13260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13261 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13262 | if (arg2 == NULL) { | |
13263 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13264 | } | |
13265 | { | |
13266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13267 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
13268 | ||
13269 | wxPyEndAllowThreads(__tstate); | |
13270 | if (PyErr_Occurred()) SWIG_fail; | |
13271 | } | |
13272 | Py_INCREF(Py_None); resultobj = Py_None; | |
13273 | return resultobj; | |
13274 | fail: | |
13275 | return NULL; | |
13276 | } | |
13277 | ||
13278 | ||
13279 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13280 | PyObject *resultobj; | |
13281 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13282 | wxBitmap *arg2 = 0 ; | |
13283 | PyObject * obj0 = 0 ; | |
13284 | PyObject * obj1 = 0 ; | |
13285 | char *kwnames[] = { | |
13286 | (char *) "self",(char *) "bmp", NULL | |
13287 | }; | |
13288 | ||
13289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
13290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13291 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13292 | if (arg2 == NULL) { | |
13293 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13294 | } | |
13295 | { | |
13296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13297 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
13298 | ||
13299 | wxPyEndAllowThreads(__tstate); | |
13300 | if (PyErr_Occurred()) SWIG_fail; | |
13301 | } | |
13302 | Py_INCREF(Py_None); resultobj = Py_None; | |
13303 | return resultobj; | |
13304 | fail: | |
13305 | return NULL; | |
13306 | } | |
13307 | ||
13308 | ||
13309 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13310 | PyObject *resultobj; | |
13311 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13312 | wxString *arg2 = 0 ; | |
e811c8ce | 13313 | bool temp2 = False ; |
d14a1e28 RD |
13314 | PyObject * obj0 = 0 ; |
13315 | PyObject * obj1 = 0 ; | |
13316 | char *kwnames[] = { | |
13317 | (char *) "self",(char *) "label", NULL | |
13318 | }; | |
13319 | ||
13320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
13321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13322 | { | |
13323 | arg2 = wxString_in_helper(obj1); | |
13324 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13325 | temp2 = True; |
d14a1e28 RD |
13326 | } |
13327 | { | |
13328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13329 | (arg1)->SetLabel((wxString const &)*arg2); | |
13330 | ||
13331 | wxPyEndAllowThreads(__tstate); | |
13332 | if (PyErr_Occurred()) SWIG_fail; | |
13333 | } | |
13334 | Py_INCREF(Py_None); resultobj = Py_None; | |
13335 | { | |
13336 | if (temp2) | |
13337 | delete arg2; | |
13338 | } | |
13339 | return resultobj; | |
13340 | fail: | |
13341 | { | |
13342 | if (temp2) | |
13343 | delete arg2; | |
13344 | } | |
13345 | return NULL; | |
13346 | } | |
13347 | ||
13348 | ||
13349 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13350 | PyObject *resultobj; | |
13351 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13352 | PyObject * obj0 = 0 ; | |
13353 | char *kwnames[] = { | |
13354 | (char *) "self", NULL | |
13355 | }; | |
13356 | ||
13357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
13358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13359 | { | |
13360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13361 | (arg1)->Detach(); | |
13362 | ||
13363 | wxPyEndAllowThreads(__tstate); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | } | |
13366 | Py_INCREF(Py_None); resultobj = Py_None; | |
13367 | return resultobj; | |
13368 | fail: | |
13369 | return NULL; | |
13370 | } | |
13371 | ||
13372 | ||
13373 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13374 | PyObject *resultobj; | |
13375 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13376 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
13377 | PyObject * obj0 = 0 ; | |
13378 | PyObject * obj1 = 0 ; | |
13379 | char *kwnames[] = { | |
13380 | (char *) "self",(char *) "tbar", NULL | |
13381 | }; | |
13382 | ||
13383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
13384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13385 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13386 | { | |
13387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13388 | (arg1)->Attach(arg2); | |
13389 | ||
13390 | wxPyEndAllowThreads(__tstate); | |
13391 | if (PyErr_Occurred()) SWIG_fail; | |
13392 | } | |
13393 | Py_INCREF(Py_None); resultobj = Py_None; | |
13394 | return resultobj; | |
13395 | fail: | |
13396 | return NULL; | |
13397 | } | |
13398 | ||
13399 | ||
13400 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13401 | PyObject *resultobj; | |
13402 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13403 | PyObject *result; | |
13404 | PyObject * obj0 = 0 ; | |
13405 | char *kwnames[] = { | |
13406 | (char *) "self", NULL | |
13407 | }; | |
13408 | ||
13409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
13410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13411 | { | |
13412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13413 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
13414 | ||
13415 | wxPyEndAllowThreads(__tstate); | |
13416 | if (PyErr_Occurred()) SWIG_fail; | |
13417 | } | |
13418 | resultobj = result; | |
13419 | return resultobj; | |
13420 | fail: | |
13421 | return NULL; | |
13422 | } | |
13423 | ||
13424 | ||
13425 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13426 | PyObject *resultobj; | |
13427 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13428 | PyObject *arg2 = (PyObject *) 0 ; | |
13429 | PyObject * obj0 = 0 ; | |
13430 | PyObject * obj1 = 0 ; | |
13431 | char *kwnames[] = { | |
13432 | (char *) "self",(char *) "clientData", NULL | |
13433 | }; | |
13434 | ||
13435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
13436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13437 | arg2 = obj1; | |
13438 | { | |
13439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13440 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
13441 | ||
13442 | wxPyEndAllowThreads(__tstate); | |
13443 | if (PyErr_Occurred()) SWIG_fail; | |
13444 | } | |
13445 | Py_INCREF(Py_None); resultobj = Py_None; | |
13446 | return resultobj; | |
13447 | fail: | |
13448 | return NULL; | |
13449 | } | |
13450 | ||
13451 | ||
13452 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
13453 | PyObject *obj; | |
13454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13455 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
13456 | Py_INCREF(obj); | |
13457 | return Py_BuildValue((char *)""); | |
13458 | } | |
13459 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13460 | PyObject *resultobj; | |
13461 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13462 | int arg2 ; | |
13463 | wxString *arg3 = 0 ; | |
13464 | wxBitmap *arg4 = 0 ; | |
13465 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
13466 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
13467 | int arg6 = (int) wxITEM_NORMAL ; | |
13468 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
13469 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13470 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
13471 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13472 | PyObject *arg9 = (PyObject *) NULL ; | |
13473 | wxToolBarToolBase *result; | |
e811c8ce RD |
13474 | bool temp3 = False ; |
13475 | bool temp7 = False ; | |
13476 | bool temp8 = False ; | |
d14a1e28 RD |
13477 | PyObject * obj0 = 0 ; |
13478 | PyObject * obj2 = 0 ; | |
13479 | PyObject * obj3 = 0 ; | |
13480 | PyObject * obj4 = 0 ; | |
13481 | PyObject * obj6 = 0 ; | |
13482 | PyObject * obj7 = 0 ; | |
13483 | PyObject * obj8 = 0 ; | |
13484 | char *kwnames[] = { | |
13485 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
13486 | }; | |
13487 | ||
13488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|OiOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7,&obj8)) goto fail; | |
13489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13490 | { | |
13491 | arg3 = wxString_in_helper(obj2); | |
13492 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13493 | temp3 = True; |
d14a1e28 RD |
13494 | } |
13495 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13496 | if (arg4 == NULL) { | |
13497 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13498 | } | |
13499 | if (obj4) { | |
13500 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13501 | if (arg5 == NULL) { | |
13502 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13503 | } | |
13504 | } | |
13505 | if (obj6) { | |
13506 | { | |
13507 | arg7 = wxString_in_helper(obj6); | |
13508 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 13509 | temp7 = True; |
d14a1e28 RD |
13510 | } |
13511 | } | |
13512 | if (obj7) { | |
13513 | { | |
13514 | arg8 = wxString_in_helper(obj7); | |
13515 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 13516 | temp8 = True; |
d14a1e28 RD |
13517 | } |
13518 | } | |
13519 | if (obj8) { | |
13520 | arg9 = obj8; | |
13521 | } | |
13522 | { | |
13523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13524 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
13525 | ||
13526 | wxPyEndAllowThreads(__tstate); | |
13527 | if (PyErr_Occurred()) SWIG_fail; | |
13528 | } | |
13529 | { | |
13530 | resultobj = wxPyMake_wxObject(result); | |
13531 | } | |
13532 | { | |
13533 | if (temp3) | |
13534 | delete arg3; | |
13535 | } | |
13536 | { | |
13537 | if (temp7) | |
13538 | delete arg7; | |
13539 | } | |
13540 | { | |
13541 | if (temp8) | |
13542 | delete arg8; | |
13543 | } | |
13544 | return resultobj; | |
13545 | fail: | |
13546 | { | |
13547 | if (temp3) | |
13548 | delete arg3; | |
13549 | } | |
13550 | { | |
13551 | if (temp7) | |
13552 | delete arg7; | |
13553 | } | |
13554 | { | |
13555 | if (temp8) | |
13556 | delete arg8; | |
13557 | } | |
13558 | return NULL; | |
13559 | } | |
13560 | ||
13561 | ||
13562 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13563 | PyObject *resultobj; | |
13564 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13565 | size_t arg2 ; | |
13566 | int arg3 ; | |
13567 | wxString *arg4 = 0 ; | |
13568 | wxBitmap *arg5 = 0 ; | |
13569 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
13570 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
13571 | int arg7 = (int) wxITEM_NORMAL ; | |
13572 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
13573 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13574 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
13575 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13576 | PyObject *arg10 = (PyObject *) NULL ; | |
13577 | wxToolBarToolBase *result; | |
e811c8ce RD |
13578 | bool temp4 = False ; |
13579 | bool temp8 = False ; | |
13580 | bool temp9 = False ; | |
d14a1e28 RD |
13581 | PyObject * obj0 = 0 ; |
13582 | PyObject * obj1 = 0 ; | |
13583 | PyObject * obj3 = 0 ; | |
13584 | PyObject * obj4 = 0 ; | |
13585 | PyObject * obj5 = 0 ; | |
13586 | PyObject * obj7 = 0 ; | |
13587 | PyObject * obj8 = 0 ; | |
13588 | PyObject * obj9 = 0 ; | |
13589 | char *kwnames[] = { | |
13590 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
13591 | }; | |
13592 | ||
13593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiOO|OiOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8,&obj9)) goto fail; | |
13594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13595 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13596 | if (PyErr_Occurred()) SWIG_fail; | |
13597 | { | |
13598 | arg4 = wxString_in_helper(obj3); | |
13599 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 13600 | temp4 = True; |
d14a1e28 RD |
13601 | } |
13602 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13603 | if (arg5 == NULL) { | |
13604 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13605 | } | |
13606 | if (obj5) { | |
13607 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13608 | if (arg6 == NULL) { | |
13609 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13610 | } | |
13611 | } | |
13612 | if (obj7) { | |
13613 | { | |
13614 | arg8 = wxString_in_helper(obj7); | |
13615 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 13616 | temp8 = True; |
d14a1e28 RD |
13617 | } |
13618 | } | |
13619 | if (obj8) { | |
13620 | { | |
13621 | arg9 = wxString_in_helper(obj8); | |
13622 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 13623 | temp9 = True; |
d14a1e28 RD |
13624 | } |
13625 | } | |
13626 | if (obj9) { | |
13627 | arg10 = obj9; | |
13628 | } | |
13629 | { | |
13630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13631 | 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); | |
13632 | ||
13633 | wxPyEndAllowThreads(__tstate); | |
13634 | if (PyErr_Occurred()) SWIG_fail; | |
13635 | } | |
13636 | { | |
13637 | resultobj = wxPyMake_wxObject(result); | |
13638 | } | |
13639 | { | |
13640 | if (temp4) | |
13641 | delete arg4; | |
13642 | } | |
13643 | { | |
13644 | if (temp8) | |
13645 | delete arg8; | |
13646 | } | |
13647 | { | |
13648 | if (temp9) | |
13649 | delete arg9; | |
13650 | } | |
13651 | return resultobj; | |
13652 | fail: | |
13653 | { | |
13654 | if (temp4) | |
13655 | delete arg4; | |
13656 | } | |
13657 | { | |
13658 | if (temp8) | |
13659 | delete arg8; | |
13660 | } | |
13661 | { | |
13662 | if (temp9) | |
13663 | delete arg9; | |
13664 | } | |
13665 | return NULL; | |
13666 | } | |
13667 | ||
13668 | ||
13669 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13670 | PyObject *resultobj; | |
13671 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13672 | wxControl *arg2 = (wxControl *) 0 ; | |
13673 | wxToolBarToolBase *result; | |
13674 | PyObject * obj0 = 0 ; | |
13675 | PyObject * obj1 = 0 ; | |
13676 | char *kwnames[] = { | |
13677 | (char *) "self",(char *) "control", NULL | |
13678 | }; | |
13679 | ||
13680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
13681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13682 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13683 | { | |
13684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13685 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
13686 | ||
13687 | wxPyEndAllowThreads(__tstate); | |
13688 | if (PyErr_Occurred()) SWIG_fail; | |
13689 | } | |
13690 | { | |
13691 | resultobj = wxPyMake_wxObject(result); | |
13692 | } | |
13693 | return resultobj; | |
13694 | fail: | |
13695 | return NULL; | |
13696 | } | |
13697 | ||
13698 | ||
13699 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13700 | PyObject *resultobj; | |
13701 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13702 | size_t arg2 ; | |
13703 | wxControl *arg3 = (wxControl *) 0 ; | |
13704 | wxToolBarToolBase *result; | |
13705 | PyObject * obj0 = 0 ; | |
13706 | PyObject * obj1 = 0 ; | |
13707 | PyObject * obj2 = 0 ; | |
13708 | char *kwnames[] = { | |
13709 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
13710 | }; | |
13711 | ||
13712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13714 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13715 | if (PyErr_Occurred()) SWIG_fail; | |
13716 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13717 | { | |
13718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13719 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
13720 | ||
13721 | wxPyEndAllowThreads(__tstate); | |
13722 | if (PyErr_Occurred()) SWIG_fail; | |
13723 | } | |
13724 | { | |
13725 | resultobj = wxPyMake_wxObject(result); | |
13726 | } | |
13727 | return resultobj; | |
13728 | fail: | |
13729 | return NULL; | |
13730 | } | |
13731 | ||
13732 | ||
13733 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13734 | PyObject *resultobj; | |
13735 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13736 | int arg2 ; | |
13737 | wxControl *result; | |
13738 | PyObject * obj0 = 0 ; | |
13739 | char *kwnames[] = { | |
13740 | (char *) "self",(char *) "id", NULL | |
13741 | }; | |
13742 | ||
13743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_FindControl",kwnames,&obj0,&arg2)) goto fail; | |
13744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13745 | { | |
13746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13747 | result = (wxControl *)(arg1)->FindControl(arg2); | |
13748 | ||
13749 | wxPyEndAllowThreads(__tstate); | |
13750 | if (PyErr_Occurred()) SWIG_fail; | |
13751 | } | |
13752 | { | |
13753 | resultobj = wxPyMake_wxObject(result); | |
13754 | } | |
13755 | return resultobj; | |
13756 | fail: | |
13757 | return NULL; | |
13758 | } | |
13759 | ||
13760 | ||
13761 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13762 | PyObject *resultobj; | |
13763 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13764 | wxToolBarToolBase *result; | |
13765 | PyObject * obj0 = 0 ; | |
13766 | char *kwnames[] = { | |
13767 | (char *) "self", NULL | |
13768 | }; | |
13769 | ||
13770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
13771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13772 | { | |
13773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13774 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
13775 | ||
13776 | wxPyEndAllowThreads(__tstate); | |
13777 | if (PyErr_Occurred()) SWIG_fail; | |
13778 | } | |
13779 | { | |
13780 | resultobj = wxPyMake_wxObject(result); | |
13781 | } | |
13782 | return resultobj; | |
13783 | fail: | |
13784 | return NULL; | |
13785 | } | |
13786 | ||
13787 | ||
13788 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13789 | PyObject *resultobj; | |
13790 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13791 | size_t arg2 ; | |
13792 | wxToolBarToolBase *result; | |
13793 | PyObject * obj0 = 0 ; | |
13794 | PyObject * obj1 = 0 ; | |
13795 | char *kwnames[] = { | |
13796 | (char *) "self",(char *) "pos", NULL | |
13797 | }; | |
13798 | ||
13799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
13800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13801 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13802 | if (PyErr_Occurred()) SWIG_fail; | |
13803 | { | |
13804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13805 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
13806 | ||
13807 | wxPyEndAllowThreads(__tstate); | |
13808 | if (PyErr_Occurred()) SWIG_fail; | |
13809 | } | |
13810 | { | |
13811 | resultobj = wxPyMake_wxObject(result); | |
13812 | } | |
13813 | return resultobj; | |
13814 | fail: | |
13815 | return NULL; | |
13816 | } | |
13817 | ||
13818 | ||
13819 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13820 | PyObject *resultobj; | |
13821 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13822 | int arg2 ; | |
13823 | wxToolBarToolBase *result; | |
13824 | PyObject * obj0 = 0 ; | |
13825 | char *kwnames[] = { | |
13826 | (char *) "self",(char *) "id", NULL | |
13827 | }; | |
13828 | ||
13829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_RemoveTool",kwnames,&obj0,&arg2)) goto fail; | |
13830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13831 | { | |
13832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13833 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
13834 | ||
13835 | wxPyEndAllowThreads(__tstate); | |
13836 | if (PyErr_Occurred()) SWIG_fail; | |
13837 | } | |
13838 | { | |
13839 | resultobj = wxPyMake_wxObject(result); | |
13840 | } | |
13841 | return resultobj; | |
13842 | fail: | |
13843 | return NULL; | |
13844 | } | |
13845 | ||
13846 | ||
13847 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13848 | PyObject *resultobj; | |
13849 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13850 | size_t arg2 ; | |
13851 | bool result; | |
13852 | PyObject * obj0 = 0 ; | |
13853 | PyObject * obj1 = 0 ; | |
13854 | char *kwnames[] = { | |
13855 | (char *) "self",(char *) "pos", NULL | |
13856 | }; | |
13857 | ||
13858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
13859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13860 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13861 | if (PyErr_Occurred()) SWIG_fail; | |
13862 | { | |
13863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13864 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
13865 | ||
13866 | wxPyEndAllowThreads(__tstate); | |
13867 | if (PyErr_Occurred()) SWIG_fail; | |
13868 | } | |
13869 | resultobj = PyInt_FromLong((long)result); | |
13870 | return resultobj; | |
13871 | fail: | |
13872 | return NULL; | |
13873 | } | |
13874 | ||
13875 | ||
13876 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13877 | PyObject *resultobj; | |
13878 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13879 | int arg2 ; | |
13880 | bool result; | |
13881 | PyObject * obj0 = 0 ; | |
13882 | char *kwnames[] = { | |
13883 | (char *) "self",(char *) "id", NULL | |
13884 | }; | |
13885 | ||
13886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_DeleteTool",kwnames,&obj0,&arg2)) goto fail; | |
13887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13888 | { | |
13889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13890 | result = (bool)(arg1)->DeleteTool(arg2); | |
13891 | ||
13892 | wxPyEndAllowThreads(__tstate); | |
13893 | if (PyErr_Occurred()) SWIG_fail; | |
13894 | } | |
13895 | resultobj = PyInt_FromLong((long)result); | |
13896 | return resultobj; | |
13897 | fail: | |
13898 | return NULL; | |
13899 | } | |
13900 | ||
13901 | ||
13902 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13903 | PyObject *resultobj; | |
13904 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13905 | PyObject * obj0 = 0 ; | |
13906 | char *kwnames[] = { | |
13907 | (char *) "self", NULL | |
13908 | }; | |
13909 | ||
13910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",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 | (arg1)->ClearTools(); | |
13915 | ||
13916 | wxPyEndAllowThreads(__tstate); | |
13917 | if (PyErr_Occurred()) SWIG_fail; | |
13918 | } | |
13919 | Py_INCREF(Py_None); resultobj = Py_None; | |
13920 | return resultobj; | |
13921 | fail: | |
13922 | return NULL; | |
13923 | } | |
13924 | ||
13925 | ||
13926 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13927 | PyObject *resultobj; | |
13928 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13929 | bool result; | |
13930 | PyObject * obj0 = 0 ; | |
13931 | char *kwnames[] = { | |
13932 | (char *) "self", NULL | |
13933 | }; | |
13934 | ||
13935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
13936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13937 | { | |
13938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13939 | result = (bool)(arg1)->Realize(); | |
13940 | ||
13941 | wxPyEndAllowThreads(__tstate); | |
13942 | if (PyErr_Occurred()) SWIG_fail; | |
13943 | } | |
13944 | resultobj = PyInt_FromLong((long)result); | |
13945 | return resultobj; | |
13946 | fail: | |
13947 | return NULL; | |
13948 | } | |
13949 | ||
13950 | ||
13951 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13952 | PyObject *resultobj; | |
13953 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13954 | int arg2 ; | |
13955 | bool arg3 ; | |
13956 | PyObject * obj0 = 0 ; | |
13957 | PyObject * obj2 = 0 ; | |
13958 | char *kwnames[] = { | |
13959 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
13960 | }; | |
13961 | ||
13962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_EnableTool",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
13963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13964 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13965 | if (PyErr_Occurred()) SWIG_fail; | |
13966 | { | |
13967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13968 | (arg1)->EnableTool(arg2,arg3); | |
13969 | ||
13970 | wxPyEndAllowThreads(__tstate); | |
13971 | if (PyErr_Occurred()) SWIG_fail; | |
13972 | } | |
13973 | Py_INCREF(Py_None); resultobj = Py_None; | |
13974 | return resultobj; | |
13975 | fail: | |
13976 | return NULL; | |
13977 | } | |
13978 | ||
13979 | ||
13980 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13981 | PyObject *resultobj; | |
13982 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13983 | int arg2 ; | |
13984 | bool arg3 ; | |
13985 | PyObject * obj0 = 0 ; | |
13986 | PyObject * obj2 = 0 ; | |
13987 | char *kwnames[] = { | |
13988 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
13989 | }; | |
13990 | ||
13991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_ToggleTool",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
13992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13993 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13994 | if (PyErr_Occurred()) SWIG_fail; | |
13995 | { | |
13996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13997 | (arg1)->ToggleTool(arg2,arg3); | |
13998 | ||
13999 | wxPyEndAllowThreads(__tstate); | |
14000 | if (PyErr_Occurred()) SWIG_fail; | |
14001 | } | |
14002 | Py_INCREF(Py_None); resultobj = Py_None; | |
14003 | return resultobj; | |
14004 | fail: | |
14005 | return NULL; | |
14006 | } | |
14007 | ||
14008 | ||
14009 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14010 | PyObject *resultobj; | |
14011 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14012 | int arg2 ; | |
14013 | bool arg3 ; | |
14014 | PyObject * obj0 = 0 ; | |
14015 | PyObject * obj2 = 0 ; | |
14016 | char *kwnames[] = { | |
14017 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
14018 | }; | |
14019 | ||
14020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToggle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14022 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14023 | if (PyErr_Occurred()) SWIG_fail; | |
14024 | { | |
14025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14026 | (arg1)->SetToggle(arg2,arg3); | |
14027 | ||
14028 | wxPyEndAllowThreads(__tstate); | |
14029 | if (PyErr_Occurred()) SWIG_fail; | |
14030 | } | |
14031 | Py_INCREF(Py_None); resultobj = Py_None; | |
14032 | return resultobj; | |
14033 | fail: | |
14034 | return NULL; | |
14035 | } | |
14036 | ||
14037 | ||
14038 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14039 | PyObject *resultobj; | |
14040 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14041 | int arg2 ; | |
14042 | PyObject *result; | |
14043 | PyObject * obj0 = 0 ; | |
14044 | char *kwnames[] = { | |
14045 | (char *) "self",(char *) "id", NULL | |
14046 | }; | |
14047 | ||
14048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolClientData",kwnames,&obj0,&arg2)) goto fail; | |
14049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14050 | { | |
14051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14052 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
14053 | ||
14054 | wxPyEndAllowThreads(__tstate); | |
14055 | if (PyErr_Occurred()) SWIG_fail; | |
14056 | } | |
14057 | resultobj = result; | |
14058 | return resultobj; | |
14059 | fail: | |
14060 | return NULL; | |
14061 | } | |
14062 | ||
14063 | ||
14064 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14065 | PyObject *resultobj; | |
14066 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14067 | int arg2 ; | |
14068 | PyObject *arg3 = (PyObject *) 0 ; | |
14069 | PyObject * obj0 = 0 ; | |
14070 | PyObject * obj2 = 0 ; | |
14071 | char *kwnames[] = { | |
14072 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
14073 | }; | |
14074 | ||
14075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolClientData",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14077 | arg3 = obj2; | |
14078 | { | |
14079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14080 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
14081 | ||
14082 | wxPyEndAllowThreads(__tstate); | |
14083 | if (PyErr_Occurred()) SWIG_fail; | |
14084 | } | |
14085 | Py_INCREF(Py_None); resultobj = Py_None; | |
14086 | return resultobj; | |
14087 | fail: | |
14088 | return NULL; | |
14089 | } | |
14090 | ||
14091 | ||
14092 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14093 | PyObject *resultobj; | |
14094 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14095 | int arg2 ; | |
14096 | int result; | |
14097 | PyObject * obj0 = 0 ; | |
14098 | char *kwnames[] = { | |
14099 | (char *) "self",(char *) "id", NULL | |
14100 | }; | |
14101 | ||
14102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolPos",kwnames,&obj0,&arg2)) goto fail; | |
14103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14104 | { | |
14105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14106 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
14107 | ||
14108 | wxPyEndAllowThreads(__tstate); | |
14109 | if (PyErr_Occurred()) SWIG_fail; | |
14110 | } | |
14111 | resultobj = PyInt_FromLong((long)result); | |
14112 | return resultobj; | |
14113 | fail: | |
14114 | return NULL; | |
14115 | } | |
14116 | ||
14117 | ||
14118 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14119 | PyObject *resultobj; | |
14120 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14121 | int arg2 ; | |
14122 | bool result; | |
14123 | PyObject * obj0 = 0 ; | |
14124 | char *kwnames[] = { | |
14125 | (char *) "self",(char *) "id", NULL | |
14126 | }; | |
14127 | ||
14128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolState",kwnames,&obj0,&arg2)) goto fail; | |
14129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14130 | { | |
14131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14132 | result = (bool)(arg1)->GetToolState(arg2); | |
14133 | ||
14134 | wxPyEndAllowThreads(__tstate); | |
14135 | if (PyErr_Occurred()) SWIG_fail; | |
14136 | } | |
14137 | resultobj = PyInt_FromLong((long)result); | |
14138 | return resultobj; | |
14139 | fail: | |
14140 | return NULL; | |
14141 | } | |
14142 | ||
14143 | ||
14144 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14145 | PyObject *resultobj; | |
14146 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14147 | int arg2 ; | |
14148 | bool result; | |
14149 | PyObject * obj0 = 0 ; | |
14150 | char *kwnames[] = { | |
14151 | (char *) "self",(char *) "id", NULL | |
14152 | }; | |
14153 | ||
14154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolEnabled",kwnames,&obj0,&arg2)) goto fail; | |
14155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14156 | { | |
14157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14158 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
14159 | ||
14160 | wxPyEndAllowThreads(__tstate); | |
14161 | if (PyErr_Occurred()) SWIG_fail; | |
14162 | } | |
14163 | resultobj = PyInt_FromLong((long)result); | |
14164 | return resultobj; | |
14165 | fail: | |
14166 | return NULL; | |
14167 | } | |
14168 | ||
14169 | ||
14170 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14171 | PyObject *resultobj; | |
14172 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14173 | int arg2 ; | |
14174 | wxString *arg3 = 0 ; | |
e811c8ce | 14175 | bool temp3 = False ; |
d14a1e28 RD |
14176 | PyObject * obj0 = 0 ; |
14177 | PyObject * obj2 = 0 ; | |
14178 | char *kwnames[] = { | |
14179 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
14180 | }; | |
14181 | ||
14182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14184 | { | |
14185 | arg3 = wxString_in_helper(obj2); | |
14186 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14187 | temp3 = True; |
d14a1e28 RD |
14188 | } |
14189 | { | |
14190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14191 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
14192 | ||
14193 | wxPyEndAllowThreads(__tstate); | |
14194 | if (PyErr_Occurred()) SWIG_fail; | |
14195 | } | |
14196 | Py_INCREF(Py_None); resultobj = Py_None; | |
14197 | { | |
14198 | if (temp3) | |
14199 | delete arg3; | |
14200 | } | |
14201 | return resultobj; | |
14202 | fail: | |
14203 | { | |
14204 | if (temp3) | |
14205 | delete arg3; | |
14206 | } | |
14207 | return NULL; | |
14208 | } | |
14209 | ||
14210 | ||
14211 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14212 | PyObject *resultobj; | |
14213 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14214 | int arg2 ; | |
14215 | wxString result; | |
14216 | PyObject * obj0 = 0 ; | |
14217 | char *kwnames[] = { | |
14218 | (char *) "self",(char *) "id", NULL | |
14219 | }; | |
14220 | ||
14221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&arg2)) goto fail; | |
14222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14223 | { | |
14224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14225 | result = (arg1)->GetToolShortHelp(arg2); | |
14226 | ||
14227 | wxPyEndAllowThreads(__tstate); | |
14228 | if (PyErr_Occurred()) SWIG_fail; | |
14229 | } | |
14230 | { | |
14231 | #if wxUSE_UNICODE | |
14232 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14233 | #else | |
14234 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14235 | #endif | |
14236 | } | |
14237 | return resultobj; | |
14238 | fail: | |
14239 | return NULL; | |
14240 | } | |
14241 | ||
14242 | ||
14243 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14244 | PyObject *resultobj; | |
14245 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14246 | int arg2 ; | |
14247 | wxString *arg3 = 0 ; | |
e811c8ce | 14248 | bool temp3 = False ; |
d14a1e28 RD |
14249 | PyObject * obj0 = 0 ; |
14250 | PyObject * obj2 = 0 ; | |
14251 | char *kwnames[] = { | |
14252 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
14253 | }; | |
14254 | ||
14255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14257 | { | |
14258 | arg3 = wxString_in_helper(obj2); | |
14259 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14260 | temp3 = True; |
d14a1e28 RD |
14261 | } |
14262 | { | |
14263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14264 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
14265 | ||
14266 | wxPyEndAllowThreads(__tstate); | |
14267 | if (PyErr_Occurred()) SWIG_fail; | |
14268 | } | |
14269 | Py_INCREF(Py_None); resultobj = Py_None; | |
14270 | { | |
14271 | if (temp3) | |
14272 | delete arg3; | |
14273 | } | |
14274 | return resultobj; | |
14275 | fail: | |
14276 | { | |
14277 | if (temp3) | |
14278 | delete arg3; | |
14279 | } | |
14280 | return NULL; | |
14281 | } | |
14282 | ||
14283 | ||
14284 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14285 | PyObject *resultobj; | |
14286 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14287 | int arg2 ; | |
14288 | wxString result; | |
14289 | PyObject * obj0 = 0 ; | |
14290 | char *kwnames[] = { | |
14291 | (char *) "self",(char *) "id", NULL | |
14292 | }; | |
14293 | ||
14294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&arg2)) goto fail; | |
14295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14296 | { | |
14297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14298 | result = (arg1)->GetToolLongHelp(arg2); | |
14299 | ||
14300 | wxPyEndAllowThreads(__tstate); | |
14301 | if (PyErr_Occurred()) SWIG_fail; | |
14302 | } | |
14303 | { | |
14304 | #if wxUSE_UNICODE | |
14305 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14306 | #else | |
14307 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14308 | #endif | |
14309 | } | |
14310 | return resultobj; | |
14311 | fail: | |
14312 | return NULL; | |
14313 | } | |
14314 | ||
14315 | ||
14316 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14317 | PyObject *resultobj; | |
14318 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14319 | int arg2 ; | |
14320 | int arg3 ; | |
14321 | PyObject * obj0 = 0 ; | |
14322 | char *kwnames[] = { | |
14323 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14324 | }; | |
14325 | ||
14326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_SetMarginsXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14328 | { | |
14329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14330 | (arg1)->SetMargins(arg2,arg3); | |
14331 | ||
14332 | wxPyEndAllowThreads(__tstate); | |
14333 | if (PyErr_Occurred()) SWIG_fail; | |
14334 | } | |
14335 | Py_INCREF(Py_None); resultobj = Py_None; | |
14336 | return resultobj; | |
14337 | fail: | |
14338 | return NULL; | |
14339 | } | |
14340 | ||
14341 | ||
14342 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14343 | PyObject *resultobj; | |
14344 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14345 | wxSize *arg2 = 0 ; | |
14346 | wxSize temp2 ; | |
14347 | PyObject * obj0 = 0 ; | |
14348 | PyObject * obj1 = 0 ; | |
14349 | char *kwnames[] = { | |
14350 | (char *) "self",(char *) "size", NULL | |
14351 | }; | |
14352 | ||
14353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
14354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14355 | { | |
14356 | arg2 = &temp2; | |
14357 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14358 | } | |
14359 | { | |
14360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14361 | (arg1)->SetMargins((wxSize const &)*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_SetToolPacking(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 *) "packing", NULL | |
14380 | }; | |
14381 | ||
14382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetToolPacking",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)->SetToolPacking(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_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14399 | PyObject *resultobj; | |
14400 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14401 | int arg2 ; | |
14402 | PyObject * obj0 = 0 ; | |
14403 | char *kwnames[] = { | |
14404 | (char *) "self",(char *) "separation", NULL | |
14405 | }; | |
14406 | ||
14407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetToolSeparation",kwnames,&obj0,&arg2)) 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 | (arg1)->SetToolSeparation(arg2); | |
14412 | ||
14413 | wxPyEndAllowThreads(__tstate); | |
14414 | if (PyErr_Occurred()) SWIG_fail; | |
14415 | } | |
14416 | Py_INCREF(Py_None); resultobj = Py_None; | |
14417 | return resultobj; | |
14418 | fail: | |
14419 | return NULL; | |
14420 | } | |
14421 | ||
14422 | ||
14423 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14424 | PyObject *resultobj; | |
14425 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14426 | wxSize result; | |
14427 | PyObject * obj0 = 0 ; | |
14428 | char *kwnames[] = { | |
14429 | (char *) "self", NULL | |
14430 | }; | |
14431 | ||
14432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
14433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14434 | { | |
14435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14436 | result = (arg1)->GetToolMargins(); | |
14437 | ||
14438 | wxPyEndAllowThreads(__tstate); | |
14439 | if (PyErr_Occurred()) SWIG_fail; | |
14440 | } | |
14441 | { | |
14442 | wxSize * resultptr; | |
14443 | resultptr = new wxSize((wxSize &) result); | |
14444 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14445 | } | |
14446 | return resultobj; | |
14447 | fail: | |
14448 | return NULL; | |
14449 | } | |
14450 | ||
14451 | ||
14452 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14453 | PyObject *resultobj; | |
14454 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14455 | wxSize result; | |
14456 | PyObject * obj0 = 0 ; | |
14457 | char *kwnames[] = { | |
14458 | (char *) "self", NULL | |
14459 | }; | |
14460 | ||
14461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
14462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14463 | { | |
14464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14465 | result = (arg1)->GetMargins(); | |
14466 | ||
14467 | wxPyEndAllowThreads(__tstate); | |
14468 | if (PyErr_Occurred()) SWIG_fail; | |
14469 | } | |
14470 | { | |
14471 | wxSize * resultptr; | |
14472 | resultptr = new wxSize((wxSize &) result); | |
14473 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14474 | } | |
14475 | return resultobj; | |
14476 | fail: | |
14477 | return NULL; | |
14478 | } | |
14479 | ||
14480 | ||
14481 | static PyObject *_wrap_ToolBarBase_GetToolPacking(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_GetToolPacking",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)->GetToolPacking(); | |
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_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14507 | PyObject *resultobj; | |
14508 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14509 | int result; | |
14510 | PyObject * obj0 = 0 ; | |
14511 | char *kwnames[] = { | |
14512 | (char *) "self", NULL | |
14513 | }; | |
14514 | ||
14515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) 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 | result = (int)(arg1)->GetToolSeparation(); | |
14520 | ||
14521 | wxPyEndAllowThreads(__tstate); | |
14522 | if (PyErr_Occurred()) SWIG_fail; | |
14523 | } | |
14524 | resultobj = PyInt_FromLong((long)result); | |
14525 | return resultobj; | |
14526 | fail: | |
14527 | return NULL; | |
14528 | } | |
14529 | ||
14530 | ||
14531 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14532 | PyObject *resultobj; | |
14533 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14534 | int arg2 ; | |
14535 | PyObject * obj0 = 0 ; | |
14536 | char *kwnames[] = { | |
14537 | (char *) "self",(char *) "nRows", NULL | |
14538 | }; | |
14539 | ||
14540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetRows",kwnames,&obj0,&arg2)) goto fail; | |
14541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14542 | { | |
14543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14544 | (arg1)->SetRows(arg2); | |
14545 | ||
14546 | wxPyEndAllowThreads(__tstate); | |
14547 | if (PyErr_Occurred()) SWIG_fail; | |
14548 | } | |
14549 | Py_INCREF(Py_None); resultobj = Py_None; | |
14550 | return resultobj; | |
14551 | fail: | |
14552 | return NULL; | |
14553 | } | |
14554 | ||
14555 | ||
14556 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14557 | PyObject *resultobj; | |
14558 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14559 | int arg2 ; | |
14560 | int arg3 ; | |
14561 | PyObject * obj0 = 0 ; | |
14562 | char *kwnames[] = { | |
14563 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
14564 | }; | |
14565 | ||
14566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&arg2,&arg3)) 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 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
14571 | ||
14572 | wxPyEndAllowThreads(__tstate); | |
14573 | if (PyErr_Occurred()) SWIG_fail; | |
14574 | } | |
14575 | Py_INCREF(Py_None); resultobj = Py_None; | |
14576 | return resultobj; | |
14577 | fail: | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
14582 | static PyObject *_wrap_ToolBarBase_GetMaxRows(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_GetMaxRows",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)->GetMaxRows(); | |
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_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14608 | PyObject *resultobj; | |
14609 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14610 | int result; | |
14611 | PyObject * obj0 = 0 ; | |
14612 | char *kwnames[] = { | |
14613 | (char *) "self", NULL | |
14614 | }; | |
14615 | ||
14616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
14617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14618 | { | |
14619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14620 | result = (int)(arg1)->GetMaxCols(); | |
14621 | ||
14622 | wxPyEndAllowThreads(__tstate); | |
14623 | if (PyErr_Occurred()) SWIG_fail; | |
14624 | } | |
14625 | resultobj = PyInt_FromLong((long)result); | |
14626 | return resultobj; | |
14627 | fail: | |
14628 | return NULL; | |
14629 | } | |
14630 | ||
14631 | ||
14632 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14633 | PyObject *resultobj; | |
14634 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14635 | wxSize *arg2 = 0 ; | |
14636 | wxSize temp2 ; | |
14637 | PyObject * obj0 = 0 ; | |
14638 | PyObject * obj1 = 0 ; | |
14639 | char *kwnames[] = { | |
14640 | (char *) "self",(char *) "size", NULL | |
14641 | }; | |
14642 | ||
14643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
14644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14645 | { | |
14646 | arg2 = &temp2; | |
14647 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14648 | } | |
14649 | { | |
14650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14651 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
14652 | ||
14653 | wxPyEndAllowThreads(__tstate); | |
14654 | if (PyErr_Occurred()) SWIG_fail; | |
14655 | } | |
14656 | Py_INCREF(Py_None); resultobj = Py_None; | |
14657 | return resultobj; | |
14658 | fail: | |
14659 | return NULL; | |
14660 | } | |
14661 | ||
14662 | ||
14663 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14664 | PyObject *resultobj; | |
14665 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14666 | wxSize result; | |
14667 | PyObject * obj0 = 0 ; | |
14668 | char *kwnames[] = { | |
14669 | (char *) "self", NULL | |
14670 | }; | |
14671 | ||
14672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
14673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14674 | { | |
14675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14676 | result = (arg1)->GetToolBitmapSize(); | |
14677 | ||
14678 | wxPyEndAllowThreads(__tstate); | |
14679 | if (PyErr_Occurred()) SWIG_fail; | |
14680 | } | |
14681 | { | |
14682 | wxSize * resultptr; | |
14683 | resultptr = new wxSize((wxSize &) result); | |
14684 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14685 | } | |
14686 | return resultobj; | |
14687 | fail: | |
14688 | return NULL; | |
14689 | } | |
14690 | ||
14691 | ||
14692 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14693 | PyObject *resultobj; | |
14694 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14695 | wxSize result; | |
14696 | PyObject * obj0 = 0 ; | |
14697 | char *kwnames[] = { | |
14698 | (char *) "self", NULL | |
14699 | }; | |
14700 | ||
14701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
14702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14703 | { | |
14704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14705 | result = (arg1)->GetToolSize(); | |
14706 | ||
14707 | wxPyEndAllowThreads(__tstate); | |
14708 | if (PyErr_Occurred()) SWIG_fail; | |
14709 | } | |
14710 | { | |
14711 | wxSize * resultptr; | |
14712 | resultptr = new wxSize((wxSize &) result); | |
14713 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14714 | } | |
14715 | return resultobj; | |
14716 | fail: | |
14717 | return NULL; | |
14718 | } | |
14719 | ||
14720 | ||
14721 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14722 | PyObject *resultobj; | |
14723 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
14724 | int arg2 ; |
14725 | int arg3 ; | |
d14a1e28 RD |
14726 | wxToolBarToolBase *result; |
14727 | PyObject * obj0 = 0 ; | |
14728 | char *kwnames[] = { | |
14729 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14730 | }; | |
14731 | ||
14732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_FindToolForPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14734 | { | |
14735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14736 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
14737 | ||
14738 | wxPyEndAllowThreads(__tstate); | |
14739 | if (PyErr_Occurred()) SWIG_fail; | |
14740 | } | |
14741 | { | |
14742 | resultobj = wxPyMake_wxObject(result); | |
14743 | } | |
14744 | return resultobj; | |
14745 | fail: | |
14746 | return NULL; | |
14747 | } | |
14748 | ||
14749 | ||
14750 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14751 | PyObject *resultobj; | |
14752 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14753 | bool result; | |
14754 | PyObject * obj0 = 0 ; | |
14755 | char *kwnames[] = { | |
14756 | (char *) "self", NULL | |
14757 | }; | |
14758 | ||
14759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
14760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14761 | { | |
14762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14763 | result = (bool)(arg1)->IsVertical(); | |
14764 | ||
14765 | wxPyEndAllowThreads(__tstate); | |
14766 | if (PyErr_Occurred()) SWIG_fail; | |
14767 | } | |
14768 | resultobj = PyInt_FromLong((long)result); | |
14769 | return resultobj; | |
14770 | fail: | |
14771 | return NULL; | |
14772 | } | |
14773 | ||
14774 | ||
14775 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
14776 | PyObject *obj; | |
14777 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14778 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
14779 | Py_INCREF(obj); | |
14780 | return Py_BuildValue((char *)""); | |
14781 | } | |
14782 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14783 | PyObject *resultobj; | |
14784 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 14785 | int arg2 ; |
d14a1e28 RD |
14786 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14787 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14788 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14789 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14790 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
14791 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
14792 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14793 | wxToolBar *result; | |
14794 | wxPoint temp3 ; | |
14795 | wxSize temp4 ; | |
e811c8ce | 14796 | bool temp6 = False ; |
d14a1e28 RD |
14797 | PyObject * obj0 = 0 ; |
14798 | PyObject * obj2 = 0 ; | |
14799 | PyObject * obj3 = 0 ; | |
14800 | PyObject * obj5 = 0 ; | |
14801 | char *kwnames[] = { | |
14802 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14803 | }; | |
14804 | ||
14805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_ToolBar",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
14806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14807 | if (obj2) { | |
14808 | { | |
14809 | arg3 = &temp3; | |
14810 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14811 | } | |
14812 | } | |
14813 | if (obj3) { | |
14814 | { | |
14815 | arg4 = &temp4; | |
14816 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14817 | } | |
14818 | } | |
14819 | if (obj5) { | |
14820 | { | |
14821 | arg6 = wxString_in_helper(obj5); | |
14822 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 14823 | temp6 = True; |
d14a1e28 RD |
14824 | } |
14825 | } | |
14826 | { | |
14827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14828 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14829 | ||
14830 | wxPyEndAllowThreads(__tstate); | |
14831 | if (PyErr_Occurred()) SWIG_fail; | |
14832 | } | |
14833 | { | |
14834 | resultobj = wxPyMake_wxObject(result); | |
14835 | } | |
14836 | { | |
14837 | if (temp6) | |
14838 | delete arg6; | |
14839 | } | |
14840 | return resultobj; | |
14841 | fail: | |
14842 | { | |
14843 | if (temp6) | |
14844 | delete arg6; | |
14845 | } | |
14846 | return NULL; | |
14847 | } | |
14848 | ||
14849 | ||
14850 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14851 | PyObject *resultobj; | |
14852 | wxToolBar *result; | |
14853 | char *kwnames[] = { | |
14854 | NULL | |
14855 | }; | |
14856 | ||
14857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
14858 | { | |
14859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14860 | result = (wxToolBar *)new wxToolBar(); | |
14861 | ||
14862 | wxPyEndAllowThreads(__tstate); | |
14863 | if (PyErr_Occurred()) SWIG_fail; | |
14864 | } | |
14865 | { | |
14866 | resultobj = wxPyMake_wxObject(result); | |
14867 | } | |
14868 | return resultobj; | |
14869 | fail: | |
14870 | return NULL; | |
14871 | } | |
14872 | ||
14873 | ||
14874 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14875 | PyObject *resultobj; | |
14876 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
14877 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 14878 | int arg3 ; |
d14a1e28 RD |
14879 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14880 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14881 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14882 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14883 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
14884 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
14885 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14886 | bool result; | |
14887 | wxPoint temp4 ; | |
14888 | wxSize temp5 ; | |
e811c8ce | 14889 | bool temp7 = False ; |
d14a1e28 RD |
14890 | PyObject * obj0 = 0 ; |
14891 | PyObject * obj1 = 0 ; | |
14892 | PyObject * obj3 = 0 ; | |
14893 | PyObject * obj4 = 0 ; | |
14894 | PyObject * obj6 = 0 ; | |
14895 | char *kwnames[] = { | |
14896 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14897 | }; | |
14898 | ||
14899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:ToolBar_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
14900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14901 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14902 | if (obj3) { | |
14903 | { | |
14904 | arg4 = &temp4; | |
14905 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14906 | } | |
14907 | } | |
14908 | if (obj4) { | |
14909 | { | |
14910 | arg5 = &temp5; | |
14911 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14912 | } | |
14913 | } | |
14914 | if (obj6) { | |
14915 | { | |
14916 | arg7 = wxString_in_helper(obj6); | |
14917 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 14918 | temp7 = True; |
d14a1e28 RD |
14919 | } |
14920 | } | |
14921 | { | |
14922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14923 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14924 | ||
14925 | wxPyEndAllowThreads(__tstate); | |
14926 | if (PyErr_Occurred()) SWIG_fail; | |
14927 | } | |
14928 | resultobj = PyInt_FromLong((long)result); | |
14929 | { | |
14930 | if (temp7) | |
14931 | delete arg7; | |
14932 | } | |
14933 | return resultobj; | |
14934 | fail: | |
14935 | { | |
14936 | if (temp7) | |
14937 | delete arg7; | |
14938 | } | |
14939 | return NULL; | |
14940 | } | |
14941 | ||
14942 | ||
14943 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14944 | PyObject *resultobj; | |
14945 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
14946 | int arg2 ; |
14947 | int arg3 ; | |
d14a1e28 RD |
14948 | wxToolBarToolBase *result; |
14949 | PyObject * obj0 = 0 ; | |
14950 | char *kwnames[] = { | |
14951 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14952 | }; | |
14953 | ||
14954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBar_FindToolForPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14956 | { | |
14957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14958 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
14959 | ||
14960 | wxPyEndAllowThreads(__tstate); | |
14961 | if (PyErr_Occurred()) SWIG_fail; | |
14962 | } | |
14963 | { | |
14964 | resultobj = wxPyMake_wxObject(result); | |
14965 | } | |
14966 | return resultobj; | |
14967 | fail: | |
14968 | return NULL; | |
14969 | } | |
14970 | ||
14971 | ||
14972 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
14973 | PyObject *obj; | |
14974 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14975 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
14976 | Py_INCREF(obj); | |
14977 | return Py_BuildValue((char *)""); | |
14978 | } | |
14979 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14980 | PyObject *resultobj; | |
14981 | wxColour const &arg1_defvalue = wxNullColour ; | |
14982 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
14983 | wxColour const &arg2_defvalue = wxNullColour ; | |
14984 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
14985 | wxFont const &arg3_defvalue = wxNullFont ; | |
14986 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
14987 | wxListItemAttr *result; | |
14988 | wxColour temp1 ; | |
14989 | wxColour temp2 ; | |
14990 | PyObject * obj0 = 0 ; | |
14991 | PyObject * obj1 = 0 ; | |
14992 | PyObject * obj2 = 0 ; | |
14993 | char *kwnames[] = { | |
14994 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
14995 | }; | |
14996 | ||
14997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14998 | if (obj0) { | |
14999 | { | |
15000 | arg1 = &temp1; | |
15001 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
15002 | } | |
15003 | } | |
15004 | if (obj1) { | |
15005 | { | |
15006 | arg2 = &temp2; | |
15007 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15008 | } | |
15009 | } | |
15010 | if (obj2) { | |
15011 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15012 | if (arg3 == NULL) { | |
15013 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15014 | } | |
15015 | } | |
15016 | { | |
15017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15018 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
15019 | ||
15020 | wxPyEndAllowThreads(__tstate); | |
15021 | if (PyErr_Occurred()) SWIG_fail; | |
15022 | } | |
15023 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
15024 | return resultobj; | |
15025 | fail: | |
15026 | return NULL; | |
15027 | } | |
15028 | ||
15029 | ||
15030 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15031 | PyObject *resultobj; | |
15032 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15033 | wxColour *arg2 = 0 ; | |
15034 | wxColour temp2 ; | |
15035 | PyObject * obj0 = 0 ; | |
15036 | PyObject * obj1 = 0 ; | |
15037 | char *kwnames[] = { | |
15038 | (char *) "self",(char *) "colText", NULL | |
15039 | }; | |
15040 | ||
15041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15043 | { | |
15044 | arg2 = &temp2; | |
15045 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15046 | } | |
15047 | { | |
15048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15049 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
15050 | ||
15051 | wxPyEndAllowThreads(__tstate); | |
15052 | if (PyErr_Occurred()) SWIG_fail; | |
15053 | } | |
15054 | Py_INCREF(Py_None); resultobj = Py_None; | |
15055 | return resultobj; | |
15056 | fail: | |
15057 | return NULL; | |
15058 | } | |
15059 | ||
15060 | ||
15061 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15062 | PyObject *resultobj; | |
15063 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15064 | wxColour *arg2 = 0 ; | |
15065 | wxColour temp2 ; | |
15066 | PyObject * obj0 = 0 ; | |
15067 | PyObject * obj1 = 0 ; | |
15068 | char *kwnames[] = { | |
15069 | (char *) "self",(char *) "colBack", NULL | |
15070 | }; | |
15071 | ||
15072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15074 | { | |
15075 | arg2 = &temp2; | |
15076 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15077 | } | |
15078 | { | |
15079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15080 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
15081 | ||
15082 | wxPyEndAllowThreads(__tstate); | |
15083 | if (PyErr_Occurred()) SWIG_fail; | |
15084 | } | |
15085 | Py_INCREF(Py_None); resultobj = Py_None; | |
15086 | return resultobj; | |
15087 | fail: | |
15088 | return NULL; | |
15089 | } | |
15090 | ||
15091 | ||
15092 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15093 | PyObject *resultobj; | |
15094 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15095 | wxFont *arg2 = 0 ; | |
15096 | PyObject * obj0 = 0 ; | |
15097 | PyObject * obj1 = 0 ; | |
15098 | char *kwnames[] = { | |
15099 | (char *) "self",(char *) "font", NULL | |
15100 | }; | |
15101 | ||
15102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15104 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15105 | if (arg2 == NULL) { | |
15106 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15107 | } | |
15108 | { | |
15109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15110 | (arg1)->SetFont((wxFont const &)*arg2); | |
15111 | ||
15112 | wxPyEndAllowThreads(__tstate); | |
15113 | if (PyErr_Occurred()) SWIG_fail; | |
15114 | } | |
15115 | Py_INCREF(Py_None); resultobj = Py_None; | |
15116 | return resultobj; | |
15117 | fail: | |
15118 | return NULL; | |
15119 | } | |
15120 | ||
15121 | ||
15122 | static PyObject *_wrap_ListItemAttr_HasTextColour(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_HasTextColour",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)->HasTextColour(); | |
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_HasBackgroundColour(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_HasBackgroundColour",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)->HasBackgroundColour(); | |
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_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15173 | PyObject *resultobj; | |
15174 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15175 | bool result; | |
15176 | PyObject * obj0 = 0 ; | |
15177 | char *kwnames[] = { | |
15178 | (char *) "self", NULL | |
15179 | }; | |
15180 | ||
15181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",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 = (bool)(arg1)->HasFont(); | |
15186 | ||
15187 | wxPyEndAllowThreads(__tstate); | |
15188 | if (PyErr_Occurred()) SWIG_fail; | |
15189 | } | |
15190 | resultobj = PyInt_FromLong((long)result); | |
15191 | return resultobj; | |
15192 | fail: | |
15193 | return NULL; | |
15194 | } | |
15195 | ||
15196 | ||
15197 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15198 | PyObject *resultobj; | |
15199 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15200 | wxColour result; | |
15201 | PyObject * obj0 = 0 ; | |
15202 | char *kwnames[] = { | |
15203 | (char *) "self", NULL | |
15204 | }; | |
15205 | ||
15206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15208 | { | |
15209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15210 | result = (arg1)->GetTextColour(); | |
15211 | ||
15212 | wxPyEndAllowThreads(__tstate); | |
15213 | if (PyErr_Occurred()) SWIG_fail; | |
15214 | } | |
15215 | { | |
15216 | wxColour * resultptr; | |
15217 | resultptr = new wxColour((wxColour &) result); | |
15218 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15219 | } | |
15220 | return resultobj; | |
15221 | fail: | |
15222 | return NULL; | |
15223 | } | |
15224 | ||
15225 | ||
15226 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15227 | PyObject *resultobj; | |
15228 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15229 | wxColour result; | |
15230 | PyObject * obj0 = 0 ; | |
15231 | char *kwnames[] = { | |
15232 | (char *) "self", NULL | |
15233 | }; | |
15234 | ||
15235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15237 | { | |
15238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15239 | result = (arg1)->GetBackgroundColour(); | |
15240 | ||
15241 | wxPyEndAllowThreads(__tstate); | |
15242 | if (PyErr_Occurred()) SWIG_fail; | |
15243 | } | |
15244 | { | |
15245 | wxColour * resultptr; | |
15246 | resultptr = new wxColour((wxColour &) result); | |
15247 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15248 | } | |
15249 | return resultobj; | |
15250 | fail: | |
15251 | return NULL; | |
15252 | } | |
15253 | ||
15254 | ||
15255 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15256 | PyObject *resultobj; | |
15257 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15258 | wxFont result; | |
15259 | PyObject * obj0 = 0 ; | |
15260 | char *kwnames[] = { | |
15261 | (char *) "self", NULL | |
15262 | }; | |
15263 | ||
15264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
15265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15266 | { | |
15267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15268 | result = (arg1)->GetFont(); | |
15269 | ||
15270 | wxPyEndAllowThreads(__tstate); | |
15271 | if (PyErr_Occurred()) SWIG_fail; | |
15272 | } | |
15273 | { | |
15274 | wxFont * resultptr; | |
15275 | resultptr = new wxFont((wxFont &) result); | |
15276 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
15277 | } | |
15278 | return resultobj; | |
15279 | fail: | |
15280 | return NULL; | |
15281 | } | |
15282 | ||
15283 | ||
15284 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15285 | PyObject *resultobj; | |
15286 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15287 | PyObject * obj0 = 0 ; | |
15288 | char *kwnames[] = { | |
15289 | (char *) "self", NULL | |
15290 | }; | |
15291 | ||
15292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
15293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15294 | { | |
15295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15296 | wxListItemAttr_Destroy(arg1); | |
15297 | ||
15298 | wxPyEndAllowThreads(__tstate); | |
15299 | if (PyErr_Occurred()) SWIG_fail; | |
15300 | } | |
15301 | Py_INCREF(Py_None); resultobj = Py_None; | |
15302 | return resultobj; | |
15303 | fail: | |
15304 | return NULL; | |
15305 | } | |
15306 | ||
15307 | ||
15308 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
15309 | PyObject *obj; | |
15310 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15311 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
15312 | Py_INCREF(obj); | |
15313 | return Py_BuildValue((char *)""); | |
15314 | } | |
15315 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15316 | PyObject *resultobj; | |
15317 | wxListItem *result; | |
15318 | char *kwnames[] = { | |
15319 | NULL | |
15320 | }; | |
15321 | ||
15322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
15323 | { | |
15324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15325 | result = (wxListItem *)new wxListItem(); | |
15326 | ||
15327 | wxPyEndAllowThreads(__tstate); | |
15328 | if (PyErr_Occurred()) SWIG_fail; | |
15329 | } | |
15330 | { | |
15331 | resultobj = wxPyMake_wxObject(result); | |
15332 | } | |
15333 | return resultobj; | |
15334 | fail: | |
15335 | return NULL; | |
15336 | } | |
15337 | ||
15338 | ||
15339 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15340 | PyObject *resultobj; | |
15341 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15342 | PyObject * obj0 = 0 ; | |
15343 | char *kwnames[] = { | |
15344 | (char *) "self", NULL | |
15345 | }; | |
15346 | ||
15347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
15348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15349 | { | |
15350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15351 | delete arg1; | |
15352 | ||
15353 | wxPyEndAllowThreads(__tstate); | |
15354 | if (PyErr_Occurred()) SWIG_fail; | |
15355 | } | |
15356 | Py_INCREF(Py_None); resultobj = Py_None; | |
15357 | return resultobj; | |
15358 | fail: | |
15359 | return NULL; | |
15360 | } | |
15361 | ||
15362 | ||
15363 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15364 | PyObject *resultobj; | |
15365 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15366 | PyObject * obj0 = 0 ; | |
15367 | char *kwnames[] = { | |
15368 | (char *) "self", NULL | |
15369 | }; | |
15370 | ||
15371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
15372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15373 | { | |
15374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15375 | (arg1)->Clear(); | |
15376 | ||
15377 | wxPyEndAllowThreads(__tstate); | |
15378 | if (PyErr_Occurred()) SWIG_fail; | |
15379 | } | |
15380 | Py_INCREF(Py_None); resultobj = Py_None; | |
15381 | return resultobj; | |
15382 | fail: | |
15383 | return NULL; | |
15384 | } | |
15385 | ||
15386 | ||
15387 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15388 | PyObject *resultobj; | |
15389 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15390 | PyObject * obj0 = 0 ; | |
15391 | char *kwnames[] = { | |
15392 | (char *) "self", NULL | |
15393 | }; | |
15394 | ||
15395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) 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)->ClearAttributes(); | |
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_SetMask(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 *) "mask", NULL | |
15418 | }; | |
15419 | ||
15420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetMask",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)->SetMask(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_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15437 | PyObject *resultobj; | |
15438 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15439 | long arg2 ; | |
15440 | PyObject * obj0 = 0 ; | |
15441 | char *kwnames[] = { | |
15442 | (char *) "self",(char *) "id", NULL | |
15443 | }; | |
15444 | ||
15445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetId",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)->SetId(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_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15462 | PyObject *resultobj; | |
15463 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15464 | int arg2 ; | |
15465 | PyObject * obj0 = 0 ; | |
15466 | char *kwnames[] = { | |
15467 | (char *) "self",(char *) "col", NULL | |
15468 | }; | |
15469 | ||
15470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetColumn",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)->SetColumn(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_SetState(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 *) "state", NULL | |
15493 | }; | |
15494 | ||
15495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetState",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)->SetState(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_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15512 | PyObject *resultobj; | |
15513 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15514 | long arg2 ; | |
15515 | PyObject * obj0 = 0 ; | |
15516 | char *kwnames[] = { | |
15517 | (char *) "self",(char *) "stateMask", NULL | |
15518 | }; | |
15519 | ||
15520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetStateMask",kwnames,&obj0,&arg2)) goto fail; | |
15521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15522 | { | |
15523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15524 | (arg1)->SetStateMask(arg2); | |
15525 | ||
15526 | wxPyEndAllowThreads(__tstate); | |
15527 | if (PyErr_Occurred()) SWIG_fail; | |
15528 | } | |
15529 | Py_INCREF(Py_None); resultobj = Py_None; | |
15530 | return resultobj; | |
15531 | fail: | |
15532 | return NULL; | |
15533 | } | |
15534 | ||
15535 | ||
15536 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15537 | PyObject *resultobj; | |
15538 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15539 | wxString *arg2 = 0 ; | |
e811c8ce | 15540 | bool temp2 = False ; |
d14a1e28 RD |
15541 | PyObject * obj0 = 0 ; |
15542 | PyObject * obj1 = 0 ; | |
15543 | char *kwnames[] = { | |
15544 | (char *) "self",(char *) "text", NULL | |
15545 | }; | |
15546 | ||
15547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15549 | { | |
15550 | arg2 = wxString_in_helper(obj1); | |
15551 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15552 | temp2 = True; |
d14a1e28 RD |
15553 | } |
15554 | { | |
15555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15556 | (arg1)->SetText((wxString const &)*arg2); | |
15557 | ||
15558 | wxPyEndAllowThreads(__tstate); | |
15559 | if (PyErr_Occurred()) SWIG_fail; | |
15560 | } | |
15561 | Py_INCREF(Py_None); resultobj = Py_None; | |
15562 | { | |
15563 | if (temp2) | |
15564 | delete arg2; | |
15565 | } | |
15566 | return resultobj; | |
15567 | fail: | |
15568 | { | |
15569 | if (temp2) | |
15570 | delete arg2; | |
15571 | } | |
15572 | return NULL; | |
15573 | } | |
15574 | ||
15575 | ||
15576 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15577 | PyObject *resultobj; | |
15578 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15579 | int arg2 ; | |
15580 | PyObject * obj0 = 0 ; | |
15581 | char *kwnames[] = { | |
15582 | (char *) "self",(char *) "image", NULL | |
15583 | }; | |
15584 | ||
15585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetImage",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)->SetImage(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_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15602 | PyObject *resultobj; | |
15603 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15604 | long arg2 ; | |
15605 | PyObject * obj0 = 0 ; | |
15606 | char *kwnames[] = { | |
15607 | (char *) "self",(char *) "data", NULL | |
15608 | }; | |
15609 | ||
15610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetData",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)->SetData(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_SetWidth(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 *) "width", NULL | |
15633 | }; | |
15634 | ||
15635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetWidth",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)->SetWidth(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_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15652 | PyObject *resultobj; | |
15653 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15654 | int arg2 ; | |
15655 | PyObject * obj0 = 0 ; | |
15656 | char *kwnames[] = { | |
15657 | (char *) "self",(char *) "align", NULL | |
15658 | }; | |
15659 | ||
15660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetAlign",kwnames,&obj0,&arg2)) goto fail; | |
15661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15662 | { | |
15663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15664 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
15665 | ||
15666 | wxPyEndAllowThreads(__tstate); | |
15667 | if (PyErr_Occurred()) SWIG_fail; | |
15668 | } | |
15669 | Py_INCREF(Py_None); resultobj = Py_None; | |
15670 | return resultobj; | |
15671 | fail: | |
15672 | return NULL; | |
15673 | } | |
15674 | ||
15675 | ||
15676 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15677 | PyObject *resultobj; | |
15678 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15679 | wxColour *arg2 = 0 ; | |
15680 | wxColour temp2 ; | |
15681 | PyObject * obj0 = 0 ; | |
15682 | PyObject * obj1 = 0 ; | |
15683 | char *kwnames[] = { | |
15684 | (char *) "self",(char *) "colText", NULL | |
15685 | }; | |
15686 | ||
15687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15689 | { | |
15690 | arg2 = &temp2; | |
15691 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15692 | } | |
15693 | { | |
15694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15695 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
15696 | ||
15697 | wxPyEndAllowThreads(__tstate); | |
15698 | if (PyErr_Occurred()) SWIG_fail; | |
15699 | } | |
15700 | Py_INCREF(Py_None); resultobj = Py_None; | |
15701 | return resultobj; | |
15702 | fail: | |
15703 | return NULL; | |
15704 | } | |
15705 | ||
15706 | ||
15707 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15708 | PyObject *resultobj; | |
15709 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15710 | wxColour *arg2 = 0 ; | |
15711 | wxColour temp2 ; | |
15712 | PyObject * obj0 = 0 ; | |
15713 | PyObject * obj1 = 0 ; | |
15714 | char *kwnames[] = { | |
15715 | (char *) "self",(char *) "colBack", NULL | |
15716 | }; | |
15717 | ||
15718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15720 | { | |
15721 | arg2 = &temp2; | |
15722 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15723 | } | |
15724 | { | |
15725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15726 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
15727 | ||
15728 | wxPyEndAllowThreads(__tstate); | |
15729 | if (PyErr_Occurred()) SWIG_fail; | |
15730 | } | |
15731 | Py_INCREF(Py_None); resultobj = Py_None; | |
15732 | return resultobj; | |
15733 | fail: | |
15734 | return NULL; | |
15735 | } | |
15736 | ||
15737 | ||
15738 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15739 | PyObject *resultobj; | |
15740 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15741 | wxFont *arg2 = 0 ; | |
15742 | PyObject * obj0 = 0 ; | |
15743 | PyObject * obj1 = 0 ; | |
15744 | char *kwnames[] = { | |
15745 | (char *) "self",(char *) "font", NULL | |
15746 | }; | |
15747 | ||
15748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15750 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15751 | if (arg2 == NULL) { | |
15752 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15753 | } | |
15754 | { | |
15755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15756 | (arg1)->SetFont((wxFont const &)*arg2); | |
15757 | ||
15758 | wxPyEndAllowThreads(__tstate); | |
15759 | if (PyErr_Occurred()) SWIG_fail; | |
15760 | } | |
15761 | Py_INCREF(Py_None); resultobj = Py_None; | |
15762 | return resultobj; | |
15763 | fail: | |
15764 | return NULL; | |
15765 | } | |
15766 | ||
15767 | ||
15768 | static PyObject *_wrap_ListItem_GetMask(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_GetMask",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)->GetMask(); | |
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_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15794 | PyObject *resultobj; | |
15795 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15796 | long result; | |
15797 | PyObject * obj0 = 0 ; | |
15798 | char *kwnames[] = { | |
15799 | (char *) "self", NULL | |
15800 | }; | |
15801 | ||
15802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",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 = (long)(arg1)->GetId(); | |
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_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15819 | PyObject *resultobj; | |
15820 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15821 | int result; | |
15822 | PyObject * obj0 = 0 ; | |
15823 | char *kwnames[] = { | |
15824 | (char *) "self", NULL | |
15825 | }; | |
15826 | ||
15827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",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 = (int)(arg1)->GetColumn(); | |
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_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15844 | PyObject *resultobj; | |
15845 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15846 | long result; | |
15847 | PyObject * obj0 = 0 ; | |
15848 | char *kwnames[] = { | |
15849 | (char *) "self", NULL | |
15850 | }; | |
15851 | ||
15852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",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 | result = (long)(arg1)->GetState(); | |
15857 | ||
15858 | wxPyEndAllowThreads(__tstate); | |
15859 | if (PyErr_Occurred()) SWIG_fail; | |
15860 | } | |
15861 | resultobj = PyInt_FromLong((long)result); | |
15862 | return resultobj; | |
15863 | fail: | |
15864 | return NULL; | |
15865 | } | |
15866 | ||
15867 | ||
15868 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15869 | PyObject *resultobj; | |
15870 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15871 | wxString *result; | |
15872 | PyObject * obj0 = 0 ; | |
15873 | char *kwnames[] = { | |
15874 | (char *) "self", NULL | |
15875 | }; | |
15876 | ||
15877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
15878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15879 | { | |
15880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15881 | { | |
15882 | wxString const &_result_ref = (arg1)->GetText(); | |
15883 | result = (wxString *) &_result_ref; | |
15884 | } | |
15885 | ||
15886 | wxPyEndAllowThreads(__tstate); | |
15887 | if (PyErr_Occurred()) SWIG_fail; | |
15888 | } | |
15889 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
15890 | return resultobj; | |
15891 | fail: | |
15892 | return NULL; | |
15893 | } | |
15894 | ||
15895 | ||
15896 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15897 | PyObject *resultobj; | |
15898 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15899 | int result; | |
15900 | PyObject * obj0 = 0 ; | |
15901 | char *kwnames[] = { | |
15902 | (char *) "self", NULL | |
15903 | }; | |
15904 | ||
15905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",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 = (int)(arg1)->GetImage(); | |
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_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15922 | PyObject *resultobj; | |
15923 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15924 | long result; | |
15925 | PyObject * obj0 = 0 ; | |
15926 | char *kwnames[] = { | |
15927 | (char *) "self", NULL | |
15928 | }; | |
15929 | ||
15930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",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 = (long)(arg1)->GetData(); | |
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_GetWidth(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_GetWidth",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)->GetWidth(); | |
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_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15972 | PyObject *resultobj; | |
15973 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15974 | int result; | |
15975 | PyObject * obj0 = 0 ; | |
15976 | char *kwnames[] = { | |
15977 | (char *) "self", NULL | |
15978 | }; | |
15979 | ||
15980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",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 = (int)(arg1)->GetAlign(); | |
15985 | ||
15986 | wxPyEndAllowThreads(__tstate); | |
15987 | if (PyErr_Occurred()) SWIG_fail; | |
15988 | } | |
15989 | resultobj = PyInt_FromLong((long)result); | |
15990 | return resultobj; | |
15991 | fail: | |
15992 | return NULL; | |
15993 | } | |
15994 | ||
15995 | ||
15996 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15997 | PyObject *resultobj; | |
15998 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15999 | wxListItemAttr *result; | |
16000 | PyObject * obj0 = 0 ; | |
16001 | char *kwnames[] = { | |
16002 | (char *) "self", NULL | |
16003 | }; | |
16004 | ||
16005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",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 = (wxListItemAttr *)(arg1)->GetAttributes(); | |
16010 | ||
16011 | wxPyEndAllowThreads(__tstate); | |
16012 | if (PyErr_Occurred()) SWIG_fail; | |
16013 | } | |
16014 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
16015 | return resultobj; | |
16016 | fail: | |
16017 | return NULL; | |
16018 | } | |
16019 | ||
16020 | ||
16021 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16022 | PyObject *resultobj; | |
16023 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16024 | bool result; | |
16025 | PyObject * obj0 = 0 ; | |
16026 | char *kwnames[] = { | |
16027 | (char *) "self", NULL | |
16028 | }; | |
16029 | ||
16030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",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 = (bool)(arg1)->HasAttributes(); | |
16035 | ||
16036 | wxPyEndAllowThreads(__tstate); | |
16037 | if (PyErr_Occurred()) SWIG_fail; | |
16038 | } | |
16039 | resultobj = PyInt_FromLong((long)result); | |
16040 | return resultobj; | |
16041 | fail: | |
16042 | return NULL; | |
16043 | } | |
16044 | ||
16045 | ||
16046 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16047 | PyObject *resultobj; | |
16048 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16049 | wxColour result; | |
16050 | PyObject * obj0 = 0 ; | |
16051 | char *kwnames[] = { | |
16052 | (char *) "self", NULL | |
16053 | }; | |
16054 | ||
16055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
16056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16057 | { | |
16058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16059 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
16060 | ||
16061 | wxPyEndAllowThreads(__tstate); | |
16062 | if (PyErr_Occurred()) SWIG_fail; | |
16063 | } | |
16064 | { | |
16065 | wxColour * resultptr; | |
16066 | resultptr = new wxColour((wxColour &) result); | |
16067 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16068 | } | |
16069 | return resultobj; | |
16070 | fail: | |
16071 | return NULL; | |
16072 | } | |
16073 | ||
16074 | ||
16075 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16076 | PyObject *resultobj; | |
16077 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16078 | wxColour result; | |
16079 | PyObject * obj0 = 0 ; | |
16080 | char *kwnames[] = { | |
16081 | (char *) "self", NULL | |
16082 | }; | |
16083 | ||
16084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
16085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16086 | { | |
16087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16088 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
16089 | ||
16090 | wxPyEndAllowThreads(__tstate); | |
16091 | if (PyErr_Occurred()) SWIG_fail; | |
16092 | } | |
16093 | { | |
16094 | wxColour * resultptr; | |
16095 | resultptr = new wxColour((wxColour &) result); | |
16096 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16097 | } | |
16098 | return resultobj; | |
16099 | fail: | |
16100 | return NULL; | |
16101 | } | |
16102 | ||
16103 | ||
16104 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16105 | PyObject *resultobj; | |
16106 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16107 | wxFont result; | |
16108 | PyObject * obj0 = 0 ; | |
16109 | char *kwnames[] = { | |
16110 | (char *) "self", NULL | |
16111 | }; | |
16112 | ||
16113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
16114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16115 | { | |
16116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16117 | result = ((wxListItem const *)arg1)->GetFont(); | |
16118 | ||
16119 | wxPyEndAllowThreads(__tstate); | |
16120 | if (PyErr_Occurred()) SWIG_fail; | |
16121 | } | |
16122 | { | |
16123 | wxFont * resultptr; | |
16124 | resultptr = new wxFont((wxFont &) result); | |
16125 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
16126 | } | |
16127 | return resultobj; | |
16128 | fail: | |
16129 | return NULL; | |
16130 | } | |
16131 | ||
16132 | ||
16133 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16134 | PyObject *resultobj; | |
16135 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16136 | long arg2 ; | |
16137 | PyObject * obj0 = 0 ; | |
16138 | char *kwnames[] = { | |
16139 | (char *) "self",(char *) "m_mask", NULL | |
16140 | }; | |
16141 | ||
16142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_mask_set",kwnames,&obj0,&arg2)) goto fail; | |
16143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16144 | if (arg1) (arg1)->m_mask = arg2; | |
16145 | ||
16146 | Py_INCREF(Py_None); resultobj = Py_None; | |
16147 | return resultobj; | |
16148 | fail: | |
16149 | return NULL; | |
16150 | } | |
16151 | ||
16152 | ||
16153 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16154 | PyObject *resultobj; | |
16155 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16156 | long result; | |
16157 | PyObject * obj0 = 0 ; | |
16158 | char *kwnames[] = { | |
16159 | (char *) "self", NULL | |
16160 | }; | |
16161 | ||
16162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
16163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16164 | result = (long) ((arg1)->m_mask); | |
16165 | ||
16166 | resultobj = PyInt_FromLong((long)result); | |
16167 | return resultobj; | |
16168 | fail: | |
16169 | return NULL; | |
16170 | } | |
16171 | ||
16172 | ||
16173 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16174 | PyObject *resultobj; | |
16175 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16176 | long arg2 ; | |
16177 | PyObject * obj0 = 0 ; | |
16178 | char *kwnames[] = { | |
16179 | (char *) "self",(char *) "m_itemId", NULL | |
16180 | }; | |
16181 | ||
16182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_itemId_set",kwnames,&obj0,&arg2)) goto fail; | |
16183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16184 | if (arg1) (arg1)->m_itemId = arg2; | |
16185 | ||
16186 | Py_INCREF(Py_None); resultobj = Py_None; | |
16187 | return resultobj; | |
16188 | fail: | |
16189 | return NULL; | |
16190 | } | |
16191 | ||
16192 | ||
16193 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16194 | PyObject *resultobj; | |
16195 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16196 | long result; | |
16197 | PyObject * obj0 = 0 ; | |
16198 | char *kwnames[] = { | |
16199 | (char *) "self", NULL | |
16200 | }; | |
16201 | ||
16202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
16203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16204 | result = (long) ((arg1)->m_itemId); | |
16205 | ||
16206 | resultobj = PyInt_FromLong((long)result); | |
16207 | return resultobj; | |
16208 | fail: | |
16209 | return NULL; | |
16210 | } | |
16211 | ||
16212 | ||
16213 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16214 | PyObject *resultobj; | |
16215 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16216 | int arg2 ; | |
16217 | PyObject * obj0 = 0 ; | |
16218 | char *kwnames[] = { | |
16219 | (char *) "self",(char *) "m_col", NULL | |
16220 | }; | |
16221 | ||
16222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_col_set",kwnames,&obj0,&arg2)) goto fail; | |
16223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16224 | if (arg1) (arg1)->m_col = arg2; | |
16225 | ||
16226 | Py_INCREF(Py_None); resultobj = Py_None; | |
16227 | return resultobj; | |
16228 | fail: | |
16229 | return NULL; | |
16230 | } | |
16231 | ||
16232 | ||
16233 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16234 | PyObject *resultobj; | |
16235 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16236 | int result; | |
16237 | PyObject * obj0 = 0 ; | |
16238 | char *kwnames[] = { | |
16239 | (char *) "self", NULL | |
16240 | }; | |
16241 | ||
16242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
16243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16244 | result = (int) ((arg1)->m_col); | |
16245 | ||
16246 | resultobj = PyInt_FromLong((long)result); | |
16247 | return resultobj; | |
16248 | fail: | |
16249 | return NULL; | |
16250 | } | |
16251 | ||
16252 | ||
16253 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16254 | PyObject *resultobj; | |
16255 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16256 | long arg2 ; | |
16257 | PyObject * obj0 = 0 ; | |
16258 | char *kwnames[] = { | |
16259 | (char *) "self",(char *) "m_state", NULL | |
16260 | }; | |
16261 | ||
16262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_state_set",kwnames,&obj0,&arg2)) goto fail; | |
16263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16264 | if (arg1) (arg1)->m_state = arg2; | |
16265 | ||
16266 | Py_INCREF(Py_None); resultobj = Py_None; | |
16267 | return resultobj; | |
16268 | fail: | |
16269 | return NULL; | |
16270 | } | |
16271 | ||
16272 | ||
16273 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16274 | PyObject *resultobj; | |
16275 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16276 | long result; | |
16277 | PyObject * obj0 = 0 ; | |
16278 | char *kwnames[] = { | |
16279 | (char *) "self", NULL | |
16280 | }; | |
16281 | ||
16282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
16283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16284 | result = (long) ((arg1)->m_state); | |
16285 | ||
16286 | resultobj = PyInt_FromLong((long)result); | |
16287 | return resultobj; | |
16288 | fail: | |
16289 | return NULL; | |
16290 | } | |
16291 | ||
16292 | ||
16293 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16294 | PyObject *resultobj; | |
16295 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16296 | long arg2 ; | |
16297 | PyObject * obj0 = 0 ; | |
16298 | char *kwnames[] = { | |
16299 | (char *) "self",(char *) "m_stateMask", NULL | |
16300 | }; | |
16301 | ||
16302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_stateMask_set",kwnames,&obj0,&arg2)) goto fail; | |
16303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16304 | if (arg1) (arg1)->m_stateMask = arg2; | |
16305 | ||
16306 | Py_INCREF(Py_None); resultobj = Py_None; | |
16307 | return resultobj; | |
16308 | fail: | |
16309 | return NULL; | |
16310 | } | |
16311 | ||
16312 | ||
16313 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16314 | PyObject *resultobj; | |
16315 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16316 | long result; | |
16317 | PyObject * obj0 = 0 ; | |
16318 | char *kwnames[] = { | |
16319 | (char *) "self", NULL | |
16320 | }; | |
16321 | ||
16322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
16323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16324 | result = (long) ((arg1)->m_stateMask); | |
16325 | ||
16326 | resultobj = PyInt_FromLong((long)result); | |
16327 | return resultobj; | |
16328 | fail: | |
16329 | return NULL; | |
16330 | } | |
16331 | ||
16332 | ||
16333 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16334 | PyObject *resultobj; | |
16335 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16336 | wxString arg2 ; | |
d14a1e28 RD |
16337 | PyObject * obj0 = 0 ; |
16338 | PyObject * obj1 = 0 ; | |
16339 | char *kwnames[] = { | |
16340 | (char *) "self",(char *) "m_text", NULL | |
16341 | }; | |
16342 | ||
16343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
16344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce RD |
16345 | { |
16346 | wxString* sptr = wxString_in_helper(obj1); | |
16347 | if (sptr == NULL) SWIG_fail; | |
16348 | arg2 = *sptr; | |
16349 | delete sptr; | |
16350 | } | |
d14a1e28 RD |
16351 | if (arg1) (arg1)->m_text = arg2; |
16352 | ||
16353 | Py_INCREF(Py_None); resultobj = Py_None; | |
16354 | return resultobj; | |
16355 | fail: | |
16356 | return NULL; | |
16357 | } | |
16358 | ||
16359 | ||
16360 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16361 | PyObject *resultobj; | |
16362 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16363 | wxString result; | |
16364 | PyObject * obj0 = 0 ; | |
16365 | char *kwnames[] = { | |
16366 | (char *) "self", NULL | |
16367 | }; | |
16368 | ||
16369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
16370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16371 | result = ((arg1)->m_text); | |
16372 | ||
16373 | { | |
16374 | #if wxUSE_UNICODE | |
16375 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16376 | #else | |
16377 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16378 | #endif | |
16379 | } | |
16380 | return resultobj; | |
16381 | fail: | |
16382 | return NULL; | |
16383 | } | |
16384 | ||
16385 | ||
16386 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16387 | PyObject *resultobj; | |
16388 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16389 | int arg2 ; | |
16390 | PyObject * obj0 = 0 ; | |
16391 | char *kwnames[] = { | |
16392 | (char *) "self",(char *) "m_image", NULL | |
16393 | }; | |
16394 | ||
16395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_image_set",kwnames,&obj0,&arg2)) goto fail; | |
16396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16397 | if (arg1) (arg1)->m_image = arg2; | |
16398 | ||
16399 | Py_INCREF(Py_None); resultobj = Py_None; | |
16400 | return resultobj; | |
16401 | fail: | |
16402 | return NULL; | |
16403 | } | |
16404 | ||
16405 | ||
16406 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16407 | PyObject *resultobj; | |
16408 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16409 | int result; | |
16410 | PyObject * obj0 = 0 ; | |
16411 | char *kwnames[] = { | |
16412 | (char *) "self", NULL | |
16413 | }; | |
16414 | ||
16415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
16416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16417 | result = (int) ((arg1)->m_image); | |
16418 | ||
16419 | resultobj = PyInt_FromLong((long)result); | |
16420 | return resultobj; | |
16421 | fail: | |
16422 | return NULL; | |
16423 | } | |
16424 | ||
16425 | ||
16426 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16427 | PyObject *resultobj; | |
16428 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16429 | long arg2 ; | |
16430 | PyObject * obj0 = 0 ; | |
16431 | char *kwnames[] = { | |
16432 | (char *) "self",(char *) "m_data", NULL | |
16433 | }; | |
16434 | ||
16435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_data_set",kwnames,&obj0,&arg2)) goto fail; | |
16436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16437 | if (arg1) (arg1)->m_data = arg2; | |
16438 | ||
16439 | Py_INCREF(Py_None); resultobj = Py_None; | |
16440 | return resultobj; | |
16441 | fail: | |
16442 | return NULL; | |
16443 | } | |
16444 | ||
16445 | ||
16446 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16447 | PyObject *resultobj; | |
16448 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16449 | long result; | |
16450 | PyObject * obj0 = 0 ; | |
16451 | char *kwnames[] = { | |
16452 | (char *) "self", NULL | |
16453 | }; | |
16454 | ||
16455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
16456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16457 | result = (long) ((arg1)->m_data); | |
16458 | ||
16459 | resultobj = PyInt_FromLong((long)result); | |
16460 | return resultobj; | |
16461 | fail: | |
16462 | return NULL; | |
16463 | } | |
16464 | ||
16465 | ||
16466 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16467 | PyObject *resultobj; | |
16468 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16469 | int arg2 ; | |
16470 | PyObject * obj0 = 0 ; | |
16471 | char *kwnames[] = { | |
16472 | (char *) "self",(char *) "m_format", NULL | |
16473 | }; | |
16474 | ||
16475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_format_set",kwnames,&obj0,&arg2)) goto fail; | |
16476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16477 | if (arg1) (arg1)->m_format = arg2; | |
16478 | ||
16479 | Py_INCREF(Py_None); resultobj = Py_None; | |
16480 | return resultobj; | |
16481 | fail: | |
16482 | return NULL; | |
16483 | } | |
16484 | ||
16485 | ||
16486 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16487 | PyObject *resultobj; | |
16488 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16489 | int result; | |
16490 | PyObject * obj0 = 0 ; | |
16491 | char *kwnames[] = { | |
16492 | (char *) "self", NULL | |
16493 | }; | |
16494 | ||
16495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
16496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16497 | result = (int) ((arg1)->m_format); | |
16498 | ||
16499 | resultobj = PyInt_FromLong((long)result); | |
16500 | return resultobj; | |
16501 | fail: | |
16502 | return NULL; | |
16503 | } | |
16504 | ||
16505 | ||
16506 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16507 | PyObject *resultobj; | |
16508 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16509 | int arg2 ; | |
16510 | PyObject * obj0 = 0 ; | |
16511 | char *kwnames[] = { | |
16512 | (char *) "self",(char *) "m_width", NULL | |
16513 | }; | |
16514 | ||
16515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_width_set",kwnames,&obj0,&arg2)) goto fail; | |
16516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16517 | if (arg1) (arg1)->m_width = arg2; | |
16518 | ||
16519 | Py_INCREF(Py_None); resultobj = Py_None; | |
16520 | return resultobj; | |
16521 | fail: | |
16522 | return NULL; | |
16523 | } | |
16524 | ||
16525 | ||
16526 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16527 | PyObject *resultobj; | |
16528 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16529 | int result; | |
16530 | PyObject * obj0 = 0 ; | |
16531 | char *kwnames[] = { | |
16532 | (char *) "self", NULL | |
16533 | }; | |
16534 | ||
16535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
16536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16537 | result = (int) ((arg1)->m_width); | |
16538 | ||
16539 | resultobj = PyInt_FromLong((long)result); | |
16540 | return resultobj; | |
16541 | fail: | |
16542 | return NULL; | |
16543 | } | |
16544 | ||
16545 | ||
16546 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
16547 | PyObject *obj; | |
16548 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16549 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
16550 | Py_INCREF(obj); | |
16551 | return Py_BuildValue((char *)""); | |
16552 | } | |
16553 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16554 | PyObject *resultobj; | |
16555 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16556 | int arg2 = (int) 0 ; | |
16557 | wxListEvent *result; | |
16558 | char *kwnames[] = { | |
16559 | (char *) "commandType",(char *) "id", NULL | |
16560 | }; | |
16561 | ||
16562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_ListEvent",kwnames,&arg1,&arg2)) goto fail; | |
16563 | { | |
16564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16565 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
16566 | ||
16567 | wxPyEndAllowThreads(__tstate); | |
16568 | if (PyErr_Occurred()) SWIG_fail; | |
16569 | } | |
16570 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
16571 | return resultobj; | |
16572 | fail: | |
16573 | return NULL; | |
16574 | } | |
16575 | ||
16576 | ||
16577 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16578 | PyObject *resultobj; | |
16579 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16580 | int arg2 ; | |
16581 | PyObject * obj0 = 0 ; | |
16582 | char *kwnames[] = { | |
16583 | (char *) "self",(char *) "m_code", NULL | |
16584 | }; | |
16585 | ||
16586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListEvent_m_code_set",kwnames,&obj0,&arg2)) goto fail; | |
16587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16588 | if (arg1) (arg1)->m_code = arg2; | |
16589 | ||
16590 | Py_INCREF(Py_None); resultobj = Py_None; | |
16591 | return resultobj; | |
16592 | fail: | |
16593 | return NULL; | |
16594 | } | |
16595 | ||
16596 | ||
16597 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16598 | PyObject *resultobj; | |
16599 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16600 | int result; | |
16601 | PyObject * obj0 = 0 ; | |
16602 | char *kwnames[] = { | |
16603 | (char *) "self", NULL | |
16604 | }; | |
16605 | ||
16606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
16607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16608 | result = (int) ((arg1)->m_code); | |
16609 | ||
16610 | resultobj = PyInt_FromLong((long)result); | |
16611 | return resultobj; | |
16612 | fail: | |
16613 | return NULL; | |
16614 | } | |
16615 | ||
16616 | ||
16617 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16618 | PyObject *resultobj; | |
16619 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16620 | long arg2 ; | |
16621 | PyObject * obj0 = 0 ; | |
16622 | char *kwnames[] = { | |
16623 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
16624 | }; | |
16625 | ||
16626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&arg2)) goto fail; | |
16627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16628 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
16629 | ||
16630 | Py_INCREF(Py_None); resultobj = Py_None; | |
16631 | return resultobj; | |
16632 | fail: | |
16633 | return NULL; | |
16634 | } | |
16635 | ||
16636 | ||
16637 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16638 | PyObject *resultobj; | |
16639 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16640 | long result; | |
16641 | PyObject * obj0 = 0 ; | |
16642 | char *kwnames[] = { | |
16643 | (char *) "self", NULL | |
16644 | }; | |
16645 | ||
16646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
16647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16648 | result = (long) ((arg1)->m_oldItemIndex); | |
16649 | ||
16650 | resultobj = PyInt_FromLong((long)result); | |
16651 | return resultobj; | |
16652 | fail: | |
16653 | return NULL; | |
16654 | } | |
16655 | ||
16656 | ||
16657 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16658 | PyObject *resultobj; | |
16659 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16660 | long arg2 ; | |
16661 | PyObject * obj0 = 0 ; | |
16662 | char *kwnames[] = { | |
16663 | (char *) "self",(char *) "m_itemIndex", NULL | |
16664 | }; | |
16665 | ||
16666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListEvent_m_itemIndex_set",kwnames,&obj0,&arg2)) goto fail; | |
16667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16668 | if (arg1) (arg1)->m_itemIndex = arg2; | |
16669 | ||
16670 | Py_INCREF(Py_None); resultobj = Py_None; | |
16671 | return resultobj; | |
16672 | fail: | |
16673 | return NULL; | |
16674 | } | |
16675 | ||
16676 | ||
16677 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16678 | PyObject *resultobj; | |
16679 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16680 | long result; | |
16681 | PyObject * obj0 = 0 ; | |
16682 | char *kwnames[] = { | |
16683 | (char *) "self", NULL | |
16684 | }; | |
16685 | ||
16686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
16687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16688 | result = (long) ((arg1)->m_itemIndex); | |
16689 | ||
16690 | resultobj = PyInt_FromLong((long)result); | |
16691 | return resultobj; | |
16692 | fail: | |
16693 | return NULL; | |
16694 | } | |
16695 | ||
16696 | ||
16697 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16698 | PyObject *resultobj; | |
16699 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16700 | int arg2 ; | |
16701 | PyObject * obj0 = 0 ; | |
16702 | char *kwnames[] = { | |
16703 | (char *) "self",(char *) "m_col", NULL | |
16704 | }; | |
16705 | ||
16706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListEvent_m_col_set",kwnames,&obj0,&arg2)) goto fail; | |
16707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16708 | if (arg1) (arg1)->m_col = arg2; | |
16709 | ||
16710 | Py_INCREF(Py_None); resultobj = Py_None; | |
16711 | return resultobj; | |
16712 | fail: | |
16713 | return NULL; | |
16714 | } | |
16715 | ||
16716 | ||
16717 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16718 | PyObject *resultobj; | |
16719 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16720 | int result; | |
16721 | PyObject * obj0 = 0 ; | |
16722 | char *kwnames[] = { | |
16723 | (char *) "self", NULL | |
16724 | }; | |
16725 | ||
16726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
16727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16728 | result = (int) ((arg1)->m_col); | |
16729 | ||
16730 | resultobj = PyInt_FromLong((long)result); | |
16731 | return resultobj; | |
16732 | fail: | |
16733 | return NULL; | |
16734 | } | |
16735 | ||
16736 | ||
16737 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16738 | PyObject *resultobj; | |
16739 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16740 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16741 | PyObject * obj0 = 0 ; | |
16742 | PyObject * obj1 = 0 ; | |
16743 | char *kwnames[] = { | |
16744 | (char *) "self",(char *) "m_pointDrag", NULL | |
16745 | }; | |
16746 | ||
16747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
16748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16749 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16750 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
16751 | ||
16752 | Py_INCREF(Py_None); resultobj = Py_None; | |
16753 | return resultobj; | |
16754 | fail: | |
16755 | return NULL; | |
16756 | } | |
16757 | ||
16758 | ||
16759 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16760 | PyObject *resultobj; | |
16761 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16762 | wxPoint *result; | |
16763 | PyObject * obj0 = 0 ; | |
16764 | char *kwnames[] = { | |
16765 | (char *) "self", NULL | |
16766 | }; | |
16767 | ||
16768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
16769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16770 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
16771 | ||
16772 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
16773 | return resultobj; | |
16774 | fail: | |
16775 | return NULL; | |
16776 | } | |
16777 | ||
16778 | ||
16779 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16780 | PyObject *resultobj; | |
16781 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16782 | wxListItem *result; | |
16783 | PyObject * obj0 = 0 ; | |
16784 | char *kwnames[] = { | |
16785 | (char *) "self", NULL | |
16786 | }; | |
16787 | ||
16788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
16789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16790 | result = (wxListItem *)& ((arg1)->m_item); | |
16791 | ||
16792 | { | |
16793 | resultobj = wxPyMake_wxObject(result); | |
16794 | } | |
16795 | return resultobj; | |
16796 | fail: | |
16797 | return NULL; | |
16798 | } | |
16799 | ||
16800 | ||
16801 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16802 | PyObject *resultobj; | |
16803 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16804 | int result; | |
16805 | PyObject * obj0 = 0 ; | |
16806 | char *kwnames[] = { | |
16807 | (char *) "self", NULL | |
16808 | }; | |
16809 | ||
16810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",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 = (int)(arg1)->GetKeyCode(); | |
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_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16827 | PyObject *resultobj; | |
16828 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16829 | long result; | |
16830 | PyObject * obj0 = 0 ; | |
16831 | char *kwnames[] = { | |
16832 | (char *) "self", NULL | |
16833 | }; | |
16834 | ||
16835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",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 = (long)(arg1)->GetIndex(); | |
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_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16852 | PyObject *resultobj; | |
16853 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16854 | int result; | |
16855 | PyObject * obj0 = 0 ; | |
16856 | char *kwnames[] = { | |
16857 | (char *) "self", NULL | |
16858 | }; | |
16859 | ||
16860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",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 = (int)(arg1)->GetColumn(); | |
16865 | ||
16866 | wxPyEndAllowThreads(__tstate); | |
16867 | if (PyErr_Occurred()) SWIG_fail; | |
16868 | } | |
16869 | resultobj = PyInt_FromLong((long)result); | |
16870 | return resultobj; | |
16871 | fail: | |
16872 | return NULL; | |
16873 | } | |
16874 | ||
16875 | ||
16876 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16877 | PyObject *resultobj; | |
16878 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16879 | wxPoint result; | |
16880 | PyObject * obj0 = 0 ; | |
16881 | char *kwnames[] = { | |
16882 | (char *) "self", NULL | |
16883 | }; | |
16884 | ||
16885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
16886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16887 | { | |
16888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16889 | result = (arg1)->GetPoint(); | |
16890 | ||
16891 | wxPyEndAllowThreads(__tstate); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | } | |
16894 | { | |
16895 | wxPoint * resultptr; | |
16896 | resultptr = new wxPoint((wxPoint &) result); | |
16897 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
16898 | } | |
16899 | return resultobj; | |
16900 | fail: | |
16901 | return NULL; | |
16902 | } | |
16903 | ||
16904 | ||
16905 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16906 | PyObject *resultobj; | |
16907 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16908 | wxString *result; | |
16909 | PyObject * obj0 = 0 ; | |
16910 | char *kwnames[] = { | |
16911 | (char *) "self", NULL | |
16912 | }; | |
16913 | ||
16914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
16915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16916 | { | |
16917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16918 | { | |
16919 | wxString const &_result_ref = (arg1)->GetLabel(); | |
16920 | result = (wxString *) &_result_ref; | |
16921 | } | |
16922 | ||
16923 | wxPyEndAllowThreads(__tstate); | |
16924 | if (PyErr_Occurred()) SWIG_fail; | |
16925 | } | |
16926 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
16927 | return resultobj; | |
16928 | fail: | |
16929 | return NULL; | |
16930 | } | |
16931 | ||
16932 | ||
16933 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16934 | PyObject *resultobj; | |
16935 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16936 | wxString *result; | |
16937 | PyObject * obj0 = 0 ; | |
16938 | char *kwnames[] = { | |
16939 | (char *) "self", NULL | |
16940 | }; | |
16941 | ||
16942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
16943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16944 | { | |
16945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16946 | { | |
16947 | wxString const &_result_ref = (arg1)->GetText(); | |
16948 | result = (wxString *) &_result_ref; | |
16949 | } | |
16950 | ||
16951 | wxPyEndAllowThreads(__tstate); | |
16952 | if (PyErr_Occurred()) SWIG_fail; | |
16953 | } | |
16954 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
16955 | return resultobj; | |
16956 | fail: | |
16957 | return NULL; | |
16958 | } | |
16959 | ||
16960 | ||
16961 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16962 | PyObject *resultobj; | |
16963 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16964 | int result; | |
16965 | PyObject * obj0 = 0 ; | |
16966 | char *kwnames[] = { | |
16967 | (char *) "self", NULL | |
16968 | }; | |
16969 | ||
16970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",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 = (int)(arg1)->GetImage(); | |
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_GetData(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_GetData",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)->GetData(); | |
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_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17012 | PyObject *resultobj; | |
17013 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17014 | long result; | |
17015 | PyObject * obj0 = 0 ; | |
17016 | char *kwnames[] = { | |
17017 | (char *) "self", NULL | |
17018 | }; | |
17019 | ||
17020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",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 | result = (long)(arg1)->GetMask(); | |
17025 | ||
17026 | wxPyEndAllowThreads(__tstate); | |
17027 | if (PyErr_Occurred()) SWIG_fail; | |
17028 | } | |
17029 | resultobj = PyInt_FromLong((long)result); | |
17030 | return resultobj; | |
17031 | fail: | |
17032 | return NULL; | |
17033 | } | |
17034 | ||
17035 | ||
17036 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17037 | PyObject *resultobj; | |
17038 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17039 | wxListItem *result; | |
17040 | PyObject * obj0 = 0 ; | |
17041 | char *kwnames[] = { | |
17042 | (char *) "self", NULL | |
17043 | }; | |
17044 | ||
17045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
17046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17047 | { | |
17048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17049 | { | |
17050 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
17051 | result = (wxListItem *) &_result_ref; | |
17052 | } | |
17053 | ||
17054 | wxPyEndAllowThreads(__tstate); | |
17055 | if (PyErr_Occurred()) SWIG_fail; | |
17056 | } | |
17057 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
17058 | return resultobj; | |
17059 | fail: | |
17060 | return NULL; | |
17061 | } | |
17062 | ||
17063 | ||
17064 | static PyObject *_wrap_ListEvent_GetCacheFrom(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_GetCacheFrom",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)->GetCacheFrom(); | |
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_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17090 | PyObject *resultobj; | |
17091 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17092 | long result; | |
17093 | PyObject * obj0 = 0 ; | |
17094 | char *kwnames[] = { | |
17095 | (char *) "self", NULL | |
17096 | }; | |
17097 | ||
17098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",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 = (long)(arg1)->GetCacheTo(); | |
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_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17115 | PyObject *resultobj; | |
17116 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17117 | bool result; | |
17118 | PyObject * obj0 = 0 ; | |
17119 | char *kwnames[] = { | |
17120 | (char *) "self", NULL | |
17121 | }; | |
17122 | ||
17123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
17124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17125 | { | |
17126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17127 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
17128 | ||
17129 | wxPyEndAllowThreads(__tstate); | |
17130 | if (PyErr_Occurred()) SWIG_fail; | |
17131 | } | |
17132 | resultobj = PyInt_FromLong((long)result); | |
17133 | return resultobj; | |
17134 | fail: | |
17135 | return NULL; | |
17136 | } | |
17137 | ||
17138 | ||
17139 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17140 | PyObject *resultobj; | |
17141 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17142 | bool arg2 ; | |
17143 | PyObject * obj0 = 0 ; | |
17144 | PyObject * obj1 = 0 ; | |
17145 | char *kwnames[] = { | |
17146 | (char *) "self",(char *) "editCancelled", NULL | |
17147 | }; | |
17148 | ||
17149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
17150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17151 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | { | |
17154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17155 | (arg1)->SetEditCanceled(arg2); | |
17156 | ||
17157 | wxPyEndAllowThreads(__tstate); | |
17158 | if (PyErr_Occurred()) SWIG_fail; | |
17159 | } | |
17160 | Py_INCREF(Py_None); resultobj = Py_None; | |
17161 | return resultobj; | |
17162 | fail: | |
17163 | return NULL; | |
17164 | } | |
17165 | ||
17166 | ||
17167 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
17168 | PyObject *obj; | |
17169 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17170 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
17171 | Py_INCREF(obj); | |
17172 | return Py_BuildValue((char *)""); | |
17173 | } | |
17174 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17175 | PyObject *resultobj; | |
17176 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 17177 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17178 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17179 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17180 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17181 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17182 | long arg5 = (long) wxLC_ICON ; | |
17183 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
17184 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
17185 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
17186 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17187 | wxPyListCtrl *result; | |
17188 | wxPoint temp3 ; | |
17189 | wxSize temp4 ; | |
e811c8ce | 17190 | bool temp7 = False ; |
d14a1e28 RD |
17191 | PyObject * obj0 = 0 ; |
17192 | PyObject * obj2 = 0 ; | |
17193 | PyObject * obj3 = 0 ; | |
17194 | PyObject * obj5 = 0 ; | |
17195 | PyObject * obj6 = 0 ; | |
17196 | char *kwnames[] = { | |
17197 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17198 | }; | |
17199 | ||
17200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ListCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
17201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17202 | if (obj2) { | |
17203 | { | |
17204 | arg3 = &temp3; | |
17205 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17206 | } | |
17207 | } | |
17208 | if (obj3) { | |
17209 | { | |
17210 | arg4 = &temp4; | |
17211 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17212 | } | |
17213 | } | |
17214 | if (obj5) { | |
17215 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17216 | if (arg6 == NULL) { | |
17217 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17218 | } | |
17219 | } | |
17220 | if (obj6) { | |
17221 | { | |
17222 | arg7 = wxString_in_helper(obj6); | |
17223 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 17224 | temp7 = True; |
d14a1e28 RD |
17225 | } |
17226 | } | |
17227 | { | |
17228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17229 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
17230 | ||
17231 | wxPyEndAllowThreads(__tstate); | |
17232 | if (PyErr_Occurred()) SWIG_fail; | |
17233 | } | |
17234 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
17235 | { | |
17236 | if (temp7) | |
17237 | delete arg7; | |
17238 | } | |
17239 | return resultobj; | |
17240 | fail: | |
17241 | { | |
17242 | if (temp7) | |
17243 | delete arg7; | |
17244 | } | |
17245 | return NULL; | |
17246 | } | |
17247 | ||
17248 | ||
17249 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17250 | PyObject *resultobj; | |
17251 | wxPyListCtrl *result; | |
17252 | char *kwnames[] = { | |
17253 | NULL | |
17254 | }; | |
17255 | ||
17256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
17257 | { | |
17258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17259 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
17260 | ||
17261 | wxPyEndAllowThreads(__tstate); | |
17262 | if (PyErr_Occurred()) SWIG_fail; | |
17263 | } | |
17264 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
17265 | return resultobj; | |
17266 | fail: | |
17267 | return NULL; | |
17268 | } | |
17269 | ||
17270 | ||
17271 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17272 | PyObject *resultobj; | |
17273 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17274 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 17275 | int arg3 = (int) -1 ; |
d14a1e28 RD |
17276 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17277 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17278 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17279 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17280 | long arg6 = (long) wxLC_ICON ; | |
17281 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
17282 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
17283 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
17284 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17285 | bool result; | |
17286 | wxPoint temp4 ; | |
17287 | wxSize temp5 ; | |
e811c8ce | 17288 | bool temp8 = False ; |
d14a1e28 RD |
17289 | PyObject * obj0 = 0 ; |
17290 | PyObject * obj1 = 0 ; | |
17291 | PyObject * obj3 = 0 ; | |
17292 | PyObject * obj4 = 0 ; | |
17293 | PyObject * obj6 = 0 ; | |
17294 | PyObject * obj7 = 0 ; | |
17295 | char *kwnames[] = { | |
17296 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17297 | }; | |
17298 | ||
17299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ListCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
17300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17301 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17302 | if (obj3) { | |
17303 | { | |
17304 | arg4 = &temp4; | |
17305 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17306 | } | |
17307 | } | |
17308 | if (obj4) { | |
17309 | { | |
17310 | arg5 = &temp5; | |
17311 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17312 | } | |
17313 | } | |
17314 | if (obj6) { | |
17315 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17316 | if (arg7 == NULL) { | |
17317 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17318 | } | |
17319 | } | |
17320 | if (obj7) { | |
17321 | { | |
17322 | arg8 = wxString_in_helper(obj7); | |
17323 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 17324 | temp8 = True; |
d14a1e28 RD |
17325 | } |
17326 | } | |
17327 | { | |
17328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17329 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
17330 | ||
17331 | wxPyEndAllowThreads(__tstate); | |
17332 | if (PyErr_Occurred()) SWIG_fail; | |
17333 | } | |
17334 | resultobj = PyInt_FromLong((long)result); | |
17335 | { | |
17336 | if (temp8) | |
17337 | delete arg8; | |
17338 | } | |
17339 | return resultobj; | |
17340 | fail: | |
17341 | { | |
17342 | if (temp8) | |
17343 | delete arg8; | |
17344 | } | |
17345 | return NULL; | |
17346 | } | |
17347 | ||
17348 | ||
17349 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17350 | PyObject *resultobj; | |
17351 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17352 | PyObject *arg2 = (PyObject *) 0 ; | |
17353 | PyObject *arg3 = (PyObject *) 0 ; | |
17354 | PyObject * obj0 = 0 ; | |
17355 | PyObject * obj1 = 0 ; | |
17356 | PyObject * obj2 = 0 ; | |
17357 | char *kwnames[] = { | |
17358 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17359 | }; | |
17360 | ||
17361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17363 | arg2 = obj1; | |
17364 | arg3 = obj2; | |
17365 | { | |
17366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17367 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17368 | ||
17369 | wxPyEndAllowThreads(__tstate); | |
17370 | if (PyErr_Occurred()) SWIG_fail; | |
17371 | } | |
17372 | Py_INCREF(Py_None); resultobj = Py_None; | |
17373 | return resultobj; | |
17374 | fail: | |
17375 | return NULL; | |
17376 | } | |
17377 | ||
17378 | ||
17379 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17380 | PyObject *resultobj; | |
17381 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17382 | wxColour *arg2 = 0 ; | |
17383 | bool result; | |
17384 | wxColour temp2 ; | |
17385 | PyObject * obj0 = 0 ; | |
17386 | PyObject * obj1 = 0 ; | |
17387 | char *kwnames[] = { | |
17388 | (char *) "self",(char *) "col", NULL | |
17389 | }; | |
17390 | ||
17391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17393 | { | |
17394 | arg2 = &temp2; | |
17395 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17396 | } | |
17397 | { | |
17398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17399 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
17400 | ||
17401 | wxPyEndAllowThreads(__tstate); | |
17402 | if (PyErr_Occurred()) SWIG_fail; | |
17403 | } | |
17404 | resultobj = PyInt_FromLong((long)result); | |
17405 | return resultobj; | |
17406 | fail: | |
17407 | return NULL; | |
17408 | } | |
17409 | ||
17410 | ||
17411 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17412 | PyObject *resultobj; | |
17413 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17414 | wxColour *arg2 = 0 ; | |
17415 | bool result; | |
17416 | wxColour temp2 ; | |
17417 | PyObject * obj0 = 0 ; | |
17418 | PyObject * obj1 = 0 ; | |
17419 | char *kwnames[] = { | |
17420 | (char *) "self",(char *) "col", NULL | |
17421 | }; | |
17422 | ||
17423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17425 | { | |
17426 | arg2 = &temp2; | |
17427 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17428 | } | |
17429 | { | |
17430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17431 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17432 | ||
17433 | wxPyEndAllowThreads(__tstate); | |
17434 | if (PyErr_Occurred()) SWIG_fail; | |
17435 | } | |
17436 | resultobj = PyInt_FromLong((long)result); | |
17437 | return resultobj; | |
17438 | fail: | |
17439 | return NULL; | |
17440 | } | |
17441 | ||
17442 | ||
17443 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17444 | PyObject *resultobj; | |
17445 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17446 | int arg2 ; | |
17447 | wxListItem *result; | |
17448 | PyObject * obj0 = 0 ; | |
17449 | char *kwnames[] = { | |
17450 | (char *) "self",(char *) "col", NULL | |
17451 | }; | |
17452 | ||
17453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetColumn",kwnames,&obj0,&arg2)) goto fail; | |
17454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17455 | { | |
17456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17457 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
17458 | ||
17459 | wxPyEndAllowThreads(__tstate); | |
17460 | if (PyErr_Occurred()) SWIG_fail; | |
17461 | } | |
17462 | { | |
17463 | resultobj = wxPyMake_wxObject(result); | |
17464 | } | |
17465 | return resultobj; | |
17466 | fail: | |
17467 | return NULL; | |
17468 | } | |
17469 | ||
17470 | ||
17471 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17472 | PyObject *resultobj; | |
17473 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17474 | int arg2 ; | |
17475 | wxListItem *arg3 = 0 ; | |
17476 | bool result; | |
17477 | PyObject * obj0 = 0 ; | |
17478 | PyObject * obj2 = 0 ; | |
17479 | char *kwnames[] = { | |
17480 | (char *) "self",(char *) "col",(char *) "item", NULL | |
17481 | }; | |
17482 | ||
17483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ListCtrl_SetColumn",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17485 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17486 | if (arg3 == NULL) { | |
17487 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17488 | } | |
17489 | { | |
17490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17491 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
17492 | ||
17493 | wxPyEndAllowThreads(__tstate); | |
17494 | if (PyErr_Occurred()) SWIG_fail; | |
17495 | } | |
17496 | resultobj = PyInt_FromLong((long)result); | |
17497 | return resultobj; | |
17498 | fail: | |
17499 | return NULL; | |
17500 | } | |
17501 | ||
17502 | ||
17503 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17504 | PyObject *resultobj; | |
17505 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17506 | int arg2 ; | |
17507 | int result; | |
17508 | PyObject * obj0 = 0 ; | |
17509 | char *kwnames[] = { | |
17510 | (char *) "self",(char *) "col", NULL | |
17511 | }; | |
17512 | ||
17513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetColumnWidth",kwnames,&obj0,&arg2)) goto fail; | |
17514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17515 | { | |
17516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17517 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
17518 | ||
17519 | wxPyEndAllowThreads(__tstate); | |
17520 | if (PyErr_Occurred()) SWIG_fail; | |
17521 | } | |
17522 | resultobj = PyInt_FromLong((long)result); | |
17523 | return resultobj; | |
17524 | fail: | |
17525 | return NULL; | |
17526 | } | |
17527 | ||
17528 | ||
17529 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17530 | PyObject *resultobj; | |
17531 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17532 | int arg2 ; | |
17533 | int arg3 ; | |
17534 | bool result; | |
17535 | PyObject * obj0 = 0 ; | |
17536 | char *kwnames[] = { | |
17537 | (char *) "self",(char *) "col",(char *) "width", NULL | |
17538 | }; | |
17539 | ||
17540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListCtrl_SetColumnWidth",kwnames,&obj0,&arg2,&arg3)) 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 = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
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_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17557 | PyObject *resultobj; | |
17558 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17559 | int result; | |
17560 | PyObject * obj0 = 0 ; | |
17561 | char *kwnames[] = { | |
17562 | (char *) "self", NULL | |
17563 | }; | |
17564 | ||
17565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",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 = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
17570 | ||
17571 | wxPyEndAllowThreads(__tstate); | |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
17573 | } | |
17574 | resultobj = PyInt_FromLong((long)result); | |
17575 | return resultobj; | |
17576 | fail: | |
17577 | return NULL; | |
17578 | } | |
17579 | ||
17580 | ||
17581 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17582 | PyObject *resultobj; | |
17583 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17584 | wxRect result; | |
17585 | PyObject * obj0 = 0 ; | |
17586 | char *kwnames[] = { | |
17587 | (char *) "self", NULL | |
17588 | }; | |
17589 | ||
17590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
17591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17592 | { | |
17593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17594 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
17595 | ||
17596 | wxPyEndAllowThreads(__tstate); | |
17597 | if (PyErr_Occurred()) SWIG_fail; | |
17598 | } | |
17599 | { | |
17600 | wxRect * resultptr; | |
17601 | resultptr = new wxRect((wxRect &) result); | |
17602 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
17603 | } | |
17604 | return resultobj; | |
17605 | fail: | |
17606 | return NULL; | |
17607 | } | |
17608 | ||
17609 | ||
17610 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17611 | PyObject *resultobj; | |
17612 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17613 | long arg2 ; | |
17614 | int arg3 = (int) 0 ; | |
17615 | wxListItem *result; | |
17616 | PyObject * obj0 = 0 ; | |
17617 | char *kwnames[] = { | |
17618 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
17619 | }; | |
17620 | ||
17621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:ListCtrl_GetItem",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17623 | { | |
17624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17625 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
17626 | ||
17627 | wxPyEndAllowThreads(__tstate); | |
17628 | if (PyErr_Occurred()) SWIG_fail; | |
17629 | } | |
17630 | { | |
17631 | resultobj = wxPyMake_wxObject(result); | |
17632 | } | |
17633 | return resultobj; | |
17634 | fail: | |
17635 | return NULL; | |
17636 | } | |
17637 | ||
17638 | ||
17639 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17640 | PyObject *resultobj; | |
17641 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17642 | wxListItem *arg2 = 0 ; | |
17643 | bool result; | |
17644 | PyObject * obj0 = 0 ; | |
17645 | PyObject * obj1 = 0 ; | |
17646 | char *kwnames[] = { | |
17647 | (char *) "self",(char *) "info", NULL | |
17648 | }; | |
17649 | ||
17650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
17651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17652 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17653 | if (arg2 == NULL) { | |
17654 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17655 | } | |
17656 | { | |
17657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17658 | result = (bool)(arg1)->SetItem(*arg2); | |
17659 | ||
17660 | wxPyEndAllowThreads(__tstate); | |
17661 | if (PyErr_Occurred()) SWIG_fail; | |
17662 | } | |
17663 | resultobj = PyInt_FromLong((long)result); | |
17664 | return resultobj; | |
17665 | fail: | |
17666 | return NULL; | |
17667 | } | |
17668 | ||
17669 | ||
17670 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17671 | PyObject *resultobj; | |
17672 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17673 | long arg2 ; | |
17674 | int arg3 ; | |
17675 | wxString *arg4 = 0 ; | |
17676 | int arg5 = (int) -1 ; | |
17677 | long result; | |
e811c8ce | 17678 | bool temp4 = False ; |
d14a1e28 RD |
17679 | PyObject * obj0 = 0 ; |
17680 | PyObject * obj3 = 0 ; | |
17681 | char *kwnames[] = { | |
17682 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
17683 | }; | |
17684 | ||
17685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OliO|i:ListCtrl_SetStringItem",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
17686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17687 | { | |
17688 | arg4 = wxString_in_helper(obj3); | |
17689 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 17690 | temp4 = True; |
d14a1e28 RD |
17691 | } |
17692 | { | |
17693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17694 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
17695 | ||
17696 | wxPyEndAllowThreads(__tstate); | |
17697 | if (PyErr_Occurred()) SWIG_fail; | |
17698 | } | |
17699 | resultobj = PyInt_FromLong((long)result); | |
17700 | { | |
17701 | if (temp4) | |
17702 | delete arg4; | |
17703 | } | |
17704 | return resultobj; | |
17705 | fail: | |
17706 | { | |
17707 | if (temp4) | |
17708 | delete arg4; | |
17709 | } | |
17710 | return NULL; | |
17711 | } | |
17712 | ||
17713 | ||
17714 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17715 | PyObject *resultobj; | |
17716 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17717 | long arg2 ; | |
17718 | long arg3 ; | |
17719 | int result; | |
17720 | PyObject * obj0 = 0 ; | |
17721 | char *kwnames[] = { | |
17722 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
17723 | }; | |
17724 | ||
17725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_GetItemState",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17727 | { | |
17728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17729 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
17730 | ||
17731 | wxPyEndAllowThreads(__tstate); | |
17732 | if (PyErr_Occurred()) SWIG_fail; | |
17733 | } | |
17734 | resultobj = PyInt_FromLong((long)result); | |
17735 | return resultobj; | |
17736 | fail: | |
17737 | return NULL; | |
17738 | } | |
17739 | ||
17740 | ||
17741 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17742 | PyObject *resultobj; | |
17743 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17744 | long arg2 ; | |
17745 | long arg3 ; | |
17746 | long arg4 ; | |
17747 | bool result; | |
17748 | PyObject * obj0 = 0 ; | |
17749 | char *kwnames[] = { | |
17750 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
17751 | }; | |
17752 | ||
17753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Olll:ListCtrl_SetItemState",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
17754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17755 | { | |
17756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17757 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
17758 | ||
17759 | wxPyEndAllowThreads(__tstate); | |
17760 | if (PyErr_Occurred()) SWIG_fail; | |
17761 | } | |
17762 | resultobj = PyInt_FromLong((long)result); | |
17763 | return resultobj; | |
17764 | fail: | |
17765 | return NULL; | |
17766 | } | |
17767 | ||
17768 | ||
17769 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17770 | PyObject *resultobj; | |
17771 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17772 | long arg2 ; | |
17773 | int arg3 ; | |
17774 | int arg4 ; | |
17775 | bool result; | |
17776 | PyObject * obj0 = 0 ; | |
17777 | char *kwnames[] = { | |
17778 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
17779 | }; | |
17780 | ||
17781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Olii:ListCtrl_SetItemImage",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
17782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17783 | { | |
17784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17785 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
17786 | ||
17787 | wxPyEndAllowThreads(__tstate); | |
17788 | if (PyErr_Occurred()) SWIG_fail; | |
17789 | } | |
17790 | resultobj = PyInt_FromLong((long)result); | |
17791 | return resultobj; | |
17792 | fail: | |
17793 | return NULL; | |
17794 | } | |
17795 | ||
17796 | ||
17797 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17798 | PyObject *resultobj; | |
17799 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17800 | long arg2 ; | |
17801 | wxString result; | |
17802 | PyObject * obj0 = 0 ; | |
17803 | char *kwnames[] = { | |
17804 | (char *) "self",(char *) "item", NULL | |
17805 | }; | |
17806 | ||
17807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemText",kwnames,&obj0,&arg2)) goto fail; | |
17808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17809 | { | |
17810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17811 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
17812 | ||
17813 | wxPyEndAllowThreads(__tstate); | |
17814 | if (PyErr_Occurred()) SWIG_fail; | |
17815 | } | |
17816 | { | |
17817 | #if wxUSE_UNICODE | |
17818 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17819 | #else | |
17820 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17821 | #endif | |
17822 | } | |
17823 | return resultobj; | |
17824 | fail: | |
17825 | return NULL; | |
17826 | } | |
17827 | ||
17828 | ||
17829 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17830 | PyObject *resultobj; | |
17831 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17832 | long arg2 ; | |
17833 | wxString *arg3 = 0 ; | |
e811c8ce | 17834 | bool temp3 = False ; |
d14a1e28 RD |
17835 | PyObject * obj0 = 0 ; |
17836 | PyObject * obj2 = 0 ; | |
17837 | char *kwnames[] = { | |
17838 | (char *) "self",(char *) "item",(char *) "str", NULL | |
17839 | }; | |
17840 | ||
17841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemText",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17843 | { | |
17844 | arg3 = wxString_in_helper(obj2); | |
17845 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 17846 | temp3 = True; |
d14a1e28 RD |
17847 | } |
17848 | { | |
17849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17850 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
17851 | ||
17852 | wxPyEndAllowThreads(__tstate); | |
17853 | if (PyErr_Occurred()) SWIG_fail; | |
17854 | } | |
17855 | Py_INCREF(Py_None); resultobj = Py_None; | |
17856 | { | |
17857 | if (temp3) | |
17858 | delete arg3; | |
17859 | } | |
17860 | return resultobj; | |
17861 | fail: | |
17862 | { | |
17863 | if (temp3) | |
17864 | delete arg3; | |
17865 | } | |
17866 | return NULL; | |
17867 | } | |
17868 | ||
17869 | ||
17870 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17871 | PyObject *resultobj; | |
17872 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17873 | long arg2 ; | |
17874 | long result; | |
17875 | PyObject * obj0 = 0 ; | |
17876 | char *kwnames[] = { | |
17877 | (char *) "self",(char *) "item", NULL | |
17878 | }; | |
17879 | ||
17880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemData",kwnames,&obj0,&arg2)) goto fail; | |
17881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17882 | { | |
17883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17884 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
17885 | ||
17886 | wxPyEndAllowThreads(__tstate); | |
17887 | if (PyErr_Occurred()) SWIG_fail; | |
17888 | } | |
17889 | resultobj = PyInt_FromLong((long)result); | |
17890 | return resultobj; | |
17891 | fail: | |
17892 | return NULL; | |
17893 | } | |
17894 | ||
17895 | ||
17896 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17897 | PyObject *resultobj; | |
17898 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17899 | long arg2 ; | |
17900 | long arg3 ; | |
17901 | bool result; | |
17902 | PyObject * obj0 = 0 ; | |
17903 | char *kwnames[] = { | |
17904 | (char *) "self",(char *) "item",(char *) "data", NULL | |
17905 | }; | |
17906 | ||
17907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_SetItemData",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17909 | { | |
17910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17911 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
17912 | ||
17913 | wxPyEndAllowThreads(__tstate); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
17915 | } | |
17916 | resultobj = PyInt_FromLong((long)result); | |
17917 | return resultobj; | |
17918 | fail: | |
17919 | return NULL; | |
17920 | } | |
17921 | ||
17922 | ||
17923 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17924 | PyObject *resultobj; | |
17925 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17926 | long arg2 ; | |
17927 | wxPoint result; | |
17928 | PyObject * obj0 = 0 ; | |
17929 | char *kwnames[] = { | |
17930 | (char *) "self",(char *) "item", NULL | |
17931 | }; | |
17932 | ||
17933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemPosition",kwnames,&obj0,&arg2)) goto fail; | |
17934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17935 | { | |
17936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17937 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
17938 | ||
17939 | wxPyEndAllowThreads(__tstate); | |
17940 | if (PyErr_Occurred()) SWIG_fail; | |
17941 | } | |
17942 | { | |
17943 | wxPoint * resultptr; | |
17944 | resultptr = new wxPoint((wxPoint &) result); | |
17945 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
17946 | } | |
17947 | return resultobj; | |
17948 | fail: | |
17949 | return NULL; | |
17950 | } | |
17951 | ||
17952 | ||
17953 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17954 | PyObject *resultobj; | |
17955 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17956 | long arg2 ; | |
17957 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
17958 | wxRect result; | |
17959 | PyObject * obj0 = 0 ; | |
17960 | char *kwnames[] = { | |
17961 | (char *) "self",(char *) "item",(char *) "code", NULL | |
17962 | }; | |
17963 | ||
17964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:ListCtrl_GetItemRect",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17966 | { | |
17967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17968 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
17969 | ||
17970 | wxPyEndAllowThreads(__tstate); | |
17971 | if (PyErr_Occurred()) SWIG_fail; | |
17972 | } | |
17973 | { | |
17974 | wxRect * resultptr; | |
17975 | resultptr = new wxRect((wxRect &) result); | |
17976 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
17977 | } | |
17978 | return resultobj; | |
17979 | fail: | |
17980 | return NULL; | |
17981 | } | |
17982 | ||
17983 | ||
17984 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17985 | PyObject *resultobj; | |
17986 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17987 | long arg2 ; | |
17988 | wxPoint *arg3 = 0 ; | |
17989 | bool result; | |
17990 | wxPoint temp3 ; | |
17991 | PyObject * obj0 = 0 ; | |
17992 | PyObject * obj2 = 0 ; | |
17993 | char *kwnames[] = { | |
17994 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
17995 | }; | |
17996 | ||
17997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemPosition",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17999 | { | |
18000 | arg3 = &temp3; | |
18001 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18002 | } | |
18003 | { | |
18004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18005 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
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_GetItemCount(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_GetItemCount",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)->GetItemCount(); | |
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_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18043 | PyObject *resultobj; | |
18044 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18045 | int result; | |
18046 | PyObject * obj0 = 0 ; | |
18047 | char *kwnames[] = { | |
18048 | (char *) "self", NULL | |
18049 | }; | |
18050 | ||
18051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",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 = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
18056 | ||
18057 | wxPyEndAllowThreads(__tstate); | |
18058 | if (PyErr_Occurred()) SWIG_fail; | |
18059 | } | |
18060 | resultobj = PyInt_FromLong((long)result); | |
18061 | return resultobj; | |
18062 | fail: | |
18063 | return NULL; | |
18064 | } | |
18065 | ||
18066 | ||
18067 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18068 | PyObject *resultobj; | |
18069 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18070 | wxSize result; | |
18071 | PyObject * obj0 = 0 ; | |
18072 | char *kwnames[] = { | |
18073 | (char *) "self", NULL | |
18074 | }; | |
18075 | ||
18076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
18077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18078 | { | |
18079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18080 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
18081 | ||
18082 | wxPyEndAllowThreads(__tstate); | |
18083 | if (PyErr_Occurred()) SWIG_fail; | |
18084 | } | |
18085 | { | |
18086 | wxSize * resultptr; | |
18087 | resultptr = new wxSize((wxSize &) result); | |
18088 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
18089 | } | |
18090 | return resultobj; | |
18091 | fail: | |
18092 | return NULL; | |
18093 | } | |
18094 | ||
18095 | ||
18096 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18097 | PyObject *resultobj; | |
18098 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18099 | int arg2 ; | |
e811c8ce | 18100 | bool arg3 = (bool) False ; |
d14a1e28 RD |
18101 | PyObject * obj0 = 0 ; |
18102 | PyObject * obj2 = 0 ; | |
18103 | char *kwnames[] = { | |
18104 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
18105 | }; | |
18106 | ||
18107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18109 | if (obj2) { | |
18110 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
18111 | if (PyErr_Occurred()) SWIG_fail; | |
18112 | } | |
18113 | { | |
18114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18115 | (arg1)->SetItemSpacing(arg2,arg3); | |
18116 | ||
18117 | wxPyEndAllowThreads(__tstate); | |
18118 | if (PyErr_Occurred()) SWIG_fail; | |
18119 | } | |
18120 | Py_INCREF(Py_None); resultobj = Py_None; | |
18121 | return resultobj; | |
18122 | fail: | |
18123 | return NULL; | |
18124 | } | |
18125 | ||
18126 | ||
18127 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18128 | PyObject *resultobj; | |
18129 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18130 | int result; | |
18131 | PyObject * obj0 = 0 ; | |
18132 | char *kwnames[] = { | |
18133 | (char *) "self", NULL | |
18134 | }; | |
18135 | ||
18136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",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 = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
18141 | ||
18142 | wxPyEndAllowThreads(__tstate); | |
18143 | if (PyErr_Occurred()) SWIG_fail; | |
18144 | } | |
18145 | resultobj = PyInt_FromLong((long)result); | |
18146 | return resultobj; | |
18147 | fail: | |
18148 | return NULL; | |
18149 | } | |
18150 | ||
18151 | ||
18152 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18153 | PyObject *resultobj; | |
18154 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18155 | wxColour result; | |
18156 | PyObject * obj0 = 0 ; | |
18157 | char *kwnames[] = { | |
18158 | (char *) "self", NULL | |
18159 | }; | |
18160 | ||
18161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
18162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18163 | { | |
18164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18165 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
18166 | ||
18167 | wxPyEndAllowThreads(__tstate); | |
18168 | if (PyErr_Occurred()) SWIG_fail; | |
18169 | } | |
18170 | { | |
18171 | wxColour * resultptr; | |
18172 | resultptr = new wxColour((wxColour &) result); | |
18173 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18174 | } | |
18175 | return resultobj; | |
18176 | fail: | |
18177 | return NULL; | |
18178 | } | |
18179 | ||
18180 | ||
18181 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18182 | PyObject *resultobj; | |
18183 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18184 | wxColour *arg2 = 0 ; | |
18185 | wxColour temp2 ; | |
18186 | PyObject * obj0 = 0 ; | |
18187 | PyObject * obj1 = 0 ; | |
18188 | char *kwnames[] = { | |
18189 | (char *) "self",(char *) "col", NULL | |
18190 | }; | |
18191 | ||
18192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18194 | { | |
18195 | arg2 = &temp2; | |
18196 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18197 | } | |
18198 | { | |
18199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18200 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18201 | ||
18202 | wxPyEndAllowThreads(__tstate); | |
18203 | if (PyErr_Occurred()) SWIG_fail; | |
18204 | } | |
18205 | Py_INCREF(Py_None); resultobj = Py_None; | |
18206 | return resultobj; | |
18207 | fail: | |
18208 | return NULL; | |
18209 | } | |
18210 | ||
18211 | ||
18212 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18213 | PyObject *resultobj; | |
18214 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18215 | long result; | |
18216 | PyObject * obj0 = 0 ; | |
18217 | char *kwnames[] = { | |
18218 | (char *) "self", NULL | |
18219 | }; | |
18220 | ||
18221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
18222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18223 | { | |
18224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18225 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
18226 | ||
18227 | wxPyEndAllowThreads(__tstate); | |
18228 | if (PyErr_Occurred()) SWIG_fail; | |
18229 | } | |
18230 | resultobj = PyInt_FromLong((long)result); | |
18231 | return resultobj; | |
18232 | fail: | |
18233 | return NULL; | |
18234 | } | |
18235 | ||
18236 | ||
18237 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18238 | PyObject *resultobj; | |
18239 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18240 | long arg2 ; | |
e811c8ce | 18241 | bool arg3 = (bool) True ; |
d14a1e28 RD |
18242 | PyObject * obj0 = 0 ; |
18243 | PyObject * obj2 = 0 ; | |
18244 | char *kwnames[] = { | |
18245 | (char *) "self",(char *) "style",(char *) "add", NULL | |
18246 | }; | |
18247 | ||
18248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18250 | if (obj2) { | |
18251 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
18252 | if (PyErr_Occurred()) SWIG_fail; | |
18253 | } | |
18254 | { | |
18255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18256 | (arg1)->SetSingleStyle(arg2,arg3); | |
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_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18269 | PyObject *resultobj; | |
18270 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18271 | long arg2 ; | |
18272 | PyObject * obj0 = 0 ; | |
18273 | char *kwnames[] = { | |
18274 | (char *) "self",(char *) "style", NULL | |
18275 | }; | |
18276 | ||
18277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&arg2)) goto fail; | |
18278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18279 | { | |
18280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18281 | (arg1)->SetWindowStyleFlag(arg2); | |
18282 | ||
18283 | wxPyEndAllowThreads(__tstate); | |
18284 | if (PyErr_Occurred()) SWIG_fail; | |
18285 | } | |
18286 | Py_INCREF(Py_None); resultobj = Py_None; | |
18287 | return resultobj; | |
18288 | fail: | |
18289 | return NULL; | |
18290 | } | |
18291 | ||
18292 | ||
18293 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18294 | PyObject *resultobj; | |
18295 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18296 | long arg2 ; | |
18297 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
18298 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
18299 | long result; | |
18300 | PyObject * obj0 = 0 ; | |
18301 | char *kwnames[] = { | |
18302 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
18303 | }; | |
18304 | ||
18305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:ListCtrl_GetNextItem",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
18306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18307 | { | |
18308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18309 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
18310 | ||
18311 | wxPyEndAllowThreads(__tstate); | |
18312 | if (PyErr_Occurred()) SWIG_fail; | |
18313 | } | |
18314 | resultobj = PyInt_FromLong((long)result); | |
18315 | return resultobj; | |
18316 | fail: | |
18317 | return NULL; | |
18318 | } | |
18319 | ||
18320 | ||
18321 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18322 | PyObject *resultobj; | |
18323 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18324 | int arg2 ; | |
18325 | wxImageList *result; | |
18326 | PyObject * obj0 = 0 ; | |
18327 | char *kwnames[] = { | |
18328 | (char *) "self",(char *) "which", NULL | |
18329 | }; | |
18330 | ||
18331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetImageList",kwnames,&obj0,&arg2)) goto fail; | |
18332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18333 | { | |
18334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18335 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
18336 | ||
18337 | wxPyEndAllowThreads(__tstate); | |
18338 | if (PyErr_Occurred()) SWIG_fail; | |
18339 | } | |
18340 | { | |
18341 | resultobj = wxPyMake_wxObject(result); | |
18342 | } | |
18343 | return resultobj; | |
18344 | fail: | |
18345 | return NULL; | |
18346 | } | |
18347 | ||
18348 | ||
18349 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18350 | PyObject *resultobj; | |
18351 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18352 | wxImageList *arg2 = (wxImageList *) 0 ; | |
18353 | int arg3 ; | |
18354 | PyObject * obj0 = 0 ; | |
18355 | PyObject * obj1 = 0 ; | |
18356 | char *kwnames[] = { | |
18357 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
18358 | }; | |
18359 | ||
18360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
18361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18362 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18363 | { | |
18364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18365 | (arg1)->SetImageList(arg2,arg3); | |
18366 | ||
18367 | wxPyEndAllowThreads(__tstate); | |
18368 | if (PyErr_Occurred()) SWIG_fail; | |
18369 | } | |
18370 | Py_INCREF(Py_None); resultobj = Py_None; | |
18371 | return resultobj; | |
18372 | fail: | |
18373 | return NULL; | |
18374 | } | |
18375 | ||
18376 | ||
18377 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18378 | PyObject *resultobj; | |
18379 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18380 | wxImageList *arg2 = (wxImageList *) 0 ; | |
18381 | int arg3 ; | |
18382 | PyObject * obj0 = 0 ; | |
18383 | PyObject * obj1 = 0 ; | |
18384 | char *kwnames[] = { | |
18385 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
18386 | }; | |
18387 | ||
18388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
18389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18390 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18391 | { | |
18392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18393 | (arg1)->AssignImageList(arg2,arg3); | |
18394 | ||
18395 | wxPyEndAllowThreads(__tstate); | |
18396 | if (PyErr_Occurred()) SWIG_fail; | |
18397 | } | |
18398 | Py_INCREF(Py_None); resultobj = Py_None; | |
18399 | return resultobj; | |
18400 | fail: | |
18401 | return NULL; | |
18402 | } | |
18403 | ||
18404 | ||
18405 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18406 | PyObject *resultobj; | |
18407 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18408 | bool result; | |
18409 | PyObject * obj0 = 0 ; | |
18410 | char *kwnames[] = { | |
18411 | (char *) "self", NULL | |
18412 | }; | |
18413 | ||
18414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) 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 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
18419 | ||
18420 | wxPyEndAllowThreads(__tstate); | |
18421 | if (PyErr_Occurred()) SWIG_fail; | |
18422 | } | |
18423 | resultobj = PyInt_FromLong((long)result); | |
18424 | return resultobj; | |
18425 | fail: | |
18426 | return NULL; | |
18427 | } | |
18428 | ||
18429 | ||
18430 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18431 | PyObject *resultobj; | |
18432 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18433 | long arg2 ; | |
18434 | PyObject * obj0 = 0 ; | |
18435 | char *kwnames[] = { | |
18436 | (char *) "self",(char *) "item", NULL | |
18437 | }; | |
18438 | ||
18439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_RefreshItem",kwnames,&obj0,&arg2)) goto fail; | |
18440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18441 | { | |
18442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18443 | (arg1)->RefreshItem(arg2); | |
18444 | ||
18445 | wxPyEndAllowThreads(__tstate); | |
18446 | if (PyErr_Occurred()) SWIG_fail; | |
18447 | } | |
18448 | Py_INCREF(Py_None); resultobj = Py_None; | |
18449 | return resultobj; | |
18450 | fail: | |
18451 | return NULL; | |
18452 | } | |
18453 | ||
18454 | ||
18455 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18456 | PyObject *resultobj; | |
18457 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18458 | long arg2 ; | |
18459 | long arg3 ; | |
18460 | PyObject * obj0 = 0 ; | |
18461 | char *kwnames[] = { | |
18462 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
18463 | }; | |
18464 | ||
18465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_RefreshItems",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18467 | { | |
18468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18469 | (arg1)->RefreshItems(arg2,arg3); | |
18470 | ||
18471 | wxPyEndAllowThreads(__tstate); | |
18472 | if (PyErr_Occurred()) SWIG_fail; | |
18473 | } | |
18474 | Py_INCREF(Py_None); resultobj = Py_None; | |
18475 | return resultobj; | |
18476 | fail: | |
18477 | return NULL; | |
18478 | } | |
18479 | ||
18480 | ||
18481 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18482 | PyObject *resultobj; | |
18483 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18484 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
18485 | bool result; | |
18486 | PyObject * obj0 = 0 ; | |
18487 | char *kwnames[] = { | |
18488 | (char *) "self",(char *) "flag", NULL | |
18489 | }; | |
18490 | ||
18491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:ListCtrl_Arrange",kwnames,&obj0,&arg2)) goto fail; | |
18492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18493 | { | |
18494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18495 | result = (bool)(arg1)->Arrange(arg2); | |
18496 | ||
18497 | wxPyEndAllowThreads(__tstate); | |
18498 | if (PyErr_Occurred()) SWIG_fail; | |
18499 | } | |
18500 | resultobj = PyInt_FromLong((long)result); | |
18501 | return resultobj; | |
18502 | fail: | |
18503 | return NULL; | |
18504 | } | |
18505 | ||
18506 | ||
18507 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18508 | PyObject *resultobj; | |
18509 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18510 | long arg2 ; | |
18511 | bool result; | |
18512 | PyObject * obj0 = 0 ; | |
18513 | char *kwnames[] = { | |
18514 | (char *) "self",(char *) "item", NULL | |
18515 | }; | |
18516 | ||
18517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_DeleteItem",kwnames,&obj0,&arg2)) 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)->DeleteItem(arg2); | |
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_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18534 | PyObject *resultobj; | |
18535 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18536 | bool result; | |
18537 | PyObject * obj0 = 0 ; | |
18538 | char *kwnames[] = { | |
18539 | (char *) "self", NULL | |
18540 | }; | |
18541 | ||
18542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
18543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18544 | { | |
18545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18546 | result = (bool)(arg1)->DeleteAllItems(); | |
18547 | ||
18548 | wxPyEndAllowThreads(__tstate); | |
18549 | if (PyErr_Occurred()) SWIG_fail; | |
18550 | } | |
18551 | resultobj = PyInt_FromLong((long)result); | |
18552 | return resultobj; | |
18553 | fail: | |
18554 | return NULL; | |
18555 | } | |
18556 | ||
18557 | ||
18558 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18559 | PyObject *resultobj; | |
18560 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18561 | int arg2 ; | |
18562 | bool result; | |
18563 | PyObject * obj0 = 0 ; | |
18564 | char *kwnames[] = { | |
18565 | (char *) "self",(char *) "col", NULL | |
18566 | }; | |
18567 | ||
18568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_DeleteColumn",kwnames,&obj0,&arg2)) 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)->DeleteColumn(arg2); | |
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_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18585 | PyObject *resultobj; | |
18586 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18587 | bool result; | |
18588 | PyObject * obj0 = 0 ; | |
18589 | char *kwnames[] = { | |
18590 | (char *) "self", NULL | |
18591 | }; | |
18592 | ||
18593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
18594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18595 | { | |
18596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18597 | result = (bool)(arg1)->DeleteAllColumns(); | |
18598 | ||
18599 | wxPyEndAllowThreads(__tstate); | |
18600 | if (PyErr_Occurred()) SWIG_fail; | |
18601 | } | |
18602 | resultobj = PyInt_FromLong((long)result); | |
18603 | return resultobj; | |
18604 | fail: | |
18605 | return NULL; | |
18606 | } | |
18607 | ||
18608 | ||
18609 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18610 | PyObject *resultobj; | |
18611 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18612 | PyObject * obj0 = 0 ; | |
18613 | char *kwnames[] = { | |
18614 | (char *) "self", NULL | |
18615 | }; | |
18616 | ||
18617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) 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)->ClearAll(); | |
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_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18634 | PyObject *resultobj; | |
18635 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18636 | long arg2 ; | |
18637 | PyObject * obj0 = 0 ; | |
18638 | char *kwnames[] = { | |
18639 | (char *) "self",(char *) "item", NULL | |
18640 | }; | |
18641 | ||
18642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_EditLabel",kwnames,&obj0,&arg2)) goto fail; | |
18643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18644 | { | |
18645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18646 | (arg1)->EditLabel(arg2); | |
18647 | ||
18648 | wxPyEndAllowThreads(__tstate); | |
18649 | if (PyErr_Occurred()) SWIG_fail; | |
18650 | } | |
18651 | Py_INCREF(Py_None); resultobj = Py_None; | |
18652 | return resultobj; | |
18653 | fail: | |
18654 | return NULL; | |
18655 | } | |
18656 | ||
18657 | ||
18658 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18659 | PyObject *resultobj; | |
18660 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18661 | long arg2 ; | |
18662 | bool result; | |
18663 | PyObject * obj0 = 0 ; | |
18664 | char *kwnames[] = { | |
18665 | (char *) "self",(char *) "item", NULL | |
18666 | }; | |
18667 | ||
18668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_EnsureVisible",kwnames,&obj0,&arg2)) goto fail; | |
18669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18670 | { | |
18671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18672 | result = (bool)(arg1)->EnsureVisible(arg2); | |
18673 | ||
18674 | wxPyEndAllowThreads(__tstate); | |
18675 | if (PyErr_Occurred()) SWIG_fail; | |
18676 | } | |
18677 | resultobj = PyInt_FromLong((long)result); | |
18678 | return resultobj; | |
18679 | fail: | |
18680 | return NULL; | |
18681 | } | |
18682 | ||
18683 | ||
18684 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18685 | PyObject *resultobj; | |
18686 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18687 | long arg2 ; | |
18688 | wxString *arg3 = 0 ; | |
e811c8ce | 18689 | bool arg4 = (bool) False ; |
d14a1e28 | 18690 | long result; |
e811c8ce | 18691 | bool temp3 = False ; |
d14a1e28 RD |
18692 | PyObject * obj0 = 0 ; |
18693 | PyObject * obj2 = 0 ; | |
18694 | PyObject * obj3 = 0 ; | |
18695 | char *kwnames[] = { | |
18696 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
18697 | }; | |
18698 | ||
18699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO|O:ListCtrl_FindItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
18700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18701 | { | |
18702 | arg3 = wxString_in_helper(obj2); | |
18703 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 18704 | temp3 = True; |
d14a1e28 RD |
18705 | } |
18706 | if (obj3) { | |
18707 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
18708 | if (PyErr_Occurred()) SWIG_fail; | |
18709 | } | |
18710 | { | |
18711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18712 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
18713 | ||
18714 | wxPyEndAllowThreads(__tstate); | |
18715 | if (PyErr_Occurred()) SWIG_fail; | |
18716 | } | |
18717 | resultobj = PyInt_FromLong((long)result); | |
18718 | { | |
18719 | if (temp3) | |
18720 | delete arg3; | |
18721 | } | |
18722 | return resultobj; | |
18723 | fail: | |
18724 | { | |
18725 | if (temp3) | |
18726 | delete arg3; | |
18727 | } | |
18728 | return NULL; | |
18729 | } | |
18730 | ||
18731 | ||
18732 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18733 | PyObject *resultobj; | |
18734 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18735 | long arg2 ; | |
18736 | long arg3 ; | |
18737 | long result; | |
18738 | PyObject * obj0 = 0 ; | |
18739 | char *kwnames[] = { | |
18740 | (char *) "self",(char *) "start",(char *) "data", NULL | |
18741 | }; | |
18742 | ||
18743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_FindItemData",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18745 | { | |
18746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18747 | result = (long)(arg1)->FindItem(arg2,arg3); | |
18748 | ||
18749 | wxPyEndAllowThreads(__tstate); | |
18750 | if (PyErr_Occurred()) SWIG_fail; | |
18751 | } | |
18752 | resultobj = PyInt_FromLong((long)result); | |
18753 | return resultobj; | |
18754 | fail: | |
18755 | return NULL; | |
18756 | } | |
18757 | ||
18758 | ||
18759 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18760 | PyObject *resultobj; | |
18761 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18762 | long arg2 ; | |
18763 | wxPoint *arg3 = 0 ; | |
18764 | int arg4 ; | |
18765 | long result; | |
18766 | wxPoint temp3 ; | |
18767 | PyObject * obj0 = 0 ; | |
18768 | PyObject * obj2 = 0 ; | |
18769 | char *kwnames[] = { | |
18770 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
18771 | }; | |
18772 | ||
18773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlOi:ListCtrl_FindItemAtPos",kwnames,&obj0,&arg2,&obj2,&arg4)) goto fail; | |
18774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18775 | { | |
18776 | arg3 = &temp3; | |
18777 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18778 | } | |
18779 | { | |
18780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18781 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
18782 | ||
18783 | wxPyEndAllowThreads(__tstate); | |
18784 | if (PyErr_Occurred()) SWIG_fail; | |
18785 | } | |
18786 | resultobj = PyInt_FromLong((long)result); | |
18787 | return resultobj; | |
18788 | fail: | |
18789 | return NULL; | |
18790 | } | |
18791 | ||
18792 | ||
18793 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18794 | PyObject *resultobj; | |
18795 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18796 | wxPoint *arg2 = 0 ; | |
18797 | int *arg3 = 0 ; | |
18798 | long result; | |
18799 | wxPoint temp2 ; | |
18800 | int temp3 ; | |
18801 | PyObject * obj0 = 0 ; | |
18802 | PyObject * obj1 = 0 ; | |
18803 | char *kwnames[] = { | |
18804 | (char *) "self",(char *) "point", NULL | |
18805 | }; | |
18806 | ||
18807 | arg3 = &temp3; | |
18808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
18809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18810 | { | |
18811 | arg2 = &temp2; | |
18812 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18813 | } | |
18814 | { | |
18815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18816 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
18817 | ||
18818 | wxPyEndAllowThreads(__tstate); | |
18819 | if (PyErr_Occurred()) SWIG_fail; | |
18820 | } | |
18821 | resultobj = PyInt_FromLong((long)result); | |
18822 | { | |
18823 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
18824 | resultobj = t_output_helper(resultobj,o); | |
18825 | } | |
18826 | return resultobj; | |
18827 | fail: | |
18828 | return NULL; | |
18829 | } | |
18830 | ||
18831 | ||
18832 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18833 | PyObject *resultobj; | |
18834 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18835 | wxListItem *arg2 = 0 ; | |
18836 | long result; | |
18837 | PyObject * obj0 = 0 ; | |
18838 | PyObject * obj1 = 0 ; | |
18839 | char *kwnames[] = { | |
18840 | (char *) "self",(char *) "info", NULL | |
18841 | }; | |
18842 | ||
18843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
18844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18845 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18846 | if (arg2 == NULL) { | |
18847 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18848 | } | |
18849 | { | |
18850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18851 | result = (long)(arg1)->InsertItem(*arg2); | |
18852 | ||
18853 | wxPyEndAllowThreads(__tstate); | |
18854 | if (PyErr_Occurred()) SWIG_fail; | |
18855 | } | |
18856 | resultobj = PyInt_FromLong((long)result); | |
18857 | return resultobj; | |
18858 | fail: | |
18859 | return NULL; | |
18860 | } | |
18861 | ||
18862 | ||
18863 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18864 | PyObject *resultobj; | |
18865 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18866 | long arg2 ; | |
18867 | wxString *arg3 = 0 ; | |
18868 | long result; | |
e811c8ce | 18869 | bool temp3 = False ; |
d14a1e28 RD |
18870 | PyObject * obj0 = 0 ; |
18871 | PyObject * obj2 = 0 ; | |
18872 | char *kwnames[] = { | |
18873 | (char *) "self",(char *) "index",(char *) "label", NULL | |
18874 | }; | |
18875 | ||
18876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_InsertStringItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18878 | { | |
18879 | arg3 = wxString_in_helper(obj2); | |
18880 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 18881 | temp3 = True; |
d14a1e28 RD |
18882 | } |
18883 | { | |
18884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18885 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
18886 | ||
18887 | wxPyEndAllowThreads(__tstate); | |
18888 | if (PyErr_Occurred()) SWIG_fail; | |
18889 | } | |
18890 | resultobj = PyInt_FromLong((long)result); | |
18891 | { | |
18892 | if (temp3) | |
18893 | delete arg3; | |
18894 | } | |
18895 | return resultobj; | |
18896 | fail: | |
18897 | { | |
18898 | if (temp3) | |
18899 | delete arg3; | |
18900 | } | |
18901 | return NULL; | |
18902 | } | |
18903 | ||
18904 | ||
18905 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18906 | PyObject *resultobj; | |
18907 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18908 | long arg2 ; | |
18909 | int arg3 ; | |
18910 | long result; | |
18911 | PyObject * obj0 = 0 ; | |
18912 | char *kwnames[] = { | |
18913 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
18914 | }; | |
18915 | ||
18916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oli:ListCtrl_InsertImageItem",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18918 | { | |
18919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18920 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
18921 | ||
18922 | wxPyEndAllowThreads(__tstate); | |
18923 | if (PyErr_Occurred()) SWIG_fail; | |
18924 | } | |
18925 | resultobj = PyInt_FromLong((long)result); | |
18926 | return resultobj; | |
18927 | fail: | |
18928 | return NULL; | |
18929 | } | |
18930 | ||
18931 | ||
18932 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18933 | PyObject *resultobj; | |
18934 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18935 | long arg2 ; | |
18936 | wxString *arg3 = 0 ; | |
18937 | int arg4 ; | |
18938 | long result; | |
e811c8ce | 18939 | bool temp3 = False ; |
d14a1e28 RD |
18940 | PyObject * obj0 = 0 ; |
18941 | PyObject * obj2 = 0 ; | |
18942 | char *kwnames[] = { | |
18943 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
18944 | }; | |
18945 | ||
18946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlOi:ListCtrl_InsertImageStringItem",kwnames,&obj0,&arg2,&obj2,&arg4)) goto fail; | |
18947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18948 | { | |
18949 | arg3 = wxString_in_helper(obj2); | |
18950 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 18951 | temp3 = True; |
d14a1e28 RD |
18952 | } |
18953 | { | |
18954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18955 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
18956 | ||
18957 | wxPyEndAllowThreads(__tstate); | |
18958 | if (PyErr_Occurred()) SWIG_fail; | |
18959 | } | |
18960 | resultobj = PyInt_FromLong((long)result); | |
18961 | { | |
18962 | if (temp3) | |
18963 | delete arg3; | |
18964 | } | |
18965 | return resultobj; | |
18966 | fail: | |
18967 | { | |
18968 | if (temp3) | |
18969 | delete arg3; | |
18970 | } | |
18971 | return NULL; | |
18972 | } | |
18973 | ||
18974 | ||
18975 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18976 | PyObject *resultobj; | |
18977 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18978 | long arg2 ; | |
18979 | wxListItem *arg3 = 0 ; | |
18980 | long result; | |
18981 | PyObject * obj0 = 0 ; | |
18982 | PyObject * obj2 = 0 ; | |
18983 | char *kwnames[] = { | |
18984 | (char *) "self",(char *) "col",(char *) "info", NULL | |
18985 | }; | |
18986 | ||
18987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18989 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18990 | if (arg3 == NULL) { | |
18991 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18992 | } | |
18993 | { | |
18994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18995 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
18996 | ||
18997 | wxPyEndAllowThreads(__tstate); | |
18998 | if (PyErr_Occurred()) SWIG_fail; | |
18999 | } | |
19000 | resultobj = PyInt_FromLong((long)result); | |
19001 | return resultobj; | |
19002 | fail: | |
19003 | return NULL; | |
19004 | } | |
19005 | ||
19006 | ||
19007 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19008 | PyObject *resultobj; | |
19009 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19010 | long arg2 ; | |
19011 | wxString *arg3 = 0 ; | |
19012 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
19013 | int arg5 = (int) -1 ; | |
19014 | long result; | |
e811c8ce | 19015 | bool temp3 = False ; |
d14a1e28 RD |
19016 | PyObject * obj0 = 0 ; |
19017 | PyObject * obj2 = 0 ; | |
19018 | char *kwnames[] = { | |
19019 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
19020 | }; | |
19021 | ||
19022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO|ii:ListCtrl_InsertColumn",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5)) goto fail; | |
19023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19024 | { | |
19025 | arg3 = wxString_in_helper(obj2); | |
19026 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 19027 | temp3 = True; |
d14a1e28 RD |
19028 | } |
19029 | { | |
19030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19031 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
19032 | ||
19033 | wxPyEndAllowThreads(__tstate); | |
19034 | if (PyErr_Occurred()) SWIG_fail; | |
19035 | } | |
19036 | resultobj = PyInt_FromLong((long)result); | |
19037 | { | |
19038 | if (temp3) | |
19039 | delete arg3; | |
19040 | } | |
19041 | return resultobj; | |
19042 | fail: | |
19043 | { | |
19044 | if (temp3) | |
19045 | delete arg3; | |
19046 | } | |
19047 | return NULL; | |
19048 | } | |
19049 | ||
19050 | ||
19051 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19052 | PyObject *resultobj; | |
19053 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19054 | long arg2 ; | |
19055 | PyObject * obj0 = 0 ; | |
19056 | char *kwnames[] = { | |
19057 | (char *) "self",(char *) "count", NULL | |
19058 | }; | |
19059 | ||
19060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_SetItemCount",kwnames,&obj0,&arg2)) goto fail; | |
19061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19062 | { | |
19063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19064 | (arg1)->SetItemCount(arg2); | |
19065 | ||
19066 | wxPyEndAllowThreads(__tstate); | |
19067 | if (PyErr_Occurred()) SWIG_fail; | |
19068 | } | |
19069 | Py_INCREF(Py_None); resultobj = Py_None; | |
19070 | return resultobj; | |
19071 | fail: | |
19072 | return NULL; | |
19073 | } | |
19074 | ||
19075 | ||
19076 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19077 | PyObject *resultobj; | |
19078 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19079 | int arg2 ; | |
19080 | int arg3 ; | |
19081 | bool result; | |
19082 | PyObject * obj0 = 0 ; | |
19083 | char *kwnames[] = { | |
19084 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
19085 | }; | |
19086 | ||
19087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListCtrl_ScrollList",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19089 | { | |
19090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19091 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
19092 | ||
19093 | wxPyEndAllowThreads(__tstate); | |
19094 | if (PyErr_Occurred()) SWIG_fail; | |
19095 | } | |
19096 | resultobj = PyInt_FromLong((long)result); | |
19097 | return resultobj; | |
19098 | fail: | |
19099 | return NULL; | |
19100 | } | |
19101 | ||
19102 | ||
19103 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19104 | PyObject *resultobj; | |
19105 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19106 | long arg2 ; | |
19107 | wxColour *arg3 = 0 ; | |
19108 | wxColour temp3 ; | |
19109 | PyObject * obj0 = 0 ; | |
19110 | PyObject * obj2 = 0 ; | |
19111 | char *kwnames[] = { | |
19112 | (char *) "self",(char *) "item",(char *) "col", NULL | |
19113 | }; | |
19114 | ||
19115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemTextColour",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19117 | { | |
19118 | arg3 = &temp3; | |
19119 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19120 | } | |
19121 | { | |
19122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19123 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
19124 | ||
19125 | wxPyEndAllowThreads(__tstate); | |
19126 | if (PyErr_Occurred()) SWIG_fail; | |
19127 | } | |
19128 | Py_INCREF(Py_None); resultobj = Py_None; | |
19129 | return resultobj; | |
19130 | fail: | |
19131 | return NULL; | |
19132 | } | |
19133 | ||
19134 | ||
19135 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19136 | PyObject *resultobj; | |
19137 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19138 | long arg2 ; | |
19139 | wxColour result; | |
19140 | PyObject * obj0 = 0 ; | |
19141 | char *kwnames[] = { | |
19142 | (char *) "self",(char *) "item", NULL | |
19143 | }; | |
19144 | ||
19145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemTextColour",kwnames,&obj0,&arg2)) goto fail; | |
19146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19147 | { | |
19148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19149 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
19150 | ||
19151 | wxPyEndAllowThreads(__tstate); | |
19152 | if (PyErr_Occurred()) SWIG_fail; | |
19153 | } | |
19154 | { | |
19155 | wxColour * resultptr; | |
19156 | resultptr = new wxColour((wxColour &) result); | |
19157 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
19158 | } | |
19159 | return resultobj; | |
19160 | fail: | |
19161 | return NULL; | |
19162 | } | |
19163 | ||
19164 | ||
19165 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19166 | PyObject *resultobj; | |
19167 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19168 | long arg2 ; | |
19169 | wxColour *arg3 = 0 ; | |
19170 | wxColour temp3 ; | |
19171 | PyObject * obj0 = 0 ; | |
19172 | PyObject * obj2 = 0 ; | |
19173 | char *kwnames[] = { | |
19174 | (char *) "self",(char *) "item",(char *) "col", NULL | |
19175 | }; | |
19176 | ||
19177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19179 | { | |
19180 | arg3 = &temp3; | |
19181 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19182 | } | |
19183 | { | |
19184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19185 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
19186 | ||
19187 | wxPyEndAllowThreads(__tstate); | |
19188 | if (PyErr_Occurred()) SWIG_fail; | |
19189 | } | |
19190 | Py_INCREF(Py_None); resultobj = Py_None; | |
19191 | return resultobj; | |
19192 | fail: | |
19193 | return NULL; | |
19194 | } | |
19195 | ||
19196 | ||
19197 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19198 | PyObject *resultobj; | |
19199 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19200 | long arg2 ; | |
19201 | wxColour result; | |
19202 | PyObject * obj0 = 0 ; | |
19203 | char *kwnames[] = { | |
19204 | (char *) "self",(char *) "item", NULL | |
19205 | }; | |
19206 | ||
19207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&arg2)) goto fail; | |
19208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19209 | { | |
19210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19211 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
19212 | ||
19213 | wxPyEndAllowThreads(__tstate); | |
19214 | if (PyErr_Occurred()) SWIG_fail; | |
19215 | } | |
19216 | { | |
19217 | wxColour * resultptr; | |
19218 | resultptr = new wxColour((wxColour &) result); | |
19219 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
19220 | } | |
19221 | return resultobj; | |
19222 | fail: | |
19223 | return NULL; | |
19224 | } | |
19225 | ||
19226 | ||
19227 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19228 | PyObject *resultobj; | |
19229 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19230 | PyObject *arg2 = (PyObject *) 0 ; | |
19231 | bool result; | |
19232 | PyObject * obj0 = 0 ; | |
19233 | PyObject * obj1 = 0 ; | |
19234 | char *kwnames[] = { | |
19235 | (char *) "self",(char *) "func", NULL | |
19236 | }; | |
19237 | ||
19238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
19239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19240 | arg2 = obj1; | |
19241 | { | |
19242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19243 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
19244 | ||
19245 | wxPyEndAllowThreads(__tstate); | |
19246 | if (PyErr_Occurred()) SWIG_fail; | |
19247 | } | |
19248 | resultobj = PyInt_FromLong((long)result); | |
19249 | return resultobj; | |
19250 | fail: | |
19251 | return NULL; | |
19252 | } | |
19253 | ||
19254 | ||
19255 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19256 | PyObject *resultobj; | |
19257 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19258 | wxWindow *result; | |
19259 | PyObject * obj0 = 0 ; | |
19260 | char *kwnames[] = { | |
19261 | (char *) "self", NULL | |
19262 | }; | |
19263 | ||
19264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
19265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19266 | { | |
19267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19268 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
19269 | ||
19270 | wxPyEndAllowThreads(__tstate); | |
19271 | if (PyErr_Occurred()) SWIG_fail; | |
19272 | } | |
19273 | { | |
19274 | resultobj = wxPyMake_wxObject(result); | |
19275 | } | |
19276 | return resultobj; | |
19277 | fail: | |
19278 | return NULL; | |
19279 | } | |
19280 | ||
19281 | ||
19282 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
19283 | PyObject *obj; | |
19284 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19285 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
19286 | Py_INCREF(obj); | |
19287 | return Py_BuildValue((char *)""); | |
19288 | } | |
19289 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19290 | PyObject *resultobj; | |
19291 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 19292 | int arg2 = (int) -1 ; |
d14a1e28 RD |
19293 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19294 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19295 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19296 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19297 | long arg5 = (long) wxLC_REPORT ; | |
19298 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
19299 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
19300 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
19301 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19302 | wxListView *result; | |
19303 | wxPoint temp3 ; | |
19304 | wxSize temp4 ; | |
e811c8ce | 19305 | bool temp7 = False ; |
d14a1e28 RD |
19306 | PyObject * obj0 = 0 ; |
19307 | PyObject * obj2 = 0 ; | |
19308 | PyObject * obj3 = 0 ; | |
19309 | PyObject * obj5 = 0 ; | |
19310 | PyObject * obj6 = 0 ; | |
19311 | char *kwnames[] = { | |
19312 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19313 | }; | |
19314 | ||
19315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ListView",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
19316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19317 | if (obj2) { | |
19318 | { | |
19319 | arg3 = &temp3; | |
19320 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19321 | } | |
19322 | } | |
19323 | if (obj3) { | |
19324 | { | |
19325 | arg4 = &temp4; | |
19326 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19327 | } | |
19328 | } | |
19329 | if (obj5) { | |
19330 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19331 | if (arg6 == NULL) { | |
19332 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19333 | } | |
19334 | } | |
19335 | if (obj6) { | |
19336 | { | |
19337 | arg7 = wxString_in_helper(obj6); | |
19338 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 19339 | temp7 = True; |
d14a1e28 RD |
19340 | } |
19341 | } | |
19342 | { | |
19343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19344 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
19345 | ||
19346 | wxPyEndAllowThreads(__tstate); | |
19347 | if (PyErr_Occurred()) SWIG_fail; | |
19348 | } | |
19349 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
19350 | { | |
19351 | if (temp7) | |
19352 | delete arg7; | |
19353 | } | |
19354 | return resultobj; | |
19355 | fail: | |
19356 | { | |
19357 | if (temp7) | |
19358 | delete arg7; | |
19359 | } | |
19360 | return NULL; | |
19361 | } | |
19362 | ||
19363 | ||
19364 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19365 | PyObject *resultobj; | |
19366 | wxListView *result; | |
19367 | char *kwnames[] = { | |
19368 | NULL | |
19369 | }; | |
19370 | ||
19371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
19372 | { | |
19373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19374 | result = (wxListView *)new wxListView(); | |
19375 | ||
19376 | wxPyEndAllowThreads(__tstate); | |
19377 | if (PyErr_Occurred()) SWIG_fail; | |
19378 | } | |
19379 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
19380 | return resultobj; | |
19381 | fail: | |
19382 | return NULL; | |
19383 | } | |
19384 | ||
19385 | ||
19386 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19387 | PyObject *resultobj; | |
19388 | wxListView *arg1 = (wxListView *) 0 ; | |
19389 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 19390 | int arg3 = (int) -1 ; |
d14a1e28 RD |
19391 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19392 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19393 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19394 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19395 | long arg6 = (long) wxLC_REPORT ; | |
19396 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
19397 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
19398 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
19399 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19400 | bool result; | |
19401 | wxPoint temp4 ; | |
19402 | wxSize temp5 ; | |
e811c8ce | 19403 | bool temp8 = False ; |
d14a1e28 RD |
19404 | PyObject * obj0 = 0 ; |
19405 | PyObject * obj1 = 0 ; | |
19406 | PyObject * obj3 = 0 ; | |
19407 | PyObject * obj4 = 0 ; | |
19408 | PyObject * obj6 = 0 ; | |
19409 | PyObject * obj7 = 0 ; | |
19410 | char *kwnames[] = { | |
19411 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19412 | }; | |
19413 | ||
19414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ListView_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
19415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19416 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19417 | if (obj3) { | |
19418 | { | |
19419 | arg4 = &temp4; | |
19420 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19421 | } | |
19422 | } | |
19423 | if (obj4) { | |
19424 | { | |
19425 | arg5 = &temp5; | |
19426 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19427 | } | |
19428 | } | |
19429 | if (obj6) { | |
19430 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19431 | if (arg7 == NULL) { | |
19432 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19433 | } | |
19434 | } | |
19435 | if (obj7) { | |
19436 | { | |
19437 | arg8 = wxString_in_helper(obj7); | |
19438 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 19439 | temp8 = True; |
d14a1e28 RD |
19440 | } |
19441 | } | |
19442 | { | |
19443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19444 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
19445 | ||
19446 | wxPyEndAllowThreads(__tstate); | |
19447 | if (PyErr_Occurred()) SWIG_fail; | |
19448 | } | |
19449 | resultobj = PyInt_FromLong((long)result); | |
19450 | { | |
19451 | if (temp8) | |
19452 | delete arg8; | |
19453 | } | |
19454 | return resultobj; | |
19455 | fail: | |
19456 | { | |
19457 | if (temp8) | |
19458 | delete arg8; | |
19459 | } | |
19460 | return NULL; | |
19461 | } | |
19462 | ||
19463 | ||
19464 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19465 | PyObject *resultobj; | |
19466 | wxListView *arg1 = (wxListView *) 0 ; | |
19467 | long arg2 ; | |
e811c8ce | 19468 | bool arg3 = (bool) True ; |
d14a1e28 RD |
19469 | PyObject * obj0 = 0 ; |
19470 | PyObject * obj2 = 0 ; | |
19471 | char *kwnames[] = { | |
19472 | (char *) "self",(char *) "n",(char *) "on", NULL | |
19473 | }; | |
19474 | ||
19475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|O:ListView_Select",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19477 | if (obj2) { | |
19478 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
19479 | if (PyErr_Occurred()) SWIG_fail; | |
19480 | } | |
19481 | { | |
19482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19483 | (arg1)->Select(arg2,arg3); | |
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_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19496 | PyObject *resultobj; | |
19497 | wxListView *arg1 = (wxListView *) 0 ; | |
19498 | long arg2 ; | |
19499 | PyObject * obj0 = 0 ; | |
19500 | char *kwnames[] = { | |
19501 | (char *) "self",(char *) "index", NULL | |
19502 | }; | |
19503 | ||
19504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_Focus",kwnames,&obj0,&arg2)) 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 | (arg1)->Focus(arg2); | |
19509 | ||
19510 | wxPyEndAllowThreads(__tstate); | |
19511 | if (PyErr_Occurred()) SWIG_fail; | |
19512 | } | |
19513 | Py_INCREF(Py_None); resultobj = Py_None; | |
19514 | return resultobj; | |
19515 | fail: | |
19516 | return NULL; | |
19517 | } | |
19518 | ||
19519 | ||
19520 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19521 | PyObject *resultobj; | |
19522 | wxListView *arg1 = (wxListView *) 0 ; | |
19523 | long result; | |
19524 | PyObject * obj0 = 0 ; | |
19525 | char *kwnames[] = { | |
19526 | (char *) "self", NULL | |
19527 | }; | |
19528 | ||
19529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
19530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19531 | { | |
19532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19533 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
19534 | ||
19535 | wxPyEndAllowThreads(__tstate); | |
19536 | if (PyErr_Occurred()) SWIG_fail; | |
19537 | } | |
19538 | resultobj = PyInt_FromLong((long)result); | |
19539 | return resultobj; | |
19540 | fail: | |
19541 | return NULL; | |
19542 | } | |
19543 | ||
19544 | ||
19545 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19546 | PyObject *resultobj; | |
19547 | wxListView *arg1 = (wxListView *) 0 ; | |
19548 | long arg2 ; | |
19549 | long result; | |
19550 | PyObject * obj0 = 0 ; | |
19551 | char *kwnames[] = { | |
19552 | (char *) "self",(char *) "item", NULL | |
19553 | }; | |
19554 | ||
19555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_GetNextSelected",kwnames,&obj0,&arg2)) 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)->GetNextSelected(arg2); | |
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_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19572 | PyObject *resultobj; | |
19573 | wxListView *arg1 = (wxListView *) 0 ; | |
19574 | long result; | |
19575 | PyObject * obj0 = 0 ; | |
19576 | char *kwnames[] = { | |
19577 | (char *) "self", NULL | |
19578 | }; | |
19579 | ||
19580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
19581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19582 | { | |
19583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19584 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
19585 | ||
19586 | wxPyEndAllowThreads(__tstate); | |
19587 | if (PyErr_Occurred()) SWIG_fail; | |
19588 | } | |
19589 | resultobj = PyInt_FromLong((long)result); | |
19590 | return resultobj; | |
19591 | fail: | |
19592 | return NULL; | |
19593 | } | |
19594 | ||
19595 | ||
19596 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19597 | PyObject *resultobj; | |
19598 | wxListView *arg1 = (wxListView *) 0 ; | |
19599 | long arg2 ; | |
19600 | bool result; | |
19601 | PyObject * obj0 = 0 ; | |
19602 | char *kwnames[] = { | |
19603 | (char *) "self",(char *) "index", NULL | |
19604 | }; | |
19605 | ||
19606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_IsSelected",kwnames,&obj0,&arg2)) goto fail; | |
19607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19608 | { | |
19609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19610 | result = (bool)(arg1)->IsSelected(arg2); | |
19611 | ||
19612 | wxPyEndAllowThreads(__tstate); | |
19613 | if (PyErr_Occurred()) SWIG_fail; | |
19614 | } | |
19615 | resultobj = PyInt_FromLong((long)result); | |
19616 | return resultobj; | |
19617 | fail: | |
19618 | return NULL; | |
19619 | } | |
19620 | ||
19621 | ||
19622 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19623 | PyObject *resultobj; | |
19624 | wxListView *arg1 = (wxListView *) 0 ; | |
19625 | int arg2 ; | |
19626 | int arg3 ; | |
19627 | PyObject * obj0 = 0 ; | |
19628 | char *kwnames[] = { | |
19629 | (char *) "self",(char *) "col",(char *) "image", NULL | |
19630 | }; | |
19631 | ||
19632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListView_SetColumnImage",kwnames,&obj0,&arg2,&arg3)) 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)->SetColumnImage(arg2,arg3); | |
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 *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19649 | PyObject *resultobj; | |
19650 | wxListView *arg1 = (wxListView *) 0 ; | |
19651 | int arg2 ; | |
19652 | PyObject * obj0 = 0 ; | |
19653 | char *kwnames[] = { | |
19654 | (char *) "self",(char *) "col", NULL | |
19655 | }; | |
19656 | ||
19657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListView_ClearColumnImage",kwnames,&obj0,&arg2)) goto fail; | |
19658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19659 | { | |
19660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19661 | (arg1)->ClearColumnImage(arg2); | |
19662 | ||
19663 | wxPyEndAllowThreads(__tstate); | |
19664 | if (PyErr_Occurred()) SWIG_fail; | |
19665 | } | |
19666 | Py_INCREF(Py_None); resultobj = Py_None; | |
19667 | return resultobj; | |
19668 | fail: | |
19669 | return NULL; | |
19670 | } | |
19671 | ||
19672 | ||
19673 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
19674 | PyObject *obj; | |
19675 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19676 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
19677 | Py_INCREF(obj); | |
19678 | return Py_BuildValue((char *)""); | |
19679 | } | |
19680 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19681 | PyObject *resultobj; | |
19682 | wxTreeItemId *result; | |
19683 | char *kwnames[] = { | |
19684 | NULL | |
19685 | }; | |
19686 | ||
19687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
19688 | { | |
19689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19690 | result = (wxTreeItemId *)new wxTreeItemId(); | |
19691 | ||
19692 | wxPyEndAllowThreads(__tstate); | |
19693 | if (PyErr_Occurred()) SWIG_fail; | |
19694 | } | |
19695 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
19696 | return resultobj; | |
19697 | fail: | |
19698 | return NULL; | |
19699 | } | |
19700 | ||
19701 | ||
19702 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19703 | PyObject *resultobj; | |
19704 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19705 | PyObject * obj0 = 0 ; | |
19706 | char *kwnames[] = { | |
19707 | (char *) "self", NULL | |
19708 | }; | |
19709 | ||
19710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",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 | delete arg1; | |
19715 | ||
19716 | wxPyEndAllowThreads(__tstate); | |
19717 | if (PyErr_Occurred()) SWIG_fail; | |
19718 | } | |
19719 | Py_INCREF(Py_None); resultobj = Py_None; | |
19720 | return resultobj; | |
19721 | fail: | |
19722 | return NULL; | |
19723 | } | |
19724 | ||
19725 | ||
19726 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19727 | PyObject *resultobj; | |
19728 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19729 | bool result; | |
19730 | PyObject * obj0 = 0 ; | |
19731 | char *kwnames[] = { | |
19732 | (char *) "self", NULL | |
19733 | }; | |
19734 | ||
19735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
19736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19737 | { | |
19738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19739 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
19740 | ||
19741 | wxPyEndAllowThreads(__tstate); | |
19742 | if (PyErr_Occurred()) SWIG_fail; | |
19743 | } | |
19744 | resultobj = PyInt_FromLong((long)result); | |
19745 | return resultobj; | |
19746 | fail: | |
19747 | return NULL; | |
19748 | } | |
19749 | ||
19750 | ||
19751 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19752 | PyObject *resultobj; | |
19753 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19754 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
19755 | bool result; | |
19756 | PyObject * obj0 = 0 ; | |
19757 | PyObject * obj1 = 0 ; | |
19758 | char *kwnames[] = { | |
19759 | (char *) "self",(char *) "other", NULL | |
19760 | }; | |
19761 | ||
19762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
19763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19764 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19765 | { | |
19766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19767 | result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2); | |
19768 | ||
19769 | wxPyEndAllowThreads(__tstate); | |
19770 | if (PyErr_Occurred()) SWIG_fail; | |
19771 | } | |
19772 | resultobj = PyInt_FromLong((long)result); | |
19773 | return resultobj; | |
19774 | fail: | |
19775 | return NULL; | |
19776 | } | |
19777 | ||
19778 | ||
19779 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19780 | PyObject *resultobj; | |
19781 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19782 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
19783 | bool result; | |
19784 | PyObject * obj0 = 0 ; | |
19785 | PyObject * obj1 = 0 ; | |
19786 | char *kwnames[] = { | |
19787 | (char *) "self",(char *) "other", NULL | |
19788 | }; | |
19789 | ||
19790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
19791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19792 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19793 | { | |
19794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19795 | result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2); | |
19796 | ||
19797 | wxPyEndAllowThreads(__tstate); | |
19798 | if (PyErr_Occurred()) SWIG_fail; | |
19799 | } | |
19800 | resultobj = PyInt_FromLong((long)result); | |
19801 | return resultobj; | |
19802 | fail: | |
19803 | return NULL; | |
19804 | } | |
19805 | ||
19806 | ||
19807 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19808 | PyObject *resultobj; | |
19809 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19810 | wxTreeItemIdValue arg2 = (wxTreeItemIdValue) 0 ; | |
19811 | PyObject * obj0 = 0 ; | |
19812 | PyObject * obj1 = 0 ; | |
19813 | char *kwnames[] = { | |
19814 | (char *) "self",(char *) "m_pItem", NULL | |
19815 | }; | |
19816 | ||
19817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
19818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19819 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
19820 | if (arg1) (arg1)->m_pItem = arg2; | |
19821 | ||
19822 | Py_INCREF(Py_None); resultobj = Py_None; | |
19823 | return resultobj; | |
19824 | fail: | |
19825 | return NULL; | |
19826 | } | |
19827 | ||
19828 | ||
19829 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19830 | PyObject *resultobj; | |
19831 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19832 | wxTreeItemIdValue result; | |
19833 | PyObject * obj0 = 0 ; | |
19834 | char *kwnames[] = { | |
19835 | (char *) "self", NULL | |
19836 | }; | |
19837 | ||
19838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
19839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19840 | result = (wxTreeItemIdValue) ((arg1)->m_pItem); | |
19841 | ||
19842 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_wxTreeItemIdValue, 0); | |
19843 | return resultobj; | |
19844 | fail: | |
19845 | return NULL; | |
19846 | } | |
19847 | ||
19848 | ||
19849 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
19850 | PyObject *obj; | |
19851 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19852 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
19853 | Py_INCREF(obj); | |
19854 | return Py_BuildValue((char *)""); | |
19855 | } | |
19856 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19857 | PyObject *resultobj; | |
19858 | PyObject *arg1 = (PyObject *) NULL ; | |
19859 | wxPyTreeItemData *result; | |
19860 | PyObject * obj0 = 0 ; | |
19861 | char *kwnames[] = { | |
19862 | (char *) "obj", NULL | |
19863 | }; | |
19864 | ||
19865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
19866 | if (obj0) { | |
19867 | arg1 = obj0; | |
19868 | } | |
19869 | { | |
19870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19871 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
19872 | ||
19873 | wxPyEndAllowThreads(__tstate); | |
19874 | if (PyErr_Occurred()) SWIG_fail; | |
19875 | } | |
19876 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
19877 | return resultobj; | |
19878 | fail: | |
19879 | return NULL; | |
19880 | } | |
19881 | ||
19882 | ||
19883 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19884 | PyObject *resultobj; | |
19885 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
19886 | PyObject *result; | |
19887 | PyObject * obj0 = 0 ; | |
19888 | char *kwnames[] = { | |
19889 | (char *) "self", NULL | |
19890 | }; | |
19891 | ||
19892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
19893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19894 | { | |
19895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19896 | result = (PyObject *)(arg1)->GetData(); | |
19897 | ||
19898 | wxPyEndAllowThreads(__tstate); | |
19899 | if (PyErr_Occurred()) SWIG_fail; | |
19900 | } | |
19901 | resultobj = result; | |
19902 | return resultobj; | |
19903 | fail: | |
19904 | return NULL; | |
19905 | } | |
19906 | ||
19907 | ||
19908 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19909 | PyObject *resultobj; | |
19910 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
19911 | PyObject *arg2 = (PyObject *) 0 ; | |
19912 | PyObject * obj0 = 0 ; | |
19913 | PyObject * obj1 = 0 ; | |
19914 | char *kwnames[] = { | |
19915 | (char *) "self",(char *) "obj", NULL | |
19916 | }; | |
19917 | ||
19918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
19919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19920 | arg2 = obj1; | |
19921 | { | |
19922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19923 | (arg1)->SetData(arg2); | |
19924 | ||
19925 | wxPyEndAllowThreads(__tstate); | |
19926 | if (PyErr_Occurred()) SWIG_fail; | |
19927 | } | |
19928 | Py_INCREF(Py_None); resultobj = Py_None; | |
19929 | return resultobj; | |
19930 | fail: | |
19931 | return NULL; | |
19932 | } | |
19933 | ||
19934 | ||
19935 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19936 | PyObject *resultobj; | |
19937 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
19938 | wxTreeItemId *result; | |
19939 | PyObject * obj0 = 0 ; | |
19940 | char *kwnames[] = { | |
19941 | (char *) "self", NULL | |
19942 | }; | |
19943 | ||
19944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
19945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19946 | { | |
19947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19948 | { | |
19949 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
19950 | result = (wxTreeItemId *) &_result_ref; | |
19951 | } | |
19952 | ||
19953 | wxPyEndAllowThreads(__tstate); | |
19954 | if (PyErr_Occurred()) SWIG_fail; | |
19955 | } | |
19956 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
19957 | return resultobj; | |
19958 | fail: | |
19959 | return NULL; | |
19960 | } | |
19961 | ||
19962 | ||
19963 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19964 | PyObject *resultobj; | |
19965 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
19966 | wxTreeItemId *arg2 = 0 ; | |
19967 | PyObject * obj0 = 0 ; | |
19968 | PyObject * obj1 = 0 ; | |
19969 | char *kwnames[] = { | |
19970 | (char *) "self",(char *) "id", NULL | |
19971 | }; | |
19972 | ||
19973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
19974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19975 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19976 | if (arg2 == NULL) { | |
19977 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19978 | } | |
19979 | { | |
19980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19981 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
19982 | ||
19983 | wxPyEndAllowThreads(__tstate); | |
19984 | if (PyErr_Occurred()) SWIG_fail; | |
19985 | } | |
19986 | Py_INCREF(Py_None); resultobj = Py_None; | |
19987 | return resultobj; | |
19988 | fail: | |
19989 | return NULL; | |
19990 | } | |
19991 | ||
19992 | ||
19993 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19994 | PyObject *resultobj; | |
19995 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
19996 | PyObject * obj0 = 0 ; | |
19997 | char *kwnames[] = { | |
19998 | (char *) "self", NULL | |
19999 | }; | |
20000 | ||
20001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
20002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20003 | { | |
20004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20005 | wxPyTreeItemData_Destroy(arg1); | |
20006 | ||
20007 | wxPyEndAllowThreads(__tstate); | |
20008 | if (PyErr_Occurred()) SWIG_fail; | |
20009 | } | |
20010 | Py_INCREF(Py_None); resultobj = Py_None; | |
20011 | return resultobj; | |
20012 | fail: | |
20013 | return NULL; | |
20014 | } | |
20015 | ||
20016 | ||
20017 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
20018 | PyObject *obj; | |
20019 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20020 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
20021 | Py_INCREF(obj); | |
20022 | return Py_BuildValue((char *)""); | |
20023 | } | |
20024 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20025 | PyObject *resultobj; | |
20026 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20027 | int arg2 = (int) 0 ; | |
20028 | wxTreeEvent *result; | |
20029 | char *kwnames[] = { | |
20030 | (char *) "commandType",(char *) "id", NULL | |
20031 | }; | |
20032 | ||
20033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TreeEvent",kwnames,&arg1,&arg2)) goto fail; | |
20034 | { | |
20035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20036 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
20037 | ||
20038 | wxPyEndAllowThreads(__tstate); | |
20039 | if (PyErr_Occurred()) SWIG_fail; | |
20040 | } | |
20041 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
20042 | return resultobj; | |
20043 | fail: | |
20044 | return NULL; | |
20045 | } | |
20046 | ||
20047 | ||
20048 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20049 | PyObject *resultobj; | |
20050 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20051 | wxTreeItemId result; | |
20052 | PyObject * obj0 = 0 ; | |
20053 | char *kwnames[] = { | |
20054 | (char *) "self", NULL | |
20055 | }; | |
20056 | ||
20057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
20058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20059 | { | |
20060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20061 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
20062 | ||
20063 | wxPyEndAllowThreads(__tstate); | |
20064 | if (PyErr_Occurred()) SWIG_fail; | |
20065 | } | |
20066 | { | |
20067 | wxTreeItemId * resultptr; | |
20068 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
20069 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
20070 | } | |
20071 | return resultobj; | |
20072 | fail: | |
20073 | return NULL; | |
20074 | } | |
20075 | ||
20076 | ||
20077 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20078 | PyObject *resultobj; | |
20079 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20080 | wxTreeItemId *arg2 = 0 ; | |
20081 | PyObject * obj0 = 0 ; | |
20082 | PyObject * obj1 = 0 ; | |
20083 | char *kwnames[] = { | |
20084 | (char *) "self",(char *) "item", NULL | |
20085 | }; | |
20086 | ||
20087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20089 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20090 | if (arg2 == NULL) { | |
20091 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20092 | } | |
20093 | { | |
20094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20095 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
20096 | ||
20097 | wxPyEndAllowThreads(__tstate); | |
20098 | if (PyErr_Occurred()) SWIG_fail; | |
20099 | } | |
20100 | Py_INCREF(Py_None); resultobj = Py_None; | |
20101 | return resultobj; | |
20102 | fail: | |
20103 | return NULL; | |
20104 | } | |
20105 | ||
20106 | ||
20107 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20108 | PyObject *resultobj; | |
20109 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20110 | wxTreeItemId result; | |
20111 | PyObject * obj0 = 0 ; | |
20112 | char *kwnames[] = { | |
20113 | (char *) "self", NULL | |
20114 | }; | |
20115 | ||
20116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
20117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20118 | { | |
20119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20120 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
20121 | ||
20122 | wxPyEndAllowThreads(__tstate); | |
20123 | if (PyErr_Occurred()) SWIG_fail; | |
20124 | } | |
20125 | { | |
20126 | wxTreeItemId * resultptr; | |
20127 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
20128 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
20129 | } | |
20130 | return resultobj; | |
20131 | fail: | |
20132 | return NULL; | |
20133 | } | |
20134 | ||
20135 | ||
20136 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20137 | PyObject *resultobj; | |
20138 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20139 | wxTreeItemId *arg2 = 0 ; | |
20140 | PyObject * obj0 = 0 ; | |
20141 | PyObject * obj1 = 0 ; | |
20142 | char *kwnames[] = { | |
20143 | (char *) "self",(char *) "item", NULL | |
20144 | }; | |
20145 | ||
20146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
20147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20148 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20149 | if (arg2 == NULL) { | |
20150 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20151 | } | |
20152 | { | |
20153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20154 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
20155 | ||
20156 | wxPyEndAllowThreads(__tstate); | |
20157 | if (PyErr_Occurred()) SWIG_fail; | |
20158 | } | |
20159 | Py_INCREF(Py_None); resultobj = Py_None; | |
20160 | return resultobj; | |
20161 | fail: | |
20162 | return NULL; | |
20163 | } | |
20164 | ||
20165 | ||
20166 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20167 | PyObject *resultobj; | |
20168 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20169 | wxPoint result; | |
20170 | PyObject * obj0 = 0 ; | |
20171 | char *kwnames[] = { | |
20172 | (char *) "self", NULL | |
20173 | }; | |
20174 | ||
20175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
20176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20177 | { | |
20178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20179 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
20180 | ||
20181 | wxPyEndAllowThreads(__tstate); | |
20182 | if (PyErr_Occurred()) SWIG_fail; | |
20183 | } | |
20184 | { | |
20185 | wxPoint * resultptr; | |
20186 | resultptr = new wxPoint((wxPoint &) result); | |
20187 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20188 | } | |
20189 | return resultobj; | |
20190 | fail: | |
20191 | return NULL; | |
20192 | } | |
20193 | ||
20194 | ||
20195 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20196 | PyObject *resultobj; | |
20197 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20198 | wxPoint *arg2 = 0 ; | |
20199 | wxPoint temp2 ; | |
20200 | PyObject * obj0 = 0 ; | |
20201 | PyObject * obj1 = 0 ; | |
20202 | char *kwnames[] = { | |
20203 | (char *) "self",(char *) "pt", NULL | |
20204 | }; | |
20205 | ||
20206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
20207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20208 | { | |
20209 | arg2 = &temp2; | |
20210 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20211 | } | |
20212 | { | |
20213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20214 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
20215 | ||
20216 | wxPyEndAllowThreads(__tstate); | |
20217 | if (PyErr_Occurred()) SWIG_fail; | |
20218 | } | |
20219 | Py_INCREF(Py_None); resultobj = Py_None; | |
20220 | return resultobj; | |
20221 | fail: | |
20222 | return NULL; | |
20223 | } | |
20224 | ||
20225 | ||
20226 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20227 | PyObject *resultobj; | |
20228 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20229 | wxKeyEvent *result; | |
20230 | PyObject * obj0 = 0 ; | |
20231 | char *kwnames[] = { | |
20232 | (char *) "self", NULL | |
20233 | }; | |
20234 | ||
20235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
20236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20237 | { | |
20238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20239 | { | |
20240 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
20241 | result = (wxKeyEvent *) &_result_ref; | |
20242 | } | |
20243 | ||
20244 | wxPyEndAllowThreads(__tstate); | |
20245 | if (PyErr_Occurred()) SWIG_fail; | |
20246 | } | |
20247 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
20248 | return resultobj; | |
20249 | fail: | |
20250 | return NULL; | |
20251 | } | |
20252 | ||
20253 | ||
20254 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20255 | PyObject *resultobj; | |
20256 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20257 | int result; | |
20258 | PyObject * obj0 = 0 ; | |
20259 | char *kwnames[] = { | |
20260 | (char *) "self", NULL | |
20261 | }; | |
20262 | ||
20263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
20264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20265 | { | |
20266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20267 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
20268 | ||
20269 | wxPyEndAllowThreads(__tstate); | |
20270 | if (PyErr_Occurred()) SWIG_fail; | |
20271 | } | |
20272 | resultobj = PyInt_FromLong((long)result); | |
20273 | return resultobj; | |
20274 | fail: | |
20275 | return NULL; | |
20276 | } | |
20277 | ||
20278 | ||
20279 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20280 | PyObject *resultobj; | |
20281 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20282 | wxKeyEvent *arg2 = 0 ; | |
20283 | PyObject * obj0 = 0 ; | |
20284 | PyObject * obj1 = 0 ; | |
20285 | char *kwnames[] = { | |
20286 | (char *) "self",(char *) "evt", NULL | |
20287 | }; | |
20288 | ||
20289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
20290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20291 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20292 | if (arg2 == NULL) { | |
20293 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20294 | } | |
20295 | { | |
20296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20297 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
20298 | ||
20299 | wxPyEndAllowThreads(__tstate); | |
20300 | if (PyErr_Occurred()) SWIG_fail; | |
20301 | } | |
20302 | Py_INCREF(Py_None); resultobj = Py_None; | |
20303 | return resultobj; | |
20304 | fail: | |
20305 | return NULL; | |
20306 | } | |
20307 | ||
20308 | ||
20309 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20310 | PyObject *resultobj; | |
20311 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20312 | wxString *result; | |
20313 | PyObject * obj0 = 0 ; | |
20314 | char *kwnames[] = { | |
20315 | (char *) "self", NULL | |
20316 | }; | |
20317 | ||
20318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
20319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20320 | { | |
20321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20322 | { | |
20323 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
20324 | result = (wxString *) &_result_ref; | |
20325 | } | |
20326 | ||
20327 | wxPyEndAllowThreads(__tstate); | |
20328 | if (PyErr_Occurred()) SWIG_fail; | |
20329 | } | |
20330 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
20331 | return resultobj; | |
20332 | fail: | |
20333 | return NULL; | |
20334 | } | |
20335 | ||
20336 | ||
20337 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20338 | PyObject *resultobj; | |
20339 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20340 | wxString *arg2 = 0 ; | |
e811c8ce | 20341 | bool temp2 = False ; |
d14a1e28 RD |
20342 | PyObject * obj0 = 0 ; |
20343 | PyObject * obj1 = 0 ; | |
20344 | char *kwnames[] = { | |
20345 | (char *) "self",(char *) "label", NULL | |
20346 | }; | |
20347 | ||
20348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
20349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20350 | { | |
20351 | arg2 = wxString_in_helper(obj1); | |
20352 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20353 | temp2 = True; |
d14a1e28 RD |
20354 | } |
20355 | { | |
20356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20357 | (arg1)->SetLabel((wxString const &)*arg2); | |
20358 | ||
20359 | wxPyEndAllowThreads(__tstate); | |
20360 | if (PyErr_Occurred()) SWIG_fail; | |
20361 | } | |
20362 | Py_INCREF(Py_None); resultobj = Py_None; | |
20363 | { | |
20364 | if (temp2) | |
20365 | delete arg2; | |
20366 | } | |
20367 | return resultobj; | |
20368 | fail: | |
20369 | { | |
20370 | if (temp2) | |
20371 | delete arg2; | |
20372 | } | |
20373 | return NULL; | |
20374 | } | |
20375 | ||
20376 | ||
20377 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20378 | PyObject *resultobj; | |
20379 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20380 | bool result; | |
20381 | PyObject * obj0 = 0 ; | |
20382 | char *kwnames[] = { | |
20383 | (char *) "self", NULL | |
20384 | }; | |
20385 | ||
20386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
20387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20388 | { | |
20389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20390 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
20391 | ||
20392 | wxPyEndAllowThreads(__tstate); | |
20393 | if (PyErr_Occurred()) SWIG_fail; | |
20394 | } | |
20395 | resultobj = PyInt_FromLong((long)result); | |
20396 | return resultobj; | |
20397 | fail: | |
20398 | return NULL; | |
20399 | } | |
20400 | ||
20401 | ||
20402 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20403 | PyObject *resultobj; | |
20404 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20405 | bool arg2 ; | |
20406 | PyObject * obj0 = 0 ; | |
20407 | PyObject * obj1 = 0 ; | |
20408 | char *kwnames[] = { | |
20409 | (char *) "self",(char *) "editCancelled", NULL | |
20410 | }; | |
20411 | ||
20412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
20413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20414 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
20415 | if (PyErr_Occurred()) SWIG_fail; | |
20416 | { | |
20417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20418 | (arg1)->SetEditCanceled(arg2); | |
20419 | ||
20420 | wxPyEndAllowThreads(__tstate); | |
20421 | if (PyErr_Occurred()) SWIG_fail; | |
20422 | } | |
20423 | Py_INCREF(Py_None); resultobj = Py_None; | |
20424 | return resultobj; | |
20425 | fail: | |
20426 | return NULL; | |
20427 | } | |
20428 | ||
20429 | ||
20430 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { | |
20431 | PyObject *obj; | |
20432 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20433 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
20434 | Py_INCREF(obj); | |
20435 | return Py_BuildValue((char *)""); | |
20436 | } | |
20437 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20438 | PyObject *resultobj; | |
20439 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 20440 | int arg2 = (int) -1 ; |
d14a1e28 RD |
20441 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20442 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20443 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20444 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20445 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
20446 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
20447 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
20448 | wxString const &arg7_defvalue = wxPy_TreeCtrlNameStr ; | |
20449 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20450 | wxPyTreeCtrl *result; | |
20451 | wxPoint temp3 ; | |
20452 | wxSize temp4 ; | |
e811c8ce | 20453 | bool temp7 = False ; |
d14a1e28 RD |
20454 | PyObject * obj0 = 0 ; |
20455 | PyObject * obj2 = 0 ; | |
20456 | PyObject * obj3 = 0 ; | |
20457 | PyObject * obj5 = 0 ; | |
20458 | PyObject * obj6 = 0 ; | |
20459 | char *kwnames[] = { | |
20460 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20461 | }; | |
20462 | ||
20463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_TreeCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
20464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20465 | if (obj2) { | |
20466 | { | |
20467 | arg3 = &temp3; | |
20468 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20469 | } | |
20470 | } | |
20471 | if (obj3) { | |
20472 | { | |
20473 | arg4 = &temp4; | |
20474 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20475 | } | |
20476 | } | |
20477 | if (obj5) { | |
20478 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20479 | if (arg6 == NULL) { | |
20480 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20481 | } | |
20482 | } | |
20483 | if (obj6) { | |
20484 | { | |
20485 | arg7 = wxString_in_helper(obj6); | |
20486 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 20487 | temp7 = True; |
d14a1e28 RD |
20488 | } |
20489 | } | |
20490 | { | |
20491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20492 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20493 | ||
20494 | wxPyEndAllowThreads(__tstate); | |
20495 | if (PyErr_Occurred()) SWIG_fail; | |
20496 | } | |
20497 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeCtrl, 1); | |
20498 | { | |
20499 | if (temp7) | |
20500 | delete arg7; | |
20501 | } | |
20502 | return resultobj; | |
20503 | fail: | |
20504 | { | |
20505 | if (temp7) | |
20506 | delete arg7; | |
20507 | } | |
20508 | return NULL; | |
20509 | } | |
20510 | ||
20511 | ||
20512 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20513 | PyObject *resultobj; | |
20514 | wxPyTreeCtrl *result; | |
20515 | char *kwnames[] = { | |
20516 | NULL | |
20517 | }; | |
20518 | ||
20519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
20520 | { | |
20521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20522 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
20523 | ||
20524 | wxPyEndAllowThreads(__tstate); | |
20525 | if (PyErr_Occurred()) SWIG_fail; | |
20526 | } | |
20527 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeCtrl, 1); | |
20528 | return resultobj; | |
20529 | fail: | |
20530 | return NULL; | |
20531 | } | |
20532 | ||
20533 | ||
20534 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20535 | PyObject *resultobj; | |
20536 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20537 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 20538 | int arg3 = (int) -1 ; |
d14a1e28 RD |
20539 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20540 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20541 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20542 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20543 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
20544 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
20545 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
20546 | wxString const &arg8_defvalue = wxPy_TreeCtrlNameStr ; | |
20547 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20548 | bool result; | |
20549 | wxPoint temp4 ; | |
20550 | wxSize temp5 ; | |
e811c8ce | 20551 | bool temp8 = False ; |
d14a1e28 RD |
20552 | PyObject * obj0 = 0 ; |
20553 | PyObject * obj1 = 0 ; | |
20554 | PyObject * obj3 = 0 ; | |
20555 | PyObject * obj4 = 0 ; | |
20556 | PyObject * obj6 = 0 ; | |
20557 | PyObject * obj7 = 0 ; | |
20558 | char *kwnames[] = { | |
20559 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20560 | }; | |
20561 | ||
20562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
20563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20564 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20565 | if (obj3) { | |
20566 | { | |
20567 | arg4 = &temp4; | |
20568 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20569 | } | |
20570 | } | |
20571 | if (obj4) { | |
20572 | { | |
20573 | arg5 = &temp5; | |
20574 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20575 | } | |
20576 | } | |
20577 | if (obj6) { | |
20578 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20579 | if (arg7 == NULL) { | |
20580 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20581 | } | |
20582 | } | |
20583 | if (obj7) { | |
20584 | { | |
20585 | arg8 = wxString_in_helper(obj7); | |
20586 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 20587 | temp8 = True; |
d14a1e28 RD |
20588 | } |
20589 | } | |
20590 | { | |
20591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20592 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20593 | ||
20594 | wxPyEndAllowThreads(__tstate); | |
20595 | if (PyErr_Occurred()) SWIG_fail; | |
20596 | } | |
20597 | resultobj = PyInt_FromLong((long)result); | |
20598 | { | |
20599 | if (temp8) | |
20600 | delete arg8; | |
20601 | } | |
20602 | return resultobj; | |
20603 | fail: | |
20604 | { | |
20605 | if (temp8) | |
20606 | delete arg8; | |
20607 | } | |
20608 | return NULL; | |
20609 | } | |
20610 | ||
20611 | ||
20612 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20613 | PyObject *resultobj; | |
20614 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20615 | PyObject *arg2 = (PyObject *) 0 ; | |
20616 | PyObject *arg3 = (PyObject *) 0 ; | |
20617 | PyObject * obj0 = 0 ; | |
20618 | PyObject * obj1 = 0 ; | |
20619 | PyObject * obj2 = 0 ; | |
20620 | char *kwnames[] = { | |
20621 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20622 | }; | |
20623 | ||
20624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20626 | arg2 = obj1; | |
20627 | arg3 = obj2; | |
20628 | { | |
20629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20630 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20631 | ||
20632 | wxPyEndAllowThreads(__tstate); | |
20633 | if (PyErr_Occurred()) SWIG_fail; | |
20634 | } | |
20635 | Py_INCREF(Py_None); resultobj = Py_None; | |
20636 | return resultobj; | |
20637 | fail: | |
20638 | return NULL; | |
20639 | } | |
20640 | ||
20641 | ||
20642 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20643 | PyObject *resultobj; | |
20644 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20645 | size_t result; | |
20646 | PyObject * obj0 = 0 ; | |
20647 | char *kwnames[] = { | |
20648 | (char *) "self", NULL | |
20649 | }; | |
20650 | ||
20651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",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 = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
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_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20668 | PyObject *resultobj; | |
20669 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20670 | unsigned int result; | |
20671 | PyObject * obj0 = 0 ; | |
20672 | char *kwnames[] = { | |
20673 | (char *) "self", NULL | |
20674 | }; | |
20675 | ||
20676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
20677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20678 | { | |
20679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20680 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
20681 | ||
20682 | wxPyEndAllowThreads(__tstate); | |
20683 | if (PyErr_Occurred()) SWIG_fail; | |
20684 | } | |
20685 | resultobj = PyInt_FromLong((long)result); | |
20686 | return resultobj; | |
20687 | fail: | |
20688 | return NULL; | |
20689 | } | |
20690 | ||
20691 | ||
20692 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20693 | PyObject *resultobj; | |
20694 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20695 | unsigned int arg2 ; | |
20696 | PyObject * obj0 = 0 ; | |
20697 | PyObject * obj1 = 0 ; | |
20698 | char *kwnames[] = { | |
20699 | (char *) "self",(char *) "indent", NULL | |
20700 | }; | |
20701 | ||
20702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
20703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20704 | arg2 = (unsigned int) PyInt_AsLong(obj1); | |
20705 | if (PyErr_Occurred()) SWIG_fail; | |
20706 | { | |
20707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20708 | (arg1)->SetIndent(arg2); | |
20709 | ||
20710 | wxPyEndAllowThreads(__tstate); | |
20711 | if (PyErr_Occurred()) SWIG_fail; | |
20712 | } | |
20713 | Py_INCREF(Py_None); resultobj = Py_None; | |
20714 | return resultobj; | |
20715 | fail: | |
20716 | return NULL; | |
20717 | } | |
20718 | ||
20719 | ||
20720 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20721 | PyObject *resultobj; | |
20722 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20723 | unsigned int result; | |
20724 | PyObject * obj0 = 0 ; | |
20725 | char *kwnames[] = { | |
20726 | (char *) "self", NULL | |
20727 | }; | |
20728 | ||
20729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
20730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20731 | { | |
20732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20733 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
20734 | ||
20735 | wxPyEndAllowThreads(__tstate); | |
20736 | if (PyErr_Occurred()) SWIG_fail; | |
20737 | } | |
20738 | resultobj = PyInt_FromLong((long)result); | |
20739 | return resultobj; | |
20740 | fail: | |
20741 | return NULL; | |
20742 | } | |
20743 | ||
20744 | ||
20745 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20746 | PyObject *resultobj; | |
20747 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20748 | unsigned int arg2 ; | |
20749 | PyObject * obj0 = 0 ; | |
20750 | PyObject * obj1 = 0 ; | |
20751 | char *kwnames[] = { | |
20752 | (char *) "self",(char *) "spacing", NULL | |
20753 | }; | |
20754 | ||
20755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
20756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20757 | arg2 = (unsigned int) PyInt_AsLong(obj1); | |
20758 | if (PyErr_Occurred()) SWIG_fail; | |
20759 | { | |
20760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20761 | (arg1)->SetSpacing(arg2); | |
20762 | ||
20763 | wxPyEndAllowThreads(__tstate); | |
20764 | if (PyErr_Occurred()) SWIG_fail; | |
20765 | } | |
20766 | Py_INCREF(Py_None); resultobj = Py_None; | |
20767 | return resultobj; | |
20768 | fail: | |
20769 | return NULL; | |
20770 | } | |
20771 | ||
20772 | ||
20773 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20774 | PyObject *resultobj; | |
20775 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20776 | wxImageList *result; | |
20777 | PyObject * obj0 = 0 ; | |
20778 | char *kwnames[] = { | |
20779 | (char *) "self", NULL | |
20780 | }; | |
20781 | ||
20782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
20783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20784 | { | |
20785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20786 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
20787 | ||
20788 | wxPyEndAllowThreads(__tstate); | |
20789 | if (PyErr_Occurred()) SWIG_fail; | |
20790 | } | |
20791 | { | |
20792 | resultobj = wxPyMake_wxObject(result); | |
20793 | } | |
20794 | return resultobj; | |
20795 | fail: | |
20796 | return NULL; | |
20797 | } | |
20798 | ||
20799 | ||
20800 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20801 | PyObject *resultobj; | |
20802 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20803 | wxImageList *result; | |
20804 | PyObject * obj0 = 0 ; | |
20805 | char *kwnames[] = { | |
20806 | (char *) "self", NULL | |
20807 | }; | |
20808 | ||
20809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
20810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20811 | { | |
20812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20813 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
20814 | ||
20815 | wxPyEndAllowThreads(__tstate); | |
20816 | if (PyErr_Occurred()) SWIG_fail; | |
20817 | } | |
20818 | { | |
20819 | resultobj = wxPyMake_wxObject(result); | |
20820 | } | |
20821 | return resultobj; | |
20822 | fail: | |
20823 | return NULL; | |
20824 | } | |
20825 | ||
20826 | ||
20827 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20828 | PyObject *resultobj; | |
20829 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20830 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20831 | PyObject * obj0 = 0 ; | |
20832 | PyObject * obj1 = 0 ; | |
20833 | char *kwnames[] = { | |
20834 | (char *) "self",(char *) "imageList", NULL | |
20835 | }; | |
20836 | ||
20837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
20838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20839 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20840 | { | |
20841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20842 | (arg1)->SetImageList(arg2); | |
20843 | ||
20844 | wxPyEndAllowThreads(__tstate); | |
20845 | if (PyErr_Occurred()) SWIG_fail; | |
20846 | } | |
20847 | Py_INCREF(Py_None); resultobj = Py_None; | |
20848 | return resultobj; | |
20849 | fail: | |
20850 | return NULL; | |
20851 | } | |
20852 | ||
20853 | ||
20854 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20855 | PyObject *resultobj; | |
20856 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20857 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20858 | PyObject * obj0 = 0 ; | |
20859 | PyObject * obj1 = 0 ; | |
20860 | char *kwnames[] = { | |
20861 | (char *) "self",(char *) "imageList", NULL | |
20862 | }; | |
20863 | ||
20864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
20865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20866 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20867 | { | |
20868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20869 | (arg1)->SetStateImageList(arg2); | |
20870 | ||
20871 | wxPyEndAllowThreads(__tstate); | |
20872 | if (PyErr_Occurred()) SWIG_fail; | |
20873 | } | |
20874 | Py_INCREF(Py_None); resultobj = Py_None; | |
20875 | return resultobj; | |
20876 | fail: | |
20877 | return NULL; | |
20878 | } | |
20879 | ||
20880 | ||
20881 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20882 | PyObject *resultobj; | |
20883 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20884 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20885 | PyObject * obj0 = 0 ; | |
20886 | PyObject * obj1 = 0 ; | |
20887 | char *kwnames[] = { | |
20888 | (char *) "self",(char *) "imageList", NULL | |
20889 | }; | |
20890 | ||
20891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
20892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20893 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20894 | { | |
20895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20896 | (arg1)->AssignImageList(arg2); | |
20897 | ||
20898 | wxPyEndAllowThreads(__tstate); | |
20899 | if (PyErr_Occurred()) SWIG_fail; | |
20900 | } | |
20901 | Py_INCREF(Py_None); resultobj = Py_None; | |
20902 | return resultobj; | |
20903 | fail: | |
20904 | return NULL; | |
20905 | } | |
20906 | ||
20907 | ||
20908 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20909 | PyObject *resultobj; | |
20910 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20911 | wxImageList *arg2 = (wxImageList *) 0 ; | |
20912 | PyObject * obj0 = 0 ; | |
20913 | PyObject * obj1 = 0 ; | |
20914 | char *kwnames[] = { | |
20915 | (char *) "self",(char *) "imageList", NULL | |
20916 | }; | |
20917 | ||
20918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
20919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20920 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20921 | { | |
20922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20923 | (arg1)->AssignStateImageList(arg2); | |
20924 | ||
20925 | wxPyEndAllowThreads(__tstate); | |
20926 | if (PyErr_Occurred()) SWIG_fail; | |
20927 | } | |
20928 | Py_INCREF(Py_None); resultobj = Py_None; | |
20929 | return resultobj; | |
20930 | fail: | |
20931 | return NULL; | |
20932 | } | |
20933 | ||
20934 | ||
20935 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20936 | PyObject *resultobj; | |
20937 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20938 | wxTreeItemId *arg2 = 0 ; | |
20939 | wxString result; | |
20940 | PyObject * obj0 = 0 ; | |
20941 | PyObject * obj1 = 0 ; | |
20942 | char *kwnames[] = { | |
20943 | (char *) "self",(char *) "item", NULL | |
20944 | }; | |
20945 | ||
20946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
20947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20948 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20949 | if (arg2 == NULL) { | |
20950 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20951 | } | |
20952 | { | |
20953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20954 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
20955 | ||
20956 | wxPyEndAllowThreads(__tstate); | |
20957 | if (PyErr_Occurred()) SWIG_fail; | |
20958 | } | |
20959 | { | |
20960 | #if wxUSE_UNICODE | |
20961 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20962 | #else | |
20963 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20964 | #endif | |
20965 | } | |
20966 | return resultobj; | |
20967 | fail: | |
20968 | return NULL; | |
20969 | } | |
20970 | ||
20971 | ||
20972 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20973 | PyObject *resultobj; | |
20974 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20975 | wxTreeItemId *arg2 = 0 ; | |
20976 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
20977 | int result; | |
20978 | PyObject * obj0 = 0 ; | |
20979 | PyObject * obj1 = 0 ; | |
20980 | char *kwnames[] = { | |
20981 | (char *) "self",(char *) "item",(char *) "which", NULL | |
20982 | }; | |
20983 | ||
20984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
20985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20986 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20987 | if (arg2 == NULL) { | |
20988 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20989 | } | |
20990 | { | |
20991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20992 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
20993 | ||
20994 | wxPyEndAllowThreads(__tstate); | |
20995 | if (PyErr_Occurred()) SWIG_fail; | |
20996 | } | |
20997 | resultobj = PyInt_FromLong((long)result); | |
20998 | return resultobj; | |
20999 | fail: | |
21000 | return NULL; | |
21001 | } | |
21002 | ||
21003 | ||
21004 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21005 | PyObject *resultobj; | |
21006 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21007 | wxTreeItemId *arg2 = 0 ; | |
21008 | wxPyTreeItemData *result; | |
21009 | PyObject * obj0 = 0 ; | |
21010 | PyObject * obj1 = 0 ; | |
21011 | char *kwnames[] = { | |
21012 | (char *) "self",(char *) "item", NULL | |
21013 | }; | |
21014 | ||
21015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
21016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21017 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21018 | if (arg2 == NULL) { | |
21019 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21020 | } | |
21021 | { | |
21022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21023 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
21024 | ||
21025 | wxPyEndAllowThreads(__tstate); | |
21026 | if (PyErr_Occurred()) SWIG_fail; | |
21027 | } | |
21028 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
21029 | return resultobj; | |
21030 | fail: | |
21031 | return NULL; | |
21032 | } | |
21033 | ||
21034 | ||
21035 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21036 | PyObject *resultobj; | |
21037 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21038 | wxTreeItemId *arg2 = 0 ; | |
21039 | PyObject *result; | |
21040 | PyObject * obj0 = 0 ; | |
21041 | PyObject * obj1 = 0 ; | |
21042 | char *kwnames[] = { | |
21043 | (char *) "self",(char *) "item", NULL | |
21044 | }; | |
21045 | ||
21046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
21047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21048 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21049 | if (arg2 == NULL) { | |
21050 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21051 | } | |
21052 | { | |
21053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21054 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
21055 | ||
21056 | wxPyEndAllowThreads(__tstate); | |
21057 | if (PyErr_Occurred()) SWIG_fail; | |
21058 | } | |
21059 | resultobj = result; | |
21060 | return resultobj; | |
21061 | fail: | |
21062 | return NULL; | |
21063 | } | |
21064 | ||
21065 | ||
21066 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21067 | PyObject *resultobj; | |
21068 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21069 | wxTreeItemId *arg2 = 0 ; | |
21070 | wxColour result; | |
21071 | PyObject * obj0 = 0 ; | |
21072 | PyObject * obj1 = 0 ; | |
21073 | char *kwnames[] = { | |
21074 | (char *) "self",(char *) "item", NULL | |
21075 | }; | |
21076 | ||
21077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
21078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21079 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21080 | if (arg2 == NULL) { | |
21081 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21082 | } | |
21083 | { | |
21084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21085 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
21086 | ||
21087 | wxPyEndAllowThreads(__tstate); | |
21088 | if (PyErr_Occurred()) SWIG_fail; | |
21089 | } | |
21090 | { | |
21091 | wxColour * resultptr; | |
21092 | resultptr = new wxColour((wxColour &) result); | |
21093 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21094 | } | |
21095 | return resultobj; | |
21096 | fail: | |
21097 | return NULL; | |
21098 | } | |
21099 | ||
21100 | ||
21101 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21102 | PyObject *resultobj; | |
21103 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21104 | wxTreeItemId *arg2 = 0 ; | |
21105 | wxColour result; | |
21106 | PyObject * obj0 = 0 ; | |
21107 | PyObject * obj1 = 0 ; | |
21108 | char *kwnames[] = { | |
21109 | (char *) "self",(char *) "item", NULL | |
21110 | }; | |
21111 | ||
21112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21114 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21115 | if (arg2 == NULL) { | |
21116 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21117 | } | |
21118 | { | |
21119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21120 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
21121 | ||
21122 | wxPyEndAllowThreads(__tstate); | |
21123 | if (PyErr_Occurred()) SWIG_fail; | |
21124 | } | |
21125 | { | |
21126 | wxColour * resultptr; | |
21127 | resultptr = new wxColour((wxColour &) result); | |
21128 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21129 | } | |
21130 | return resultobj; | |
21131 | fail: | |
21132 | return NULL; | |
21133 | } | |
21134 | ||
21135 | ||
21136 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21137 | PyObject *resultobj; | |
21138 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21139 | wxTreeItemId *arg2 = 0 ; | |
21140 | wxFont result; | |
21141 | PyObject * obj0 = 0 ; | |
21142 | PyObject * obj1 = 0 ; | |
21143 | char *kwnames[] = { | |
21144 | (char *) "self",(char *) "item", NULL | |
21145 | }; | |
21146 | ||
21147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
21148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21149 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21150 | if (arg2 == NULL) { | |
21151 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21152 | } | |
21153 | { | |
21154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21155 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
21156 | ||
21157 | wxPyEndAllowThreads(__tstate); | |
21158 | if (PyErr_Occurred()) SWIG_fail; | |
21159 | } | |
21160 | { | |
21161 | wxFont * resultptr; | |
21162 | resultptr = new wxFont((wxFont &) result); | |
21163 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
21164 | } | |
21165 | return resultobj; | |
21166 | fail: | |
21167 | return NULL; | |
21168 | } | |
21169 | ||
21170 | ||
21171 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21172 | PyObject *resultobj; | |
21173 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21174 | wxTreeItemId *arg2 = 0 ; | |
21175 | wxString *arg3 = 0 ; | |
e811c8ce | 21176 | bool temp3 = False ; |
d14a1e28 RD |
21177 | PyObject * obj0 = 0 ; |
21178 | PyObject * obj1 = 0 ; | |
21179 | PyObject * obj2 = 0 ; | |
21180 | char *kwnames[] = { | |
21181 | (char *) "self",(char *) "item",(char *) "text", NULL | |
21182 | }; | |
21183 | ||
21184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21186 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21187 | if (arg2 == NULL) { | |
21188 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21189 | } | |
21190 | { | |
21191 | arg3 = wxString_in_helper(obj2); | |
21192 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 21193 | temp3 = True; |
d14a1e28 RD |
21194 | } |
21195 | { | |
21196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21197 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
21198 | ||
21199 | wxPyEndAllowThreads(__tstate); | |
21200 | if (PyErr_Occurred()) SWIG_fail; | |
21201 | } | |
21202 | Py_INCREF(Py_None); resultobj = Py_None; | |
21203 | { | |
21204 | if (temp3) | |
21205 | delete arg3; | |
21206 | } | |
21207 | return resultobj; | |
21208 | fail: | |
21209 | { | |
21210 | if (temp3) | |
21211 | delete arg3; | |
21212 | } | |
21213 | return NULL; | |
21214 | } | |
21215 | ||
21216 | ||
21217 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21218 | PyObject *resultobj; | |
21219 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21220 | wxTreeItemId *arg2 = 0 ; | |
21221 | int arg3 ; | |
21222 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
21223 | PyObject * obj0 = 0 ; | |
21224 | PyObject * obj1 = 0 ; | |
21225 | char *kwnames[] = { | |
21226 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
21227 | }; | |
21228 | ||
21229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|i:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
21230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21231 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21232 | if (arg2 == NULL) { | |
21233 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21234 | } | |
21235 | { | |
21236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21237 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
21238 | ||
21239 | wxPyEndAllowThreads(__tstate); | |
21240 | if (PyErr_Occurred()) SWIG_fail; | |
21241 | } | |
21242 | Py_INCREF(Py_None); resultobj = Py_None; | |
21243 | return resultobj; | |
21244 | fail: | |
21245 | return NULL; | |
21246 | } | |
21247 | ||
21248 | ||
21249 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21250 | PyObject *resultobj; | |
21251 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21252 | wxTreeItemId *arg2 = 0 ; | |
21253 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
21254 | PyObject * obj0 = 0 ; | |
21255 | PyObject * obj1 = 0 ; | |
21256 | PyObject * obj2 = 0 ; | |
21257 | char *kwnames[] = { | |
21258 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21259 | }; | |
21260 | ||
21261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21263 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21264 | if (arg2 == NULL) { | |
21265 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21266 | } | |
21267 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21268 | { | |
21269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21270 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
21271 | ||
21272 | wxPyEndAllowThreads(__tstate); | |
21273 | if (PyErr_Occurred()) SWIG_fail; | |
21274 | } | |
21275 | Py_INCREF(Py_None); resultobj = Py_None; | |
21276 | return resultobj; | |
21277 | fail: | |
21278 | return NULL; | |
21279 | } | |
21280 | ||
21281 | ||
21282 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21283 | PyObject *resultobj; | |
21284 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21285 | wxTreeItemId *arg2 = 0 ; | |
21286 | PyObject *arg3 = (PyObject *) 0 ; | |
21287 | PyObject * obj0 = 0 ; | |
21288 | PyObject * obj1 = 0 ; | |
21289 | PyObject * obj2 = 0 ; | |
21290 | char *kwnames[] = { | |
21291 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
21292 | }; | |
21293 | ||
21294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21296 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21297 | if (arg2 == NULL) { | |
21298 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21299 | } | |
21300 | arg3 = obj2; | |
21301 | { | |
21302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21303 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
21304 | ||
21305 | wxPyEndAllowThreads(__tstate); | |
21306 | if (PyErr_Occurred()) SWIG_fail; | |
21307 | } | |
21308 | Py_INCREF(Py_None); resultobj = Py_None; | |
21309 | return resultobj; | |
21310 | fail: | |
21311 | return NULL; | |
21312 | } | |
21313 | ||
21314 | ||
21315 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21316 | PyObject *resultobj; | |
21317 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21318 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 21319 | bool arg3 = (bool) True ; |
d14a1e28 RD |
21320 | PyObject * obj0 = 0 ; |
21321 | PyObject * obj1 = 0 ; | |
21322 | PyObject * obj2 = 0 ; | |
21323 | char *kwnames[] = { | |
21324 | (char *) "self",(char *) "item",(char *) "has", NULL | |
21325 | }; | |
21326 | ||
21327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21329 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21330 | if (arg2 == NULL) { | |
21331 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21332 | } | |
21333 | if (obj2) { | |
21334 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
21335 | if (PyErr_Occurred()) SWIG_fail; | |
21336 | } | |
21337 | { | |
21338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21339 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
21340 | ||
21341 | wxPyEndAllowThreads(__tstate); | |
21342 | if (PyErr_Occurred()) SWIG_fail; | |
21343 | } | |
21344 | Py_INCREF(Py_None); resultobj = Py_None; | |
21345 | return resultobj; | |
21346 | fail: | |
21347 | return NULL; | |
21348 | } | |
21349 | ||
21350 | ||
21351 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21352 | PyObject *resultobj; | |
21353 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21354 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 21355 | bool arg3 = (bool) True ; |
d14a1e28 RD |
21356 | PyObject * obj0 = 0 ; |
21357 | PyObject * obj1 = 0 ; | |
21358 | PyObject * obj2 = 0 ; | |
21359 | char *kwnames[] = { | |
21360 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
21361 | }; | |
21362 | ||
21363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21365 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21366 | if (arg2 == NULL) { | |
21367 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21368 | } | |
21369 | if (obj2) { | |
21370 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
21371 | if (PyErr_Occurred()) SWIG_fail; | |
21372 | } | |
21373 | { | |
21374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21375 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
21376 | ||
21377 | wxPyEndAllowThreads(__tstate); | |
21378 | if (PyErr_Occurred()) SWIG_fail; | |
21379 | } | |
21380 | Py_INCREF(Py_None); resultobj = Py_None; | |
21381 | return resultobj; | |
21382 | fail: | |
21383 | return NULL; | |
21384 | } | |
21385 | ||
21386 | ||
21387 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21388 | PyObject *resultobj; | |
21389 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21390 | wxTreeItemId *arg2 = 0 ; | |
21391 | wxColour *arg3 = 0 ; | |
21392 | wxColour temp3 ; | |
21393 | PyObject * obj0 = 0 ; | |
21394 | PyObject * obj1 = 0 ; | |
21395 | PyObject * obj2 = 0 ; | |
21396 | char *kwnames[] = { | |
21397 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21398 | }; | |
21399 | ||
21400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21402 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21403 | if (arg2 == NULL) { | |
21404 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21405 | } | |
21406 | { | |
21407 | arg3 = &temp3; | |
21408 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21409 | } | |
21410 | { | |
21411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21412 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
21413 | ||
21414 | wxPyEndAllowThreads(__tstate); | |
21415 | if (PyErr_Occurred()) SWIG_fail; | |
21416 | } | |
21417 | Py_INCREF(Py_None); resultobj = Py_None; | |
21418 | return resultobj; | |
21419 | fail: | |
21420 | return NULL; | |
21421 | } | |
21422 | ||
21423 | ||
21424 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21425 | PyObject *resultobj; | |
21426 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21427 | wxTreeItemId *arg2 = 0 ; | |
21428 | wxColour *arg3 = 0 ; | |
21429 | wxColour temp3 ; | |
21430 | PyObject * obj0 = 0 ; | |
21431 | PyObject * obj1 = 0 ; | |
21432 | PyObject * obj2 = 0 ; | |
21433 | char *kwnames[] = { | |
21434 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21435 | }; | |
21436 | ||
21437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21439 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21440 | if (arg2 == NULL) { | |
21441 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21442 | } | |
21443 | { | |
21444 | arg3 = &temp3; | |
21445 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21446 | } | |
21447 | { | |
21448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21449 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
21450 | ||
21451 | wxPyEndAllowThreads(__tstate); | |
21452 | if (PyErr_Occurred()) SWIG_fail; | |
21453 | } | |
21454 | Py_INCREF(Py_None); resultobj = Py_None; | |
21455 | return resultobj; | |
21456 | fail: | |
21457 | return NULL; | |
21458 | } | |
21459 | ||
21460 | ||
21461 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21462 | PyObject *resultobj; | |
21463 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21464 | wxTreeItemId *arg2 = 0 ; | |
21465 | wxFont *arg3 = 0 ; | |
21466 | PyObject * obj0 = 0 ; | |
21467 | PyObject * obj1 = 0 ; | |
21468 | PyObject * obj2 = 0 ; | |
21469 | char *kwnames[] = { | |
21470 | (char *) "self",(char *) "item",(char *) "font", NULL | |
21471 | }; | |
21472 | ||
21473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21475 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21476 | if (arg2 == NULL) { | |
21477 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21478 | } | |
21479 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21480 | if (arg3 == NULL) { | |
21481 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21482 | } | |
21483 | { | |
21484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21485 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
21486 | ||
21487 | wxPyEndAllowThreads(__tstate); | |
21488 | if (PyErr_Occurred()) SWIG_fail; | |
21489 | } | |
21490 | Py_INCREF(Py_None); resultobj = Py_None; | |
21491 | return resultobj; | |
21492 | fail: | |
21493 | return NULL; | |
21494 | } | |
21495 | ||
21496 | ||
21497 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21498 | PyObject *resultobj; | |
21499 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21500 | wxTreeItemId *arg2 = 0 ; | |
21501 | bool result; | |
21502 | PyObject * obj0 = 0 ; | |
21503 | PyObject * obj1 = 0 ; | |
21504 | char *kwnames[] = { | |
21505 | (char *) "self",(char *) "item", NULL | |
21506 | }; | |
21507 | ||
21508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
21509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21510 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21511 | if (arg2 == NULL) { | |
21512 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21513 | } | |
21514 | { | |
21515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21516 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
21517 | ||
21518 | wxPyEndAllowThreads(__tstate); | |
21519 | if (PyErr_Occurred()) SWIG_fail; | |
21520 | } | |
21521 | resultobj = PyInt_FromLong((long)result); | |
21522 | return resultobj; | |
21523 | fail: | |
21524 | return NULL; | |
21525 | } | |
21526 | ||
21527 | ||
21528 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21529 | PyObject *resultobj; | |
21530 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21531 | wxTreeItemId *arg2 = 0 ; | |
21532 | bool result; | |
21533 | PyObject * obj0 = 0 ; | |
21534 | PyObject * obj1 = 0 ; | |
21535 | char *kwnames[] = { | |
21536 | (char *) "self",(char *) "item", NULL | |
21537 | }; | |
21538 | ||
21539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
21540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21541 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21542 | if (arg2 == NULL) { | |
21543 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21544 | } | |
21545 | { | |
21546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21547 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
21548 | ||
21549 | wxPyEndAllowThreads(__tstate); | |
21550 | if (PyErr_Occurred()) SWIG_fail; | |
21551 | } | |
21552 | resultobj = PyInt_FromLong((long)result); | |
21553 | return resultobj; | |
21554 | fail: | |
21555 | return NULL; | |
21556 | } | |
21557 | ||
21558 | ||
21559 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21560 | PyObject *resultobj; | |
21561 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21562 | wxTreeItemId *arg2 = 0 ; | |
21563 | bool result; | |
21564 | PyObject * obj0 = 0 ; | |
21565 | PyObject * obj1 = 0 ; | |
21566 | char *kwnames[] = { | |
21567 | (char *) "self",(char *) "item", NULL | |
21568 | }; | |
21569 | ||
21570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
21571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21572 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21573 | if (arg2 == NULL) { | |
21574 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21575 | } | |
21576 | { | |
21577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21578 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
21579 | ||
21580 | wxPyEndAllowThreads(__tstate); | |
21581 | if (PyErr_Occurred()) SWIG_fail; | |
21582 | } | |
21583 | resultobj = PyInt_FromLong((long)result); | |
21584 | return resultobj; | |
21585 | fail: | |
21586 | return NULL; | |
21587 | } | |
21588 | ||
21589 | ||
21590 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21591 | PyObject *resultobj; | |
21592 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21593 | wxTreeItemId *arg2 = 0 ; | |
21594 | bool result; | |
21595 | PyObject * obj0 = 0 ; | |
21596 | PyObject * obj1 = 0 ; | |
21597 | char *kwnames[] = { | |
21598 | (char *) "self",(char *) "item", NULL | |
21599 | }; | |
21600 | ||
21601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
21602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21603 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21604 | if (arg2 == NULL) { | |
21605 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21606 | } | |
21607 | { | |
21608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21609 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
21610 | ||
21611 | wxPyEndAllowThreads(__tstate); | |
21612 | if (PyErr_Occurred()) SWIG_fail; | |
21613 | } | |
21614 | resultobj = PyInt_FromLong((long)result); | |
21615 | return resultobj; | |
21616 | fail: | |
21617 | return NULL; | |
21618 | } | |
21619 | ||
21620 | ||
21621 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21622 | PyObject *resultobj; | |
21623 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21624 | wxTreeItemId *arg2 = 0 ; | |
21625 | bool result; | |
21626 | PyObject * obj0 = 0 ; | |
21627 | PyObject * obj1 = 0 ; | |
21628 | char *kwnames[] = { | |
21629 | (char *) "self",(char *) "item", NULL | |
21630 | }; | |
21631 | ||
21632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
21633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21634 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21635 | if (arg2 == NULL) { | |
21636 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21637 | } | |
21638 | { | |
21639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21640 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
21641 | ||
21642 | wxPyEndAllowThreads(__tstate); | |
21643 | if (PyErr_Occurred()) SWIG_fail; | |
21644 | } | |
21645 | resultobj = PyInt_FromLong((long)result); | |
21646 | return resultobj; | |
21647 | fail: | |
21648 | return NULL; | |
21649 | } | |
21650 | ||
21651 | ||
21652 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21653 | PyObject *resultobj; | |
21654 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21655 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 21656 | bool arg3 = (bool) True ; |
d14a1e28 RD |
21657 | size_t result; |
21658 | PyObject * obj0 = 0 ; | |
21659 | PyObject * obj1 = 0 ; | |
21660 | PyObject * obj2 = 0 ; | |
21661 | char *kwnames[] = { | |
21662 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
21663 | }; | |
21664 | ||
21665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21667 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21668 | if (arg2 == NULL) { | |
21669 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21670 | } | |
21671 | if (obj2) { | |
21672 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
21673 | if (PyErr_Occurred()) SWIG_fail; | |
21674 | } | |
21675 | { | |
21676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21677 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
21678 | ||
21679 | wxPyEndAllowThreads(__tstate); | |
21680 | if (PyErr_Occurred()) SWIG_fail; | |
21681 | } | |
21682 | resultobj = PyInt_FromLong((long)result); | |
21683 | return resultobj; | |
21684 | fail: | |
21685 | return NULL; | |
21686 | } | |
21687 | ||
21688 | ||
21689 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21690 | PyObject *resultobj; | |
21691 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21692 | wxTreeItemId result; | |
21693 | PyObject * obj0 = 0 ; | |
21694 | char *kwnames[] = { | |
21695 | (char *) "self", NULL | |
21696 | }; | |
21697 | ||
21698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
21699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21700 | { | |
21701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21702 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
21703 | ||
21704 | wxPyEndAllowThreads(__tstate); | |
21705 | if (PyErr_Occurred()) SWIG_fail; | |
21706 | } | |
21707 | { | |
21708 | wxTreeItemId * resultptr; | |
21709 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21710 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21711 | } | |
21712 | return resultobj; | |
21713 | fail: | |
21714 | return NULL; | |
21715 | } | |
21716 | ||
21717 | ||
21718 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21719 | PyObject *resultobj; | |
21720 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21721 | wxTreeItemId result; | |
21722 | PyObject * obj0 = 0 ; | |
21723 | char *kwnames[] = { | |
21724 | (char *) "self", NULL | |
21725 | }; | |
21726 | ||
21727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
21728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21729 | { | |
21730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21731 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
21732 | ||
21733 | wxPyEndAllowThreads(__tstate); | |
21734 | if (PyErr_Occurred()) SWIG_fail; | |
21735 | } | |
21736 | { | |
21737 | wxTreeItemId * resultptr; | |
21738 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21739 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21740 | } | |
21741 | return resultobj; | |
21742 | fail: | |
21743 | return NULL; | |
21744 | } | |
21745 | ||
21746 | ||
21747 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21748 | PyObject *resultobj; | |
21749 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21750 | PyObject *result; | |
21751 | PyObject * obj0 = 0 ; | |
21752 | char *kwnames[] = { | |
21753 | (char *) "self", NULL | |
21754 | }; | |
21755 | ||
21756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
21757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21758 | { | |
21759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21760 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
21761 | ||
21762 | wxPyEndAllowThreads(__tstate); | |
21763 | if (PyErr_Occurred()) SWIG_fail; | |
21764 | } | |
21765 | resultobj = result; | |
21766 | return resultobj; | |
21767 | fail: | |
21768 | return NULL; | |
21769 | } | |
21770 | ||
21771 | ||
21772 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21773 | PyObject *resultobj; | |
21774 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21775 | wxTreeItemId *arg2 = 0 ; | |
21776 | wxTreeItemId result; | |
21777 | PyObject * obj0 = 0 ; | |
21778 | PyObject * obj1 = 0 ; | |
21779 | char *kwnames[] = { | |
21780 | (char *) "self",(char *) "item", NULL | |
21781 | }; | |
21782 | ||
21783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
21784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21785 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21786 | if (arg2 == NULL) { | |
21787 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21788 | } | |
21789 | { | |
21790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21791 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
21792 | ||
21793 | wxPyEndAllowThreads(__tstate); | |
21794 | if (PyErr_Occurred()) SWIG_fail; | |
21795 | } | |
21796 | { | |
21797 | wxTreeItemId * resultptr; | |
21798 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21799 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21800 | } | |
21801 | return resultobj; | |
21802 | fail: | |
21803 | return NULL; | |
21804 | } | |
21805 | ||
21806 | ||
21807 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21808 | PyObject *resultobj; | |
21809 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21810 | wxTreeItemId *arg2 = 0 ; | |
21811 | PyObject *result; | |
21812 | PyObject * obj0 = 0 ; | |
21813 | PyObject * obj1 = 0 ; | |
21814 | char *kwnames[] = { | |
21815 | (char *) "self",(char *) "item", NULL | |
21816 | }; | |
21817 | ||
21818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
21819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21820 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21821 | if (arg2 == NULL) { | |
21822 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21823 | } | |
21824 | { | |
21825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21826 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
21827 | ||
21828 | wxPyEndAllowThreads(__tstate); | |
21829 | if (PyErr_Occurred()) SWIG_fail; | |
21830 | } | |
21831 | resultobj = result; | |
21832 | return resultobj; | |
21833 | fail: | |
21834 | return NULL; | |
21835 | } | |
21836 | ||
21837 | ||
21838 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21839 | PyObject *resultobj; | |
21840 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21841 | wxTreeItemId *arg2 = 0 ; | |
21842 | wxTreeItemIdValue *arg3 = 0 ; | |
21843 | PyObject *result; | |
21844 | PyObject * obj0 = 0 ; | |
21845 | PyObject * obj1 = 0 ; | |
21846 | PyObject * obj2 = 0 ; | |
21847 | char *kwnames[] = { | |
21848 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
21849 | }; | |
21850 | ||
21851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21853 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21854 | if (arg2 == NULL) { | |
21855 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21856 | } | |
21857 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemIdValue,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21858 | if (arg3 == NULL) { | |
21859 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21860 | } | |
21861 | { | |
21862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21863 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,*arg3); | |
21864 | ||
21865 | wxPyEndAllowThreads(__tstate); | |
21866 | if (PyErr_Occurred()) SWIG_fail; | |
21867 | } | |
21868 | resultobj = result; | |
21869 | return resultobj; | |
21870 | fail: | |
21871 | return NULL; | |
21872 | } | |
21873 | ||
21874 | ||
21875 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21876 | PyObject *resultobj; | |
21877 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21878 | wxTreeItemId *arg2 = 0 ; | |
21879 | wxTreeItemId result; | |
21880 | PyObject * obj0 = 0 ; | |
21881 | PyObject * obj1 = 0 ; | |
21882 | char *kwnames[] = { | |
21883 | (char *) "self",(char *) "item", NULL | |
21884 | }; | |
21885 | ||
21886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
21887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21888 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21889 | if (arg2 == NULL) { | |
21890 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21891 | } | |
21892 | { | |
21893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21894 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
21895 | ||
21896 | wxPyEndAllowThreads(__tstate); | |
21897 | if (PyErr_Occurred()) SWIG_fail; | |
21898 | } | |
21899 | { | |
21900 | wxTreeItemId * resultptr; | |
21901 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21902 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21903 | } | |
21904 | return resultobj; | |
21905 | fail: | |
21906 | return NULL; | |
21907 | } | |
21908 | ||
21909 | ||
21910 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21911 | PyObject *resultobj; | |
21912 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21913 | wxTreeItemId *arg2 = 0 ; | |
21914 | wxTreeItemId result; | |
21915 | PyObject * obj0 = 0 ; | |
21916 | PyObject * obj1 = 0 ; | |
21917 | char *kwnames[] = { | |
21918 | (char *) "self",(char *) "item", NULL | |
21919 | }; | |
21920 | ||
21921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
21922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21923 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21924 | if (arg2 == NULL) { | |
21925 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21926 | } | |
21927 | { | |
21928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21929 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
21930 | ||
21931 | wxPyEndAllowThreads(__tstate); | |
21932 | if (PyErr_Occurred()) SWIG_fail; | |
21933 | } | |
21934 | { | |
21935 | wxTreeItemId * resultptr; | |
21936 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21937 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21938 | } | |
21939 | return resultobj; | |
21940 | fail: | |
21941 | return NULL; | |
21942 | } | |
21943 | ||
21944 | ||
21945 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21946 | PyObject *resultobj; | |
21947 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21948 | wxTreeItemId *arg2 = 0 ; | |
21949 | wxTreeItemId result; | |
21950 | PyObject * obj0 = 0 ; | |
21951 | PyObject * obj1 = 0 ; | |
21952 | char *kwnames[] = { | |
21953 | (char *) "self",(char *) "item", NULL | |
21954 | }; | |
21955 | ||
21956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
21957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21958 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21959 | if (arg2 == NULL) { | |
21960 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21961 | } | |
21962 | { | |
21963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21964 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
21965 | ||
21966 | wxPyEndAllowThreads(__tstate); | |
21967 | if (PyErr_Occurred()) SWIG_fail; | |
21968 | } | |
21969 | { | |
21970 | wxTreeItemId * resultptr; | |
21971 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
21972 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
21973 | } | |
21974 | return resultobj; | |
21975 | fail: | |
21976 | return NULL; | |
21977 | } | |
21978 | ||
21979 | ||
21980 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21981 | PyObject *resultobj; | |
21982 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21983 | wxTreeItemId result; | |
21984 | PyObject * obj0 = 0 ; | |
21985 | char *kwnames[] = { | |
21986 | (char *) "self", NULL | |
21987 | }; | |
21988 | ||
21989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
21990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21991 | { | |
21992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21993 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
21994 | ||
21995 | wxPyEndAllowThreads(__tstate); | |
21996 | if (PyErr_Occurred()) SWIG_fail; | |
21997 | } | |
21998 | { | |
21999 | wxTreeItemId * resultptr; | |
22000 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22001 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22002 | } | |
22003 | return resultobj; | |
22004 | fail: | |
22005 | return NULL; | |
22006 | } | |
22007 | ||
22008 | ||
22009 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22010 | PyObject *resultobj; | |
22011 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22012 | wxTreeItemId *arg2 = 0 ; | |
22013 | wxTreeItemId result; | |
22014 | PyObject * obj0 = 0 ; | |
22015 | PyObject * obj1 = 0 ; | |
22016 | char *kwnames[] = { | |
22017 | (char *) "self",(char *) "item", NULL | |
22018 | }; | |
22019 | ||
22020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
22021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22022 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22023 | if (arg2 == NULL) { | |
22024 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22025 | } | |
22026 | { | |
22027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22028 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
22029 | ||
22030 | wxPyEndAllowThreads(__tstate); | |
22031 | if (PyErr_Occurred()) SWIG_fail; | |
22032 | } | |
22033 | { | |
22034 | wxTreeItemId * resultptr; | |
22035 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22036 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22037 | } | |
22038 | return resultobj; | |
22039 | fail: | |
22040 | return NULL; | |
22041 | } | |
22042 | ||
22043 | ||
22044 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22045 | PyObject *resultobj; | |
22046 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22047 | wxTreeItemId *arg2 = 0 ; | |
22048 | wxTreeItemId result; | |
22049 | PyObject * obj0 = 0 ; | |
22050 | PyObject * obj1 = 0 ; | |
22051 | char *kwnames[] = { | |
22052 | (char *) "self",(char *) "item", NULL | |
22053 | }; | |
22054 | ||
22055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
22056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22057 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22058 | if (arg2 == NULL) { | |
22059 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22060 | } | |
22061 | { | |
22062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22063 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
22064 | ||
22065 | wxPyEndAllowThreads(__tstate); | |
22066 | if (PyErr_Occurred()) SWIG_fail; | |
22067 | } | |
22068 | { | |
22069 | wxTreeItemId * resultptr; | |
22070 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22071 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22072 | } | |
22073 | return resultobj; | |
22074 | fail: | |
22075 | return NULL; | |
22076 | } | |
22077 | ||
22078 | ||
22079 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22080 | PyObject *resultobj; | |
22081 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22082 | wxString *arg2 = 0 ; | |
22083 | int arg3 = (int) -1 ; | |
22084 | int arg4 = (int) -1 ; | |
22085 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
22086 | wxTreeItemId result; | |
e811c8ce | 22087 | bool temp2 = False ; |
d14a1e28 RD |
22088 | PyObject * obj0 = 0 ; |
22089 | PyObject * obj1 = 0 ; | |
22090 | PyObject * obj4 = 0 ; | |
22091 | char *kwnames[] = { | |
22092 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22093 | }; | |
22094 | ||
22095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail; | |
22096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22097 | { | |
22098 | arg2 = wxString_in_helper(obj1); | |
22099 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22100 | temp2 = True; |
d14a1e28 RD |
22101 | } |
22102 | if (obj4) { | |
22103 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22104 | } | |
22105 | { | |
22106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22107 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
22108 | ||
22109 | wxPyEndAllowThreads(__tstate); | |
22110 | if (PyErr_Occurred()) SWIG_fail; | |
22111 | } | |
22112 | { | |
22113 | wxTreeItemId * resultptr; | |
22114 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22115 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22116 | } | |
22117 | { | |
22118 | if (temp2) | |
22119 | delete arg2; | |
22120 | } | |
22121 | return resultobj; | |
22122 | fail: | |
22123 | { | |
22124 | if (temp2) | |
22125 | delete arg2; | |
22126 | } | |
22127 | return NULL; | |
22128 | } | |
22129 | ||
22130 | ||
22131 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22132 | PyObject *resultobj; | |
22133 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22134 | wxTreeItemId *arg2 = 0 ; | |
22135 | wxString *arg3 = 0 ; | |
22136 | int arg4 = (int) -1 ; | |
22137 | int arg5 = (int) -1 ; | |
22138 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
22139 | wxTreeItemId result; | |
e811c8ce | 22140 | bool temp3 = False ; |
d14a1e28 RD |
22141 | PyObject * obj0 = 0 ; |
22142 | PyObject * obj1 = 0 ; | |
22143 | PyObject * obj2 = 0 ; | |
22144 | PyObject * obj5 = 0 ; | |
22145 | char *kwnames[] = { | |
22146 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22147 | }; | |
22148 | ||
22149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|iiO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
22150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22151 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22152 | if (arg2 == NULL) { | |
22153 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22154 | } | |
22155 | { | |
22156 | arg3 = wxString_in_helper(obj2); | |
22157 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22158 | temp3 = True; |
d14a1e28 RD |
22159 | } |
22160 | if (obj5) { | |
22161 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22162 | } | |
22163 | { | |
22164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22165 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
22166 | ||
22167 | wxPyEndAllowThreads(__tstate); | |
22168 | if (PyErr_Occurred()) SWIG_fail; | |
22169 | } | |
22170 | { | |
22171 | wxTreeItemId * resultptr; | |
22172 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22173 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22174 | } | |
22175 | { | |
22176 | if (temp3) | |
22177 | delete arg3; | |
22178 | } | |
22179 | return resultobj; | |
22180 | fail: | |
22181 | { | |
22182 | if (temp3) | |
22183 | delete arg3; | |
22184 | } | |
22185 | return NULL; | |
22186 | } | |
22187 | ||
22188 | ||
22189 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22190 | PyObject *resultobj; | |
22191 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22192 | wxTreeItemId *arg2 = 0 ; | |
22193 | wxTreeItemId *arg3 = 0 ; | |
22194 | wxString *arg4 = 0 ; | |
22195 | int arg5 = (int) -1 ; | |
22196 | int arg6 = (int) -1 ; | |
22197 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
22198 | wxTreeItemId result; | |
e811c8ce | 22199 | bool temp4 = False ; |
d14a1e28 RD |
22200 | PyObject * obj0 = 0 ; |
22201 | PyObject * obj1 = 0 ; | |
22202 | PyObject * obj2 = 0 ; | |
22203 | PyObject * obj3 = 0 ; | |
22204 | PyObject * obj6 = 0 ; | |
22205 | char *kwnames[] = { | |
22206 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22207 | }; | |
22208 | ||
22209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iiO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
22210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22211 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22212 | if (arg2 == NULL) { | |
22213 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22214 | } | |
22215 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22216 | if (arg3 == NULL) { | |
22217 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22218 | } | |
22219 | { | |
22220 | arg4 = wxString_in_helper(obj3); | |
22221 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 22222 | temp4 = True; |
d14a1e28 RD |
22223 | } |
22224 | if (obj6) { | |
22225 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22226 | } | |
22227 | { | |
22228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22229 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
22230 | ||
22231 | wxPyEndAllowThreads(__tstate); | |
22232 | if (PyErr_Occurred()) SWIG_fail; | |
22233 | } | |
22234 | { | |
22235 | wxTreeItemId * resultptr; | |
22236 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22237 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22238 | } | |
22239 | { | |
22240 | if (temp4) | |
22241 | delete arg4; | |
22242 | } | |
22243 | return resultobj; | |
22244 | fail: | |
22245 | { | |
22246 | if (temp4) | |
22247 | delete arg4; | |
22248 | } | |
22249 | return NULL; | |
22250 | } | |
22251 | ||
22252 | ||
22253 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22254 | PyObject *resultobj; | |
22255 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22256 | wxTreeItemId *arg2 = 0 ; | |
22257 | size_t arg3 ; | |
22258 | wxString *arg4 = 0 ; | |
22259 | int arg5 = (int) -1 ; | |
22260 | int arg6 = (int) -1 ; | |
22261 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
22262 | wxTreeItemId result; | |
e811c8ce | 22263 | bool temp4 = False ; |
d14a1e28 RD |
22264 | PyObject * obj0 = 0 ; |
22265 | PyObject * obj1 = 0 ; | |
22266 | PyObject * obj2 = 0 ; | |
22267 | PyObject * obj3 = 0 ; | |
22268 | PyObject * obj6 = 0 ; | |
22269 | char *kwnames[] = { | |
22270 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22271 | }; | |
22272 | ||
22273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iiO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
22274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22275 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22276 | if (arg2 == NULL) { | |
22277 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22278 | } | |
22279 | arg3 = (size_t) PyInt_AsLong(obj2); | |
22280 | if (PyErr_Occurred()) SWIG_fail; | |
22281 | { | |
22282 | arg4 = wxString_in_helper(obj3); | |
22283 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 22284 | temp4 = True; |
d14a1e28 RD |
22285 | } |
22286 | if (obj6) { | |
22287 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22288 | } | |
22289 | { | |
22290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22291 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
22292 | ||
22293 | wxPyEndAllowThreads(__tstate); | |
22294 | if (PyErr_Occurred()) SWIG_fail; | |
22295 | } | |
22296 | { | |
22297 | wxTreeItemId * resultptr; | |
22298 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22299 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22300 | } | |
22301 | { | |
22302 | if (temp4) | |
22303 | delete arg4; | |
22304 | } | |
22305 | return resultobj; | |
22306 | fail: | |
22307 | { | |
22308 | if (temp4) | |
22309 | delete arg4; | |
22310 | } | |
22311 | return NULL; | |
22312 | } | |
22313 | ||
22314 | ||
22315 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22316 | PyObject *resultobj; | |
22317 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22318 | wxTreeItemId *arg2 = 0 ; | |
22319 | wxString *arg3 = 0 ; | |
22320 | int arg4 = (int) -1 ; | |
22321 | int arg5 = (int) -1 ; | |
22322 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
22323 | wxTreeItemId result; | |
e811c8ce | 22324 | bool temp3 = False ; |
d14a1e28 RD |
22325 | PyObject * obj0 = 0 ; |
22326 | PyObject * obj1 = 0 ; | |
22327 | PyObject * obj2 = 0 ; | |
22328 | PyObject * obj5 = 0 ; | |
22329 | char *kwnames[] = { | |
22330 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22331 | }; | |
22332 | ||
22333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|iiO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
22334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22335 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22336 | if (arg2 == NULL) { | |
22337 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22338 | } | |
22339 | { | |
22340 | arg3 = wxString_in_helper(obj2); | |
22341 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22342 | temp3 = True; |
d14a1e28 RD |
22343 | } |
22344 | if (obj5) { | |
22345 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22346 | } | |
22347 | { | |
22348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22349 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
22350 | ||
22351 | wxPyEndAllowThreads(__tstate); | |
22352 | if (PyErr_Occurred()) SWIG_fail; | |
22353 | } | |
22354 | { | |
22355 | wxTreeItemId * resultptr; | |
22356 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22357 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22358 | } | |
22359 | { | |
22360 | if (temp3) | |
22361 | delete arg3; | |
22362 | } | |
22363 | return resultobj; | |
22364 | fail: | |
22365 | { | |
22366 | if (temp3) | |
22367 | delete arg3; | |
22368 | } | |
22369 | return NULL; | |
22370 | } | |
22371 | ||
22372 | ||
22373 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22374 | PyObject *resultobj; | |
22375 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22376 | wxTreeItemId *arg2 = 0 ; | |
22377 | PyObject * obj0 = 0 ; | |
22378 | PyObject * obj1 = 0 ; | |
22379 | char *kwnames[] = { | |
22380 | (char *) "self",(char *) "item", NULL | |
22381 | }; | |
22382 | ||
22383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
22384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22385 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22386 | if (arg2 == NULL) { | |
22387 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22388 | } | |
22389 | { | |
22390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22391 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
22392 | ||
22393 | wxPyEndAllowThreads(__tstate); | |
22394 | if (PyErr_Occurred()) SWIG_fail; | |
22395 | } | |
22396 | Py_INCREF(Py_None); resultobj = Py_None; | |
22397 | return resultobj; | |
22398 | fail: | |
22399 | return NULL; | |
22400 | } | |
22401 | ||
22402 | ||
22403 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22404 | PyObject *resultobj; | |
22405 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22406 | wxTreeItemId *arg2 = 0 ; | |
22407 | PyObject * obj0 = 0 ; | |
22408 | PyObject * obj1 = 0 ; | |
22409 | char *kwnames[] = { | |
22410 | (char *) "self",(char *) "item", NULL | |
22411 | }; | |
22412 | ||
22413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
22414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22415 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22416 | if (arg2 == NULL) { | |
22417 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22418 | } | |
22419 | { | |
22420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22421 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
22422 | ||
22423 | wxPyEndAllowThreads(__tstate); | |
22424 | if (PyErr_Occurred()) SWIG_fail; | |
22425 | } | |
22426 | Py_INCREF(Py_None); resultobj = Py_None; | |
22427 | return resultobj; | |
22428 | fail: | |
22429 | return NULL; | |
22430 | } | |
22431 | ||
22432 | ||
22433 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22434 | PyObject *resultobj; | |
22435 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22436 | PyObject * obj0 = 0 ; | |
22437 | char *kwnames[] = { | |
22438 | (char *) "self", NULL | |
22439 | }; | |
22440 | ||
22441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
22442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22443 | { | |
22444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22445 | (arg1)->DeleteAllItems(); | |
22446 | ||
22447 | wxPyEndAllowThreads(__tstate); | |
22448 | if (PyErr_Occurred()) SWIG_fail; | |
22449 | } | |
22450 | Py_INCREF(Py_None); resultobj = Py_None; | |
22451 | return resultobj; | |
22452 | fail: | |
22453 | return NULL; | |
22454 | } | |
22455 | ||
22456 | ||
22457 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22458 | PyObject *resultobj; | |
22459 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22460 | wxTreeItemId *arg2 = 0 ; | |
22461 | PyObject * obj0 = 0 ; | |
22462 | PyObject * obj1 = 0 ; | |
22463 | char *kwnames[] = { | |
22464 | (char *) "self",(char *) "item", NULL | |
22465 | }; | |
22466 | ||
22467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
22468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22469 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22470 | if (arg2 == NULL) { | |
22471 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22472 | } | |
22473 | { | |
22474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22475 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
22476 | ||
22477 | wxPyEndAllowThreads(__tstate); | |
22478 | if (PyErr_Occurred()) SWIG_fail; | |
22479 | } | |
22480 | Py_INCREF(Py_None); resultobj = Py_None; | |
22481 | return resultobj; | |
22482 | fail: | |
22483 | return NULL; | |
22484 | } | |
22485 | ||
22486 | ||
22487 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22488 | PyObject *resultobj; | |
22489 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22490 | wxTreeItemId *arg2 = 0 ; | |
22491 | PyObject * obj0 = 0 ; | |
22492 | PyObject * obj1 = 0 ; | |
22493 | char *kwnames[] = { | |
22494 | (char *) "self",(char *) "item", NULL | |
22495 | }; | |
22496 | ||
22497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
22498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22499 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22500 | if (arg2 == NULL) { | |
22501 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22502 | } | |
22503 | { | |
22504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22505 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
22506 | ||
22507 | wxPyEndAllowThreads(__tstate); | |
22508 | if (PyErr_Occurred()) SWIG_fail; | |
22509 | } | |
22510 | Py_INCREF(Py_None); resultobj = Py_None; | |
22511 | return resultobj; | |
22512 | fail: | |
22513 | return NULL; | |
22514 | } | |
22515 | ||
22516 | ||
22517 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22518 | PyObject *resultobj; | |
22519 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22520 | wxTreeItemId *arg2 = 0 ; | |
22521 | PyObject * obj0 = 0 ; | |
22522 | PyObject * obj1 = 0 ; | |
22523 | char *kwnames[] = { | |
22524 | (char *) "self",(char *) "item", NULL | |
22525 | }; | |
22526 | ||
22527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
22528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22529 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22530 | if (arg2 == NULL) { | |
22531 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22532 | } | |
22533 | { | |
22534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22535 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
22536 | ||
22537 | wxPyEndAllowThreads(__tstate); | |
22538 | if (PyErr_Occurred()) SWIG_fail; | |
22539 | } | |
22540 | Py_INCREF(Py_None); resultobj = Py_None; | |
22541 | return resultobj; | |
22542 | fail: | |
22543 | return NULL; | |
22544 | } | |
22545 | ||
22546 | ||
22547 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22548 | PyObject *resultobj; | |
22549 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22550 | wxTreeItemId *arg2 = 0 ; | |
22551 | PyObject * obj0 = 0 ; | |
22552 | PyObject * obj1 = 0 ; | |
22553 | char *kwnames[] = { | |
22554 | (char *) "self",(char *) "item", NULL | |
22555 | }; | |
22556 | ||
22557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
22558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22559 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22560 | if (arg2 == NULL) { | |
22561 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22562 | } | |
22563 | { | |
22564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22565 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
22566 | ||
22567 | wxPyEndAllowThreads(__tstate); | |
22568 | if (PyErr_Occurred()) SWIG_fail; | |
22569 | } | |
22570 | Py_INCREF(Py_None); resultobj = Py_None; | |
22571 | return resultobj; | |
22572 | fail: | |
22573 | return NULL; | |
22574 | } | |
22575 | ||
22576 | ||
22577 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22578 | PyObject *resultobj; | |
22579 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22580 | PyObject * obj0 = 0 ; | |
22581 | char *kwnames[] = { | |
22582 | (char *) "self", NULL | |
22583 | }; | |
22584 | ||
22585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
22586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22587 | { | |
22588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22589 | (arg1)->Unselect(); | |
22590 | ||
22591 | wxPyEndAllowThreads(__tstate); | |
22592 | if (PyErr_Occurred()) SWIG_fail; | |
22593 | } | |
22594 | Py_INCREF(Py_None); resultobj = Py_None; | |
22595 | return resultobj; | |
22596 | fail: | |
22597 | return NULL; | |
22598 | } | |
22599 | ||
22600 | ||
22601 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22602 | PyObject *resultobj; | |
22603 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22604 | PyObject * obj0 = 0 ; | |
22605 | char *kwnames[] = { | |
22606 | (char *) "self", NULL | |
22607 | }; | |
22608 | ||
22609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
22610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22611 | { | |
22612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22613 | (arg1)->UnselectAll(); | |
22614 | ||
22615 | wxPyEndAllowThreads(__tstate); | |
22616 | if (PyErr_Occurred()) SWIG_fail; | |
22617 | } | |
22618 | Py_INCREF(Py_None); resultobj = Py_None; | |
22619 | return resultobj; | |
22620 | fail: | |
22621 | return NULL; | |
22622 | } | |
22623 | ||
22624 | ||
22625 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22626 | PyObject *resultobj; | |
22627 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22628 | wxTreeItemId *arg2 = 0 ; | |
22629 | PyObject * obj0 = 0 ; | |
22630 | PyObject * obj1 = 0 ; | |
22631 | char *kwnames[] = { | |
22632 | (char *) "self",(char *) "item", NULL | |
22633 | }; | |
22634 | ||
22635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SelectItem",kwnames,&obj0,&obj1)) goto fail; | |
22636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22637 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22638 | if (arg2 == NULL) { | |
22639 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22640 | } | |
22641 | { | |
22642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22643 | (arg1)->SelectItem((wxTreeItemId const &)*arg2); | |
22644 | ||
22645 | wxPyEndAllowThreads(__tstate); | |
22646 | if (PyErr_Occurred()) SWIG_fail; | |
22647 | } | |
22648 | Py_INCREF(Py_None); resultobj = Py_None; | |
22649 | return resultobj; | |
22650 | fail: | |
22651 | return NULL; | |
22652 | } | |
22653 | ||
22654 | ||
22655 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22656 | PyObject *resultobj; | |
22657 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22658 | wxTreeItemId *arg2 = 0 ; | |
22659 | PyObject * obj0 = 0 ; | |
22660 | PyObject * obj1 = 0 ; | |
22661 | char *kwnames[] = { | |
22662 | (char *) "self",(char *) "item", NULL | |
22663 | }; | |
22664 | ||
22665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
22666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22667 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22668 | if (arg2 == NULL) { | |
22669 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22670 | } | |
22671 | { | |
22672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22673 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
22674 | ||
22675 | wxPyEndAllowThreads(__tstate); | |
22676 | if (PyErr_Occurred()) SWIG_fail; | |
22677 | } | |
22678 | Py_INCREF(Py_None); resultobj = Py_None; | |
22679 | return resultobj; | |
22680 | fail: | |
22681 | return NULL; | |
22682 | } | |
22683 | ||
22684 | ||
22685 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22686 | PyObject *resultobj; | |
22687 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22688 | wxTreeItemId *arg2 = 0 ; | |
22689 | PyObject * obj0 = 0 ; | |
22690 | PyObject * obj1 = 0 ; | |
22691 | char *kwnames[] = { | |
22692 | (char *) "self",(char *) "item", NULL | |
22693 | }; | |
22694 | ||
22695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
22696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22697 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22698 | if (arg2 == NULL) { | |
22699 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22700 | } | |
22701 | { | |
22702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22703 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
22704 | ||
22705 | wxPyEndAllowThreads(__tstate); | |
22706 | if (PyErr_Occurred()) SWIG_fail; | |
22707 | } | |
22708 | Py_INCREF(Py_None); resultobj = Py_None; | |
22709 | return resultobj; | |
22710 | fail: | |
22711 | return NULL; | |
22712 | } | |
22713 | ||
22714 | ||
22715 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22716 | PyObject *resultobj; | |
22717 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22718 | wxTreeItemId *arg2 = 0 ; | |
22719 | PyObject * obj0 = 0 ; | |
22720 | PyObject * obj1 = 0 ; | |
22721 | char *kwnames[] = { | |
22722 | (char *) "self",(char *) "item", NULL | |
22723 | }; | |
22724 | ||
22725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
22726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22727 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22728 | if (arg2 == NULL) { | |
22729 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22730 | } | |
22731 | { | |
22732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22733 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
22734 | ||
22735 | wxPyEndAllowThreads(__tstate); | |
22736 | if (PyErr_Occurred()) SWIG_fail; | |
22737 | } | |
22738 | Py_INCREF(Py_None); resultobj = Py_None; | |
22739 | return resultobj; | |
22740 | fail: | |
22741 | return NULL; | |
22742 | } | |
22743 | ||
22744 | ||
22745 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22746 | PyObject *resultobj; | |
22747 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22748 | wxTextCtrl *result; | |
22749 | PyObject * obj0 = 0 ; | |
22750 | char *kwnames[] = { | |
22751 | (char *) "self", NULL | |
22752 | }; | |
22753 | ||
22754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
22755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22756 | { | |
22757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22758 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
22759 | ||
22760 | wxPyEndAllowThreads(__tstate); | |
22761 | if (PyErr_Occurred()) SWIG_fail; | |
22762 | } | |
22763 | { | |
22764 | resultobj = wxPyMake_wxObject(result); | |
22765 | } | |
22766 | return resultobj; | |
22767 | fail: | |
22768 | return NULL; | |
22769 | } | |
22770 | ||
22771 | ||
22772 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22773 | PyObject *resultobj; | |
22774 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22775 | wxTreeItemId *arg2 = 0 ; | |
22776 | PyObject * obj0 = 0 ; | |
22777 | PyObject * obj1 = 0 ; | |
22778 | char *kwnames[] = { | |
22779 | (char *) "self",(char *) "item", NULL | |
22780 | }; | |
22781 | ||
22782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
22783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22784 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22785 | if (arg2 == NULL) { | |
22786 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22787 | } | |
22788 | { | |
22789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22790 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
22791 | ||
22792 | wxPyEndAllowThreads(__tstate); | |
22793 | if (PyErr_Occurred()) SWIG_fail; | |
22794 | } | |
22795 | Py_INCREF(Py_None); resultobj = Py_None; | |
22796 | return resultobj; | |
22797 | fail: | |
22798 | return NULL; | |
22799 | } | |
22800 | ||
22801 | ||
22802 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22803 | PyObject *resultobj; | |
22804 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22805 | wxPoint *arg2 = 0 ; | |
22806 | int *arg3 = 0 ; | |
22807 | wxTreeItemId result; | |
22808 | wxPoint temp2 ; | |
22809 | int temp3 ; | |
22810 | PyObject * obj0 = 0 ; | |
22811 | PyObject * obj1 = 0 ; | |
22812 | char *kwnames[] = { | |
22813 | (char *) "self",(char *) "point", NULL | |
22814 | }; | |
22815 | ||
22816 | arg3 = &temp3; | |
22817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
22818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22819 | { | |
22820 | arg2 = &temp2; | |
22821 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22822 | } | |
22823 | { | |
22824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22825 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
22826 | ||
22827 | wxPyEndAllowThreads(__tstate); | |
22828 | if (PyErr_Occurred()) SWIG_fail; | |
22829 | } | |
22830 | { | |
22831 | wxTreeItemId * resultptr; | |
22832 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22833 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22834 | } | |
22835 | { | |
22836 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22837 | resultobj = t_output_helper(resultobj,o); | |
22838 | } | |
22839 | return resultobj; | |
22840 | fail: | |
22841 | return NULL; | |
22842 | } | |
22843 | ||
22844 | ||
22845 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22846 | PyObject *resultobj; | |
22847 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22848 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 22849 | bool arg3 = (bool) False ; |
d14a1e28 RD |
22850 | PyObject *result; |
22851 | PyObject * obj0 = 0 ; | |
22852 | PyObject * obj1 = 0 ; | |
22853 | PyObject * obj2 = 0 ; | |
22854 | char *kwnames[] = { | |
22855 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
22856 | }; | |
22857 | ||
22858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22860 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22861 | if (arg2 == NULL) { | |
22862 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22863 | } | |
22864 | if (obj2) { | |
22865 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
22866 | if (PyErr_Occurred()) SWIG_fail; | |
22867 | } | |
22868 | { | |
22869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22870 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
22871 | ||
22872 | wxPyEndAllowThreads(__tstate); | |
22873 | if (PyErr_Occurred()) SWIG_fail; | |
22874 | } | |
22875 | resultobj = result; | |
22876 | return resultobj; | |
22877 | fail: | |
22878 | return NULL; | |
22879 | } | |
22880 | ||
22881 | ||
22882 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
22883 | PyObject *obj; | |
22884 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22885 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
22886 | Py_INCREF(obj); | |
22887 | return Py_BuildValue((char *)""); | |
22888 | } | |
22889 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22890 | PyObject *resultobj; | |
22891 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22892 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
22893 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
22894 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
22895 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22896 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22897 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22898 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22899 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
22900 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
22901 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22902 | int arg8 = (int) 0 ; | |
22903 | wxString const &arg9_defvalue = wxPy_TreeCtrlNameStr ; | |
22904 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
22905 | wxGenericDirCtrl *result; | |
e811c8ce | 22906 | bool temp3 = False ; |
d14a1e28 RD |
22907 | wxPoint temp4 ; |
22908 | wxSize temp5 ; | |
e811c8ce RD |
22909 | bool temp7 = False ; |
22910 | bool temp9 = False ; | |
d14a1e28 RD |
22911 | PyObject * obj0 = 0 ; |
22912 | PyObject * obj2 = 0 ; | |
22913 | PyObject * obj3 = 0 ; | |
22914 | PyObject * obj4 = 0 ; | |
22915 | PyObject * obj6 = 0 ; | |
22916 | PyObject * obj8 = 0 ; | |
22917 | char *kwnames[] = { | |
22918 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
22919 | }; | |
22920 | ||
22921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOOlOiO:new_GenericDirCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&obj8)) goto fail; | |
22922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22923 | if (obj2) { | |
22924 | { | |
22925 | arg3 = wxString_in_helper(obj2); | |
22926 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22927 | temp3 = True; |
d14a1e28 RD |
22928 | } |
22929 | } | |
22930 | if (obj3) { | |
22931 | { | |
22932 | arg4 = &temp4; | |
22933 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22934 | } | |
22935 | } | |
22936 | if (obj4) { | |
22937 | { | |
22938 | arg5 = &temp5; | |
22939 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22940 | } | |
22941 | } | |
22942 | if (obj6) { | |
22943 | { | |
22944 | arg7 = wxString_in_helper(obj6); | |
22945 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 22946 | temp7 = True; |
d14a1e28 RD |
22947 | } |
22948 | } | |
22949 | if (obj8) { | |
22950 | { | |
22951 | arg9 = wxString_in_helper(obj8); | |
22952 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 22953 | temp9 = True; |
d14a1e28 RD |
22954 | } |
22955 | } | |
22956 | { | |
22957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22958 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
22959 | ||
22960 | wxPyEndAllowThreads(__tstate); | |
22961 | if (PyErr_Occurred()) SWIG_fail; | |
22962 | } | |
22963 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
22964 | { | |
22965 | if (temp3) | |
22966 | delete arg3; | |
22967 | } | |
22968 | { | |
22969 | if (temp7) | |
22970 | delete arg7; | |
22971 | } | |
22972 | { | |
22973 | if (temp9) | |
22974 | delete arg9; | |
22975 | } | |
22976 | return resultobj; | |
22977 | fail: | |
22978 | { | |
22979 | if (temp3) | |
22980 | delete arg3; | |
22981 | } | |
22982 | { | |
22983 | if (temp7) | |
22984 | delete arg7; | |
22985 | } | |
22986 | { | |
22987 | if (temp9) | |
22988 | delete arg9; | |
22989 | } | |
22990 | return NULL; | |
22991 | } | |
22992 | ||
22993 | ||
22994 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22995 | PyObject *resultobj; | |
22996 | wxGenericDirCtrl *result; | |
22997 | char *kwnames[] = { | |
22998 | NULL | |
22999 | }; | |
23000 | ||
23001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
23002 | { | |
23003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23004 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
23005 | ||
23006 | wxPyEndAllowThreads(__tstate); | |
23007 | if (PyErr_Occurred()) SWIG_fail; | |
23008 | } | |
23009 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
23010 | return resultobj; | |
23011 | fail: | |
23012 | return NULL; | |
23013 | } | |
23014 | ||
23015 | ||
23016 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23017 | PyObject *resultobj; | |
23018 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23019 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 23020 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
23021 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
23022 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
23023 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
23024 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
23025 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
23026 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
23027 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
23028 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23029 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23030 | int arg9 = (int) 0 ; | |
23031 | wxString const &arg10_defvalue = wxPy_TreeCtrlNameStr ; | |
23032 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
23033 | bool result; | |
e811c8ce | 23034 | bool temp4 = False ; |
d14a1e28 RD |
23035 | wxPoint temp5 ; |
23036 | wxSize temp6 ; | |
e811c8ce RD |
23037 | bool temp8 = False ; |
23038 | bool temp10 = False ; | |
d14a1e28 RD |
23039 | PyObject * obj0 = 0 ; |
23040 | PyObject * obj1 = 0 ; | |
23041 | PyObject * obj3 = 0 ; | |
23042 | PyObject * obj4 = 0 ; | |
23043 | PyObject * obj5 = 0 ; | |
23044 | PyObject * obj7 = 0 ; | |
23045 | PyObject * obj9 = 0 ; | |
23046 | char *kwnames[] = { | |
23047 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
23048 | }; | |
23049 | ||
23050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOOlOiO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&arg9,&obj9)) goto fail; | |
23051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23052 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23053 | if (obj3) { | |
23054 | { | |
23055 | arg4 = wxString_in_helper(obj3); | |
23056 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 23057 | temp4 = True; |
d14a1e28 RD |
23058 | } |
23059 | } | |
23060 | if (obj4) { | |
23061 | { | |
23062 | arg5 = &temp5; | |
23063 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
23064 | } | |
23065 | } | |
23066 | if (obj5) { | |
23067 | { | |
23068 | arg6 = &temp6; | |
23069 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
23070 | } | |
23071 | } | |
23072 | if (obj7) { | |
23073 | { | |
23074 | arg8 = wxString_in_helper(obj7); | |
23075 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 23076 | temp8 = True; |
d14a1e28 RD |
23077 | } |
23078 | } | |
23079 | if (obj9) { | |
23080 | { | |
23081 | arg10 = wxString_in_helper(obj9); | |
23082 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 23083 | temp10 = True; |
d14a1e28 RD |
23084 | } |
23085 | } | |
23086 | { | |
23087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23088 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
23089 | ||
23090 | wxPyEndAllowThreads(__tstate); | |
23091 | if (PyErr_Occurred()) SWIG_fail; | |
23092 | } | |
23093 | resultobj = PyInt_FromLong((long)result); | |
23094 | { | |
23095 | if (temp4) | |
23096 | delete arg4; | |
23097 | } | |
23098 | { | |
23099 | if (temp8) | |
23100 | delete arg8; | |
23101 | } | |
23102 | { | |
23103 | if (temp10) | |
23104 | delete arg10; | |
23105 | } | |
23106 | return resultobj; | |
23107 | fail: | |
23108 | { | |
23109 | if (temp4) | |
23110 | delete arg4; | |
23111 | } | |
23112 | { | |
23113 | if (temp8) | |
23114 | delete arg8; | |
23115 | } | |
23116 | { | |
23117 | if (temp10) | |
23118 | delete arg10; | |
23119 | } | |
23120 | return NULL; | |
23121 | } | |
23122 | ||
23123 | ||
23124 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23125 | PyObject *resultobj; | |
23126 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23127 | wxString *arg2 = 0 ; | |
23128 | bool result; | |
e811c8ce | 23129 | bool temp2 = False ; |
d14a1e28 RD |
23130 | PyObject * obj0 = 0 ; |
23131 | PyObject * obj1 = 0 ; | |
23132 | char *kwnames[] = { | |
23133 | (char *) "self",(char *) "path", NULL | |
23134 | }; | |
23135 | ||
23136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
23137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23138 | { | |
23139 | arg2 = wxString_in_helper(obj1); | |
23140 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23141 | temp2 = True; |
d14a1e28 RD |
23142 | } |
23143 | { | |
23144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23145 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
23146 | ||
23147 | wxPyEndAllowThreads(__tstate); | |
23148 | if (PyErr_Occurred()) SWIG_fail; | |
23149 | } | |
23150 | resultobj = PyInt_FromLong((long)result); | |
23151 | { | |
23152 | if (temp2) | |
23153 | delete arg2; | |
23154 | } | |
23155 | return resultobj; | |
23156 | fail: | |
23157 | { | |
23158 | if (temp2) | |
23159 | delete arg2; | |
23160 | } | |
23161 | return NULL; | |
23162 | } | |
23163 | ||
23164 | ||
23165 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23166 | PyObject *resultobj; | |
23167 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23168 | wxString result; | |
23169 | PyObject * obj0 = 0 ; | |
23170 | char *kwnames[] = { | |
23171 | (char *) "self", NULL | |
23172 | }; | |
23173 | ||
23174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
23175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23176 | { | |
23177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23178 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
23179 | ||
23180 | wxPyEndAllowThreads(__tstate); | |
23181 | if (PyErr_Occurred()) SWIG_fail; | |
23182 | } | |
23183 | { | |
23184 | #if wxUSE_UNICODE | |
23185 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23186 | #else | |
23187 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23188 | #endif | |
23189 | } | |
23190 | return resultobj; | |
23191 | fail: | |
23192 | return NULL; | |
23193 | } | |
23194 | ||
23195 | ||
23196 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23197 | PyObject *resultobj; | |
23198 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23199 | wxString *arg2 = 0 ; | |
e811c8ce | 23200 | bool temp2 = False ; |
d14a1e28 RD |
23201 | PyObject * obj0 = 0 ; |
23202 | PyObject * obj1 = 0 ; | |
23203 | char *kwnames[] = { | |
23204 | (char *) "self",(char *) "path", NULL | |
23205 | }; | |
23206 | ||
23207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
23208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23209 | { | |
23210 | arg2 = wxString_in_helper(obj1); | |
23211 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23212 | temp2 = True; |
d14a1e28 RD |
23213 | } |
23214 | { | |
23215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23216 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
23217 | ||
23218 | wxPyEndAllowThreads(__tstate); | |
23219 | if (PyErr_Occurred()) SWIG_fail; | |
23220 | } | |
23221 | Py_INCREF(Py_None); resultobj = Py_None; | |
23222 | { | |
23223 | if (temp2) | |
23224 | delete arg2; | |
23225 | } | |
23226 | return resultobj; | |
23227 | fail: | |
23228 | { | |
23229 | if (temp2) | |
23230 | delete arg2; | |
23231 | } | |
23232 | return NULL; | |
23233 | } | |
23234 | ||
23235 | ||
23236 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23237 | PyObject *resultobj; | |
23238 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23239 | wxString result; | |
23240 | PyObject * obj0 = 0 ; | |
23241 | char *kwnames[] = { | |
23242 | (char *) "self", NULL | |
23243 | }; | |
23244 | ||
23245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
23246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23247 | { | |
23248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23249 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
23250 | ||
23251 | wxPyEndAllowThreads(__tstate); | |
23252 | if (PyErr_Occurred()) SWIG_fail; | |
23253 | } | |
23254 | { | |
23255 | #if wxUSE_UNICODE | |
23256 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23257 | #else | |
23258 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23259 | #endif | |
23260 | } | |
23261 | return resultobj; | |
23262 | fail: | |
23263 | return NULL; | |
23264 | } | |
23265 | ||
23266 | ||
23267 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23268 | PyObject *resultobj; | |
23269 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23270 | wxString result; | |
23271 | PyObject * obj0 = 0 ; | |
23272 | char *kwnames[] = { | |
23273 | (char *) "self", NULL | |
23274 | }; | |
23275 | ||
23276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
23277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23278 | { | |
23279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23280 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
23281 | ||
23282 | wxPyEndAllowThreads(__tstate); | |
23283 | if (PyErr_Occurred()) SWIG_fail; | |
23284 | } | |
23285 | { | |
23286 | #if wxUSE_UNICODE | |
23287 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23288 | #else | |
23289 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23290 | #endif | |
23291 | } | |
23292 | return resultobj; | |
23293 | fail: | |
23294 | return NULL; | |
23295 | } | |
23296 | ||
23297 | ||
23298 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23299 | PyObject *resultobj; | |
23300 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23301 | wxString *arg2 = 0 ; | |
e811c8ce | 23302 | bool temp2 = False ; |
d14a1e28 RD |
23303 | PyObject * obj0 = 0 ; |
23304 | PyObject * obj1 = 0 ; | |
23305 | char *kwnames[] = { | |
23306 | (char *) "self",(char *) "path", NULL | |
23307 | }; | |
23308 | ||
23309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
23310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23311 | { | |
23312 | arg2 = wxString_in_helper(obj1); | |
23313 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23314 | temp2 = True; |
d14a1e28 RD |
23315 | } |
23316 | { | |
23317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23318 | (arg1)->SetPath((wxString const &)*arg2); | |
23319 | ||
23320 | wxPyEndAllowThreads(__tstate); | |
23321 | if (PyErr_Occurred()) SWIG_fail; | |
23322 | } | |
23323 | Py_INCREF(Py_None); resultobj = Py_None; | |
23324 | { | |
23325 | if (temp2) | |
23326 | delete arg2; | |
23327 | } | |
23328 | return resultobj; | |
23329 | fail: | |
23330 | { | |
23331 | if (temp2) | |
23332 | delete arg2; | |
23333 | } | |
23334 | return NULL; | |
23335 | } | |
23336 | ||
23337 | ||
23338 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23339 | PyObject *resultobj; | |
23340 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23341 | bool arg2 ; | |
23342 | PyObject * obj0 = 0 ; | |
23343 | PyObject * obj1 = 0 ; | |
23344 | char *kwnames[] = { | |
23345 | (char *) "self",(char *) "show", NULL | |
23346 | }; | |
23347 | ||
23348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
23349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23350 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
23351 | if (PyErr_Occurred()) SWIG_fail; | |
23352 | { | |
23353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23354 | (arg1)->ShowHidden(arg2); | |
23355 | ||
23356 | wxPyEndAllowThreads(__tstate); | |
23357 | if (PyErr_Occurred()) SWIG_fail; | |
23358 | } | |
23359 | Py_INCREF(Py_None); resultobj = Py_None; | |
23360 | return resultobj; | |
23361 | fail: | |
23362 | return NULL; | |
23363 | } | |
23364 | ||
23365 | ||
23366 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23367 | PyObject *resultobj; | |
23368 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23369 | bool result; | |
23370 | PyObject * obj0 = 0 ; | |
23371 | char *kwnames[] = { | |
23372 | (char *) "self", NULL | |
23373 | }; | |
23374 | ||
23375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",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 = (bool)(arg1)->GetShowHidden(); | |
23380 | ||
23381 | wxPyEndAllowThreads(__tstate); | |
23382 | if (PyErr_Occurred()) SWIG_fail; | |
23383 | } | |
23384 | resultobj = PyInt_FromLong((long)result); | |
23385 | return resultobj; | |
23386 | fail: | |
23387 | return NULL; | |
23388 | } | |
23389 | ||
23390 | ||
23391 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23392 | PyObject *resultobj; | |
23393 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23394 | wxString result; | |
23395 | PyObject * obj0 = 0 ; | |
23396 | char *kwnames[] = { | |
23397 | (char *) "self", NULL | |
23398 | }; | |
23399 | ||
23400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
23401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23402 | { | |
23403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23404 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
23405 | ||
23406 | wxPyEndAllowThreads(__tstate); | |
23407 | if (PyErr_Occurred()) SWIG_fail; | |
23408 | } | |
23409 | { | |
23410 | #if wxUSE_UNICODE | |
23411 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23412 | #else | |
23413 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23414 | #endif | |
23415 | } | |
23416 | return resultobj; | |
23417 | fail: | |
23418 | return NULL; | |
23419 | } | |
23420 | ||
23421 | ||
23422 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23423 | PyObject *resultobj; | |
23424 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23425 | wxString *arg2 = 0 ; | |
e811c8ce | 23426 | bool temp2 = False ; |
d14a1e28 RD |
23427 | PyObject * obj0 = 0 ; |
23428 | PyObject * obj1 = 0 ; | |
23429 | char *kwnames[] = { | |
23430 | (char *) "self",(char *) "filter", NULL | |
23431 | }; | |
23432 | ||
23433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
23434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23435 | { | |
23436 | arg2 = wxString_in_helper(obj1); | |
23437 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23438 | temp2 = True; |
d14a1e28 RD |
23439 | } |
23440 | { | |
23441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23442 | (arg1)->SetFilter((wxString const &)*arg2); | |
23443 | ||
23444 | wxPyEndAllowThreads(__tstate); | |
23445 | if (PyErr_Occurred()) SWIG_fail; | |
23446 | } | |
23447 | Py_INCREF(Py_None); resultobj = Py_None; | |
23448 | { | |
23449 | if (temp2) | |
23450 | delete arg2; | |
23451 | } | |
23452 | return resultobj; | |
23453 | fail: | |
23454 | { | |
23455 | if (temp2) | |
23456 | delete arg2; | |
23457 | } | |
23458 | return NULL; | |
23459 | } | |
23460 | ||
23461 | ||
23462 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23463 | PyObject *resultobj; | |
23464 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23465 | int result; | |
23466 | PyObject * obj0 = 0 ; | |
23467 | char *kwnames[] = { | |
23468 | (char *) "self", NULL | |
23469 | }; | |
23470 | ||
23471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) 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 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
23476 | ||
23477 | wxPyEndAllowThreads(__tstate); | |
23478 | if (PyErr_Occurred()) SWIG_fail; | |
23479 | } | |
23480 | resultobj = PyInt_FromLong((long)result); | |
23481 | return resultobj; | |
23482 | fail: | |
23483 | return NULL; | |
23484 | } | |
23485 | ||
23486 | ||
23487 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23488 | PyObject *resultobj; | |
23489 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23490 | int arg2 ; | |
23491 | PyObject * obj0 = 0 ; | |
23492 | char *kwnames[] = { | |
23493 | (char *) "self",(char *) "n", NULL | |
23494 | }; | |
23495 | ||
23496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&arg2)) 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 | (arg1)->SetFilterIndex(arg2); | |
23501 | ||
23502 | wxPyEndAllowThreads(__tstate); | |
23503 | if (PyErr_Occurred()) SWIG_fail; | |
23504 | } | |
23505 | Py_INCREF(Py_None); resultobj = Py_None; | |
23506 | return resultobj; | |
23507 | fail: | |
23508 | return NULL; | |
23509 | } | |
23510 | ||
23511 | ||
23512 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23513 | PyObject *resultobj; | |
23514 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23515 | wxTreeItemId result; | |
23516 | PyObject * obj0 = 0 ; | |
23517 | char *kwnames[] = { | |
23518 | (char *) "self", NULL | |
23519 | }; | |
23520 | ||
23521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
23522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23523 | { | |
23524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23525 | result = (arg1)->GetRootId(); | |
23526 | ||
23527 | wxPyEndAllowThreads(__tstate); | |
23528 | if (PyErr_Occurred()) SWIG_fail; | |
23529 | } | |
23530 | { | |
23531 | wxTreeItemId * resultptr; | |
23532 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23533 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23534 | } | |
23535 | return resultobj; | |
23536 | fail: | |
23537 | return NULL; | |
23538 | } | |
23539 | ||
23540 | ||
23541 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23542 | PyObject *resultobj; | |
23543 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23544 | wxTreeCtrl *result; | |
23545 | PyObject * obj0 = 0 ; | |
23546 | char *kwnames[] = { | |
23547 | (char *) "self", NULL | |
23548 | }; | |
23549 | ||
23550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
23551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23552 | { | |
23553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23554 | result = (wxTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
23555 | ||
23556 | wxPyEndAllowThreads(__tstate); | |
23557 | if (PyErr_Occurred()) SWIG_fail; | |
23558 | } | |
23559 | { | |
23560 | resultobj = wxPyMake_wxObject(result); | |
23561 | } | |
23562 | return resultobj; | |
23563 | fail: | |
23564 | return NULL; | |
23565 | } | |
23566 | ||
23567 | ||
23568 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23569 | PyObject *resultobj; | |
23570 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23571 | wxDirFilterListCtrl *result; | |
23572 | PyObject * obj0 = 0 ; | |
23573 | char *kwnames[] = { | |
23574 | (char *) "self", NULL | |
23575 | }; | |
23576 | ||
23577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
23578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23579 | { | |
23580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23581 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
23582 | ||
23583 | wxPyEndAllowThreads(__tstate); | |
23584 | if (PyErr_Occurred()) SWIG_fail; | |
23585 | } | |
23586 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
23587 | return resultobj; | |
23588 | fail: | |
23589 | return NULL; | |
23590 | } | |
23591 | ||
23592 | ||
23593 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23594 | PyObject *resultobj; | |
23595 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23596 | wxTreeItemId arg2 ; | |
23597 | wxString *arg3 = 0 ; | |
23598 | bool *arg4 = 0 ; | |
23599 | wxTreeItemId result; | |
23600 | wxTreeItemId *argp2 ; | |
e811c8ce | 23601 | bool temp3 = False ; |
d14a1e28 RD |
23602 | bool temp4 ; |
23603 | PyObject * obj0 = 0 ; | |
23604 | PyObject * obj1 = 0 ; | |
23605 | PyObject * obj2 = 0 ; | |
23606 | char *kwnames[] = { | |
23607 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
23608 | }; | |
23609 | ||
23610 | arg4 = &temp4; | |
23611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23613 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
23614 | arg2 = *argp2; | |
23615 | { | |
23616 | arg3 = wxString_in_helper(obj2); | |
23617 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23618 | temp3 = True; |
d14a1e28 RD |
23619 | } |
23620 | { | |
23621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23622 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
23623 | ||
23624 | wxPyEndAllowThreads(__tstate); | |
23625 | if (PyErr_Occurred()) SWIG_fail; | |
23626 | } | |
23627 | { | |
23628 | wxTreeItemId * resultptr; | |
23629 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23630 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23631 | } | |
23632 | { | |
23633 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
23634 | resultobj = t_output_helper(resultobj,o); | |
23635 | } | |
23636 | { | |
23637 | if (temp3) | |
23638 | delete arg3; | |
23639 | } | |
23640 | return resultobj; | |
23641 | fail: | |
23642 | { | |
23643 | if (temp3) | |
23644 | delete arg3; | |
23645 | } | |
23646 | return NULL; | |
23647 | } | |
23648 | ||
23649 | ||
23650 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23651 | PyObject *resultobj; | |
23652 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23653 | PyObject * obj0 = 0 ; | |
23654 | char *kwnames[] = { | |
23655 | (char *) "self", NULL | |
23656 | }; | |
23657 | ||
23658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
23659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23660 | { | |
23661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23662 | (arg1)->DoResize(); | |
23663 | ||
23664 | wxPyEndAllowThreads(__tstate); | |
23665 | if (PyErr_Occurred()) SWIG_fail; | |
23666 | } | |
23667 | Py_INCREF(Py_None); resultobj = Py_None; | |
23668 | return resultobj; | |
23669 | fail: | |
23670 | return NULL; | |
23671 | } | |
23672 | ||
23673 | ||
23674 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23675 | PyObject *resultobj; | |
23676 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23677 | PyObject * obj0 = 0 ; | |
23678 | char *kwnames[] = { | |
23679 | (char *) "self", NULL | |
23680 | }; | |
23681 | ||
23682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
23683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23684 | { | |
23685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23686 | (arg1)->ReCreateTree(); | |
23687 | ||
23688 | wxPyEndAllowThreads(__tstate); | |
23689 | if (PyErr_Occurred()) SWIG_fail; | |
23690 | } | |
23691 | Py_INCREF(Py_None); resultobj = Py_None; | |
23692 | return resultobj; | |
23693 | fail: | |
23694 | return NULL; | |
23695 | } | |
23696 | ||
23697 | ||
23698 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
23699 | PyObject *obj; | |
23700 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23701 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
23702 | Py_INCREF(obj); | |
23703 | return Py_BuildValue((char *)""); | |
23704 | } | |
23705 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23706 | PyObject *resultobj; | |
23707 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 23708 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
23709 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23710 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23711 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23712 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23713 | long arg5 = (long) 0 ; | |
23714 | wxDirFilterListCtrl *result; | |
23715 | wxPoint temp3 ; | |
23716 | wxSize temp4 ; | |
23717 | PyObject * obj0 = 0 ; | |
23718 | PyObject * obj2 = 0 ; | |
23719 | PyObject * obj3 = 0 ; | |
23720 | char *kwnames[] = { | |
23721 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
23722 | }; | |
23723 | ||
23724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOl:new_DirFilterListCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
23725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23726 | if (obj2) { | |
23727 | { | |
23728 | arg3 = &temp3; | |
23729 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23730 | } | |
23731 | } | |
23732 | if (obj3) { | |
23733 | { | |
23734 | arg4 = &temp4; | |
23735 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23736 | } | |
23737 | } | |
23738 | { | |
23739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23740 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
23741 | ||
23742 | wxPyEndAllowThreads(__tstate); | |
23743 | if (PyErr_Occurred()) SWIG_fail; | |
23744 | } | |
23745 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
23746 | return resultobj; | |
23747 | fail: | |
23748 | return NULL; | |
23749 | } | |
23750 | ||
23751 | ||
23752 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23753 | PyObject *resultobj; | |
23754 | wxDirFilterListCtrl *result; | |
23755 | char *kwnames[] = { | |
23756 | NULL | |
23757 | }; | |
23758 | ||
23759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
23760 | { | |
23761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23762 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
23763 | ||
23764 | wxPyEndAllowThreads(__tstate); | |
23765 | if (PyErr_Occurred()) SWIG_fail; | |
23766 | } | |
23767 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
23768 | return resultobj; | |
23769 | fail: | |
23770 | return NULL; | |
23771 | } | |
23772 | ||
23773 | ||
23774 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23775 | PyObject *resultobj; | |
23776 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
23777 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 23778 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
23779 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23780 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23781 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23782 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23783 | long arg6 = (long) 0 ; | |
23784 | bool result; | |
23785 | wxPoint temp4 ; | |
23786 | wxSize temp5 ; | |
23787 | PyObject * obj0 = 0 ; | |
23788 | PyObject * obj1 = 0 ; | |
23789 | PyObject * obj3 = 0 ; | |
23790 | PyObject * obj4 = 0 ; | |
23791 | char *kwnames[] = { | |
23792 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
23793 | }; | |
23794 | ||
23795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOl:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6)) goto fail; | |
23796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23797 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23798 | if (obj3) { | |
23799 | { | |
23800 | arg4 = &temp4; | |
23801 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23802 | } | |
23803 | } | |
23804 | if (obj4) { | |
23805 | { | |
23806 | arg5 = &temp5; | |
23807 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23808 | } | |
23809 | } | |
23810 | { | |
23811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23812 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
23813 | ||
23814 | wxPyEndAllowThreads(__tstate); | |
23815 | if (PyErr_Occurred()) SWIG_fail; | |
23816 | } | |
23817 | resultobj = PyInt_FromLong((long)result); | |
23818 | return resultobj; | |
23819 | fail: | |
23820 | return NULL; | |
23821 | } | |
23822 | ||
23823 | ||
23824 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23825 | PyObject *resultobj; | |
23826 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
23827 | wxString *arg2 = 0 ; | |
23828 | int arg3 ; | |
e811c8ce | 23829 | bool temp2 = False ; |
d14a1e28 RD |
23830 | PyObject * obj0 = 0 ; |
23831 | PyObject * obj1 = 0 ; | |
23832 | char *kwnames[] = { | |
23833 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
23834 | }; | |
23835 | ||
23836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
23837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23838 | { | |
23839 | arg2 = wxString_in_helper(obj1); | |
23840 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23841 | temp2 = True; |
d14a1e28 RD |
23842 | } |
23843 | { | |
23844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23845 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
23846 | ||
23847 | wxPyEndAllowThreads(__tstate); | |
23848 | if (PyErr_Occurred()) SWIG_fail; | |
23849 | } | |
23850 | Py_INCREF(Py_None); resultobj = Py_None; | |
23851 | { | |
23852 | if (temp2) | |
23853 | delete arg2; | |
23854 | } | |
23855 | return resultobj; | |
23856 | fail: | |
23857 | { | |
23858 | if (temp2) | |
23859 | delete arg2; | |
23860 | } | |
23861 | return NULL; | |
23862 | } | |
23863 | ||
23864 | ||
23865 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
23866 | PyObject *obj; | |
23867 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23868 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
23869 | Py_INCREF(obj); | |
23870 | return Py_BuildValue((char *)""); | |
23871 | } | |
23872 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23873 | PyObject *resultobj; | |
23874 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23875 | int arg2 ; |
d14a1e28 RD |
23876 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23877 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23878 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23879 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23880 | long arg5 = (long) 0 ; | |
23881 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23882 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23883 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
23884 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23885 | wxPyControl *result; | |
23886 | wxPoint temp3 ; | |
23887 | wxSize temp4 ; | |
e811c8ce | 23888 | bool temp7 = False ; |
d14a1e28 RD |
23889 | PyObject * obj0 = 0 ; |
23890 | PyObject * obj2 = 0 ; | |
23891 | PyObject * obj3 = 0 ; | |
23892 | PyObject * obj5 = 0 ; | |
23893 | PyObject * obj6 = 0 ; | |
23894 | char *kwnames[] = { | |
23895 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23896 | }; | |
23897 | ||
23898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlOO:new_PyControl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
23899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23900 | if (obj2) { | |
23901 | { | |
23902 | arg3 = &temp3; | |
23903 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23904 | } | |
23905 | } | |
23906 | if (obj3) { | |
23907 | { | |
23908 | arg4 = &temp4; | |
23909 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23910 | } | |
23911 | } | |
23912 | if (obj5) { | |
23913 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23914 | if (arg6 == NULL) { | |
23915 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23916 | } | |
23917 | } | |
23918 | if (obj6) { | |
23919 | { | |
23920 | arg7 = wxString_in_helper(obj6); | |
23921 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 23922 | temp7 = True; |
d14a1e28 RD |
23923 | } |
23924 | } | |
23925 | { | |
23926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23927 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23928 | ||
23929 | wxPyEndAllowThreads(__tstate); | |
23930 | if (PyErr_Occurred()) SWIG_fail; | |
23931 | } | |
23932 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
23933 | { | |
23934 | if (temp7) | |
23935 | delete arg7; | |
23936 | } | |
23937 | return resultobj; | |
23938 | fail: | |
23939 | { | |
23940 | if (temp7) | |
23941 | delete arg7; | |
23942 | } | |
23943 | return NULL; | |
23944 | } | |
23945 | ||
23946 | ||
23947 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23948 | PyObject *resultobj; | |
23949 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
23950 | PyObject *arg2 = (PyObject *) 0 ; | |
23951 | PyObject *arg3 = (PyObject *) 0 ; | |
23952 | PyObject * obj0 = 0 ; | |
23953 | PyObject * obj1 = 0 ; | |
23954 | PyObject * obj2 = 0 ; | |
23955 | char *kwnames[] = { | |
23956 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23957 | }; | |
23958 | ||
23959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23961 | arg2 = obj1; | |
23962 | arg3 = obj2; | |
23963 | { | |
23964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23965 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23966 | ||
23967 | wxPyEndAllowThreads(__tstate); | |
23968 | if (PyErr_Occurred()) SWIG_fail; | |
23969 | } | |
23970 | Py_INCREF(Py_None); resultobj = Py_None; | |
23971 | return resultobj; | |
23972 | fail: | |
23973 | return NULL; | |
23974 | } | |
23975 | ||
23976 | ||
23977 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23978 | PyObject *resultobj; | |
23979 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
23980 | int arg2 ; | |
23981 | int arg3 ; | |
23982 | int arg4 ; | |
23983 | int arg5 ; | |
23984 | PyObject * obj0 = 0 ; | |
23985 | char *kwnames[] = { | |
23986 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
23987 | }; | |
23988 | ||
23989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:PyControl_base_DoMoveWindow",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
23990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23991 | { | |
23992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23993 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
23994 | ||
23995 | wxPyEndAllowThreads(__tstate); | |
23996 | if (PyErr_Occurred()) SWIG_fail; | |
23997 | } | |
23998 | Py_INCREF(Py_None); resultobj = Py_None; | |
23999 | return resultobj; | |
24000 | fail: | |
24001 | return NULL; | |
24002 | } | |
24003 | ||
24004 | ||
24005 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24006 | PyObject *resultobj; | |
24007 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24008 | int arg2 ; | |
24009 | int arg3 ; | |
24010 | int arg4 ; | |
24011 | int arg5 ; | |
24012 | int arg6 = (int) wxSIZE_AUTO ; | |
24013 | PyObject * obj0 = 0 ; | |
24014 | char *kwnames[] = { | |
24015 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
24016 | }; | |
24017 | ||
24018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|i:PyControl_base_DoSetSize",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
24019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24020 | { | |
24021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24022 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
24023 | ||
24024 | wxPyEndAllowThreads(__tstate); | |
24025 | if (PyErr_Occurred()) SWIG_fail; | |
24026 | } | |
24027 | Py_INCREF(Py_None); resultobj = Py_None; | |
24028 | return resultobj; | |
24029 | fail: | |
24030 | return NULL; | |
24031 | } | |
24032 | ||
24033 | ||
24034 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24035 | PyObject *resultobj; | |
24036 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24037 | int arg2 ; | |
24038 | int arg3 ; | |
24039 | PyObject * obj0 = 0 ; | |
24040 | char *kwnames[] = { | |
24041 | (char *) "self",(char *) "width",(char *) "height", NULL | |
24042 | }; | |
24043 | ||
24044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyControl_base_DoSetClientSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24046 | { | |
24047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24048 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
24049 | ||
24050 | wxPyEndAllowThreads(__tstate); | |
24051 | if (PyErr_Occurred()) SWIG_fail; | |
24052 | } | |
24053 | Py_INCREF(Py_None); resultobj = Py_None; | |
24054 | return resultobj; | |
24055 | fail: | |
24056 | return NULL; | |
24057 | } | |
24058 | ||
24059 | ||
24060 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24061 | PyObject *resultobj; | |
24062 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24063 | int arg2 ; | |
24064 | int arg3 ; | |
24065 | PyObject * obj0 = 0 ; | |
24066 | char *kwnames[] = { | |
24067 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24068 | }; | |
24069 | ||
24070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24072 | { | |
24073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24074 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
24075 | ||
24076 | wxPyEndAllowThreads(__tstate); | |
24077 | if (PyErr_Occurred()) SWIG_fail; | |
24078 | } | |
24079 | Py_INCREF(Py_None); resultobj = Py_None; | |
24080 | return resultobj; | |
24081 | fail: | |
24082 | return NULL; | |
24083 | } | |
24084 | ||
24085 | ||
24086 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24087 | PyObject *resultobj; | |
24088 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24089 | int *arg2 = (int *) 0 ; | |
24090 | int *arg3 = (int *) 0 ; | |
24091 | int temp2 ; | |
24092 | int temp3 ; | |
24093 | PyObject * obj0 = 0 ; | |
24094 | char *kwnames[] = { | |
24095 | (char *) "self", NULL | |
24096 | }; | |
24097 | ||
24098 | arg2 = &temp2; | |
24099 | arg3 = &temp3; | |
24100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
24101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24102 | { | |
24103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24104 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
24105 | ||
24106 | wxPyEndAllowThreads(__tstate); | |
24107 | if (PyErr_Occurred()) SWIG_fail; | |
24108 | } | |
24109 | Py_INCREF(Py_None); resultobj = Py_None; | |
24110 | { | |
24111 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
24112 | resultobj = t_output_helper(resultobj,o); | |
24113 | } | |
24114 | { | |
24115 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24116 | resultobj = t_output_helper(resultobj,o); | |
24117 | } | |
24118 | return resultobj; | |
24119 | fail: | |
24120 | return NULL; | |
24121 | } | |
24122 | ||
24123 | ||
24124 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24125 | PyObject *resultobj; | |
24126 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24127 | int *arg2 = (int *) 0 ; | |
24128 | int *arg3 = (int *) 0 ; | |
24129 | int temp2 ; | |
24130 | int temp3 ; | |
24131 | PyObject * obj0 = 0 ; | |
24132 | char *kwnames[] = { | |
24133 | (char *) "self", NULL | |
24134 | }; | |
24135 | ||
24136 | arg2 = &temp2; | |
24137 | arg3 = &temp3; | |
24138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
24139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24140 | { | |
24141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24142 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
24143 | ||
24144 | wxPyEndAllowThreads(__tstate); | |
24145 | if (PyErr_Occurred()) SWIG_fail; | |
24146 | } | |
24147 | Py_INCREF(Py_None); resultobj = Py_None; | |
24148 | { | |
24149 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
24150 | resultobj = t_output_helper(resultobj,o); | |
24151 | } | |
24152 | { | |
24153 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24154 | resultobj = t_output_helper(resultobj,o); | |
24155 | } | |
24156 | return resultobj; | |
24157 | fail: | |
24158 | return NULL; | |
24159 | } | |
24160 | ||
24161 | ||
24162 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24163 | PyObject *resultobj; | |
24164 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24165 | int *arg2 = (int *) 0 ; | |
24166 | int *arg3 = (int *) 0 ; | |
24167 | int temp2 ; | |
24168 | int temp3 ; | |
24169 | PyObject * obj0 = 0 ; | |
24170 | char *kwnames[] = { | |
24171 | (char *) "self", NULL | |
24172 | }; | |
24173 | ||
24174 | arg2 = &temp2; | |
24175 | arg3 = &temp3; | |
24176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
24177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24178 | { | |
24179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24180 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
24181 | ||
24182 | wxPyEndAllowThreads(__tstate); | |
24183 | if (PyErr_Occurred()) SWIG_fail; | |
24184 | } | |
24185 | Py_INCREF(Py_None); resultobj = Py_None; | |
24186 | { | |
24187 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
24188 | resultobj = t_output_helper(resultobj,o); | |
24189 | } | |
24190 | { | |
24191 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24192 | resultobj = t_output_helper(resultobj,o); | |
24193 | } | |
24194 | return resultobj; | |
24195 | fail: | |
24196 | return NULL; | |
24197 | } | |
24198 | ||
24199 | ||
24200 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24201 | PyObject *resultobj; | |
24202 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24203 | wxSize result; | |
24204 | PyObject * obj0 = 0 ; | |
24205 | char *kwnames[] = { | |
24206 | (char *) "self", NULL | |
24207 | }; | |
24208 | ||
24209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
24210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24211 | { | |
24212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24213 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
24214 | ||
24215 | wxPyEndAllowThreads(__tstate); | |
24216 | if (PyErr_Occurred()) SWIG_fail; | |
24217 | } | |
24218 | { | |
24219 | wxSize * resultptr; | |
24220 | resultptr = new wxSize((wxSize &) result); | |
24221 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24222 | } | |
24223 | return resultobj; | |
24224 | fail: | |
24225 | return NULL; | |
24226 | } | |
24227 | ||
24228 | ||
24229 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24230 | PyObject *resultobj; | |
24231 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24232 | wxSize result; | |
24233 | PyObject * obj0 = 0 ; | |
24234 | char *kwnames[] = { | |
24235 | (char *) "self", NULL | |
24236 | }; | |
24237 | ||
24238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
24239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24240 | { | |
24241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24242 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
24243 | ||
24244 | wxPyEndAllowThreads(__tstate); | |
24245 | if (PyErr_Occurred()) SWIG_fail; | |
24246 | } | |
24247 | { | |
24248 | wxSize * resultptr; | |
24249 | resultptr = new wxSize((wxSize &) result); | |
24250 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24251 | } | |
24252 | return resultobj; | |
24253 | fail: | |
24254 | return NULL; | |
24255 | } | |
24256 | ||
24257 | ||
24258 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24259 | PyObject *resultobj; | |
24260 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24261 | PyObject * obj0 = 0 ; | |
24262 | char *kwnames[] = { | |
24263 | (char *) "self", NULL | |
24264 | }; | |
24265 | ||
24266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",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 | (arg1)->base_InitDialog(); | |
24271 | ||
24272 | wxPyEndAllowThreads(__tstate); | |
24273 | if (PyErr_Occurred()) SWIG_fail; | |
24274 | } | |
24275 | Py_INCREF(Py_None); resultobj = Py_None; | |
24276 | return resultobj; | |
24277 | fail: | |
24278 | return NULL; | |
24279 | } | |
24280 | ||
24281 | ||
24282 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(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_TransferDataToWindow",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_TransferDataToWindow(); | |
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_TransferDataFromWindow(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_TransferDataFromWindow",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_TransferDataFromWindow(); | |
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_Validate(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_Validate",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)(arg1)->base_Validate(); | |
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_AcceptsFocus(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_AcceptsFocus",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_AcceptsFocus(); | |
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_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24383 | PyObject *resultobj; | |
24384 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24385 | bool result; | |
24386 | PyObject * obj0 = 0 ; | |
24387 | char *kwnames[] = { | |
24388 | (char *) "self", NULL | |
24389 | }; | |
24390 | ||
24391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",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 = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
24396 | ||
24397 | wxPyEndAllowThreads(__tstate); | |
24398 | if (PyErr_Occurred()) SWIG_fail; | |
24399 | } | |
24400 | resultobj = PyInt_FromLong((long)result); | |
24401 | return resultobj; | |
24402 | fail: | |
24403 | return NULL; | |
24404 | } | |
24405 | ||
24406 | ||
24407 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24408 | PyObject *resultobj; | |
24409 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24410 | wxSize result; | |
24411 | PyObject * obj0 = 0 ; | |
24412 | char *kwnames[] = { | |
24413 | (char *) "self", NULL | |
24414 | }; | |
24415 | ||
24416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
24417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24418 | { | |
24419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24420 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
24421 | ||
24422 | wxPyEndAllowThreads(__tstate); | |
24423 | if (PyErr_Occurred()) SWIG_fail; | |
24424 | } | |
24425 | { | |
24426 | wxSize * resultptr; | |
24427 | resultptr = new wxSize((wxSize &) result); | |
24428 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24429 | } | |
24430 | return resultobj; | |
24431 | fail: | |
24432 | return NULL; | |
24433 | } | |
24434 | ||
24435 | ||
24436 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24437 | PyObject *resultobj; | |
24438 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24439 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24440 | PyObject * obj0 = 0 ; | |
24441 | PyObject * obj1 = 0 ; | |
24442 | char *kwnames[] = { | |
24443 | (char *) "self",(char *) "child", NULL | |
24444 | }; | |
24445 | ||
24446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
24447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24448 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24449 | { | |
24450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24451 | (arg1)->base_AddChild(arg2); | |
24452 | ||
24453 | wxPyEndAllowThreads(__tstate); | |
24454 | if (PyErr_Occurred()) SWIG_fail; | |
24455 | } | |
24456 | Py_INCREF(Py_None); resultobj = Py_None; | |
24457 | return resultobj; | |
24458 | fail: | |
24459 | return NULL; | |
24460 | } | |
24461 | ||
24462 | ||
24463 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24464 | PyObject *resultobj; | |
24465 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24466 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24467 | PyObject * obj0 = 0 ; | |
24468 | PyObject * obj1 = 0 ; | |
24469 | char *kwnames[] = { | |
24470 | (char *) "self",(char *) "child", NULL | |
24471 | }; | |
24472 | ||
24473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
24474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24475 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24476 | { | |
24477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24478 | (arg1)->base_RemoveChild(arg2); | |
24479 | ||
24480 | wxPyEndAllowThreads(__tstate); | |
24481 | if (PyErr_Occurred()) SWIG_fail; | |
24482 | } | |
24483 | Py_INCREF(Py_None); resultobj = Py_None; | |
24484 | return resultobj; | |
24485 | fail: | |
24486 | return NULL; | |
24487 | } | |
24488 | ||
24489 | ||
24490 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
24491 | PyObject *obj; | |
24492 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24493 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
24494 | Py_INCREF(obj); | |
24495 | return Py_BuildValue((char *)""); | |
24496 | } | |
24497 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24498 | PyObject *resultobj; | |
24499 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 24500 | int arg2 = (int) 0 ; |
d14a1e28 RD |
24501 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24502 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24503 | wxHelpEvent *result; | |
24504 | wxPoint temp3 ; | |
24505 | PyObject * obj2 = 0 ; | |
24506 | char *kwnames[] = { | |
24507 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
24508 | }; | |
24509 | ||
24510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_HelpEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
24511 | if (obj2) { | |
24512 | { | |
24513 | arg3 = &temp3; | |
24514 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24515 | } | |
24516 | } | |
24517 | { | |
24518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24519 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
24520 | ||
24521 | wxPyEndAllowThreads(__tstate); | |
24522 | if (PyErr_Occurred()) SWIG_fail; | |
24523 | } | |
24524 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
24525 | return resultobj; | |
24526 | fail: | |
24527 | return NULL; | |
24528 | } | |
24529 | ||
24530 | ||
24531 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24532 | PyObject *resultobj; | |
24533 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24534 | wxPoint *result; | |
24535 | PyObject * obj0 = 0 ; | |
24536 | char *kwnames[] = { | |
24537 | (char *) "self", NULL | |
24538 | }; | |
24539 | ||
24540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
24541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24542 | { | |
24543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24544 | { | |
24545 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
24546 | result = (wxPoint *) &_result_ref; | |
24547 | } | |
24548 | ||
24549 | wxPyEndAllowThreads(__tstate); | |
24550 | if (PyErr_Occurred()) SWIG_fail; | |
24551 | } | |
24552 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
24553 | return resultobj; | |
24554 | fail: | |
24555 | return NULL; | |
24556 | } | |
24557 | ||
24558 | ||
24559 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24560 | PyObject *resultobj; | |
24561 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24562 | wxPoint *arg2 = 0 ; | |
24563 | wxPoint temp2 ; | |
24564 | PyObject * obj0 = 0 ; | |
24565 | PyObject * obj1 = 0 ; | |
24566 | char *kwnames[] = { | |
24567 | (char *) "self",(char *) "pos", NULL | |
24568 | }; | |
24569 | ||
24570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
24571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24572 | { | |
24573 | arg2 = &temp2; | |
24574 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24575 | } | |
24576 | { | |
24577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24578 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
24579 | ||
24580 | wxPyEndAllowThreads(__tstate); | |
24581 | if (PyErr_Occurred()) SWIG_fail; | |
24582 | } | |
24583 | Py_INCREF(Py_None); resultobj = Py_None; | |
24584 | return resultobj; | |
24585 | fail: | |
24586 | return NULL; | |
24587 | } | |
24588 | ||
24589 | ||
24590 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24591 | PyObject *resultobj; | |
24592 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24593 | wxString *result; | |
24594 | PyObject * obj0 = 0 ; | |
24595 | char *kwnames[] = { | |
24596 | (char *) "self", NULL | |
24597 | }; | |
24598 | ||
24599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
24600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24601 | { | |
24602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24603 | { | |
24604 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
24605 | result = (wxString *) &_result_ref; | |
24606 | } | |
24607 | ||
24608 | wxPyEndAllowThreads(__tstate); | |
24609 | if (PyErr_Occurred()) SWIG_fail; | |
24610 | } | |
24611 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
24612 | return resultobj; | |
24613 | fail: | |
24614 | return NULL; | |
24615 | } | |
24616 | ||
24617 | ||
24618 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24619 | PyObject *resultobj; | |
24620 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24621 | wxString *arg2 = 0 ; | |
e811c8ce | 24622 | bool temp2 = False ; |
d14a1e28 RD |
24623 | PyObject * obj0 = 0 ; |
24624 | PyObject * obj1 = 0 ; | |
24625 | char *kwnames[] = { | |
24626 | (char *) "self",(char *) "link", NULL | |
24627 | }; | |
24628 | ||
24629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
24630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24631 | { | |
24632 | arg2 = wxString_in_helper(obj1); | |
24633 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24634 | temp2 = True; |
d14a1e28 RD |
24635 | } |
24636 | { | |
24637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24638 | (arg1)->SetLink((wxString const &)*arg2); | |
24639 | ||
24640 | wxPyEndAllowThreads(__tstate); | |
24641 | if (PyErr_Occurred()) SWIG_fail; | |
24642 | } | |
24643 | Py_INCREF(Py_None); resultobj = Py_None; | |
24644 | { | |
24645 | if (temp2) | |
24646 | delete arg2; | |
24647 | } | |
24648 | return resultobj; | |
24649 | fail: | |
24650 | { | |
24651 | if (temp2) | |
24652 | delete arg2; | |
24653 | } | |
24654 | return NULL; | |
24655 | } | |
24656 | ||
24657 | ||
24658 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24659 | PyObject *resultobj; | |
24660 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24661 | wxString *result; | |
24662 | PyObject * obj0 = 0 ; | |
24663 | char *kwnames[] = { | |
24664 | (char *) "self", NULL | |
24665 | }; | |
24666 | ||
24667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
24668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24669 | { | |
24670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24671 | { | |
24672 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
24673 | result = (wxString *) &_result_ref; | |
24674 | } | |
24675 | ||
24676 | wxPyEndAllowThreads(__tstate); | |
24677 | if (PyErr_Occurred()) SWIG_fail; | |
24678 | } | |
24679 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
24680 | return resultobj; | |
24681 | fail: | |
24682 | return NULL; | |
24683 | } | |
24684 | ||
24685 | ||
24686 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24687 | PyObject *resultobj; | |
24688 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24689 | wxString *arg2 = 0 ; | |
e811c8ce | 24690 | bool temp2 = False ; |
d14a1e28 RD |
24691 | PyObject * obj0 = 0 ; |
24692 | PyObject * obj1 = 0 ; | |
24693 | char *kwnames[] = { | |
24694 | (char *) "self",(char *) "target", NULL | |
24695 | }; | |
24696 | ||
24697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
24698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24699 | { | |
24700 | arg2 = wxString_in_helper(obj1); | |
24701 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24702 | temp2 = True; |
d14a1e28 RD |
24703 | } |
24704 | { | |
24705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24706 | (arg1)->SetTarget((wxString const &)*arg2); | |
24707 | ||
24708 | wxPyEndAllowThreads(__tstate); | |
24709 | if (PyErr_Occurred()) SWIG_fail; | |
24710 | } | |
24711 | Py_INCREF(Py_None); resultobj = Py_None; | |
24712 | { | |
24713 | if (temp2) | |
24714 | delete arg2; | |
24715 | } | |
24716 | return resultobj; | |
24717 | fail: | |
24718 | { | |
24719 | if (temp2) | |
24720 | delete arg2; | |
24721 | } | |
24722 | return NULL; | |
24723 | } | |
24724 | ||
24725 | ||
24726 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
24727 | PyObject *obj; | |
24728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24729 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
24730 | Py_INCREF(obj); | |
24731 | return Py_BuildValue((char *)""); | |
24732 | } | |
24733 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24734 | PyObject *resultobj; | |
24735 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 24736 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24737 | wxContextHelp *result; |
24738 | PyObject * obj0 = 0 ; | |
24739 | PyObject * obj1 = 0 ; | |
24740 | char *kwnames[] = { | |
24741 | (char *) "window",(char *) "doNow", NULL | |
24742 | }; | |
24743 | ||
24744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
24745 | if (obj0) { | |
24746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24747 | } | |
24748 | if (obj1) { | |
24749 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
24750 | if (PyErr_Occurred()) SWIG_fail; | |
24751 | } | |
24752 | { | |
24753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24754 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
24755 | ||
24756 | wxPyEndAllowThreads(__tstate); | |
24757 | if (PyErr_Occurred()) SWIG_fail; | |
24758 | } | |
24759 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
24760 | return resultobj; | |
24761 | fail: | |
24762 | return NULL; | |
24763 | } | |
24764 | ||
24765 | ||
24766 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24767 | PyObject *resultobj; | |
24768 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
24769 | PyObject * obj0 = 0 ; | |
24770 | char *kwnames[] = { | |
24771 | (char *) "self", NULL | |
24772 | }; | |
24773 | ||
24774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
24775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24776 | { | |
24777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24778 | delete arg1; | |
24779 | ||
24780 | wxPyEndAllowThreads(__tstate); | |
24781 | if (PyErr_Occurred()) SWIG_fail; | |
24782 | } | |
24783 | Py_INCREF(Py_None); resultobj = Py_None; | |
24784 | return resultobj; | |
24785 | fail: | |
24786 | return NULL; | |
24787 | } | |
24788 | ||
24789 | ||
24790 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24791 | PyObject *resultobj; | |
24792 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
24793 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24794 | bool result; | |
24795 | PyObject * obj0 = 0 ; | |
24796 | PyObject * obj1 = 0 ; | |
24797 | char *kwnames[] = { | |
24798 | (char *) "self",(char *) "window", NULL | |
24799 | }; | |
24800 | ||
24801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
24802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24803 | if (obj1) { | |
24804 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24805 | } | |
24806 | { | |
24807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24808 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
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 *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24821 | PyObject *resultobj; | |
24822 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
24823 | bool result; | |
24824 | PyObject * obj0 = 0 ; | |
24825 | char *kwnames[] = { | |
24826 | (char *) "self", NULL | |
24827 | }; | |
24828 | ||
24829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
24830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24831 | { | |
24832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24833 | result = (bool)(arg1)->EndContextHelp(); | |
24834 | ||
24835 | wxPyEndAllowThreads(__tstate); | |
24836 | if (PyErr_Occurred()) SWIG_fail; | |
24837 | } | |
24838 | resultobj = PyInt_FromLong((long)result); | |
24839 | return resultobj; | |
24840 | fail: | |
24841 | return NULL; | |
24842 | } | |
24843 | ||
24844 | ||
24845 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
24846 | PyObject *obj; | |
24847 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24848 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
24849 | Py_INCREF(obj); | |
24850 | return Py_BuildValue((char *)""); | |
24851 | } | |
24852 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24853 | PyObject *resultobj; | |
24854 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24855 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
24856 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24857 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24858 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24859 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24860 | long arg5 = (long) wxBU_AUTODRAW ; | |
24861 | wxContextHelpButton *result; | |
24862 | wxPoint temp3 ; | |
24863 | wxSize temp4 ; | |
24864 | PyObject * obj0 = 0 ; | |
24865 | PyObject * obj2 = 0 ; | |
24866 | PyObject * obj3 = 0 ; | |
24867 | char *kwnames[] = { | |
24868 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
24869 | }; | |
24870 | ||
24871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOl:new_ContextHelpButton",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
24872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24873 | if (obj2) { | |
24874 | { | |
24875 | arg3 = &temp3; | |
24876 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24877 | } | |
24878 | } | |
24879 | if (obj3) { | |
24880 | { | |
24881 | arg4 = &temp4; | |
24882 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24883 | } | |
24884 | } | |
24885 | { | |
24886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24887 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
24888 | ||
24889 | wxPyEndAllowThreads(__tstate); | |
24890 | if (PyErr_Occurred()) SWIG_fail; | |
24891 | } | |
24892 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
24893 | return resultobj; | |
24894 | fail: | |
24895 | return NULL; | |
24896 | } | |
24897 | ||
24898 | ||
24899 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
24900 | PyObject *obj; | |
24901 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24902 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
24903 | Py_INCREF(obj); | |
24904 | return Py_BuildValue((char *)""); | |
24905 | } | |
24906 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24907 | PyObject *resultobj; | |
24908 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
24909 | wxHelpProvider *result; | |
24910 | PyObject * obj0 = 0 ; | |
24911 | char *kwnames[] = { | |
24912 | (char *) "helpProvider", NULL | |
24913 | }; | |
24914 | ||
24915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
24916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24917 | { | |
24918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24919 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
24920 | ||
24921 | wxPyEndAllowThreads(__tstate); | |
24922 | if (PyErr_Occurred()) SWIG_fail; | |
24923 | } | |
24924 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
24925 | return resultobj; | |
24926 | fail: | |
24927 | return NULL; | |
24928 | } | |
24929 | ||
24930 | ||
24931 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24932 | PyObject *resultobj; | |
24933 | wxHelpProvider *result; | |
24934 | char *kwnames[] = { | |
24935 | NULL | |
24936 | }; | |
24937 | ||
24938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
24939 | { | |
24940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24941 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
24942 | ||
24943 | wxPyEndAllowThreads(__tstate); | |
24944 | if (PyErr_Occurred()) SWIG_fail; | |
24945 | } | |
24946 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
24947 | return resultobj; | |
24948 | fail: | |
24949 | return NULL; | |
24950 | } | |
24951 | ||
24952 | ||
24953 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24954 | PyObject *resultobj; | |
24955 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
24956 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24957 | wxString result; | |
24958 | PyObject * obj0 = 0 ; | |
24959 | PyObject * obj1 = 0 ; | |
24960 | char *kwnames[] = { | |
24961 | (char *) "self",(char *) "window", NULL | |
24962 | }; | |
24963 | ||
24964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
24965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24966 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24967 | { | |
24968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24969 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
24970 | ||
24971 | wxPyEndAllowThreads(__tstate); | |
24972 | if (PyErr_Occurred()) SWIG_fail; | |
24973 | } | |
24974 | { | |
24975 | #if wxUSE_UNICODE | |
24976 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24977 | #else | |
24978 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24979 | #endif | |
24980 | } | |
24981 | return resultobj; | |
24982 | fail: | |
24983 | return NULL; | |
24984 | } | |
24985 | ||
24986 | ||
24987 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24988 | PyObject *resultobj; | |
24989 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
24990 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24991 | bool result; | |
24992 | PyObject * obj0 = 0 ; | |
24993 | PyObject * obj1 = 0 ; | |
24994 | char *kwnames[] = { | |
24995 | (char *) "self",(char *) "window", NULL | |
24996 | }; | |
24997 | ||
24998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
24999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25000 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25001 | { | |
25002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25003 | result = (bool)(arg1)->ShowHelp(arg2); | |
25004 | ||
25005 | wxPyEndAllowThreads(__tstate); | |
25006 | if (PyErr_Occurred()) SWIG_fail; | |
25007 | } | |
25008 | resultobj = PyInt_FromLong((long)result); | |
25009 | return resultobj; | |
25010 | fail: | |
25011 | return NULL; | |
25012 | } | |
25013 | ||
25014 | ||
25015 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25016 | PyObject *resultobj; | |
25017 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25018 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25019 | wxString *arg3 = 0 ; | |
e811c8ce | 25020 | bool temp3 = False ; |
d14a1e28 RD |
25021 | PyObject * obj0 = 0 ; |
25022 | PyObject * obj1 = 0 ; | |
25023 | PyObject * obj2 = 0 ; | |
25024 | char *kwnames[] = { | |
25025 | (char *) "self",(char *) "window",(char *) "text", NULL | |
25026 | }; | |
25027 | ||
25028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25030 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25031 | { | |
25032 | arg3 = wxString_in_helper(obj2); | |
25033 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25034 | temp3 = True; |
d14a1e28 RD |
25035 | } |
25036 | { | |
25037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25038 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
25039 | ||
25040 | wxPyEndAllowThreads(__tstate); | |
25041 | if (PyErr_Occurred()) SWIG_fail; | |
25042 | } | |
25043 | Py_INCREF(Py_None); resultobj = Py_None; | |
25044 | { | |
25045 | if (temp3) | |
25046 | delete arg3; | |
25047 | } | |
25048 | return resultobj; | |
25049 | fail: | |
25050 | { | |
25051 | if (temp3) | |
25052 | delete arg3; | |
25053 | } | |
25054 | return NULL; | |
25055 | } | |
25056 | ||
25057 | ||
25058 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25059 | PyObject *resultobj; | |
25060 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 25061 | int arg2 ; |
d14a1e28 | 25062 | wxString *arg3 = 0 ; |
e811c8ce | 25063 | bool temp3 = False ; |
d14a1e28 RD |
25064 | PyObject * obj0 = 0 ; |
25065 | PyObject * obj2 = 0 ; | |
25066 | char *kwnames[] = { | |
25067 | (char *) "self",(char *) "id",(char *) "text", NULL | |
25068 | }; | |
25069 | ||
25070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:HelpProvider_AddHelpById",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
25071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25072 | { | |
25073 | arg3 = wxString_in_helper(obj2); | |
25074 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25075 | temp3 = True; |
d14a1e28 RD |
25076 | } |
25077 | { | |
25078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25079 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
25080 | ||
25081 | wxPyEndAllowThreads(__tstate); | |
25082 | if (PyErr_Occurred()) SWIG_fail; | |
25083 | } | |
25084 | Py_INCREF(Py_None); resultobj = Py_None; | |
25085 | { | |
25086 | if (temp3) | |
25087 | delete arg3; | |
25088 | } | |
25089 | return resultobj; | |
25090 | fail: | |
25091 | { | |
25092 | if (temp3) | |
25093 | delete arg3; | |
25094 | } | |
25095 | return NULL; | |
25096 | } | |
25097 | ||
25098 | ||
25099 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25100 | PyObject *resultobj; | |
25101 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25102 | PyObject * obj0 = 0 ; | |
25103 | char *kwnames[] = { | |
25104 | (char *) "self", NULL | |
25105 | }; | |
25106 | ||
25107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
25108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25109 | { | |
25110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25111 | wxHelpProvider_Destroy(arg1); | |
25112 | ||
25113 | wxPyEndAllowThreads(__tstate); | |
25114 | if (PyErr_Occurred()) SWIG_fail; | |
25115 | } | |
25116 | Py_INCREF(Py_None); resultobj = Py_None; | |
25117 | return resultobj; | |
25118 | fail: | |
25119 | return NULL; | |
25120 | } | |
25121 | ||
25122 | ||
25123 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
25124 | PyObject *obj; | |
25125 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25126 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
25127 | Py_INCREF(obj); | |
25128 | return Py_BuildValue((char *)""); | |
25129 | } | |
25130 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25131 | PyObject *resultobj; | |
25132 | wxSimpleHelpProvider *result; | |
25133 | char *kwnames[] = { | |
25134 | NULL | |
25135 | }; | |
25136 | ||
25137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
25138 | { | |
25139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25140 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
25141 | ||
25142 | wxPyEndAllowThreads(__tstate); | |
25143 | if (PyErr_Occurred()) SWIG_fail; | |
25144 | } | |
25145 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
25146 | return resultobj; | |
25147 | fail: | |
25148 | return NULL; | |
25149 | } | |
25150 | ||
25151 | ||
25152 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
25153 | PyObject *obj; | |
25154 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25155 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
25156 | Py_INCREF(obj); | |
25157 | return Py_BuildValue((char *)""); | |
25158 | } | |
e811c8ce RD |
25159 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
25160 | PyObject *resultobj; | |
25161 | wxBitmap *arg1 = 0 ; | |
25162 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25163 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25164 | wxGenericDragImage *result; | |
25165 | PyObject * obj0 = 0 ; | |
25166 | PyObject * obj1 = 0 ; | |
25167 | char *kwnames[] = { | |
25168 | (char *) "image",(char *) "cursor", NULL | |
25169 | }; | |
25170 | ||
25171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
25172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25173 | if (arg1 == NULL) { | |
25174 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25175 | } | |
25176 | if (obj1) { | |
25177 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25178 | if (arg2 == NULL) { | |
25179 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25180 | } | |
25181 | } | |
25182 | { | |
25183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25184 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
25185 | ||
25186 | wxPyEndAllowThreads(__tstate); | |
25187 | if (PyErr_Occurred()) SWIG_fail; | |
25188 | } | |
25189 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25190 | return resultobj; | |
25191 | fail: | |
25192 | return NULL; | |
25193 | } | |
25194 | ||
25195 | ||
25196 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25197 | PyObject *resultobj; | |
25198 | wxIcon *arg1 = 0 ; | |
25199 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25200 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25201 | wxGenericDragImage *result; | |
25202 | PyObject * obj0 = 0 ; | |
25203 | PyObject * obj1 = 0 ; | |
25204 | char *kwnames[] = { | |
25205 | (char *) "image",(char *) "cursor", NULL | |
25206 | }; | |
25207 | ||
25208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
25209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25210 | if (arg1 == NULL) { | |
25211 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25212 | } | |
25213 | if (obj1) { | |
25214 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25215 | if (arg2 == NULL) { | |
25216 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25217 | } | |
25218 | } | |
25219 | { | |
25220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25221 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
25222 | ||
25223 | wxPyEndAllowThreads(__tstate); | |
25224 | if (PyErr_Occurred()) SWIG_fail; | |
25225 | } | |
25226 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25227 | return resultobj; | |
25228 | fail: | |
25229 | return NULL; | |
25230 | } | |
25231 | ||
25232 | ||
25233 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25234 | PyObject *resultobj; | |
25235 | wxString *arg1 = 0 ; | |
25236 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25237 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25238 | wxGenericDragImage *result; | |
25239 | bool temp1 = False ; | |
25240 | PyObject * obj0 = 0 ; | |
25241 | PyObject * obj1 = 0 ; | |
25242 | char *kwnames[] = { | |
25243 | (char *) "str",(char *) "cursor", NULL | |
25244 | }; | |
25245 | ||
25246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
25247 | { | |
25248 | arg1 = wxString_in_helper(obj0); | |
25249 | if (arg1 == NULL) SWIG_fail; | |
25250 | temp1 = True; | |
25251 | } | |
25252 | if (obj1) { | |
25253 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25254 | if (arg2 == NULL) { | |
25255 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25256 | } | |
25257 | } | |
25258 | { | |
25259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25260 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
25261 | ||
25262 | wxPyEndAllowThreads(__tstate); | |
25263 | if (PyErr_Occurred()) SWIG_fail; | |
25264 | } | |
25265 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25266 | { | |
25267 | if (temp1) | |
25268 | delete arg1; | |
25269 | } | |
25270 | return resultobj; | |
25271 | fail: | |
25272 | { | |
25273 | if (temp1) | |
25274 | delete arg1; | |
25275 | } | |
25276 | return NULL; | |
25277 | } | |
25278 | ||
25279 | ||
25280 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25281 | PyObject *resultobj; | |
25282 | wxPyTreeCtrl *arg1 = 0 ; | |
25283 | wxTreeItemId *arg2 = 0 ; | |
25284 | wxGenericDragImage *result; | |
25285 | PyObject * obj0 = 0 ; | |
25286 | PyObject * obj1 = 0 ; | |
25287 | char *kwnames[] = { | |
25288 | (char *) "treeCtrl",(char *) "id", NULL | |
25289 | }; | |
25290 | ||
25291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
25292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25293 | if (arg1 == NULL) { | |
25294 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25295 | } | |
25296 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25297 | if (arg2 == NULL) { | |
25298 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25299 | } | |
25300 | { | |
25301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25302 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
25303 | ||
25304 | wxPyEndAllowThreads(__tstate); | |
25305 | if (PyErr_Occurred()) SWIG_fail; | |
25306 | } | |
25307 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25308 | return resultobj; | |
25309 | fail: | |
25310 | return NULL; | |
25311 | } | |
25312 | ||
25313 | ||
25314 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25315 | PyObject *resultobj; | |
25316 | wxPyListCtrl *arg1 = 0 ; | |
25317 | long arg2 ; | |
25318 | wxGenericDragImage *result; | |
25319 | PyObject * obj0 = 0 ; | |
25320 | char *kwnames[] = { | |
25321 | (char *) "listCtrl",(char *) "id", NULL | |
25322 | }; | |
25323 | ||
25324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_DragListItem",kwnames,&obj0,&arg2)) goto fail; | |
25325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25326 | if (arg1 == NULL) { | |
25327 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25328 | } | |
25329 | { | |
25330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25331 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
25332 | ||
25333 | wxPyEndAllowThreads(__tstate); | |
25334 | if (PyErr_Occurred()) SWIG_fail; | |
25335 | } | |
25336 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25337 | return resultobj; | |
25338 | fail: | |
25339 | return NULL; | |
25340 | } | |
25341 | ||
25342 | ||
25343 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25344 | PyObject *resultobj; | |
25345 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25346 | PyObject * obj0 = 0 ; | |
25347 | char *kwnames[] = { | |
25348 | (char *) "self", NULL | |
25349 | }; | |
25350 | ||
25351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
25352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25353 | { | |
25354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25355 | delete arg1; | |
25356 | ||
25357 | wxPyEndAllowThreads(__tstate); | |
25358 | if (PyErr_Occurred()) SWIG_fail; | |
25359 | } | |
25360 | Py_INCREF(Py_None); resultobj = Py_None; | |
25361 | return resultobj; | |
25362 | fail: | |
25363 | return NULL; | |
25364 | } | |
25365 | ||
25366 | ||
25367 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25368 | PyObject *resultobj; | |
25369 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25370 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
25371 | PyObject * obj0 = 0 ; | |
25372 | PyObject * obj1 = 0 ; | |
25373 | char *kwnames[] = { | |
25374 | (char *) "self",(char *) "bitmap", NULL | |
25375 | }; | |
25376 | ||
25377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25379 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25380 | { | |
25381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25382 | (arg1)->SetBackingBitmap(arg2); | |
25383 | ||
25384 | wxPyEndAllowThreads(__tstate); | |
25385 | if (PyErr_Occurred()) SWIG_fail; | |
25386 | } | |
25387 | Py_INCREF(Py_None); resultobj = Py_None; | |
25388 | return resultobj; | |
25389 | fail: | |
25390 | return NULL; | |
25391 | } | |
25392 | ||
25393 | ||
25394 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25395 | PyObject *resultobj; | |
25396 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25397 | wxPoint *arg2 = 0 ; | |
25398 | wxWindow *arg3 = (wxWindow *) 0 ; | |
25399 | bool arg4 = (bool) False ; | |
25400 | wxRect *arg5 = (wxRect *) NULL ; | |
25401 | bool result; | |
25402 | wxPoint temp2 ; | |
25403 | PyObject * obj0 = 0 ; | |
25404 | PyObject * obj1 = 0 ; | |
25405 | PyObject * obj2 = 0 ; | |
25406 | PyObject * obj3 = 0 ; | |
25407 | PyObject * obj4 = 0 ; | |
25408 | char *kwnames[] = { | |
25409 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
25410 | }; | |
25411 | ||
25412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25414 | { | |
25415 | arg2 = &temp2; | |
25416 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25417 | } | |
25418 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25419 | if (obj3) { | |
25420 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
25421 | if (PyErr_Occurred()) SWIG_fail; | |
25422 | } | |
25423 | if (obj4) { | |
25424 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25425 | } | |
25426 | { | |
25427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25428 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
25429 | ||
25430 | wxPyEndAllowThreads(__tstate); | |
25431 | if (PyErr_Occurred()) SWIG_fail; | |
25432 | } | |
25433 | resultobj = PyInt_FromLong((long)result); | |
25434 | return resultobj; | |
25435 | fail: | |
25436 | return NULL; | |
25437 | } | |
25438 | ||
25439 | ||
25440 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25441 | PyObject *resultobj; | |
25442 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25443 | wxPoint *arg2 = 0 ; | |
25444 | wxWindow *arg3 = (wxWindow *) 0 ; | |
25445 | wxWindow *arg4 = (wxWindow *) 0 ; | |
25446 | bool result; | |
25447 | wxPoint temp2 ; | |
25448 | PyObject * obj0 = 0 ; | |
25449 | PyObject * obj1 = 0 ; | |
25450 | PyObject * obj2 = 0 ; | |
25451 | PyObject * obj3 = 0 ; | |
25452 | char *kwnames[] = { | |
25453 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
25454 | }; | |
25455 | ||
25456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25458 | { | |
25459 | arg2 = &temp2; | |
25460 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25461 | } | |
25462 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25463 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25464 | { | |
25465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25466 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
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_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25479 | PyObject *resultobj; | |
25480 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25481 | bool result; | |
25482 | PyObject * obj0 = 0 ; | |
25483 | char *kwnames[] = { | |
25484 | (char *) "self", NULL | |
25485 | }; | |
25486 | ||
25487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
25488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25489 | { | |
25490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25491 | result = (bool)(arg1)->EndDrag(); | |
25492 | ||
25493 | wxPyEndAllowThreads(__tstate); | |
25494 | if (PyErr_Occurred()) SWIG_fail; | |
25495 | } | |
25496 | resultobj = PyInt_FromLong((long)result); | |
25497 | return resultobj; | |
25498 | fail: | |
25499 | return NULL; | |
25500 | } | |
25501 | ||
25502 | ||
25503 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25504 | PyObject *resultobj; | |
25505 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25506 | wxPoint *arg2 = 0 ; | |
25507 | bool result; | |
25508 | wxPoint temp2 ; | |
25509 | PyObject * obj0 = 0 ; | |
25510 | PyObject * obj1 = 0 ; | |
25511 | char *kwnames[] = { | |
25512 | (char *) "self",(char *) "pt", NULL | |
25513 | }; | |
25514 | ||
25515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
25516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25517 | { | |
25518 | arg2 = &temp2; | |
25519 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25520 | } | |
25521 | { | |
25522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25523 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
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_Show(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_Show",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)->Show(); | |
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_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25561 | PyObject *resultobj; | |
25562 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25563 | bool result; | |
25564 | PyObject * obj0 = 0 ; | |
25565 | char *kwnames[] = { | |
25566 | (char *) "self", NULL | |
25567 | }; | |
25568 | ||
25569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
25570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25571 | { | |
25572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25573 | result = (bool)(arg1)->Hide(); | |
25574 | ||
25575 | wxPyEndAllowThreads(__tstate); | |
25576 | if (PyErr_Occurred()) SWIG_fail; | |
25577 | } | |
25578 | resultobj = PyInt_FromLong((long)result); | |
25579 | return resultobj; | |
25580 | fail: | |
25581 | return NULL; | |
25582 | } | |
25583 | ||
25584 | ||
25585 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25586 | PyObject *resultobj; | |
25587 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25588 | wxPoint *arg2 = 0 ; | |
25589 | wxRect result; | |
25590 | wxPoint temp2 ; | |
25591 | PyObject * obj0 = 0 ; | |
25592 | PyObject * obj1 = 0 ; | |
25593 | char *kwnames[] = { | |
25594 | (char *) "self",(char *) "pos", NULL | |
25595 | }; | |
25596 | ||
25597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
25598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25599 | { | |
25600 | arg2 = &temp2; | |
25601 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25602 | } | |
25603 | { | |
25604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25605 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
25606 | ||
25607 | wxPyEndAllowThreads(__tstate); | |
25608 | if (PyErr_Occurred()) SWIG_fail; | |
25609 | } | |
25610 | { | |
25611 | wxRect * resultptr; | |
25612 | resultptr = new wxRect((wxRect &) result); | |
25613 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
25614 | } | |
25615 | return resultobj; | |
25616 | fail: | |
25617 | return NULL; | |
25618 | } | |
25619 | ||
25620 | ||
25621 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25622 | PyObject *resultobj; | |
25623 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25624 | wxDC *arg2 = 0 ; | |
25625 | wxPoint *arg3 = 0 ; | |
25626 | bool result; | |
25627 | wxPoint temp3 ; | |
25628 | PyObject * obj0 = 0 ; | |
25629 | PyObject * obj1 = 0 ; | |
25630 | PyObject * obj2 = 0 ; | |
25631 | char *kwnames[] = { | |
25632 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
25633 | }; | |
25634 | ||
25635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25637 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25638 | if (arg2 == NULL) { | |
25639 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25640 | } | |
25641 | { | |
25642 | arg3 = &temp3; | |
25643 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25644 | } | |
25645 | { | |
25646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25647 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
25648 | ||
25649 | wxPyEndAllowThreads(__tstate); | |
25650 | if (PyErr_Occurred()) SWIG_fail; | |
25651 | } | |
25652 | resultobj = PyInt_FromLong((long)result); | |
25653 | return resultobj; | |
25654 | fail: | |
25655 | return NULL; | |
25656 | } | |
25657 | ||
25658 | ||
25659 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25660 | PyObject *resultobj; | |
25661 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25662 | wxDC *arg2 = 0 ; | |
25663 | wxMemoryDC *arg3 = 0 ; | |
25664 | wxRect *arg4 = 0 ; | |
25665 | wxRect *arg5 = 0 ; | |
25666 | bool result; | |
25667 | wxRect temp4 ; | |
25668 | wxRect temp5 ; | |
25669 | PyObject * obj0 = 0 ; | |
25670 | PyObject * obj1 = 0 ; | |
25671 | PyObject * obj2 = 0 ; | |
25672 | PyObject * obj3 = 0 ; | |
25673 | PyObject * obj4 = 0 ; | |
25674 | char *kwnames[] = { | |
25675 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
25676 | }; | |
25677 | ||
25678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25680 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25681 | if (arg2 == NULL) { | |
25682 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25683 | } | |
25684 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25685 | if (arg3 == NULL) { | |
25686 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25687 | } | |
25688 | { | |
25689 | arg4 = &temp4; | |
25690 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
25691 | } | |
25692 | { | |
25693 | arg5 = &temp5; | |
25694 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
25695 | } | |
25696 | { | |
25697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25698 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
25699 | ||
25700 | wxPyEndAllowThreads(__tstate); | |
25701 | if (PyErr_Occurred()) SWIG_fail; | |
25702 | } | |
25703 | resultobj = PyInt_FromLong((long)result); | |
25704 | return resultobj; | |
25705 | fail: | |
25706 | return NULL; | |
25707 | } | |
25708 | ||
25709 | ||
25710 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25711 | PyObject *resultobj; | |
25712 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25713 | wxPoint *arg2 = 0 ; | |
25714 | wxPoint *arg3 = 0 ; | |
25715 | bool arg4 ; | |
25716 | bool arg5 ; | |
25717 | bool result; | |
25718 | wxPoint temp2 ; | |
25719 | wxPoint temp3 ; | |
25720 | PyObject * obj0 = 0 ; | |
25721 | PyObject * obj1 = 0 ; | |
25722 | PyObject * obj2 = 0 ; | |
25723 | PyObject * obj3 = 0 ; | |
25724 | PyObject * obj4 = 0 ; | |
25725 | char *kwnames[] = { | |
25726 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
25727 | }; | |
25728 | ||
25729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25731 | { | |
25732 | arg2 = &temp2; | |
25733 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25734 | } | |
25735 | { | |
25736 | arg3 = &temp3; | |
25737 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25738 | } | |
25739 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
25740 | if (PyErr_Occurred()) SWIG_fail; | |
25741 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
25742 | if (PyErr_Occurred()) SWIG_fail; | |
25743 | { | |
25744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25745 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
25746 | ||
25747 | wxPyEndAllowThreads(__tstate); | |
25748 | if (PyErr_Occurred()) SWIG_fail; | |
25749 | } | |
25750 | resultobj = PyInt_FromLong((long)result); | |
25751 | return resultobj; | |
25752 | fail: | |
25753 | return NULL; | |
25754 | } | |
25755 | ||
25756 | ||
25757 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
25758 | PyObject *obj; | |
25759 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25760 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
25761 | Py_INCREF(obj); | |
25762 | return Py_BuildValue((char *)""); | |
25763 | } | |
25764 | static PyMethodDef SwigMethods[] = { | |
25765 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
25766 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
25767 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
25768 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
25769 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
25770 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
25771 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
25772 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
25773 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
25774 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
25775 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
25776 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
25777 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
25778 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
25779 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
25780 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
25781 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
25782 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
25783 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
25784 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
25785 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
25786 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
25787 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
25788 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25789 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25790 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
25791 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25792 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
25793 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
25794 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
25795 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
25796 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
25797 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
25798 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
25799 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
25800 | { (char *)"Choice_GetColumns", (PyCFunction) _wrap_Choice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
25801 | { (char *)"Choice_SetColumns", (PyCFunction) _wrap_Choice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
25802 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25803 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
25804 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
25805 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
25806 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
25807 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
25808 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25809 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25810 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25811 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
25812 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
25813 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
25814 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
25815 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
25816 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
25817 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
fd3f2efe | 25818 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
25819 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
25820 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
25821 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
25822 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
25823 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
25824 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
25825 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
25826 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
25827 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
25828 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
25829 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25830 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25831 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
25832 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
25833 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
25834 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
25835 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
25836 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
25837 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
25838 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
25839 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25840 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
25841 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
25842 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
25843 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
25844 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
25845 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
25846 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
25847 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
25848 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
25849 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
25850 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
25851 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25852 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25853 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
25854 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25855 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25856 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25857 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
25858 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
25859 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
25860 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25861 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
25862 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
25863 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
25864 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
25865 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25866 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
25867 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
25868 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
25869 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
25870 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
25871 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
25872 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
25873 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
25874 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
25875 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
25876 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, | |
25877 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
25878 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
25879 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25880 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
25881 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
25882 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
25883 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
25884 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
25885 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
25886 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
25887 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, | |
25888 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
25889 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
25890 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
25891 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25892 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
25893 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
25894 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
25895 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25896 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
25897 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
25898 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
25899 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25900 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
25901 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
25902 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
25903 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
25904 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
25905 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
25906 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
25907 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25908 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
25909 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
25910 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
25911 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25912 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
25913 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
25914 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
25915 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
25916 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
25917 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
25918 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25919 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25920 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
25921 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
25922 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
25923 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
25924 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
25925 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
25926 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
25927 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
25928 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25929 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
25930 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
25931 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
25932 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
25933 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
25934 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
25935 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
25936 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
25937 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
25938 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
25939 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
25940 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
25941 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25942 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25943 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
25944 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
25945 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
25946 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
25947 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
25948 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
25949 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
25950 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
25951 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
25952 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
25953 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
25954 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
25955 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
25956 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
25957 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
25958 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
25959 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
25960 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
25961 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
25962 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25963 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
25964 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
25965 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
25966 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
25967 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
25968 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
25969 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
25970 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
25971 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
25972 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
25973 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
25974 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
25975 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
25976 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
25977 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
25978 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
25979 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
25980 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
25981 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
25982 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
25983 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
25984 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
25985 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
25986 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
25987 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25988 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
25989 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
25990 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25991 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
25992 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
25993 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
25994 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
25995 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
25996 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
25997 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
25998 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
25999 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26000 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26001 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
26002 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26003 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
26004 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
26005 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26006 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
26007 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, | |
26008 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
26009 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26010 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26011 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26012 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26013 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26014 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
26015 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
26016 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
26017 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
26018 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
26019 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
26020 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
26021 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
26022 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
26023 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
26024 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
26025 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
26026 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26027 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26028 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26029 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
26030 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
26031 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
26032 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
26033 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26034 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26035 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26036 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
26037 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
26038 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
26039 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
26040 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
26041 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26042 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
26043 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26044 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
26045 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
26046 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
26047 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
26048 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
26049 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
26050 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
26051 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
26052 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
26053 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26054 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
26055 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
26056 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
26057 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26058 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26059 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26060 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26061 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
26062 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
26063 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
26064 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26065 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
26066 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
26067 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26068 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26069 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26070 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
26071 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
26072 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26073 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
26074 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
26075 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
26076 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
26077 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
26078 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
26079 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26080 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
26081 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
26082 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
26083 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26084 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26085 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
26086 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
26087 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
26088 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
26089 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
26090 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
26091 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
26092 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
26093 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
26094 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26095 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
26096 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
26097 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
26098 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
26099 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
26100 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
26101 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
26102 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26103 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
26104 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
26105 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
26106 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
26107 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
26108 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
26109 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
26110 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
26111 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
26112 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
26113 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
26114 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
26115 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
26116 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26117 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
26118 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
26119 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
26120 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
26121 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
26122 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
26123 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
26124 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
26125 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
26126 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
26127 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26128 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26129 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26130 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26131 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26132 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26133 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
26134 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
26135 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
26136 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26137 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26138 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26139 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26140 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26141 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
26142 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
26143 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
26144 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
26145 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
26146 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
26147 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
26148 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, | |
26149 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
26150 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
26151 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
26152 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
26153 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
26154 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
26155 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
26156 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
26157 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
26158 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
26159 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
26160 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
26161 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
26162 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
26163 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
26164 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
26165 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
26166 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26167 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26168 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26169 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26170 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
26171 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
26172 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
26173 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
26174 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
26175 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
26176 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
26177 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
26178 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
26179 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
26180 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
26181 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
26182 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
26183 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
26184 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
26185 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
26186 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26187 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
26188 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
26189 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
26190 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
26191 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
26192 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
26193 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
26194 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26195 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26196 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26197 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26198 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26199 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
26200 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26201 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26202 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26203 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26204 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
26205 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
26206 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
26207 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
26208 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
26209 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
26210 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
26211 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26212 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
26213 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
26214 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
26215 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
26216 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
26217 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
26218 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
26219 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26220 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26221 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26222 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
26223 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26224 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26225 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
26226 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
26227 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
26228 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
26229 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
26230 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
26231 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
26232 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
26233 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26234 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26235 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26236 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
26237 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
26238 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
26239 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
26240 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
26241 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
26242 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
26243 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
26244 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
26245 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
26246 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
26247 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
26248 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
26249 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
26250 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
26251 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
26252 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
26253 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
26254 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
26255 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
26256 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
26257 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
26258 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
26259 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
26260 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
26261 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
26262 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
26263 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
26264 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
26265 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
26266 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
26267 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
26268 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
26269 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
26270 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
26271 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26272 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
26273 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26274 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
26275 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
26276 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
26277 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
26278 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
26279 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
26280 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
26281 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
26282 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
26283 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
26284 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26285 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26286 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26287 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26288 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26289 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26290 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26291 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26292 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
26293 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
26294 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
26295 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
26296 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
26297 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
26298 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
26299 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
26300 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
26301 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
26302 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26303 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26304 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26305 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26306 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
26307 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
26308 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
26309 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
26310 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
26311 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26312 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26313 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
26314 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26315 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26316 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
26317 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
26318 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
26319 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
26320 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26321 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26322 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26323 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
26324 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
26325 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
26326 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
26327 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
26328 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
26329 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
26330 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
26331 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
26332 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
26333 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26334 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
26335 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
26336 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
26337 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26338 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
26339 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
26340 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
26341 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
26342 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
26343 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
26344 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
26345 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
26346 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26347 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26348 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26349 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26350 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
26351 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
26352 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
26353 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
26354 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
26355 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
26356 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
26357 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
26358 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
26359 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
26360 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
26361 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
26362 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
26363 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
26364 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
26365 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
26366 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
26367 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
26368 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
26369 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
26370 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
26371 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
26372 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
26373 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
26374 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
26375 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
26376 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26377 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
26378 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26379 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
26380 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
26381 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
26382 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
26383 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
26384 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
26385 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
26386 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
26387 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
26388 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
26389 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
26390 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26391 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26392 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
26393 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
26394 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, | |
26395 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26396 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26397 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26398 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26399 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
26400 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
26401 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
26402 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26403 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26404 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26405 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
26406 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26407 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
26408 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26409 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
26410 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26411 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
26412 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26413 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
26414 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26415 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26416 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
26417 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26418 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
26419 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26420 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
26421 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
26422 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
26423 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26424 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26425 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
26426 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
26427 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
26428 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
26429 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
26430 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
26431 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
26432 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
26433 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26434 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
26435 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
26436 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
26437 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
26438 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
26439 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
26440 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
26441 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
26442 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
26443 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
26444 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
26445 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
26446 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
26447 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
26448 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
26449 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
26450 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
26451 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
26452 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
26453 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
26454 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
26455 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
26456 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
26457 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
26458 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
26459 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26460 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
26461 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
26462 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
26463 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
26464 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26465 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
26466 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
26467 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26468 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26469 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26470 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
26471 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
26472 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
26473 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
26474 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
26475 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
26476 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
26477 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
26478 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
26479 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
26480 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
26481 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
26482 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
26483 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26484 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26485 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
26486 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
26487 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
26488 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
26489 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26490 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26491 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26492 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
26493 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
26494 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
26495 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26496 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
26497 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
26498 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
26499 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
26500 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
26501 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
26502 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26503 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
26504 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
26505 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
26506 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
26507 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
26508 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
26509 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
26510 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
26511 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
26512 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
26513 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
26514 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
26515 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
26516 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26517 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26518 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
26519 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
26520 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
26521 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
26522 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
26523 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26524 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26525 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26526 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26527 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
26528 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
26529 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
26530 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
26531 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
26532 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
26533 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
26534 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
26535 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
26536 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26537 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
26538 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
26539 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
e811c8ce RD |
26540 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
26541 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
26542 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
26543 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
26544 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
26545 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
26546 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26547 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
26548 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
26549 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
26550 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
26551 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
26552 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
26553 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
26554 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
26555 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
26556 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
26557 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
26558 | { NULL, NULL } |
26559 | }; | |
26560 | ||
26561 | ||
26562 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
26563 | ||
26564 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
26565 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
26566 | } | |
26567 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
26568 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
26569 | } | |
26570 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
26571 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
26572 | } | |
26573 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
26574 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
26575 | } | |
26576 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
26577 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
26578 | } | |
26579 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
26580 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
26581 | } | |
26582 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
26583 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
26584 | } | |
26585 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
26586 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
26587 | } | |
26588 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
26589 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
26590 | } | |
26591 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
26592 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
26593 | } | |
26594 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
26595 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26596 | } | |
26597 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
26598 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
26599 | } | |
26600 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
26601 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
26602 | } | |
26603 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
26604 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
26605 | } | |
26606 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
26607 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
26608 | } | |
26609 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
26610 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
26611 | } | |
26612 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
26613 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
26614 | } | |
26615 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
26616 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
26617 | } | |
26618 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
26619 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
26620 | } | |
26621 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
26622 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
26623 | } | |
26624 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
26625 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
26626 | } | |
26627 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
26628 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
26629 | } | |
26630 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
26631 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26632 | } | |
26633 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
26634 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
26635 | } | |
26636 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
26637 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
26638 | } | |
26639 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
26640 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
26641 | } | |
26642 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
26643 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
26644 | } | |
26645 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
26646 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
26647 | } | |
26648 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
26649 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26650 | } | |
26651 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
26652 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
26653 | } | |
26654 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
26655 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
26656 | } | |
26657 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
26658 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
26659 | } | |
26660 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
26661 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
26662 | } | |
26663 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
26664 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
26665 | } | |
26666 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
26667 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
26668 | } | |
26669 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
26670 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
26671 | } | |
26672 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
26673 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
26674 | } | |
26675 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
26676 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26677 | } | |
26678 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
26679 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
26680 | } | |
26681 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
26682 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
26683 | } | |
26684 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
26685 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
26686 | } | |
26687 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
26688 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
26689 | } | |
26690 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
26691 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
26692 | } | |
26693 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
26694 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
26695 | } | |
26696 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
26697 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26698 | } | |
26699 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
26700 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
26701 | } | |
26702 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
26703 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
26704 | } | |
26705 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
26706 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26707 | } | |
26708 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
26709 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26710 | } | |
26711 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
26712 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
26713 | } | |
26714 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
26715 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
26716 | } | |
26717 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
26718 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
26719 | } | |
26720 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
26721 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
26722 | } | |
26723 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
26724 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
26725 | } | |
26726 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
26727 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
26728 | } | |
26729 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
26730 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
26731 | } | |
26732 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
26733 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
26734 | } | |
26735 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
26736 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
26737 | } | |
26738 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
26739 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
26740 | } | |
26741 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
26742 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
26743 | } | |
26744 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
26745 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
26746 | } | |
26747 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
26748 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
26749 | } | |
26750 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
26751 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
26752 | } | |
26753 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
26754 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
26755 | } | |
26756 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
26757 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
26758 | } | |
26759 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
26760 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
26761 | } | |
26762 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
26763 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
26764 | } | |
26765 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
26766 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
26767 | } | |
26768 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
26769 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
26770 | } | |
26771 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
26772 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
26773 | } | |
26774 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
26775 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
26776 | } | |
26777 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
26778 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
26779 | } | |
26780 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
26781 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
26782 | } | |
26783 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
26784 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
26785 | } | |
26786 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
26787 | return (void *)((wxControl *) ((wxGauge *) x)); | |
26788 | } | |
26789 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
26790 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
26791 | } | |
26792 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
26793 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
26794 | } | |
26795 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
26796 | return (void *)((wxControl *) ((wxButton *) x)); | |
26797 | } | |
26798 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
26799 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
26800 | } | |
26801 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
26802 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
26803 | } | |
26804 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
26805 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
26806 | } | |
26807 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
26808 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
26809 | } | |
26810 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
26811 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
26812 | } | |
26813 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
26814 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
26815 | } | |
26816 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
26817 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
26818 | } | |
26819 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
26820 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
26821 | } | |
26822 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
26823 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
26824 | } | |
26825 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
26826 | return (void *)((wxControl *) ((wxSlider *) x)); | |
26827 | } | |
26828 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
26829 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
26830 | } | |
26831 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
26832 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
26833 | } | |
26834 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
26835 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
26836 | } | |
26837 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
26838 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
26839 | } | |
26840 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
26841 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
26842 | } | |
26843 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
26844 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
26845 | } | |
26846 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
26847 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
26848 | } | |
26849 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
26850 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
26851 | } | |
26852 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
26853 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
26854 | } | |
26855 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
26856 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
26857 | } | |
26858 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
26859 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
26860 | } | |
26861 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
26862 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
26863 | } | |
26864 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
26865 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
26866 | } | |
26867 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
26868 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
26869 | } | |
26870 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
26871 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
26872 | } | |
26873 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
26874 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
26875 | } | |
26876 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
26877 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
26878 | } | |
26879 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
26880 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
26881 | } | |
26882 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
26883 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
26884 | } | |
26885 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
26886 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
26887 | } | |
26888 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
26889 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
26890 | } | |
26891 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
26892 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
26893 | } | |
26894 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
26895 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
26896 | } | |
26897 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
26898 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
26899 | } | |
26900 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
26901 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
26902 | } | |
26903 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
26904 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
26905 | } | |
26906 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
26907 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
26908 | } | |
26909 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
26910 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
26911 | } | |
26912 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
26913 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
26914 | } | |
26915 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
26916 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26917 | } | |
26918 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
26919 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
26920 | } | |
26921 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
26922 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
26923 | } | |
26924 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
26925 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
26926 | } | |
26927 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
26928 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
26929 | } | |
26930 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
26931 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
26932 | } | |
26933 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
26934 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
26935 | } | |
26936 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
26937 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
26938 | } | |
26939 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
26940 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
26941 | } | |
26942 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
26943 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
26944 | } | |
26945 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
26946 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
26947 | } | |
26948 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
26949 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
26950 | } | |
26951 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
26952 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
26953 | } | |
26954 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
26955 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
26956 | } | |
26957 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
26958 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
26959 | } | |
26960 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
26961 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
26962 | } | |
26963 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
26964 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
26965 | } | |
26966 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
26967 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
26968 | } | |
26969 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
26970 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
26971 | } | |
26972 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
26973 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
26974 | } | |
26975 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
26976 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
26977 | } | |
26978 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
26979 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
26980 | } | |
26981 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
26982 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
26983 | } | |
26984 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
26985 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
26986 | } | |
26987 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
26988 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
26989 | } | |
26990 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
26991 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
26992 | } | |
26993 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
26994 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
26995 | } | |
26996 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
26997 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
26998 | } | |
26999 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
27000 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
27001 | } | |
27002 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
27003 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
27004 | } | |
27005 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
27006 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
27007 | } | |
27008 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
27009 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
27010 | } | |
27011 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
27012 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
27013 | } | |
27014 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
27015 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
27016 | } | |
27017 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
27018 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
27019 | } | |
27020 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
27021 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27022 | } | |
27023 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
27024 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
27025 | } | |
27026 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
27027 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
27028 | } | |
27029 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
27030 | return (void *)((wxObject *) ((wxSizer *) x)); | |
27031 | } | |
27032 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
27033 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
27034 | } | |
27035 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
27036 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
27037 | } | |
27038 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
27039 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
27040 | } | |
27041 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
27042 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27043 | } | |
27044 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
27045 | return (void *)((wxObject *) ((wxEvent *) x)); | |
27046 | } | |
27047 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
27048 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
27049 | } | |
27050 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
27051 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
27052 | } | |
27053 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
27054 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
27055 | } | |
27056 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
27057 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
27058 | } | |
27059 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
27060 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
27061 | } | |
27062 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
27063 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27064 | } | |
27065 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
27066 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
27067 | } | |
27068 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
27069 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
27070 | } | |
27071 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
27072 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27073 | } | |
27074 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
27075 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27076 | } | |
27077 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
27078 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27079 | } | |
27080 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
27081 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27082 | } | |
27083 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
27084 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
27085 | } | |
27086 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
27087 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
27088 | } | |
27089 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
27090 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
27091 | } | |
27092 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
27093 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
27094 | } | |
27095 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
27096 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
27097 | } | |
27098 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
27099 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
27100 | } | |
27101 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
27102 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
27103 | } | |
27104 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
27105 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
27106 | } | |
27107 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
27108 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
27109 | } | |
27110 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
27111 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
27112 | } | |
27113 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
27114 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
27115 | } | |
27116 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
27117 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
27118 | } | |
27119 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
27120 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
27121 | } | |
27122 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
27123 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
27124 | } | |
27125 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
27126 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
27127 | } | |
27128 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
27129 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27130 | } | |
27131 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
27132 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
27133 | } | |
27134 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
27135 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
27136 | } | |
27137 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
27138 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
27139 | } | |
27140 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
27141 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
27142 | } | |
27143 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
27144 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
27145 | } | |
27146 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
27147 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
27148 | } | |
27149 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
27150 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27151 | } | |
27152 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
27153 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27154 | } | |
27155 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
27156 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
27157 | } | |
27158 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
27159 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
27160 | } | |
27161 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
27162 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
27163 | } | |
27164 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
27165 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
27166 | } | |
27167 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
27168 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
27169 | } | |
27170 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
27171 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
27172 | } | |
27173 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
27174 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
27175 | } | |
27176 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
27177 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
27178 | } | |
27179 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
27180 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
27181 | } | |
27182 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
27183 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
27184 | } | |
27185 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
27186 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
27187 | } | |
27188 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
27189 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
27190 | } | |
27191 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
27192 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
27193 | } | |
27194 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
27195 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
27196 | } | |
27197 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
27198 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
27199 | } | |
27200 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
27201 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
27202 | } | |
27203 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
27204 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
27205 | } | |
27206 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
27207 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
27208 | } | |
27209 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
27210 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
27211 | } | |
27212 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
27213 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
27214 | } | |
27215 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
27216 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
27217 | } | |
27218 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
27219 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
27220 | } | |
27221 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
27222 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27223 | } | |
27224 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
27225 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
27226 | } | |
27227 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
27228 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
27229 | } | |
27230 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
27231 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
27232 | } | |
27233 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
27234 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
27235 | } | |
27236 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
27237 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27238 | } | |
27239 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
27240 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
27241 | } | |
27242 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
27243 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
27244 | } | |
27245 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
27246 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
27247 | } | |
27248 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
27249 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
27250 | } | |
27251 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
27252 | return (void *)((wxObject *) ((wxListItem *) x)); | |
27253 | } | |
27254 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
27255 | return (void *)((wxObject *) ((wxImage *) x)); | |
27256 | } | |
27257 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
27258 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
27259 | } | |
27260 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
27261 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
27262 | } | |
e811c8ce RD |
27263 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
27264 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
27265 | } | |
d14a1e28 RD |
27266 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
27267 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
27268 | } | |
27269 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
27270 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27271 | } | |
27272 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
27273 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27274 | } | |
27275 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
27276 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27277 | } | |
27278 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
27279 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27280 | } | |
27281 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
27282 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
27283 | } | |
27284 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
27285 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
27286 | } | |
27287 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
27288 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
27289 | } | |
27290 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
27291 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
27292 | } | |
27293 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
27294 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
27295 | } | |
27296 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
27297 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27298 | } | |
27299 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
27300 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
27301 | } | |
27302 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
27303 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
27304 | } | |
27305 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
27306 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
27307 | } | |
27308 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
27309 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
27310 | } | |
27311 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
27312 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
27313 | } | |
27314 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
27315 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27316 | } | |
27317 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
27318 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27319 | } | |
27320 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
27321 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
27322 | } | |
27323 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
27324 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
27325 | } | |
27326 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
27327 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
27328 | } | |
27329 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
27330 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
27331 | } | |
27332 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
27333 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27334 | } | |
27335 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
27336 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27337 | } | |
27338 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
27339 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
27340 | } | |
27341 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
27342 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
27343 | } | |
27344 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
27345 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
27346 | } | |
27347 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
27348 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
27349 | } | |
27350 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
27351 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
27352 | } | |
27353 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
27354 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
27355 | } | |
27356 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
27357 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
27358 | } | |
27359 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
27360 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
27361 | } | |
27362 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
27363 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
27364 | } | |
27365 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
27366 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
27367 | } | |
27368 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
27369 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
27370 | } | |
27371 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
27372 | return (void *)((wxWindow *) ((wxControl *) x)); | |
27373 | } | |
27374 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
27375 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
27376 | } | |
27377 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
27378 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27379 | } | |
27380 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
27381 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
27382 | } | |
27383 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
27384 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
27385 | } | |
27386 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
27387 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
27388 | } | |
27389 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
27390 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
27391 | } | |
27392 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
27393 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
27394 | } | |
27395 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
27396 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
27397 | } | |
27398 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
27399 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
27400 | } | |
27401 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
27402 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
27403 | } | |
27404 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
27405 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
27406 | } | |
27407 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
27408 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
27409 | } | |
27410 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
27411 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
27412 | } | |
27413 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
27414 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27415 | } | |
27416 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
27417 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
27418 | } | |
27419 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
27420 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
27421 | } | |
27422 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
27423 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
27424 | } | |
27425 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
27426 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
27427 | } | |
27428 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
27429 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
27430 | } | |
27431 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
27432 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
27433 | } | |
27434 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
27435 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
27436 | } | |
27437 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
27438 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
27439 | } | |
27440 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
27441 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
27442 | } | |
27443 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
27444 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
27445 | } | |
27446 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
27447 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
27448 | } | |
27449 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
27450 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
27451 | } | |
27452 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
27453 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27454 | } | |
27455 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
27456 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
27457 | } | |
27458 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
27459 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27460 | } | |
27461 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
27462 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27463 | } | |
27464 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
27465 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
27466 | } | |
27467 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
27468 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
27469 | } | |
27470 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
27471 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27472 | } | |
27473 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
27474 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27475 | } | |
27476 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
27477 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27478 | } | |
27479 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
27480 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27481 | } | |
27482 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
27483 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27484 | } | |
27485 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
27486 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
27487 | } | |
27488 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
27489 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27490 | } | |
27491 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
27492 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27493 | } | |
27494 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
27495 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
27496 | } | |
27497 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
27498 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27499 | } | |
27500 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
27501 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27502 | } | |
27503 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
27504 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27505 | } | |
27506 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
27507 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
27508 | } | |
27509 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
27510 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
27511 | } | |
27512 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
27513 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
27514 | } | |
27515 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
27516 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
27517 | } | |
27518 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
27519 | 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}}; | |
27520 | 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}}; | |
27521 | static swig_type_info _swigt__p_wxTreeItemIdValue[] = {{"_p_wxTreeItemIdValue", 0, "wxTreeItemIdValue *", 0},{"_p_wxTreeItemIdValue"},{0}}; | |
27522 | static swig_type_info _swigt__wxTreeItemIdValue[] = {{"_wxTreeItemIdValue", 0, "wxTreeItemIdValue", 0},{"_wxTreeItemIdValue"},{0}}; | |
27523 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; | |
27524 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
27525 | 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}}; | |
27526 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; | |
27527 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
27528 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
27529 | 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}}; | |
27530 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
27531 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
27532 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
27533 | 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}}; | |
27534 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
27535 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
27536 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
27537 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
27538 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
27539 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
27540 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}}; | |
e811c8ce | 27541 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; |
d14a1e28 RD |
27542 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; |
27543 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
27544 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
e811c8ce | 27545 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; |
d14a1e28 RD |
27546 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; |
27547 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
27548 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
27549 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
27550 | 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}}; | |
27551 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
27552 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
27553 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
27554 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
27555 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
27556 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
27557 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
27558 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
27559 | 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}}; | |
27560 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
27561 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
27562 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
27563 | 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}}; | |
27564 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
27565 | 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}}; | |
27566 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
27567 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
27568 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
27569 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
27570 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
27571 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; | |
27572 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
27573 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
27574 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
27575 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
e811c8ce | 27576 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; |
d14a1e28 RD |
27577 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; |
27578 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
27579 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
27580 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
27581 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
27582 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
27583 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
27584 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
e811c8ce RD |
27585 | 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}}; |
27586 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
d14a1e28 RD |
27587 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; |
27588 | 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}}; | |
27589 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
27590 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
27591 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
27592 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
27593 | 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}}; | |
27594 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; | |
27595 | 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}}; | |
27596 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
27597 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
27598 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
27599 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
27600 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
27601 | ||
27602 | static swig_type_info *swig_types_initial[] = { | |
27603 | _swigt__p_wxTextUrlEvent, | |
27604 | _swigt__p_wxBookCtrlEvent, | |
27605 | _swigt__p_wxSizer, | |
27606 | _swigt__p_wxTreeItemIdValue, | |
27607 | _swigt__wxTreeItemIdValue, | |
27608 | _swigt__p_wxCheckBox, | |
27609 | _swigt__p_wxPyTreeCtrl, | |
27610 | _swigt__p_wxEvent, | |
27611 | _swigt__p_wxGenericDirCtrl, | |
27612 | _swigt__p_bool, | |
27613 | _swigt__p_wxPyTreeItemData, | |
27614 | _swigt__p_wxItemContainer, | |
27615 | _swigt__p_wxDirFilterListCtrl, | |
27616 | _swigt__p_wxPyListCtrl, | |
27617 | _swigt__p_wxStaticLine, | |
27618 | _swigt__p_wxControl, | |
27619 | _swigt__p_wxPyControl, | |
27620 | _swigt__p_wxGauge, | |
27621 | _swigt__p_wxToolBarBase, | |
27622 | _swigt__p_wxFont, | |
27623 | _swigt__p_wxToggleButton, | |
27624 | _swigt__p_wxRadioButton, | |
27625 | _swigt__p_wxChoice, | |
e811c8ce | 27626 | _swigt__p_wxMemoryDC, |
d14a1e28 RD |
27627 | _swigt__p_wxListItemAttr, |
27628 | _swigt__p_int, | |
27629 | _swigt__p_wxSize, | |
e811c8ce | 27630 | _swigt__p_wxDC, |
d14a1e28 RD |
27631 | _swigt__p_wxListView, |
27632 | _swigt__p_wxIcon, | |
27633 | _swigt__p_wxTextCtrl, | |
27634 | _swigt__p_wxNotebook, | |
27635 | _swigt__p_wxNotifyEvent, | |
27636 | _swigt__p_wxArrayString, | |
27637 | _swigt__p_wxListbook, | |
27638 | _swigt__p_wxStaticBitmap, | |
27639 | _swigt__p_wxSlider, | |
27640 | _swigt__p_wxStaticBox, | |
27641 | _swigt__p_wxArrayInt, | |
27642 | _swigt__p_wxContextHelp, | |
27643 | _swigt__p_long, | |
27644 | _swigt__p_wxEvtHandler, | |
27645 | _swigt__p_wxListEvent, | |
27646 | _swigt__p_wxListBox, | |
27647 | _swigt__p_wxCheckListBox, | |
27648 | _swigt__p_wxBookCtrl, | |
27649 | _swigt__p_wxSpinButton, | |
27650 | _swigt__p_wxButton, | |
27651 | _swigt__p_wxBitmapButton, | |
27652 | _swigt__p_wxRect, | |
27653 | _swigt__p_wxContextHelpButton, | |
27654 | _swigt__p_wxRadioBox, | |
27655 | _swigt__p_wxScrollBar, | |
27656 | _swigt__p_wxTreeItemId, | |
27657 | _swigt__p_wxComboBox, | |
27658 | _swigt__p_wxHelpEvent, | |
27659 | _swigt__p_wxListItem, | |
27660 | _swigt__p_wxNotebookSizer, | |
e811c8ce | 27661 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
27662 | _swigt__p_wxSpinCtrl, |
27663 | _swigt__p_wxImageList, | |
27664 | _swigt__p_wxHelpProvider, | |
27665 | _swigt__p_wxTextAttr, | |
27666 | _swigt__p_wxSimpleHelpProvider, | |
27667 | _swigt__p_wxPoint, | |
27668 | _swigt__p_wxListbookEvent, | |
27669 | _swigt__p_wxNotebookEvent, | |
27670 | _swigt__p_wxObject, | |
e811c8ce | 27671 | _swigt__p_wxCursor, |
d14a1e28 RD |
27672 | _swigt__p_wxKeyEvent, |
27673 | _swigt__p_wxWindow, | |
27674 | _swigt__p_wxString, | |
27675 | _swigt__p_wxBitmap, | |
27676 | _swigt__p_wxTreeEvent, | |
27677 | _swigt__p_wxMouseEvent, | |
27678 | _swigt__p_wxCommandEvent, | |
27679 | _swigt__p_wxStaticText, | |
27680 | _swigt__p_wxControlWithItems, | |
27681 | _swigt__p_wxToolBarToolBase, | |
27682 | _swigt__p_wxColour, | |
27683 | _swigt__p_wxToolBar, | |
27684 | _swigt__p_wxBookCtrlSizer, | |
27685 | _swigt__p_wxValidator, | |
27686 | 0 | |
27687 | }; | |
27688 | ||
27689 | ||
27690 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
27691 | ||
27692 | static swig_const_info swig_const_table[] = { | |
27693 | { SWIG_PY_INT, (char *)"BU_LEFT", (long) wxBU_LEFT, 0, 0, 0}, | |
27694 | { SWIG_PY_INT, (char *)"BU_TOP", (long) wxBU_TOP, 0, 0, 0}, | |
27695 | { SWIG_PY_INT, (char *)"BU_RIGHT", (long) wxBU_RIGHT, 0, 0, 0}, | |
27696 | { SWIG_PY_INT, (char *)"BU_BOTTOM", (long) wxBU_BOTTOM, 0, 0, 0}, | |
27697 | { SWIG_PY_INT, (char *)"BU_EXACTFIT", (long) wxBU_EXACTFIT, 0, 0, 0}, | |
27698 | { SWIG_PY_INT, (char *)"BU_AUTODRAW", (long) wxBU_AUTODRAW, 0, 0, 0}, | |
27699 | { SWIG_PY_INT, (char *)"CHK_2STATE", (long) wxCHK_2STATE, 0, 0, 0}, | |
27700 | { SWIG_PY_INT, (char *)"CHK_3STATE", (long) wxCHK_3STATE, 0, 0, 0}, | |
27701 | { SWIG_PY_INT, (char *)"CHK_ALLOW_3RD_STATE_FOR_USER", (long) wxCHK_ALLOW_3RD_STATE_FOR_USER, 0, 0, 0}, | |
27702 | { SWIG_PY_INT, (char *)"CHK_UNCHECKED", (long) wxCHK_UNCHECKED, 0, 0, 0}, | |
27703 | { SWIG_PY_INT, (char *)"CHK_CHECKED", (long) wxCHK_CHECKED, 0, 0, 0}, | |
27704 | { SWIG_PY_INT, (char *)"CHK_UNDETERMINED", (long) wxCHK_UNDETERMINED, 0, 0, 0}, | |
27705 | { SWIG_PY_INT, (char *)"GA_HORIZONTAL", (long) wxGA_HORIZONTAL, 0, 0, 0}, | |
27706 | { SWIG_PY_INT, (char *)"GA_VERTICAL", (long) wxGA_VERTICAL, 0, 0, 0}, | |
27707 | { SWIG_PY_INT, (char *)"GA_SMOOTH", (long) wxGA_SMOOTH, 0, 0, 0}, | |
27708 | { SWIG_PY_INT, (char *)"GA_PROGRESSBAR", (long) wxGA_PROGRESSBAR, 0, 0, 0}, | |
27709 | { SWIG_PY_INT, (char *)"TE_NO_VSCROLL", (long) wxTE_NO_VSCROLL, 0, 0, 0}, | |
27710 | { SWIG_PY_INT, (char *)"TE_AUTO_SCROLL", (long) wxTE_AUTO_SCROLL, 0, 0, 0}, | |
27711 | { SWIG_PY_INT, (char *)"TE_READONLY", (long) wxTE_READONLY, 0, 0, 0}, | |
27712 | { SWIG_PY_INT, (char *)"TE_MULTILINE", (long) wxTE_MULTILINE, 0, 0, 0}, | |
27713 | { SWIG_PY_INT, (char *)"TE_PROCESS_TAB", (long) wxTE_PROCESS_TAB, 0, 0, 0}, | |
27714 | { SWIG_PY_INT, (char *)"TE_LEFT", (long) wxTE_LEFT, 0, 0, 0}, | |
27715 | { SWIG_PY_INT, (char *)"TE_CENTER", (long) wxTE_CENTER, 0, 0, 0}, | |
27716 | { SWIG_PY_INT, (char *)"TE_RIGHT", (long) wxTE_RIGHT, 0, 0, 0}, | |
27717 | { SWIG_PY_INT, (char *)"TE_CENTRE", (long) wxTE_CENTRE, 0, 0, 0}, | |
27718 | { SWIG_PY_INT, (char *)"TE_RICH", (long) wxTE_RICH, 0, 0, 0}, | |
27719 | { SWIG_PY_INT, (char *)"TE_PROCESS_ENTER", (long) wxTE_PROCESS_ENTER, 0, 0, 0}, | |
27720 | { SWIG_PY_INT, (char *)"TE_PASSWORD", (long) wxTE_PASSWORD, 0, 0, 0}, | |
27721 | { SWIG_PY_INT, (char *)"TE_AUTO_URL", (long) wxTE_AUTO_URL, 0, 0, 0}, | |
27722 | { SWIG_PY_INT, (char *)"TE_NOHIDESEL", (long) wxTE_NOHIDESEL, 0, 0, 0}, | |
27723 | { SWIG_PY_INT, (char *)"TE_DONTWRAP", (long) wxTE_DONTWRAP, 0, 0, 0}, | |
27724 | { SWIG_PY_INT, (char *)"TE_LINEWRAP", (long) wxTE_LINEWRAP, 0, 0, 0}, | |
27725 | { SWIG_PY_INT, (char *)"TE_WORDWRAP", (long) wxTE_WORDWRAP, 0, 0, 0}, | |
27726 | { SWIG_PY_INT, (char *)"TE_RICH2", (long) wxTE_RICH2, 0, 0, 0}, | |
27727 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_DEFAULT", (long) wxTEXT_ALIGNMENT_DEFAULT, 0, 0, 0}, | |
27728 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_LEFT", (long) wxTEXT_ALIGNMENT_LEFT, 0, 0, 0}, | |
27729 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_CENTRE", (long) wxTEXT_ALIGNMENT_CENTRE, 0, 0, 0}, | |
27730 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_CENTER", (long) wxTEXT_ALIGNMENT_CENTER, 0, 0, 0}, | |
27731 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_RIGHT", (long) wxTEXT_ALIGNMENT_RIGHT, 0, 0, 0}, | |
27732 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_JUSTIFIED", (long) wxTEXT_ALIGNMENT_JUSTIFIED, 0, 0, 0}, | |
27733 | { SWIG_PY_INT, (char *)"TEXT_ATTR_TEXT_COLOUR", (long) wxTEXT_ATTR_TEXT_COLOUR, 0, 0, 0}, | |
27734 | { SWIG_PY_INT, (char *)"TEXT_ATTR_BACKGROUND_COLOUR", (long) wxTEXT_ATTR_BACKGROUND_COLOUR, 0, 0, 0}, | |
27735 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_FACE", (long) wxTEXT_ATTR_FONT_FACE, 0, 0, 0}, | |
27736 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_SIZE", (long) wxTEXT_ATTR_FONT_SIZE, 0, 0, 0}, | |
27737 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_WEIGHT", (long) wxTEXT_ATTR_FONT_WEIGHT, 0, 0, 0}, | |
27738 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_ITALIC", (long) wxTEXT_ATTR_FONT_ITALIC, 0, 0, 0}, | |
27739 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_UNDERLINE", (long) wxTEXT_ATTR_FONT_UNDERLINE, 0, 0, 0}, | |
27740 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT", (long) wxTEXT_ATTR_FONT, 0, 0, 0}, | |
27741 | { SWIG_PY_INT, (char *)"TEXT_ATTR_ALIGNMENT", (long) wxTEXT_ATTR_ALIGNMENT, 0, 0, 0}, | |
27742 | { SWIG_PY_INT, (char *)"TEXT_ATTR_LEFT_INDENT", (long) wxTEXT_ATTR_LEFT_INDENT, 0, 0, 0}, | |
27743 | { SWIG_PY_INT, (char *)"TEXT_ATTR_RIGHT_INDENT", (long) wxTEXT_ATTR_RIGHT_INDENT, 0, 0, 0}, | |
27744 | { SWIG_PY_INT, (char *)"TEXT_ATTR_TABS", (long) wxTEXT_ATTR_TABS, 0, 0, 0}, | |
27745 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_UPDATED", (long) wxEVT_COMMAND_TEXT_UPDATED, 0, 0, 0}, | |
27746 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_ENTER", (long) wxEVT_COMMAND_TEXT_ENTER, 0, 0, 0}, | |
27747 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_URL", (long) wxEVT_COMMAND_TEXT_URL, 0, 0, 0}, | |
27748 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_MAXLEN", (long) wxEVT_COMMAND_TEXT_MAXLEN, 0, 0, 0}, | |
27749 | { SWIG_PY_INT, (char *)"SP_HORIZONTAL", (long) wxSP_HORIZONTAL, 0, 0, 0}, | |
27750 | { SWIG_PY_INT, (char *)"SP_VERTICAL", (long) wxSP_VERTICAL, 0, 0, 0}, | |
27751 | { SWIG_PY_INT, (char *)"SP_ARROW_KEYS", (long) wxSP_ARROW_KEYS, 0, 0, 0}, | |
27752 | { SWIG_PY_INT, (char *)"SP_WRAP", (long) wxSP_WRAP, 0, 0, 0}, | |
27753 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SPINCTRL_UPDATED", (long) wxEVT_COMMAND_SPINCTRL_UPDATED, 0, 0, 0}, | |
27754 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", (long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 0, 0, 0}, | |
27755 | { SWIG_PY_INT, (char *)"NB_FIXEDWIDTH", (long) wxNB_FIXEDWIDTH, 0, 0, 0}, | |
27756 | { SWIG_PY_INT, (char *)"NB_TOP", (long) wxNB_TOP, 0, 0, 0}, | |
27757 | { SWIG_PY_INT, (char *)"NB_LEFT", (long) wxNB_LEFT, 0, 0, 0}, | |
27758 | { SWIG_PY_INT, (char *)"NB_RIGHT", (long) wxNB_RIGHT, 0, 0, 0}, | |
27759 | { SWIG_PY_INT, (char *)"NB_BOTTOM", (long) wxNB_BOTTOM, 0, 0, 0}, | |
27760 | { SWIG_PY_INT, (char *)"NB_MULTILINE", (long) wxNB_MULTILINE, 0, 0, 0}, | |
27761 | { SWIG_PY_INT, (char *)"NB_HITTEST_NOWHERE", (long) wxNB_HITTEST_NOWHERE, 0, 0, 0}, | |
27762 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONICON", (long) wxNB_HITTEST_ONICON, 0, 0, 0}, | |
27763 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONLABEL", (long) wxNB_HITTEST_ONLABEL, 0, 0, 0}, | |
27764 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONITEM", (long) wxNB_HITTEST_ONITEM, 0, 0, 0}, | |
27765 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", (long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 0, 0, 0}, | |
27766 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", (long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 0, 0, 0}, | |
27767 | { SWIG_PY_INT, (char *)"LB_DEFAULT", (long) wxLB_DEFAULT, 0, 0, 0}, | |
27768 | { SWIG_PY_INT, (char *)"LB_TOP", (long) wxLB_TOP, 0, 0, 0}, | |
27769 | { SWIG_PY_INT, (char *)"LB_BOTTOM", (long) wxLB_BOTTOM, 0, 0, 0}, | |
27770 | { SWIG_PY_INT, (char *)"LB_LEFT", (long) wxLB_LEFT, 0, 0, 0}, | |
27771 | { SWIG_PY_INT, (char *)"LB_RIGHT", (long) wxLB_RIGHT, 0, 0, 0}, | |
27772 | { SWIG_PY_INT, (char *)"LB_ALIGN_MASK", (long) wxLB_ALIGN_MASK, 0, 0, 0}, | |
27773 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", (long) wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 0, 0, 0}, | |
27774 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", (long) wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 0, 0, 0}, | |
27775 | { SWIG_PY_INT, (char *)"TOOL_STYLE_BUTTON", (long) wxTOOL_STYLE_BUTTON, 0, 0, 0}, | |
27776 | { SWIG_PY_INT, (char *)"TOOL_STYLE_SEPARATOR", (long) wxTOOL_STYLE_SEPARATOR, 0, 0, 0}, | |
27777 | { SWIG_PY_INT, (char *)"TOOL_STYLE_CONTROL", (long) wxTOOL_STYLE_CONTROL, 0, 0, 0}, | |
27778 | { SWIG_PY_INT, (char *)"TB_HORIZONTAL", (long) wxTB_HORIZONTAL, 0, 0, 0}, | |
27779 | { SWIG_PY_INT, (char *)"TB_VERTICAL", (long) wxTB_VERTICAL, 0, 0, 0}, | |
27780 | { SWIG_PY_INT, (char *)"TB_3DBUTTONS", (long) wxTB_3DBUTTONS, 0, 0, 0}, | |
27781 | { SWIG_PY_INT, (char *)"TB_FLAT", (long) wxTB_FLAT, 0, 0, 0}, | |
27782 | { SWIG_PY_INT, (char *)"TB_DOCKABLE", (long) wxTB_DOCKABLE, 0, 0, 0}, | |
27783 | { SWIG_PY_INT, (char *)"TB_NOICONS", (long) wxTB_NOICONS, 0, 0, 0}, | |
27784 | { SWIG_PY_INT, (char *)"TB_TEXT", (long) wxTB_TEXT, 0, 0, 0}, | |
27785 | { SWIG_PY_INT, (char *)"TB_NODIVIDER", (long) wxTB_NODIVIDER, 0, 0, 0}, | |
27786 | { SWIG_PY_INT, (char *)"TB_NOALIGN", (long) wxTB_NOALIGN, 0, 0, 0}, | |
27787 | { SWIG_PY_INT, (char *)"TB_HORZ_LAYOUT", (long) wxTB_HORZ_LAYOUT, 0, 0, 0}, | |
27788 | { SWIG_PY_INT, (char *)"TB_HORZ_TEXT", (long) wxTB_HORZ_TEXT, 0, 0, 0}, | |
27789 | { SWIG_PY_INT, (char *)"LC_VRULES", (long) wxLC_VRULES, 0, 0, 0}, | |
27790 | { SWIG_PY_INT, (char *)"LC_HRULES", (long) wxLC_HRULES, 0, 0, 0}, | |
27791 | { SWIG_PY_INT, (char *)"LC_ICON", (long) wxLC_ICON, 0, 0, 0}, | |
27792 | { SWIG_PY_INT, (char *)"LC_SMALL_ICON", (long) wxLC_SMALL_ICON, 0, 0, 0}, | |
27793 | { SWIG_PY_INT, (char *)"LC_LIST", (long) wxLC_LIST, 0, 0, 0}, | |
27794 | { SWIG_PY_INT, (char *)"LC_REPORT", (long) wxLC_REPORT, 0, 0, 0}, | |
27795 | { SWIG_PY_INT, (char *)"LC_ALIGN_TOP", (long) wxLC_ALIGN_TOP, 0, 0, 0}, | |
27796 | { SWIG_PY_INT, (char *)"LC_ALIGN_LEFT", (long) wxLC_ALIGN_LEFT, 0, 0, 0}, | |
27797 | { SWIG_PY_INT, (char *)"LC_AUTOARRANGE", (long) wxLC_AUTOARRANGE, 0, 0, 0}, | |
27798 | { SWIG_PY_INT, (char *)"LC_VIRTUAL", (long) wxLC_VIRTUAL, 0, 0, 0}, | |
27799 | { SWIG_PY_INT, (char *)"LC_EDIT_LABELS", (long) wxLC_EDIT_LABELS, 0, 0, 0}, | |
27800 | { SWIG_PY_INT, (char *)"LC_NO_HEADER", (long) wxLC_NO_HEADER, 0, 0, 0}, | |
27801 | { SWIG_PY_INT, (char *)"LC_NO_SORT_HEADER", (long) wxLC_NO_SORT_HEADER, 0, 0, 0}, | |
27802 | { SWIG_PY_INT, (char *)"LC_SINGLE_SEL", (long) wxLC_SINGLE_SEL, 0, 0, 0}, | |
27803 | { SWIG_PY_INT, (char *)"LC_SORT_ASCENDING", (long) wxLC_SORT_ASCENDING, 0, 0, 0}, | |
27804 | { SWIG_PY_INT, (char *)"LC_SORT_DESCENDING", (long) wxLC_SORT_DESCENDING, 0, 0, 0}, | |
27805 | { SWIG_PY_INT, (char *)"LC_MASK_TYPE", (long) wxLC_MASK_TYPE, 0, 0, 0}, | |
27806 | { SWIG_PY_INT, (char *)"LC_MASK_ALIGN", (long) wxLC_MASK_ALIGN, 0, 0, 0}, | |
27807 | { SWIG_PY_INT, (char *)"LC_MASK_SORT", (long) wxLC_MASK_SORT, 0, 0, 0}, | |
27808 | { SWIG_PY_INT, (char *)"LIST_MASK_STATE", (long) wxLIST_MASK_STATE, 0, 0, 0}, | |
27809 | { SWIG_PY_INT, (char *)"LIST_MASK_TEXT", (long) wxLIST_MASK_TEXT, 0, 0, 0}, | |
27810 | { SWIG_PY_INT, (char *)"LIST_MASK_IMAGE", (long) wxLIST_MASK_IMAGE, 0, 0, 0}, | |
27811 | { SWIG_PY_INT, (char *)"LIST_MASK_DATA", (long) wxLIST_MASK_DATA, 0, 0, 0}, | |
27812 | { SWIG_PY_INT, (char *)"LIST_SET_ITEM", (long) wxLIST_SET_ITEM, 0, 0, 0}, | |
27813 | { SWIG_PY_INT, (char *)"LIST_MASK_WIDTH", (long) wxLIST_MASK_WIDTH, 0, 0, 0}, | |
27814 | { SWIG_PY_INT, (char *)"LIST_MASK_FORMAT", (long) wxLIST_MASK_FORMAT, 0, 0, 0}, | |
27815 | { SWIG_PY_INT, (char *)"LIST_STATE_DONTCARE", (long) wxLIST_STATE_DONTCARE, 0, 0, 0}, | |
27816 | { SWIG_PY_INT, (char *)"LIST_STATE_DROPHILITED", (long) wxLIST_STATE_DROPHILITED, 0, 0, 0}, | |
27817 | { SWIG_PY_INT, (char *)"LIST_STATE_FOCUSED", (long) wxLIST_STATE_FOCUSED, 0, 0, 0}, | |
27818 | { SWIG_PY_INT, (char *)"LIST_STATE_SELECTED", (long) wxLIST_STATE_SELECTED, 0, 0, 0}, | |
27819 | { SWIG_PY_INT, (char *)"LIST_STATE_CUT", (long) wxLIST_STATE_CUT, 0, 0, 0}, | |
27820 | { SWIG_PY_INT, (char *)"LIST_STATE_DISABLED", (long) wxLIST_STATE_DISABLED, 0, 0, 0}, | |
27821 | { SWIG_PY_INT, (char *)"LIST_STATE_FILTERED", (long) wxLIST_STATE_FILTERED, 0, 0, 0}, | |
27822 | { SWIG_PY_INT, (char *)"LIST_STATE_INUSE", (long) wxLIST_STATE_INUSE, 0, 0, 0}, | |
27823 | { SWIG_PY_INT, (char *)"LIST_STATE_PICKED", (long) wxLIST_STATE_PICKED, 0, 0, 0}, | |
27824 | { SWIG_PY_INT, (char *)"LIST_STATE_SOURCE", (long) wxLIST_STATE_SOURCE, 0, 0, 0}, | |
27825 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ABOVE", (long) wxLIST_HITTEST_ABOVE, 0, 0, 0}, | |
27826 | { SWIG_PY_INT, (char *)"LIST_HITTEST_BELOW", (long) wxLIST_HITTEST_BELOW, 0, 0, 0}, | |
27827 | { SWIG_PY_INT, (char *)"LIST_HITTEST_NOWHERE", (long) wxLIST_HITTEST_NOWHERE, 0, 0, 0}, | |
27828 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMICON", (long) wxLIST_HITTEST_ONITEMICON, 0, 0, 0}, | |
27829 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMLABEL", (long) wxLIST_HITTEST_ONITEMLABEL, 0, 0, 0}, | |
27830 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMRIGHT", (long) wxLIST_HITTEST_ONITEMRIGHT, 0, 0, 0}, | |
27831 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMSTATEICON", (long) wxLIST_HITTEST_ONITEMSTATEICON, 0, 0, 0}, | |
27832 | { SWIG_PY_INT, (char *)"LIST_HITTEST_TOLEFT", (long) wxLIST_HITTEST_TOLEFT, 0, 0, 0}, | |
27833 | { SWIG_PY_INT, (char *)"LIST_HITTEST_TORIGHT", (long) wxLIST_HITTEST_TORIGHT, 0, 0, 0}, | |
27834 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEM", (long) wxLIST_HITTEST_ONITEM, 0, 0, 0}, | |
27835 | { SWIG_PY_INT, (char *)"LIST_NEXT_ABOVE", (long) wxLIST_NEXT_ABOVE, 0, 0, 0}, | |
27836 | { SWIG_PY_INT, (char *)"LIST_NEXT_ALL", (long) wxLIST_NEXT_ALL, 0, 0, 0}, | |
27837 | { SWIG_PY_INT, (char *)"LIST_NEXT_BELOW", (long) wxLIST_NEXT_BELOW, 0, 0, 0}, | |
27838 | { SWIG_PY_INT, (char *)"LIST_NEXT_LEFT", (long) wxLIST_NEXT_LEFT, 0, 0, 0}, | |
27839 | { SWIG_PY_INT, (char *)"LIST_NEXT_RIGHT", (long) wxLIST_NEXT_RIGHT, 0, 0, 0}, | |
27840 | { SWIG_PY_INT, (char *)"LIST_ALIGN_DEFAULT", (long) wxLIST_ALIGN_DEFAULT, 0, 0, 0}, | |
27841 | { SWIG_PY_INT, (char *)"LIST_ALIGN_LEFT", (long) wxLIST_ALIGN_LEFT, 0, 0, 0}, | |
27842 | { SWIG_PY_INT, (char *)"LIST_ALIGN_TOP", (long) wxLIST_ALIGN_TOP, 0, 0, 0}, | |
27843 | { SWIG_PY_INT, (char *)"LIST_ALIGN_SNAP_TO_GRID", (long) wxLIST_ALIGN_SNAP_TO_GRID, 0, 0, 0}, | |
27844 | { SWIG_PY_INT, (char *)"LIST_FORMAT_LEFT", (long) wxLIST_FORMAT_LEFT, 0, 0, 0}, | |
27845 | { SWIG_PY_INT, (char *)"LIST_FORMAT_RIGHT", (long) wxLIST_FORMAT_RIGHT, 0, 0, 0}, | |
27846 | { SWIG_PY_INT, (char *)"LIST_FORMAT_CENTRE", (long) wxLIST_FORMAT_CENTRE, 0, 0, 0}, | |
27847 | { SWIG_PY_INT, (char *)"LIST_FORMAT_CENTER", (long) wxLIST_FORMAT_CENTER, 0, 0, 0}, | |
27848 | { SWIG_PY_INT, (char *)"LIST_AUTOSIZE", (long) wxLIST_AUTOSIZE, 0, 0, 0}, | |
27849 | { SWIG_PY_INT, (char *)"LIST_AUTOSIZE_USEHEADER", (long) wxLIST_AUTOSIZE_USEHEADER, 0, 0, 0}, | |
27850 | { SWIG_PY_INT, (char *)"LIST_RECT_BOUNDS", (long) wxLIST_RECT_BOUNDS, 0, 0, 0}, | |
27851 | { SWIG_PY_INT, (char *)"LIST_RECT_ICON", (long) wxLIST_RECT_ICON, 0, 0, 0}, | |
27852 | { SWIG_PY_INT, (char *)"LIST_RECT_LABEL", (long) wxLIST_RECT_LABEL, 0, 0, 0}, | |
27853 | { SWIG_PY_INT, (char *)"LIST_FIND_UP", (long) wxLIST_FIND_UP, 0, 0, 0}, | |
27854 | { SWIG_PY_INT, (char *)"LIST_FIND_DOWN", (long) wxLIST_FIND_DOWN, 0, 0, 0}, | |
27855 | { SWIG_PY_INT, (char *)"LIST_FIND_LEFT", (long) wxLIST_FIND_LEFT, 0, 0, 0}, | |
27856 | { SWIG_PY_INT, (char *)"LIST_FIND_RIGHT", (long) wxLIST_FIND_RIGHT, 0, 0, 0}, | |
27857 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_DRAG", (long) wxEVT_COMMAND_LIST_BEGIN_DRAG, 0, 0, 0}, | |
27858 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_RDRAG", (long) wxEVT_COMMAND_LIST_BEGIN_RDRAG, 0, 0, 0}, | |
27859 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", (long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, 0, 0, 0}, | |
27860 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_END_LABEL_EDIT", (long) wxEVT_COMMAND_LIST_END_LABEL_EDIT, 0, 0, 0}, | |
27861 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_DELETE_ITEM", (long) wxEVT_COMMAND_LIST_DELETE_ITEM, 0, 0, 0}, | |
27862 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", (long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, 0, 0, 0}, | |
27863 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_GET_INFO", (long) wxEVT_COMMAND_LIST_GET_INFO, 0, 0, 0}, | |
27864 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_SET_INFO", (long) wxEVT_COMMAND_LIST_SET_INFO, 0, 0, 0}, | |
27865 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_SELECTED", (long) wxEVT_COMMAND_LIST_ITEM_SELECTED, 0, 0, 0}, | |
27866 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_DESELECTED", (long) wxEVT_COMMAND_LIST_ITEM_DESELECTED, 0, 0, 0}, | |
27867 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_KEY_DOWN", (long) wxEVT_COMMAND_LIST_KEY_DOWN, 0, 0, 0}, | |
27868 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_INSERT_ITEM", (long) wxEVT_COMMAND_LIST_INSERT_ITEM, 0, 0, 0}, | |
27869 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_CLICK", (long) wxEVT_COMMAND_LIST_COL_CLICK, 0, 0, 0}, | |
27870 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", (long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, 0, 0, 0}, | |
27871 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", (long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 0, 0, 0}, | |
27872 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", (long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED, 0, 0, 0}, | |
27873 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_CACHE_HINT", (long) wxEVT_COMMAND_LIST_CACHE_HINT, 0, 0, 0}, | |
27874 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", (long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK, 0, 0, 0}, | |
27875 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", (long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, 0, 0, 0}, | |
27876 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_DRAGGING", (long) wxEVT_COMMAND_LIST_COL_DRAGGING, 0, 0, 0}, | |
27877 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_END_DRAG", (long) wxEVT_COMMAND_LIST_COL_END_DRAG, 0, 0, 0}, | |
27878 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_FOCUSED", (long) wxEVT_COMMAND_LIST_ITEM_FOCUSED, 0, 0, 0}, | |
27879 | { SWIG_PY_INT, (char *)"TR_NO_BUTTONS", (long) wxTR_NO_BUTTONS, 0, 0, 0}, | |
27880 | { SWIG_PY_INT, (char *)"TR_HAS_BUTTONS", (long) wxTR_HAS_BUTTONS, 0, 0, 0}, | |
27881 | { SWIG_PY_INT, (char *)"TR_NO_LINES", (long) wxTR_NO_LINES, 0, 0, 0}, | |
27882 | { SWIG_PY_INT, (char *)"TR_LINES_AT_ROOT", (long) wxTR_LINES_AT_ROOT, 0, 0, 0}, | |
27883 | { SWIG_PY_INT, (char *)"TR_SINGLE", (long) wxTR_SINGLE, 0, 0, 0}, | |
27884 | { SWIG_PY_INT, (char *)"TR_MULTIPLE", (long) wxTR_MULTIPLE, 0, 0, 0}, | |
27885 | { SWIG_PY_INT, (char *)"TR_EXTENDED", (long) wxTR_EXTENDED, 0, 0, 0}, | |
27886 | { SWIG_PY_INT, (char *)"TR_HAS_VARIABLE_ROW_HEIGHT", (long) wxTR_HAS_VARIABLE_ROW_HEIGHT, 0, 0, 0}, | |
27887 | { SWIG_PY_INT, (char *)"TR_EDIT_LABELS", (long) wxTR_EDIT_LABELS, 0, 0, 0}, | |
27888 | { SWIG_PY_INT, (char *)"TR_HIDE_ROOT", (long) wxTR_HIDE_ROOT, 0, 0, 0}, | |
27889 | { SWIG_PY_INT, (char *)"TR_ROW_LINES", (long) wxTR_ROW_LINES, 0, 0, 0}, | |
27890 | { SWIG_PY_INT, (char *)"TR_FULL_ROW_HIGHLIGHT", (long) wxTR_FULL_ROW_HIGHLIGHT, 0, 0, 0}, | |
27891 | { SWIG_PY_INT, (char *)"TR_DEFAULT_STYLE", (long) wxTR_DEFAULT_STYLE, 0, 0, 0}, | |
27892 | { SWIG_PY_INT, (char *)"TR_TWIST_BUTTONS", (long) wxTR_TWIST_BUTTONS, 0, 0, 0}, | |
27893 | { SWIG_PY_INT, (char *)"TR_MAC_BUTTONS", (long) wxTR_MAC_BUTTONS, 0, 0, 0}, | |
27894 | { SWIG_PY_INT, (char *)"TR_AQUA_BUTTONS", (long) wxTR_AQUA_BUTTONS, 0, 0, 0}, | |
27895 | { SWIG_PY_INT, (char *)"TreeItemIcon_Normal", (long) wxTreeItemIcon_Normal, 0, 0, 0}, | |
27896 | { SWIG_PY_INT, (char *)"TreeItemIcon_Selected", (long) wxTreeItemIcon_Selected, 0, 0, 0}, | |
27897 | { SWIG_PY_INT, (char *)"TreeItemIcon_Expanded", (long) wxTreeItemIcon_Expanded, 0, 0, 0}, | |
27898 | { SWIG_PY_INT, (char *)"TreeItemIcon_SelectedExpanded", (long) wxTreeItemIcon_SelectedExpanded, 0, 0, 0}, | |
27899 | { SWIG_PY_INT, (char *)"TreeItemIcon_Max", (long) wxTreeItemIcon_Max, 0, 0, 0}, | |
27900 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ABOVE", (long) wxTREE_HITTEST_ABOVE, 0, 0, 0}, | |
27901 | { SWIG_PY_INT, (char *)"TREE_HITTEST_BELOW", (long) wxTREE_HITTEST_BELOW, 0, 0, 0}, | |
27902 | { SWIG_PY_INT, (char *)"TREE_HITTEST_NOWHERE", (long) wxTREE_HITTEST_NOWHERE, 0, 0, 0}, | |
27903 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMBUTTON", (long) wxTREE_HITTEST_ONITEMBUTTON, 0, 0, 0}, | |
27904 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMICON", (long) wxTREE_HITTEST_ONITEMICON, 0, 0, 0}, | |
27905 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMINDENT", (long) wxTREE_HITTEST_ONITEMINDENT, 0, 0, 0}, | |
27906 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMLABEL", (long) wxTREE_HITTEST_ONITEMLABEL, 0, 0, 0}, | |
27907 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMRIGHT", (long) wxTREE_HITTEST_ONITEMRIGHT, 0, 0, 0}, | |
27908 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMSTATEICON", (long) wxTREE_HITTEST_ONITEMSTATEICON, 0, 0, 0}, | |
27909 | { SWIG_PY_INT, (char *)"TREE_HITTEST_TOLEFT", (long) wxTREE_HITTEST_TOLEFT, 0, 0, 0}, | |
27910 | { SWIG_PY_INT, (char *)"TREE_HITTEST_TORIGHT", (long) wxTREE_HITTEST_TORIGHT, 0, 0, 0}, | |
27911 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMUPPERPART", (long) wxTREE_HITTEST_ONITEMUPPERPART, 0, 0, 0}, | |
27912 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMLOWERPART", (long) wxTREE_HITTEST_ONITEMLOWERPART, 0, 0, 0}, | |
27913 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEM", (long) wxTREE_HITTEST_ONITEM, 0, 0, 0}, | |
27914 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_DRAG", (long) wxEVT_COMMAND_TREE_BEGIN_DRAG, 0, 0, 0}, | |
27915 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_RDRAG", (long) wxEVT_COMMAND_TREE_BEGIN_RDRAG, 0, 0, 0}, | |
27916 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", (long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, 0, 0, 0}, | |
27917 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_END_LABEL_EDIT", (long) wxEVT_COMMAND_TREE_END_LABEL_EDIT, 0, 0, 0}, | |
27918 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_DELETE_ITEM", (long) wxEVT_COMMAND_TREE_DELETE_ITEM, 0, 0, 0}, | |
27919 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_GET_INFO", (long) wxEVT_COMMAND_TREE_GET_INFO, 0, 0, 0}, | |
27920 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SET_INFO", (long) wxEVT_COMMAND_TREE_SET_INFO, 0, 0, 0}, | |
27921 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_EXPANDED", (long) wxEVT_COMMAND_TREE_ITEM_EXPANDED, 0, 0, 0}, | |
27922 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_EXPANDING", (long) wxEVT_COMMAND_TREE_ITEM_EXPANDING, 0, 0, 0}, | |
27923 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", (long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED, 0, 0, 0}, | |
27924 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", (long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING, 0, 0, 0}, | |
27925 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SEL_CHANGED", (long) wxEVT_COMMAND_TREE_SEL_CHANGED, 0, 0, 0}, | |
27926 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SEL_CHANGING", (long) wxEVT_COMMAND_TREE_SEL_CHANGING, 0, 0, 0}, | |
27927 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_KEY_DOWN", (long) wxEVT_COMMAND_TREE_KEY_DOWN, 0, 0, 0}, | |
27928 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", (long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED, 0, 0, 0}, | |
27929 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", (long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK, 0, 0, 0}, | |
27930 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", (long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 0, 0, 0}, | |
27931 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_END_DRAG", (long) wxEVT_COMMAND_TREE_END_DRAG, 0, 0, 0}, | |
27932 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", (long) wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 0, 0, 0}, | |
27933 | { SWIG_PY_INT, (char *)"DIRCTRL_DIR_ONLY", (long) wxDIRCTRL_DIR_ONLY, 0, 0, 0}, | |
27934 | { SWIG_PY_INT, (char *)"DIRCTRL_SELECT_FIRST", (long) wxDIRCTRL_SELECT_FIRST, 0, 0, 0}, | |
27935 | { SWIG_PY_INT, (char *)"DIRCTRL_SHOW_FILTERS", (long) wxDIRCTRL_SHOW_FILTERS, 0, 0, 0}, | |
27936 | { SWIG_PY_INT, (char *)"DIRCTRL_3D_INTERNAL", (long) wxDIRCTRL_3D_INTERNAL, 0, 0, 0}, | |
27937 | { SWIG_PY_INT, (char *)"DIRCTRL_EDIT_LABELS", (long) wxDIRCTRL_EDIT_LABELS, 0, 0, 0}, | |
27938 | { SWIG_PY_INT, (char *)"FRAME_EX_CONTEXTHELP", (long) wxFRAME_EX_CONTEXTHELP, 0, 0, 0}, | |
27939 | { SWIG_PY_INT, (char *)"DIALOG_EX_CONTEXTHELP", (long) wxDIALOG_EX_CONTEXTHELP, 0, 0, 0}, | |
27940 | { SWIG_PY_INT, (char *)"wxEVT_HELP", (long) wxEVT_HELP, 0, 0, 0}, | |
27941 | { SWIG_PY_INT, (char *)"wxEVT_DETAILED_HELP", (long) wxEVT_DETAILED_HELP, 0, 0, 0}, | |
27942 | {0}}; | |
27943 | ||
27944 | #ifdef __cplusplus | |
27945 | } | |
27946 | #endif | |
27947 | ||
27948 | #ifdef __cplusplus | |
27949 | extern "C" | |
27950 | #endif | |
27951 | SWIGEXPORT(void) SWIG_init(void) { | |
27952 | static PyObject *SWIG_globals = 0; | |
27953 | static int typeinit = 0; | |
27954 | PyObject *m, *d; | |
27955 | int i; | |
27956 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
27957 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
27958 | d = PyModule_GetDict(m); | |
27959 | ||
27960 | if (!typeinit) { | |
27961 | for (i = 0; swig_types_initial[i]; i++) { | |
27962 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
27963 | } | |
27964 | typeinit = 1; | |
27965 | } | |
27966 | SWIG_InstallConstants(d,swig_const_table); | |
27967 | ||
27968 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); | |
27969 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
27970 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
27971 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
27972 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
27973 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
27974 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); | |
27975 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
27976 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
27977 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
27978 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
27979 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
27980 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
27981 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
27982 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
27983 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
27984 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
27985 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
27986 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
27987 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
27988 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
27989 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
27990 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
27991 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
27992 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
27993 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
27994 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
27995 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
27996 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
27997 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
27998 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
27999 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
28000 | ||
28001 | // Map renamed classes back to their common name for OOR | |
28002 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
28003 | ||
28004 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
28005 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
28006 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
28007 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
28008 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
28009 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
28010 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
28011 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
28012 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
28013 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
28014 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
28015 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
28016 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
28017 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
28018 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
28019 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
28020 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
28021 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
28022 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
28023 | ||
28024 | // Map renamed classes back to their common name for OOR | |
28025 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
28026 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
28027 | ||
28028 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); | |
28029 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
28030 | |
28031 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
28032 | ||
d14a1e28 RD |
28033 | } |
28034 |