]>
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 | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
0f774bef RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
0f774bef RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
0f774bef | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
0f774bef | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
0f774bef | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
0f774bef | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
0f774bef RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
423f194a | 124 | |
d14a1e28 RD |
125 | #endif |
126 | ||
0f774bef | 127 | |
d14a1e28 RD |
128 | /*********************************************************************** |
129 | * pyrun.swg for wxPython | |
130 | * | |
131 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
132 | * but not the runtime functions themselves. This helps keep the | |
133 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
134 | * anyway. | |
135 | * | |
136 | ************************************************************************/ | |
137 | ||
d14a1e28 RD |
138 | #include "Python.h" |
139 | ||
140 | #ifdef __cplusplus | |
141 | extern "C" { | |
142 | #endif | |
143 | ||
144 | #define SWIG_PY_INT 1 | |
145 | #define SWIG_PY_FLOAT 2 | |
146 | #define SWIG_PY_STRING 3 | |
147 | #define SWIG_PY_POINTER 4 | |
148 | #define SWIG_PY_BINARY 5 | |
149 | ||
150 | /* Flags for pointer conversion */ | |
151 | ||
152 | #define SWIG_POINTER_EXCEPTION 0x1 | |
153 | #define SWIG_POINTER_DISOWN 0x2 | |
154 | ||
155 | /* Exception handling in wrappers */ | |
156 | #define SWIG_fail goto fail | |
157 | ||
158 | /* Constant information structure */ | |
159 | typedef struct swig_const_info { | |
160 | int type; | |
161 | char *name; | |
162 | long lvalue; | |
163 | double dvalue; | |
164 | void *pvalue; | |
165 | swig_type_info **ptype; | |
166 | } swig_const_info; | |
167 | ||
d14a1e28 RD |
168 | /* Common SWIG API */ |
169 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
170 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
171 | #define SWIG_NewPointerObj(p, type, flags) \ | |
172 | SWIG_Python_NewPointerObj(p, type, flags) | |
173 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
174 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
175 | ||
176 | /* Python-specific SWIG API */ | |
177 | #define SWIG_newvarlink() \ | |
178 | SWIG_Python_newvarlink() | |
179 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
180 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
181 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
182 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
183 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
184 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
185 | #define SWIG_InstallConstants(d, constants) \ | |
186 | SWIG_Python_InstallConstants(d, constants) | |
187 | ||
188 | ||
0f774bef RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
d14a1e28 RD |
198 | |
199 | ||
200 | /* Contract support */ | |
201 | ||
423f194a | 202 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 203 | |
d14a1e28 RD |
204 | #ifdef __cplusplus |
205 | } | |
206 | #endif | |
207 | ||
208 | ||
209 | ||
210 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
211 | ||
212 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
213 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
214 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
215 | #define SWIGTYPE_p_wxTreeItemIdValue swig_types[3] | |
216 | #define SWIGTYPE_wxTreeItemIdValue swig_types[4] | |
217 | #define SWIGTYPE_p_wxCheckBox swig_types[5] | |
218 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[6] | |
219 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
220 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[8] | |
221 | #define SWIGTYPE_p_bool swig_types[9] | |
222 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[10] | |
223 | #define SWIGTYPE_p_wxItemContainer swig_types[11] | |
224 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[12] | |
225 | #define SWIGTYPE_p_wxPyListCtrl swig_types[13] | |
226 | #define SWIGTYPE_p_wxStaticLine swig_types[14] | |
227 | #define SWIGTYPE_p_wxControl swig_types[15] | |
228 | #define SWIGTYPE_p_wxPyControl swig_types[16] | |
229 | #define SWIGTYPE_p_wxGauge swig_types[17] | |
230 | #define SWIGTYPE_p_wxToolBarBase swig_types[18] | |
231 | #define SWIGTYPE_p_wxFont swig_types[19] | |
232 | #define SWIGTYPE_p_wxToggleButton swig_types[20] | |
233 | #define SWIGTYPE_p_wxRadioButton swig_types[21] | |
234 | #define SWIGTYPE_p_wxChoice swig_types[22] | |
423f194a RD |
235 | #define SWIGTYPE_p_wxMemoryDC swig_types[23] |
236 | #define SWIGTYPE_p_wxListItemAttr swig_types[24] | |
237 | #define SWIGTYPE_p_int swig_types[25] | |
238 | #define SWIGTYPE_p_wxSize swig_types[26] | |
239 | #define SWIGTYPE_p_wxDC swig_types[27] | |
240 | #define SWIGTYPE_p_wxListView swig_types[28] | |
241 | #define SWIGTYPE_p_wxIcon swig_types[29] | |
242 | #define SWIGTYPE_p_wxTextCtrl swig_types[30] | |
243 | #define SWIGTYPE_p_wxNotebook swig_types[31] | |
244 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
245 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
246 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
247 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
248 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
249 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
250 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
251 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
252 | #define SWIGTYPE_p_long swig_types[40] | |
253 | #define SWIGTYPE_p_wxEvtHandler swig_types[41] | |
254 | #define SWIGTYPE_p_wxListEvent swig_types[42] | |
255 | #define SWIGTYPE_p_wxListBox swig_types[43] | |
256 | #define SWIGTYPE_p_wxCheckListBox swig_types[44] | |
257 | #define SWIGTYPE_p_wxBookCtrl swig_types[45] | |
258 | #define SWIGTYPE_p_wxSpinButton swig_types[46] | |
259 | #define SWIGTYPE_p_wxButton swig_types[47] | |
260 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
261 | #define SWIGTYPE_p_wxRect swig_types[49] | |
262 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
263 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
264 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
265 | #define SWIGTYPE_p_wxTreeItemId swig_types[53] | |
266 | #define SWIGTYPE_p_wxComboBox swig_types[54] | |
267 | #define SWIGTYPE_p_wxHelpEvent swig_types[55] | |
268 | #define SWIGTYPE_p_wxListItem swig_types[56] | |
269 | #define SWIGTYPE_p_wxNotebookSizer swig_types[57] | |
270 | #define SWIGTYPE_p_wxGenericDragImage swig_types[58] | |
271 | #define SWIGTYPE_p_wxSpinCtrl swig_types[59] | |
272 | #define SWIGTYPE_p_wxImageList swig_types[60] | |
273 | #define SWIGTYPE_p_wxHelpProvider swig_types[61] | |
274 | #define SWIGTYPE_p_wxTextAttr swig_types[62] | |
275 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[63] | |
276 | #define SWIGTYPE_p_wxPoint swig_types[64] | |
277 | #define SWIGTYPE_p_wxListbookEvent swig_types[65] | |
278 | #define SWIGTYPE_p_wxNotebookEvent swig_types[66] | |
279 | #define SWIGTYPE_p_wxObject swig_types[67] | |
280 | #define SWIGTYPE_p_wxCursor swig_types[68] | |
281 | #define SWIGTYPE_p_wxKeyEvent swig_types[69] | |
282 | #define SWIGTYPE_p_wxWindow swig_types[70] | |
283 | #define SWIGTYPE_p_wxString swig_types[71] | |
284 | #define SWIGTYPE_p_wxBitmap swig_types[72] | |
285 | #define SWIGTYPE_p_wxTreeEvent swig_types[73] | |
286 | #define SWIGTYPE_p_wxMouseEvent swig_types[74] | |
287 | #define SWIGTYPE_p_wxCommandEvent swig_types[75] | |
288 | #define SWIGTYPE_p_wxStaticText swig_types[76] | |
289 | #define SWIGTYPE_p_wxControlWithItems swig_types[77] | |
290 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[78] | |
291 | #define SWIGTYPE_p_wxColour swig_types[79] | |
292 | #define SWIGTYPE_p_wxToolBar swig_types[80] | |
293 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[81] | |
294 | #define SWIGTYPE_p_wxValidator swig_types[82] | |
295 | static swig_type_info *swig_types[84]; | |
d14a1e28 RD |
296 | |
297 | /* -------- TYPES TABLE (END) -------- */ | |
298 | ||
299 | ||
300 | /*----------------------------------------------- | |
301 | @(target):= _controls.so | |
302 | ------------------------------------------------*/ | |
303 | #define SWIG_init init_controls | |
304 | ||
305 | #define SWIG_name "_controls" | |
306 | ||
307 | #include "wx/wxPython/wxPython.h" | |
308 | #include "wx/wxPython/pyclasses.h" | |
309 | ||
cbd72d4f RD |
310 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
311 | static const wxString wxPyEmptyString(wxEmptyString); | |
312 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
313 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
314 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); | |
315 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
316 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
317 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
318 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
319 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
320 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
321 | |
322 | #include <wx/checklst.h> | |
323 | ||
d14a1e28 | 324 | |
cbd72d4f | 325 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
326 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
327 | if (clientData) { | |
328 | wxPyClientData* data = new wxPyClientData(clientData); | |
329 | self->Insert(item, pos, data); | |
330 | } else | |
331 | self->Insert(item, pos); | |
332 | } | |
333 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
334 | wxArrayInt lst; | |
335 | self->GetSelections(lst); | |
336 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
337 | for(size_t i=0; i<lst.GetCount(); i++) { | |
338 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
339 | } | |
340 | return tup; | |
341 | } | |
cbd72d4f | 342 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 RD |
343 | |
344 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
345 | PyObject* o2; | |
346 | PyObject* o3; | |
347 | ||
348 | if (!target) { | |
349 | target = o; | |
350 | } else if (target == Py_None) { | |
351 | Py_DECREF(Py_None); | |
352 | target = o; | |
353 | } else { | |
354 | if (!PyTuple_Check(target)) { | |
355 | o2 = target; | |
356 | target = PyTuple_New(1); | |
357 | PyTuple_SetItem(target, 0, o2); | |
358 | } | |
359 | o3 = PyTuple_New(1); | |
360 | PyTuple_SetItem(o3, 0, o); | |
361 | ||
362 | o2 = target; | |
363 | target = PySequence_Concat(o2, o3); | |
364 | Py_DECREF(o2); | |
365 | Py_DECREF(o3); | |
366 | } | |
367 | return target; | |
368 | } | |
369 | ||
370 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
371 | self->AppendText(text); | |
372 | } | |
373 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
374 | return self->GetValue().Mid(from, to - from); | |
375 | } | |
cbd72d4f RD |
376 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
377 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
378 | static const wxString wxPySpinCtrlNameStr(wxT(_T("wxSpinCtrl"))); | |
379 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
380 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
381 | |
382 | #include <wx/slider.h> | |
383 | ||
d14a1e28 | 384 | |
cbd72d4f RD |
385 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
386 | static const wxString wxPyToggleButtonNameStr(wxT(_T("wxToggleButton"))); | |
d14a1e28 RD |
387 | |
388 | #ifdef __WXMAC__ | |
389 | // implement dummy classes and such for wxMac | |
390 | ||
391 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
392 | ||
393 | class wxToggleButton : public wxControl | |
394 | { | |
395 | public: | |
396 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
397 | const wxPoint&, const wxSize&, long, | |
398 | const wxValidator&, const wxString&) | |
cbd72d4f | 399 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
400 | |
401 | wxToggleButton() | |
cbd72d4f | 402 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
403 | }; |
404 | #endif | |
405 | ||
cbd72d4f RD |
406 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
407 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
d14a1e28 RD |
408 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
409 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
410 | if (udata) { | |
411 | Py_INCREF(udata->m_obj); | |
412 | return udata->m_obj; | |
413 | } else { | |
414 | Py_INCREF(Py_None); | |
415 | return Py_None; | |
416 | } | |
417 | } | |
418 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
419 | self->SetClientData(new wxPyUserData(clientData)); | |
420 | } | |
421 | 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){ | |
422 | wxPyUserData* udata = NULL; | |
423 | if (clientData && clientData != Py_None) | |
424 | udata = new wxPyUserData(clientData); | |
425 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
426 | shortHelp, longHelp, udata); | |
427 | } | |
428 | 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){ | |
429 | wxPyUserData* udata = NULL; | |
430 | if (clientData && clientData != Py_None) | |
431 | udata = new wxPyUserData(clientData); | |
432 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
433 | shortHelp, longHelp, udata); | |
434 | } | |
435 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
436 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
437 | if (udata) { | |
438 | Py_INCREF(udata->m_obj); | |
439 | return udata->m_obj; | |
440 | } else { | |
441 | Py_INCREF(Py_None); | |
442 | return Py_None; | |
443 | } | |
444 | } | |
445 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
446 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
447 | } | |
448 | ||
449 | #include <wx/listctrl.h> | |
450 | ||
d14a1e28 | 451 | |
cbd72d4f | 452 | static const wxString wxPyListCtrlNameStr(wxT(_T("wxListCtrl"))); |
d14a1e28 RD |
453 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
454 | // Python aware sorting function for wxPyListCtrl | |
455 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
456 | int retval = 0; | |
457 | PyObject* func = (PyObject*)funcPtr; | |
458 | wxPyBeginBlockThreads(); | |
459 | ||
460 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
461 | PyObject* result = PyEval_CallObject(func, args); | |
462 | Py_DECREF(args); | |
463 | if (result) { | |
464 | retval = PyInt_AsLong(result); | |
465 | Py_DECREF(result); | |
466 | } | |
467 | ||
468 | wxPyEndBlockThreads(); | |
469 | return retval; | |
470 | } | |
471 | ||
472 | // C++ Version of a Python aware class | |
473 | class wxPyListCtrl : public wxListCtrl { | |
474 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
475 | public: | |
476 | wxPyListCtrl() : wxListCtrl() {} | |
477 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
478 | const wxPoint& pos, | |
479 | const wxSize& size, | |
480 | long style, | |
481 | const wxValidator& validator, | |
482 | const wxString& name) : | |
483 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
484 | ||
485 | bool Create(wxWindow* parent, wxWindowID id, | |
486 | const wxPoint& pos, | |
487 | const wxSize& size, | |
488 | long style, | |
489 | const wxValidator& validator, | |
490 | const wxString& name) { | |
491 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
492 | } | |
493 | ||
494 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
495 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
496 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
497 | ||
498 | PYPRIVATE; | |
499 | }; | |
500 | ||
501 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
502 | ||
503 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
504 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
505 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
506 | ||
507 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
508 | wxListItem item; | |
509 | item.SetMask( wxLIST_MASK_STATE | | |
510 | wxLIST_MASK_TEXT | | |
511 | wxLIST_MASK_IMAGE | | |
512 | wxLIST_MASK_DATA | | |
513 | wxLIST_SET_ITEM | | |
514 | wxLIST_MASK_WIDTH | | |
515 | wxLIST_MASK_FORMAT | |
516 | ); | |
517 | if (self->GetColumn(col, item)) | |
518 | return new wxListItem(item); | |
519 | else | |
520 | return NULL; | |
521 | } | |
522 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
523 | wxListItem* info = new wxListItem; | |
524 | info->m_itemId = itemId; | |
525 | info->m_col = col; | |
526 | info->m_mask = 0xFFFF; | |
527 | self->GetItem(*info); | |
528 | return info; | |
529 | } | |
530 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
531 | wxPoint pos; | |
532 | self->GetItemPosition(item, pos); | |
533 | return pos; | |
534 | } | |
535 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
536 | wxRect rect; | |
537 | self->GetItemRect(item, rect, code); | |
538 | return rect; | |
539 | } | |
540 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
541 | if (!PyCallable_Check(func)) | |
423f194a | 542 | return False; |
d14a1e28 RD |
543 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
544 | } | |
545 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
546 | ||
547 | ||
548 | ||
549 | return (wxWindow*)self->m_mainWin; | |
550 | ||
551 | } | |
552 | ||
553 | #include <wx/treectrl.h> | |
554 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 555 | |
cbd72d4f | 556 | static const wxString wxPyTreeCtrlNameStr(wxT(_T("wxTreeCtrl"))); |
d14a1e28 | 557 | bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){ |
423f194a | 558 | if (!other) return False; |
d14a1e28 RD |
559 | return *self == *other; |
560 | } | |
561 | bool wxTreeItemId_operator_Ne___(wxTreeItemId *self,wxTreeItemId const *other){ | |
423f194a | 562 | if (!other) return True; |
d14a1e28 RD |
563 | return *self != *other; |
564 | } | |
565 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
566 | // C++ version of Python aware wxTreeCtrl | |
567 | class wxPyTreeCtrl : public wxTreeCtrl { | |
568 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
569 | public: | |
570 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
571 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
572 | const wxPoint& pos, | |
573 | const wxSize& size, | |
574 | long style, | |
575 | const wxValidator& validator, | |
576 | const wxString& name) : | |
577 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
578 | ||
579 | bool Create(wxWindow *parent, wxWindowID id, | |
580 | const wxPoint& pos, | |
581 | const wxSize& size, | |
582 | long style, | |
583 | const wxValidator& validator, | |
584 | const wxString& name) { | |
585 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
586 | } | |
587 | ||
588 | ||
589 | int OnCompareItems(const wxTreeItemId& item1, | |
590 | const wxTreeItemId& item2) { | |
591 | int rval = 0; | |
592 | bool found; | |
593 | wxPyBeginBlockThreads(); | |
594 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
423f194a RD |
595 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
596 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
597 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
598 | Py_DECREF(o1); | |
599 | Py_DECREF(o2); | |
600 | } | |
601 | wxPyEndBlockThreads(); | |
602 | if (! found) | |
603 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
604 | return rval; | |
605 | } | |
606 | PYPRIVATE; | |
607 | }; | |
608 | ||
609 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
610 | ||
611 | ||
612 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
613 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
614 | if (data == NULL) { | |
615 | data = new wxPyTreeItemData(); | |
616 | data->SetId(item); // set the id | |
617 | self->SetItemData(item, data); | |
618 | } | |
619 | return data; | |
620 | } | |
621 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
622 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
623 | if (data == NULL) { | |
624 | data = new wxPyTreeItemData(); | |
625 | data->SetId(item); // set the id | |
626 | self->SetItemData(item, data); | |
627 | } | |
628 | return data->GetData(); | |
629 | } | |
630 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
631 | data->SetId(item); // set the id | |
632 | self->SetItemData(item, data); | |
633 | } | |
634 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
635 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
636 | if (data == NULL) { | |
637 | data = new wxPyTreeItemData(obj); | |
638 | data->SetId(item); // set the id | |
639 | self->SetItemData(item, data); | |
640 | } else | |
641 | data->SetData(obj); | |
642 | } | |
643 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
644 | wxPyBeginBlockThreads(); | |
645 | PyObject* rval = PyList_New(0); | |
646 | wxArrayTreeItemIds array; | |
647 | size_t num, x; | |
648 | num = self->GetSelections(array); | |
649 | for (x=0; x < num; x++) { | |
650 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
423f194a | 651 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
652 | PyList_Append(rval, item); |
653 | } | |
654 | wxPyEndBlockThreads(); | |
655 | return rval; | |
656 | } | |
657 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
658 | wxTreeItemIdValue cookie = 0; | |
659 | wxTreeItemId ritem = self->GetFirstChild(item, cookie); | |
660 | wxPyBeginBlockThreads(); | |
661 | PyObject* tup = PyTuple_New(2); | |
423f194a RD |
662 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(&ritem, wxT("wxTreeItemId"), True)); |
663 | PyTuple_SET_ITEM(tup, 1, wxPyConstructObject(cookie, wxT("wxTreeItemIdValue"), True)); | |
d14a1e28 RD |
664 | wxPyEndBlockThreads(); |
665 | return tup; | |
666 | } | |
667 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,wxTreeItemIdValue &cookie){ | |
668 | wxTreeItemId ritem = self->GetNextChild(item, cookie); | |
669 | wxPyBeginBlockThreads(); | |
670 | PyObject* tup = PyTuple_New(2); | |
423f194a RD |
671 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(&ritem, wxT("wxTreeItemId"), True)); |
672 | PyTuple_SET_ITEM(tup, 1, wxPyConstructObject(cookie, wxT("wxTreeItemIdValue"), True)); | |
d14a1e28 RD |
673 | wxPyEndBlockThreads(); |
674 | return tup; | |
675 | } | |
676 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
677 | wxRect rect; | |
678 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
679 | wxPyBeginBlockThreads(); | |
680 | wxRect* r = new wxRect(rect); | |
423f194a | 681 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
d14a1e28 RD |
682 | wxPyEndBlockThreads(); |
683 | return val; | |
684 | } | |
685 | else | |
686 | RETURN_NONE(); | |
687 | } | |
cbd72d4f | 688 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
689 | // C++ version of Python aware wxControl |
690 | class wxPyControl : public wxControl | |
691 | { | |
692 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
693 | public: | |
694 | wxPyControl() : wxControl() {} | |
695 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
696 | const wxPoint& pos = wxDefaultPosition, | |
697 | const wxSize& size = wxDefaultSize, | |
698 | long style = 0, | |
699 | const wxValidator& validator=wxDefaultValidator, | |
700 | const wxString& name = wxPyControlNameStr) | |
701 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
702 | ||
703 | ||
704 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
705 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
706 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
707 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
708 | ||
709 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
710 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
711 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
712 | ||
713 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
714 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
715 | ||
716 | DEC_PYCALLBACK__(InitDialog); | |
717 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
718 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
719 | DEC_PYCALLBACK_BOOL_(Validate); | |
720 | ||
721 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
722 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
723 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
724 | ||
725 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
726 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
727 | ||
728 | PYPRIVATE; | |
729 | }; | |
730 | ||
731 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
732 | ||
733 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
734 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
735 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
736 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
737 | ||
738 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
739 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
740 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
741 | ||
742 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
743 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
744 | ||
745 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
746 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
747 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
748 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
749 | ||
750 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
751 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
752 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
753 | ||
754 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
755 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
756 | ||
757 | ||
758 | ||
759 | ||
760 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
423f194a RD |
761 | |
762 | #include <wx/generic/dragimgg.h> | |
763 | ||
d14a1e28 RD |
764 | #ifdef __cplusplus |
765 | extern "C" { | |
766 | #endif | |
cbd72d4f RD |
767 | static int _wrap_ButtonNameStr_set(PyObject *_val) { |
768 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
769 | return 1; | |
770 | } | |
771 | ||
772 | ||
773 | static PyObject *_wrap_ButtonNameStr_get() { | |
774 | PyObject *pyobj; | |
775 | ||
776 | { | |
777 | #if wxUSE_UNICODE | |
778 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
779 | #else | |
780 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
781 | #endif | |
782 | } | |
783 | return pyobj; | |
784 | } | |
785 | ||
786 | ||
d14a1e28 RD |
787 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
788 | PyObject *resultobj; | |
789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 790 | int arg2 ; |
d14a1e28 RD |
791 | wxString *arg3 = 0 ; |
792 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
793 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
794 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
795 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
796 | long arg6 = (long) 0 ; | |
797 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
798 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
799 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
800 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
801 | wxButton *result; | |
423f194a | 802 | bool temp3 = False ; |
d14a1e28 RD |
803 | wxPoint temp4 ; |
804 | wxSize temp5 ; | |
423f194a | 805 | bool temp8 = False ; |
d14a1e28 RD |
806 | PyObject * obj0 = 0 ; |
807 | PyObject * obj2 = 0 ; | |
808 | PyObject * obj3 = 0 ; | |
809 | PyObject * obj4 = 0 ; | |
810 | PyObject * obj6 = 0 ; | |
811 | PyObject * obj7 = 0 ; | |
812 | char *kwnames[] = { | |
813 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
814 | }; | |
815 | ||
816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_Button",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
818 | { | |
819 | arg3 = wxString_in_helper(obj2); | |
820 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 821 | temp3 = True; |
d14a1e28 RD |
822 | } |
823 | if (obj3) { | |
824 | { | |
825 | arg4 = &temp4; | |
826 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
827 | } | |
828 | } | |
829 | if (obj4) { | |
830 | { | |
831 | arg5 = &temp5; | |
832 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
833 | } | |
834 | } | |
835 | if (obj6) { | |
836 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
837 | if (arg7 == NULL) { | |
838 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
839 | } | |
840 | } | |
841 | if (obj7) { | |
842 | { | |
843 | arg8 = wxString_in_helper(obj7); | |
844 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 845 | temp8 = True; |
d14a1e28 RD |
846 | } |
847 | } | |
848 | { | |
849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
850 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
851 | ||
852 | wxPyEndAllowThreads(__tstate); | |
853 | if (PyErr_Occurred()) SWIG_fail; | |
854 | } | |
855 | { | |
856 | resultobj = wxPyMake_wxObject(result); | |
857 | } | |
858 | { | |
859 | if (temp3) | |
860 | delete arg3; | |
861 | } | |
862 | { | |
863 | if (temp8) | |
864 | delete arg8; | |
865 | } | |
866 | return resultobj; | |
867 | fail: | |
868 | { | |
869 | if (temp3) | |
870 | delete arg3; | |
871 | } | |
872 | { | |
873 | if (temp8) | |
874 | delete arg8; | |
875 | } | |
876 | return NULL; | |
877 | } | |
878 | ||
879 | ||
880 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
881 | PyObject *resultobj; | |
882 | wxButton *result; | |
883 | char *kwnames[] = { | |
884 | NULL | |
885 | }; | |
886 | ||
887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
888 | { | |
889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
890 | result = (wxButton *)new wxButton(); | |
891 | ||
892 | wxPyEndAllowThreads(__tstate); | |
893 | if (PyErr_Occurred()) SWIG_fail; | |
894 | } | |
895 | { | |
896 | resultobj = wxPyMake_wxObject(result); | |
897 | } | |
898 | return resultobj; | |
899 | fail: | |
900 | return NULL; | |
901 | } | |
902 | ||
903 | ||
904 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
905 | PyObject *resultobj; | |
906 | wxButton *arg1 = (wxButton *) 0 ; | |
907 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 908 | int arg3 ; |
d14a1e28 RD |
909 | wxString *arg4 = 0 ; |
910 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
911 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
912 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
913 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
914 | long arg7 = (long) 0 ; | |
915 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
916 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
917 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
918 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
919 | bool result; | |
423f194a | 920 | bool temp4 = False ; |
d14a1e28 RD |
921 | wxPoint temp5 ; |
922 | wxSize temp6 ; | |
423f194a | 923 | bool temp9 = False ; |
d14a1e28 RD |
924 | PyObject * obj0 = 0 ; |
925 | PyObject * obj1 = 0 ; | |
926 | PyObject * obj3 = 0 ; | |
927 | PyObject * obj4 = 0 ; | |
928 | PyObject * obj5 = 0 ; | |
929 | PyObject * obj7 = 0 ; | |
930 | PyObject * obj8 = 0 ; | |
931 | char *kwnames[] = { | |
932 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
933 | }; | |
934 | ||
935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:Button_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
937 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
938 | { | |
939 | arg4 = wxString_in_helper(obj3); | |
940 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 941 | temp4 = True; |
d14a1e28 RD |
942 | } |
943 | if (obj4) { | |
944 | { | |
945 | arg5 = &temp5; | |
946 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
947 | } | |
948 | } | |
949 | if (obj5) { | |
950 | { | |
951 | arg6 = &temp6; | |
952 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
953 | } | |
954 | } | |
955 | if (obj7) { | |
956 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
957 | if (arg8 == NULL) { | |
958 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
959 | } | |
960 | } | |
961 | if (obj8) { | |
962 | { | |
963 | arg9 = wxString_in_helper(obj8); | |
964 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 965 | temp9 = True; |
d14a1e28 RD |
966 | } |
967 | } | |
968 | { | |
969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
970 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
971 | ||
972 | wxPyEndAllowThreads(__tstate); | |
973 | if (PyErr_Occurred()) SWIG_fail; | |
974 | } | |
975 | resultobj = PyInt_FromLong((long)result); | |
976 | { | |
977 | if (temp4) | |
978 | delete arg4; | |
979 | } | |
980 | { | |
981 | if (temp9) | |
982 | delete arg9; | |
983 | } | |
984 | return resultobj; | |
985 | fail: | |
986 | { | |
987 | if (temp4) | |
988 | delete arg4; | |
989 | } | |
990 | { | |
991 | if (temp9) | |
992 | delete arg9; | |
993 | } | |
994 | return NULL; | |
995 | } | |
996 | ||
997 | ||
998 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
999 | PyObject *resultobj; | |
1000 | wxButton *arg1 = (wxButton *) 0 ; | |
1001 | PyObject * obj0 = 0 ; | |
1002 | char *kwnames[] = { | |
1003 | (char *) "self", NULL | |
1004 | }; | |
1005 | ||
1006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1008 | { | |
1009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1010 | (arg1)->SetDefault(); | |
1011 | ||
1012 | wxPyEndAllowThreads(__tstate); | |
1013 | if (PyErr_Occurred()) SWIG_fail; | |
1014 | } | |
1015 | Py_INCREF(Py_None); resultobj = Py_None; | |
1016 | return resultobj; | |
1017 | fail: | |
1018 | return NULL; | |
1019 | } | |
1020 | ||
1021 | ||
1022 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1023 | PyObject *resultobj; | |
1024 | wxSize result; | |
1025 | char *kwnames[] = { | |
1026 | NULL | |
1027 | }; | |
1028 | ||
1029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1030 | { | |
1031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1032 | result = wxButton::GetDefaultSize(); | |
1033 | ||
1034 | wxPyEndAllowThreads(__tstate); | |
1035 | if (PyErr_Occurred()) SWIG_fail; | |
1036 | } | |
1037 | { | |
1038 | wxSize * resultptr; | |
1039 | resultptr = new wxSize((wxSize &) result); | |
1040 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1041 | } | |
1042 | return resultobj; | |
1043 | fail: | |
1044 | return NULL; | |
1045 | } | |
1046 | ||
1047 | ||
1048 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1049 | PyObject *obj; | |
1050 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1051 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1052 | Py_INCREF(obj); | |
1053 | return Py_BuildValue((char *)""); | |
1054 | } | |
1055 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1056 | PyObject *resultobj; | |
1057 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1058 | int arg2 ; |
d14a1e28 RD |
1059 | wxBitmap *arg3 = 0 ; |
1060 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1061 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1062 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1063 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1064 | long arg6 = (long) wxBU_AUTODRAW ; | |
1065 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1066 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1067 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1068 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1069 | wxBitmapButton *result; | |
1070 | wxPoint temp4 ; | |
1071 | wxSize temp5 ; | |
423f194a | 1072 | bool temp8 = False ; |
d14a1e28 RD |
1073 | PyObject * obj0 = 0 ; |
1074 | PyObject * obj2 = 0 ; | |
1075 | PyObject * obj3 = 0 ; | |
1076 | PyObject * obj4 = 0 ; | |
1077 | PyObject * obj6 = 0 ; | |
1078 | PyObject * obj7 = 0 ; | |
1079 | char *kwnames[] = { | |
1080 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1081 | }; | |
1082 | ||
1083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_BitmapButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
1084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1085 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1086 | if (arg3 == NULL) { | |
1087 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1088 | } | |
1089 | if (obj3) { | |
1090 | { | |
1091 | arg4 = &temp4; | |
1092 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1093 | } | |
1094 | } | |
1095 | if (obj4) { | |
1096 | { | |
1097 | arg5 = &temp5; | |
1098 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1099 | } | |
1100 | } | |
1101 | if (obj6) { | |
1102 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1103 | if (arg7 == NULL) { | |
1104 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1105 | } | |
1106 | } | |
1107 | if (obj7) { | |
1108 | { | |
1109 | arg8 = wxString_in_helper(obj7); | |
1110 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1111 | temp8 = True; |
d14a1e28 RD |
1112 | } |
1113 | } | |
1114 | { | |
1115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1116 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1117 | ||
1118 | wxPyEndAllowThreads(__tstate); | |
1119 | if (PyErr_Occurred()) SWIG_fail; | |
1120 | } | |
1121 | { | |
1122 | resultobj = wxPyMake_wxObject(result); | |
1123 | } | |
1124 | { | |
1125 | if (temp8) | |
1126 | delete arg8; | |
1127 | } | |
1128 | return resultobj; | |
1129 | fail: | |
1130 | { | |
1131 | if (temp8) | |
1132 | delete arg8; | |
1133 | } | |
1134 | return NULL; | |
1135 | } | |
1136 | ||
1137 | ||
1138 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1139 | PyObject *resultobj; | |
1140 | wxBitmapButton *result; | |
1141 | char *kwnames[] = { | |
1142 | NULL | |
1143 | }; | |
1144 | ||
1145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1146 | { | |
1147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1148 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1149 | ||
1150 | wxPyEndAllowThreads(__tstate); | |
1151 | if (PyErr_Occurred()) SWIG_fail; | |
1152 | } | |
1153 | { | |
1154 | resultobj = wxPyMake_wxObject(result); | |
1155 | } | |
1156 | return resultobj; | |
1157 | fail: | |
1158 | return NULL; | |
1159 | } | |
1160 | ||
1161 | ||
1162 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1163 | PyObject *resultobj; | |
1164 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1165 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1166 | int arg3 ; |
d14a1e28 RD |
1167 | wxBitmap *arg4 = 0 ; |
1168 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1169 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1170 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1171 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1172 | long arg7 = (long) wxBU_AUTODRAW ; | |
1173 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1174 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1175 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1176 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1177 | bool result; | |
1178 | wxPoint temp5 ; | |
1179 | wxSize temp6 ; | |
423f194a | 1180 | bool temp9 = False ; |
d14a1e28 RD |
1181 | PyObject * obj0 = 0 ; |
1182 | PyObject * obj1 = 0 ; | |
1183 | PyObject * obj3 = 0 ; | |
1184 | PyObject * obj4 = 0 ; | |
1185 | PyObject * obj5 = 0 ; | |
1186 | PyObject * obj7 = 0 ; | |
1187 | PyObject * obj8 = 0 ; | |
1188 | char *kwnames[] = { | |
1189 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1190 | }; | |
1191 | ||
1192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:BitmapButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
1193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1194 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1195 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1196 | if (arg4 == NULL) { | |
1197 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1198 | } | |
1199 | if (obj4) { | |
1200 | { | |
1201 | arg5 = &temp5; | |
1202 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1203 | } | |
1204 | } | |
1205 | if (obj5) { | |
1206 | { | |
1207 | arg6 = &temp6; | |
1208 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1209 | } | |
1210 | } | |
1211 | if (obj7) { | |
1212 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1213 | if (arg8 == NULL) { | |
1214 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1215 | } | |
1216 | } | |
1217 | if (obj8) { | |
1218 | { | |
1219 | arg9 = wxString_in_helper(obj8); | |
1220 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1221 | temp9 = True; |
d14a1e28 RD |
1222 | } |
1223 | } | |
1224 | { | |
1225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1226 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1227 | ||
1228 | wxPyEndAllowThreads(__tstate); | |
1229 | if (PyErr_Occurred()) SWIG_fail; | |
1230 | } | |
1231 | resultobj = PyInt_FromLong((long)result); | |
1232 | { | |
1233 | if (temp9) | |
1234 | delete arg9; | |
1235 | } | |
1236 | return resultobj; | |
1237 | fail: | |
1238 | { | |
1239 | if (temp9) | |
1240 | delete arg9; | |
1241 | } | |
1242 | return NULL; | |
1243 | } | |
1244 | ||
1245 | ||
1246 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1247 | PyObject *resultobj; | |
1248 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1249 | wxBitmap result; | |
1250 | PyObject * obj0 = 0 ; | |
1251 | char *kwnames[] = { | |
1252 | (char *) "self", NULL | |
1253 | }; | |
1254 | ||
1255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1257 | { | |
1258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1259 | result = (arg1)->GetBitmapLabel(); | |
1260 | ||
1261 | wxPyEndAllowThreads(__tstate); | |
1262 | if (PyErr_Occurred()) SWIG_fail; | |
1263 | } | |
1264 | { | |
1265 | wxBitmap * resultptr; | |
1266 | resultptr = new wxBitmap((wxBitmap &) result); | |
1267 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1268 | } | |
1269 | return resultobj; | |
1270 | fail: | |
1271 | return NULL; | |
1272 | } | |
1273 | ||
1274 | ||
1275 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1276 | PyObject *resultobj; | |
1277 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1278 | wxBitmap result; | |
1279 | PyObject * obj0 = 0 ; | |
1280 | char *kwnames[] = { | |
1281 | (char *) "self", NULL | |
1282 | }; | |
1283 | ||
1284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1286 | { | |
1287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1288 | result = (arg1)->GetBitmapDisabled(); | |
1289 | ||
1290 | wxPyEndAllowThreads(__tstate); | |
1291 | if (PyErr_Occurred()) SWIG_fail; | |
1292 | } | |
1293 | { | |
1294 | wxBitmap * resultptr; | |
1295 | resultptr = new wxBitmap((wxBitmap &) result); | |
1296 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1297 | } | |
1298 | return resultobj; | |
1299 | fail: | |
1300 | return NULL; | |
1301 | } | |
1302 | ||
1303 | ||
1304 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1305 | PyObject *resultobj; | |
1306 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1307 | wxBitmap result; | |
1308 | PyObject * obj0 = 0 ; | |
1309 | char *kwnames[] = { | |
1310 | (char *) "self", NULL | |
1311 | }; | |
1312 | ||
1313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1315 | { | |
1316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1317 | result = (arg1)->GetBitmapFocus(); | |
1318 | ||
1319 | wxPyEndAllowThreads(__tstate); | |
1320 | if (PyErr_Occurred()) SWIG_fail; | |
1321 | } | |
1322 | { | |
1323 | wxBitmap * resultptr; | |
1324 | resultptr = new wxBitmap((wxBitmap &) result); | |
1325 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1326 | } | |
1327 | return resultobj; | |
1328 | fail: | |
1329 | return NULL; | |
1330 | } | |
1331 | ||
1332 | ||
1333 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1334 | PyObject *resultobj; | |
1335 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1336 | wxBitmap result; | |
1337 | PyObject * obj0 = 0 ; | |
1338 | char *kwnames[] = { | |
1339 | (char *) "self", NULL | |
1340 | }; | |
1341 | ||
1342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1344 | { | |
1345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1346 | result = (arg1)->GetBitmapSelected(); | |
1347 | ||
1348 | wxPyEndAllowThreads(__tstate); | |
1349 | if (PyErr_Occurred()) SWIG_fail; | |
1350 | } | |
1351 | { | |
1352 | wxBitmap * resultptr; | |
1353 | resultptr = new wxBitmap((wxBitmap &) result); | |
1354 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1355 | } | |
1356 | return resultobj; | |
1357 | fail: | |
1358 | return NULL; | |
1359 | } | |
1360 | ||
1361 | ||
1362 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1363 | PyObject *resultobj; | |
1364 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1365 | wxBitmap *arg2 = 0 ; | |
1366 | PyObject * obj0 = 0 ; | |
1367 | PyObject * obj1 = 0 ; | |
1368 | char *kwnames[] = { | |
1369 | (char *) "self",(char *) "bitmap", NULL | |
1370 | }; | |
1371 | ||
1372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1374 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1375 | if (arg2 == NULL) { | |
1376 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1377 | } | |
1378 | { | |
1379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1380 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1381 | ||
1382 | wxPyEndAllowThreads(__tstate); | |
1383 | if (PyErr_Occurred()) SWIG_fail; | |
1384 | } | |
1385 | Py_INCREF(Py_None); resultobj = Py_None; | |
1386 | return resultobj; | |
1387 | fail: | |
1388 | return NULL; | |
1389 | } | |
1390 | ||
1391 | ||
1392 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1393 | PyObject *resultobj; | |
1394 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1395 | wxBitmap *arg2 = 0 ; | |
1396 | PyObject * obj0 = 0 ; | |
1397 | PyObject * obj1 = 0 ; | |
1398 | char *kwnames[] = { | |
1399 | (char *) "self",(char *) "bitmap", NULL | |
1400 | }; | |
1401 | ||
1402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1404 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1405 | if (arg2 == NULL) { | |
1406 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1407 | } | |
1408 | { | |
1409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1410 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1411 | ||
1412 | wxPyEndAllowThreads(__tstate); | |
1413 | if (PyErr_Occurred()) SWIG_fail; | |
1414 | } | |
1415 | Py_INCREF(Py_None); resultobj = Py_None; | |
1416 | return resultobj; | |
1417 | fail: | |
1418 | return NULL; | |
1419 | } | |
1420 | ||
1421 | ||
1422 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1423 | PyObject *resultobj; | |
1424 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1425 | wxBitmap *arg2 = 0 ; | |
1426 | PyObject * obj0 = 0 ; | |
1427 | PyObject * obj1 = 0 ; | |
1428 | char *kwnames[] = { | |
1429 | (char *) "self",(char *) "bitmap", NULL | |
1430 | }; | |
1431 | ||
1432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1434 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1435 | if (arg2 == NULL) { | |
1436 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1437 | } | |
1438 | { | |
1439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1440 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1441 | ||
1442 | wxPyEndAllowThreads(__tstate); | |
1443 | if (PyErr_Occurred()) SWIG_fail; | |
1444 | } | |
1445 | Py_INCREF(Py_None); resultobj = Py_None; | |
1446 | return resultobj; | |
1447 | fail: | |
1448 | return NULL; | |
1449 | } | |
1450 | ||
1451 | ||
1452 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1453 | PyObject *resultobj; | |
1454 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1455 | wxBitmap *arg2 = 0 ; | |
1456 | PyObject * obj0 = 0 ; | |
1457 | PyObject * obj1 = 0 ; | |
1458 | char *kwnames[] = { | |
1459 | (char *) "self",(char *) "bitmap", NULL | |
1460 | }; | |
1461 | ||
1462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1464 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1465 | if (arg2 == NULL) { | |
1466 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1467 | } | |
1468 | { | |
1469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1470 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1471 | ||
1472 | wxPyEndAllowThreads(__tstate); | |
1473 | if (PyErr_Occurred()) SWIG_fail; | |
1474 | } | |
1475 | Py_INCREF(Py_None); resultobj = Py_None; | |
1476 | return resultobj; | |
1477 | fail: | |
1478 | return NULL; | |
1479 | } | |
1480 | ||
1481 | ||
1482 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1483 | PyObject *resultobj; | |
1484 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1485 | int arg2 ; | |
1486 | int arg3 ; | |
1487 | PyObject * obj0 = 0 ; | |
1488 | char *kwnames[] = { | |
1489 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1490 | }; | |
1491 | ||
1492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:BitmapButton_SetMargins",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1494 | { | |
1495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1496 | (arg1)->SetMargins(arg2,arg3); | |
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_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject *resultobj; | |
1510 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1511 | int result; | |
1512 | PyObject * obj0 = 0 ; | |
1513 | char *kwnames[] = { | |
1514 | (char *) "self", NULL | |
1515 | }; | |
1516 | ||
1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1519 | { | |
1520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1521 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1522 | ||
1523 | wxPyEndAllowThreads(__tstate); | |
1524 | if (PyErr_Occurred()) SWIG_fail; | |
1525 | } | |
1526 | resultobj = PyInt_FromLong((long)result); | |
1527 | return resultobj; | |
1528 | fail: | |
1529 | return NULL; | |
1530 | } | |
1531 | ||
1532 | ||
1533 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1534 | PyObject *resultobj; | |
1535 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1536 | int result; | |
1537 | PyObject * obj0 = 0 ; | |
1538 | char *kwnames[] = { | |
1539 | (char *) "self", NULL | |
1540 | }; | |
1541 | ||
1542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1544 | { | |
1545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1546 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1547 | ||
1548 | wxPyEndAllowThreads(__tstate); | |
1549 | if (PyErr_Occurred()) SWIG_fail; | |
1550 | } | |
1551 | resultobj = PyInt_FromLong((long)result); | |
1552 | return resultobj; | |
1553 | fail: | |
1554 | return NULL; | |
1555 | } | |
1556 | ||
1557 | ||
1558 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1559 | PyObject *obj; | |
1560 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1561 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1562 | Py_INCREF(obj); | |
1563 | return Py_BuildValue((char *)""); | |
1564 | } | |
cbd72d4f RD |
1565 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { |
1566 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1567 | return 1; | |
1568 | } | |
1569 | ||
1570 | ||
1571 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1572 | PyObject *pyobj; | |
1573 | ||
1574 | { | |
1575 | #if wxUSE_UNICODE | |
1576 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1577 | #else | |
1578 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1579 | #endif | |
1580 | } | |
1581 | return pyobj; | |
1582 | } | |
1583 | ||
1584 | ||
d14a1e28 RD |
1585 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1586 | PyObject *resultobj; | |
1587 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1588 | int arg2 ; |
d14a1e28 RD |
1589 | wxString *arg3 = 0 ; |
1590 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1591 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1592 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1593 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1594 | long arg6 = (long) 0 ; | |
1595 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1596 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1597 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1598 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1599 | wxCheckBox *result; | |
423f194a | 1600 | bool temp3 = False ; |
d14a1e28 RD |
1601 | wxPoint temp4 ; |
1602 | wxSize temp5 ; | |
423f194a | 1603 | bool temp8 = False ; |
d14a1e28 RD |
1604 | PyObject * obj0 = 0 ; |
1605 | PyObject * obj2 = 0 ; | |
1606 | PyObject * obj3 = 0 ; | |
1607 | PyObject * obj4 = 0 ; | |
1608 | PyObject * obj6 = 0 ; | |
1609 | PyObject * obj7 = 0 ; | |
1610 | char *kwnames[] = { | |
1611 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1612 | }; | |
1613 | ||
1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_CheckBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
1615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1616 | { | |
1617 | arg3 = wxString_in_helper(obj2); | |
1618 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 1619 | temp3 = True; |
d14a1e28 RD |
1620 | } |
1621 | if (obj3) { | |
1622 | { | |
1623 | arg4 = &temp4; | |
1624 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1625 | } | |
1626 | } | |
1627 | if (obj4) { | |
1628 | { | |
1629 | arg5 = &temp5; | |
1630 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1631 | } | |
1632 | } | |
1633 | if (obj6) { | |
1634 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1635 | if (arg7 == NULL) { | |
1636 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1637 | } | |
1638 | } | |
1639 | if (obj7) { | |
1640 | { | |
1641 | arg8 = wxString_in_helper(obj7); | |
1642 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1643 | temp8 = True; |
d14a1e28 RD |
1644 | } |
1645 | } | |
1646 | { | |
1647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1648 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1649 | ||
1650 | wxPyEndAllowThreads(__tstate); | |
1651 | if (PyErr_Occurred()) SWIG_fail; | |
1652 | } | |
1653 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1654 | { | |
1655 | if (temp3) | |
1656 | delete arg3; | |
1657 | } | |
1658 | { | |
1659 | if (temp8) | |
1660 | delete arg8; | |
1661 | } | |
1662 | return resultobj; | |
1663 | fail: | |
1664 | { | |
1665 | if (temp3) | |
1666 | delete arg3; | |
1667 | } | |
1668 | { | |
1669 | if (temp8) | |
1670 | delete arg8; | |
1671 | } | |
1672 | return NULL; | |
1673 | } | |
1674 | ||
1675 | ||
1676 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1677 | PyObject *resultobj; | |
1678 | wxCheckBox *result; | |
1679 | char *kwnames[] = { | |
1680 | NULL | |
1681 | }; | |
1682 | ||
1683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
1684 | { | |
1685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1686 | result = (wxCheckBox *)new wxCheckBox(); | |
1687 | ||
1688 | wxPyEndAllowThreads(__tstate); | |
1689 | if (PyErr_Occurred()) SWIG_fail; | |
1690 | } | |
1691 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1692 | return resultobj; | |
1693 | fail: | |
1694 | return NULL; | |
1695 | } | |
1696 | ||
1697 | ||
1698 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1699 | PyObject *resultobj; | |
1700 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1701 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1702 | int arg3 ; |
d14a1e28 RD |
1703 | wxString *arg4 = 0 ; |
1704 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1705 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1706 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1707 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1708 | long arg7 = (long) 0 ; | |
1709 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1710 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1711 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
1712 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1713 | bool result; | |
423f194a | 1714 | bool temp4 = False ; |
d14a1e28 RD |
1715 | wxPoint temp5 ; |
1716 | wxSize temp6 ; | |
423f194a | 1717 | bool temp9 = False ; |
d14a1e28 RD |
1718 | PyObject * obj0 = 0 ; |
1719 | PyObject * obj1 = 0 ; | |
1720 | PyObject * obj3 = 0 ; | |
1721 | PyObject * obj4 = 0 ; | |
1722 | PyObject * obj5 = 0 ; | |
1723 | PyObject * obj7 = 0 ; | |
1724 | PyObject * obj8 = 0 ; | |
1725 | char *kwnames[] = { | |
1726 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1727 | }; | |
1728 | ||
1729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:CheckBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
1730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1731 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1732 | { | |
1733 | arg4 = wxString_in_helper(obj3); | |
1734 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1735 | temp4 = True; |
d14a1e28 RD |
1736 | } |
1737 | if (obj4) { | |
1738 | { | |
1739 | arg5 = &temp5; | |
1740 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1741 | } | |
1742 | } | |
1743 | if (obj5) { | |
1744 | { | |
1745 | arg6 = &temp6; | |
1746 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1747 | } | |
1748 | } | |
1749 | if (obj7) { | |
1750 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1751 | if (arg8 == NULL) { | |
1752 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1753 | } | |
1754 | } | |
1755 | if (obj8) { | |
1756 | { | |
1757 | arg9 = wxString_in_helper(obj8); | |
1758 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1759 | temp9 = True; |
d14a1e28 RD |
1760 | } |
1761 | } | |
1762 | { | |
1763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1764 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1765 | ||
1766 | wxPyEndAllowThreads(__tstate); | |
1767 | if (PyErr_Occurred()) SWIG_fail; | |
1768 | } | |
1769 | resultobj = PyInt_FromLong((long)result); | |
1770 | { | |
1771 | if (temp4) | |
1772 | delete arg4; | |
1773 | } | |
1774 | { | |
1775 | if (temp9) | |
1776 | delete arg9; | |
1777 | } | |
1778 | return resultobj; | |
1779 | fail: | |
1780 | { | |
1781 | if (temp4) | |
1782 | delete arg4; | |
1783 | } | |
1784 | { | |
1785 | if (temp9) | |
1786 | delete arg9; | |
1787 | } | |
1788 | return NULL; | |
1789 | } | |
1790 | ||
1791 | ||
1792 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1793 | PyObject *resultobj; | |
1794 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1795 | bool result; | |
1796 | PyObject * obj0 = 0 ; | |
1797 | char *kwnames[] = { | |
1798 | (char *) "self", NULL | |
1799 | }; | |
1800 | ||
1801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
1802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1803 | { | |
1804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1805 | result = (bool)(arg1)->GetValue(); | |
1806 | ||
1807 | wxPyEndAllowThreads(__tstate); | |
1808 | if (PyErr_Occurred()) SWIG_fail; | |
1809 | } | |
1810 | resultobj = PyInt_FromLong((long)result); | |
1811 | return resultobj; | |
1812 | fail: | |
1813 | return NULL; | |
1814 | } | |
1815 | ||
1816 | ||
1817 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1818 | PyObject *resultobj; | |
1819 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1820 | bool result; | |
1821 | PyObject * obj0 = 0 ; | |
1822 | char *kwnames[] = { | |
1823 | (char *) "self", NULL | |
1824 | }; | |
1825 | ||
1826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
1827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1828 | { | |
1829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1830 | result = (bool)(arg1)->IsChecked(); | |
1831 | ||
1832 | wxPyEndAllowThreads(__tstate); | |
1833 | if (PyErr_Occurred()) SWIG_fail; | |
1834 | } | |
1835 | resultobj = PyInt_FromLong((long)result); | |
1836 | return resultobj; | |
1837 | fail: | |
1838 | return NULL; | |
1839 | } | |
1840 | ||
1841 | ||
1842 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1843 | PyObject *resultobj; | |
1844 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1845 | bool arg2 ; | |
1846 | PyObject * obj0 = 0 ; | |
1847 | PyObject * obj1 = 0 ; | |
1848 | char *kwnames[] = { | |
1849 | (char *) "self",(char *) "state", NULL | |
1850 | }; | |
1851 | ||
1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
1853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1854 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
1855 | if (PyErr_Occurred()) SWIG_fail; | |
1856 | { | |
1857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1858 | (arg1)->SetValue(arg2); | |
1859 | ||
1860 | wxPyEndAllowThreads(__tstate); | |
1861 | if (PyErr_Occurred()) SWIG_fail; | |
1862 | } | |
1863 | Py_INCREF(Py_None); resultobj = Py_None; | |
1864 | return resultobj; | |
1865 | fail: | |
1866 | return NULL; | |
1867 | } | |
1868 | ||
1869 | ||
1870 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1871 | PyObject *resultobj; | |
1872 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1873 | int result; | |
1874 | PyObject * obj0 = 0 ; | |
1875 | char *kwnames[] = { | |
1876 | (char *) "self", NULL | |
1877 | }; | |
1878 | ||
1879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
1880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1881 | { | |
1882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1883 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
1884 | ||
1885 | wxPyEndAllowThreads(__tstate); | |
1886 | if (PyErr_Occurred()) SWIG_fail; | |
1887 | } | |
1888 | resultobj = PyInt_FromLong((long)result); | |
1889 | return resultobj; | |
1890 | fail: | |
1891 | return NULL; | |
1892 | } | |
1893 | ||
1894 | ||
1895 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1896 | PyObject *resultobj; | |
1897 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1898 | int arg2 ; | |
1899 | PyObject * obj0 = 0 ; | |
1900 | char *kwnames[] = { | |
1901 | (char *) "self",(char *) "state", NULL | |
1902 | }; | |
1903 | ||
1904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CheckBox_Set3StateValue",kwnames,&obj0,&arg2)) goto fail; | |
1905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1906 | { | |
1907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1908 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
1909 | ||
1910 | wxPyEndAllowThreads(__tstate); | |
1911 | if (PyErr_Occurred()) SWIG_fail; | |
1912 | } | |
1913 | Py_INCREF(Py_None); resultobj = Py_None; | |
1914 | return resultobj; | |
1915 | fail: | |
1916 | return NULL; | |
1917 | } | |
1918 | ||
1919 | ||
1920 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1921 | PyObject *resultobj; | |
1922 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1923 | bool result; | |
1924 | PyObject * obj0 = 0 ; | |
1925 | char *kwnames[] = { | |
1926 | (char *) "self", NULL | |
1927 | }; | |
1928 | ||
1929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
1930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1931 | { | |
1932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1933 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
1934 | ||
1935 | wxPyEndAllowThreads(__tstate); | |
1936 | if (PyErr_Occurred()) SWIG_fail; | |
1937 | } | |
1938 | resultobj = PyInt_FromLong((long)result); | |
1939 | return resultobj; | |
1940 | fail: | |
1941 | return NULL; | |
1942 | } | |
1943 | ||
1944 | ||
1945 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1946 | PyObject *resultobj; | |
1947 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1948 | bool result; | |
1949 | PyObject * obj0 = 0 ; | |
1950 | char *kwnames[] = { | |
1951 | (char *) "self", NULL | |
1952 | }; | |
1953 | ||
1954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
1955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1956 | { | |
1957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1958 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
1959 | ||
1960 | wxPyEndAllowThreads(__tstate); | |
1961 | if (PyErr_Occurred()) SWIG_fail; | |
1962 | } | |
1963 | resultobj = PyInt_FromLong((long)result); | |
1964 | return resultobj; | |
1965 | fail: | |
1966 | return NULL; | |
1967 | } | |
1968 | ||
1969 | ||
1970 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
1971 | PyObject *obj; | |
1972 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1973 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
1974 | Py_INCREF(obj); | |
1975 | return Py_BuildValue((char *)""); | |
1976 | } | |
cbd72d4f RD |
1977 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { |
1978 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
1979 | return 1; | |
1980 | } | |
1981 | ||
1982 | ||
1983 | static PyObject *_wrap_ChoiceNameStr_get() { | |
1984 | PyObject *pyobj; | |
1985 | ||
1986 | { | |
1987 | #if wxUSE_UNICODE | |
1988 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
1989 | #else | |
1990 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
1991 | #endif | |
1992 | } | |
1993 | return pyobj; | |
1994 | } | |
1995 | ||
1996 | ||
d14a1e28 RD |
1997 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
1998 | PyObject *resultobj; | |
1999 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2000 | int arg2 ; |
d14a1e28 RD |
2001 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2002 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2003 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2004 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
2005 | int arg5 = (int) 0 ; | |
2006 | wxString *arg6 = (wxString *) NULL ; | |
2007 | long arg7 = (long) 0 ; | |
2008 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2009 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2010 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2011 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2012 | wxChoice *result; | |
2013 | wxPoint temp3 ; | |
2014 | wxSize temp4 ; | |
423f194a | 2015 | bool temp8 = False ; |
d14a1e28 RD |
2016 | PyObject * obj0 = 0 ; |
2017 | PyObject * obj2 = 0 ; | |
2018 | PyObject * obj3 = 0 ; | |
2019 | PyObject * obj4 = 0 ; | |
2020 | PyObject * obj6 = 0 ; | |
2021 | PyObject * obj7 = 0 ; | |
2022 | char *kwnames[] = { | |
2023 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2024 | }; | |
2025 | ||
2026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_Choice",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
2027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2028 | if (obj2) { | |
2029 | { | |
2030 | arg3 = &temp3; | |
2031 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2032 | } | |
2033 | } | |
2034 | if (obj3) { | |
2035 | { | |
2036 | arg4 = &temp4; | |
2037 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2038 | } | |
2039 | } | |
2040 | if (obj4) { | |
2041 | { | |
2042 | arg5 = PyList_Size(obj4); | |
2043 | arg6 = wxString_LIST_helper(obj4); | |
2044 | if (arg6 == NULL) SWIG_fail; | |
2045 | } | |
2046 | } | |
2047 | if (obj6) { | |
2048 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2049 | if (arg8 == NULL) { | |
2050 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2051 | } | |
2052 | } | |
2053 | if (obj7) { | |
2054 | { | |
2055 | arg9 = wxString_in_helper(obj7); | |
2056 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2057 | temp8 = True; |
d14a1e28 RD |
2058 | } |
2059 | } | |
2060 | { | |
2061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2062 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2063 | ||
2064 | wxPyEndAllowThreads(__tstate); | |
2065 | if (PyErr_Occurred()) SWIG_fail; | |
2066 | } | |
2067 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2068 | { | |
2069 | if (arg6) delete [] arg6; | |
2070 | } | |
2071 | { | |
2072 | if (temp8) | |
2073 | delete arg9; | |
2074 | } | |
2075 | return resultobj; | |
2076 | fail: | |
2077 | { | |
2078 | if (arg6) delete [] arg6; | |
2079 | } | |
2080 | { | |
2081 | if (temp8) | |
2082 | delete arg9; | |
2083 | } | |
2084 | return NULL; | |
2085 | } | |
2086 | ||
2087 | ||
2088 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2089 | PyObject *resultobj; | |
2090 | wxChoice *result; | |
2091 | char *kwnames[] = { | |
2092 | NULL | |
2093 | }; | |
2094 | ||
2095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2096 | { | |
2097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2098 | result = (wxChoice *)new wxChoice(); | |
2099 | ||
2100 | wxPyEndAllowThreads(__tstate); | |
2101 | if (PyErr_Occurred()) SWIG_fail; | |
2102 | } | |
2103 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2104 | return resultobj; | |
2105 | fail: | |
2106 | return NULL; | |
2107 | } | |
2108 | ||
2109 | ||
2110 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2111 | PyObject *resultobj; | |
2112 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2113 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2114 | int arg3 ; |
d14a1e28 RD |
2115 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2116 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2117 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2118 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2119 | int arg6 = (int) 0 ; | |
2120 | wxString *arg7 = (wxString *) NULL ; | |
2121 | long arg8 = (long) 0 ; | |
2122 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2123 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2124 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
2125 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2126 | bool result; | |
2127 | wxPoint temp4 ; | |
2128 | wxSize temp5 ; | |
423f194a | 2129 | bool temp9 = False ; |
d14a1e28 RD |
2130 | PyObject * obj0 = 0 ; |
2131 | PyObject * obj1 = 0 ; | |
2132 | PyObject * obj3 = 0 ; | |
2133 | PyObject * obj4 = 0 ; | |
2134 | PyObject * obj5 = 0 ; | |
2135 | PyObject * obj7 = 0 ; | |
2136 | PyObject * obj8 = 0 ; | |
2137 | char *kwnames[] = { | |
2138 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2139 | }; | |
2140 | ||
2141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:Choice_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
2142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2143 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2144 | if (obj3) { | |
2145 | { | |
2146 | arg4 = &temp4; | |
2147 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2148 | } | |
2149 | } | |
2150 | if (obj4) { | |
2151 | { | |
2152 | arg5 = &temp5; | |
2153 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2154 | } | |
2155 | } | |
2156 | if (obj5) { | |
2157 | { | |
2158 | arg6 = PyList_Size(obj5); | |
2159 | arg7 = wxString_LIST_helper(obj5); | |
2160 | if (arg7 == NULL) SWIG_fail; | |
2161 | } | |
2162 | } | |
2163 | if (obj7) { | |
2164 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2165 | if (arg9 == NULL) { | |
2166 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2167 | } | |
2168 | } | |
2169 | if (obj8) { | |
2170 | { | |
2171 | arg10 = wxString_in_helper(obj8); | |
2172 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 2173 | temp9 = True; |
d14a1e28 RD |
2174 | } |
2175 | } | |
2176 | { | |
2177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2178 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
2179 | ||
2180 | wxPyEndAllowThreads(__tstate); | |
2181 | if (PyErr_Occurred()) SWIG_fail; | |
2182 | } | |
2183 | resultobj = PyInt_FromLong((long)result); | |
2184 | { | |
2185 | if (arg7) delete [] arg7; | |
2186 | } | |
2187 | { | |
2188 | if (temp9) | |
2189 | delete arg10; | |
2190 | } | |
2191 | return resultobj; | |
2192 | fail: | |
2193 | { | |
2194 | if (arg7) delete [] arg7; | |
2195 | } | |
2196 | { | |
2197 | if (temp9) | |
2198 | delete arg10; | |
2199 | } | |
2200 | return NULL; | |
2201 | } | |
2202 | ||
2203 | ||
2204 | static PyObject *_wrap_Choice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2205 | PyObject *resultobj; | |
2206 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2207 | int result; | |
2208 | PyObject * obj0 = 0 ; | |
2209 | char *kwnames[] = { | |
2210 | (char *) "self", NULL | |
2211 | }; | |
2212 | ||
2213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choice_GetColumns",kwnames,&obj0)) goto fail; | |
2214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2215 | { | |
2216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2217 | result = (int)(arg1)->GetColumns(); | |
2218 | ||
2219 | wxPyEndAllowThreads(__tstate); | |
2220 | if (PyErr_Occurred()) SWIG_fail; | |
2221 | } | |
2222 | resultobj = PyInt_FromLong((long)result); | |
2223 | return resultobj; | |
2224 | fail: | |
2225 | return NULL; | |
2226 | } | |
2227 | ||
2228 | ||
2229 | static PyObject *_wrap_Choice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2230 | PyObject *resultobj; | |
2231 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2232 | int arg2 = (int) (int)1 ; | |
2233 | PyObject * obj0 = 0 ; | |
2234 | char *kwnames[] = { | |
2235 | (char *) "self",(char *) "n", NULL | |
2236 | }; | |
2237 | ||
2238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Choice_SetColumns",kwnames,&obj0,&arg2)) goto fail; | |
2239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2240 | { | |
2241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2242 | (arg1)->SetColumns(arg2); | |
2243 | ||
2244 | wxPyEndAllowThreads(__tstate); | |
2245 | if (PyErr_Occurred()) SWIG_fail; | |
2246 | } | |
2247 | Py_INCREF(Py_None); resultobj = Py_None; | |
2248 | return resultobj; | |
2249 | fail: | |
2250 | return NULL; | |
2251 | } | |
2252 | ||
2253 | ||
2254 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2255 | PyObject *resultobj; | |
2256 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2257 | int arg2 ; | |
2258 | PyObject * obj0 = 0 ; | |
2259 | char *kwnames[] = { | |
2260 | (char *) "self",(char *) "n", NULL | |
2261 | }; | |
2262 | ||
2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Choice_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
2264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2265 | { | |
2266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2267 | (arg1)->SetSelection(arg2); | |
2268 | ||
2269 | wxPyEndAllowThreads(__tstate); | |
2270 | if (PyErr_Occurred()) SWIG_fail; | |
2271 | } | |
2272 | Py_INCREF(Py_None); resultobj = Py_None; | |
2273 | return resultobj; | |
2274 | fail: | |
2275 | return NULL; | |
2276 | } | |
2277 | ||
2278 | ||
2279 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2280 | PyObject *resultobj; | |
2281 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2282 | wxString *arg2 = 0 ; | |
423f194a | 2283 | bool temp2 = False ; |
d14a1e28 RD |
2284 | PyObject * obj0 = 0 ; |
2285 | PyObject * obj1 = 0 ; | |
2286 | char *kwnames[] = { | |
2287 | (char *) "self",(char *) "string", NULL | |
2288 | }; | |
2289 | ||
2290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2292 | { | |
2293 | arg2 = wxString_in_helper(obj1); | |
2294 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2295 | temp2 = True; |
d14a1e28 RD |
2296 | } |
2297 | { | |
2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2299 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2300 | ||
2301 | wxPyEndAllowThreads(__tstate); | |
2302 | if (PyErr_Occurred()) SWIG_fail; | |
2303 | } | |
2304 | Py_INCREF(Py_None); resultobj = Py_None; | |
2305 | { | |
2306 | if (temp2) | |
2307 | delete arg2; | |
2308 | } | |
2309 | return resultobj; | |
2310 | fail: | |
2311 | { | |
2312 | if (temp2) | |
2313 | delete arg2; | |
2314 | } | |
2315 | return NULL; | |
2316 | } | |
2317 | ||
2318 | ||
2319 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2320 | PyObject *resultobj; | |
2321 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2322 | int arg2 ; | |
2323 | wxString *arg3 = 0 ; | |
423f194a | 2324 | bool temp3 = False ; |
d14a1e28 RD |
2325 | PyObject * obj0 = 0 ; |
2326 | PyObject * obj2 = 0 ; | |
2327 | char *kwnames[] = { | |
2328 | (char *) "self",(char *) "n",(char *) "s", NULL | |
2329 | }; | |
2330 | ||
2331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Choice_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
2332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2333 | { | |
2334 | arg3 = wxString_in_helper(obj2); | |
2335 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2336 | temp3 = True; |
d14a1e28 RD |
2337 | } |
2338 | { | |
2339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2340 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2341 | ||
2342 | wxPyEndAllowThreads(__tstate); | |
2343 | if (PyErr_Occurred()) SWIG_fail; | |
2344 | } | |
2345 | Py_INCREF(Py_None); resultobj = Py_None; | |
2346 | { | |
2347 | if (temp3) | |
2348 | delete arg3; | |
2349 | } | |
2350 | return resultobj; | |
2351 | fail: | |
2352 | { | |
2353 | if (temp3) | |
2354 | delete arg3; | |
2355 | } | |
2356 | return NULL; | |
2357 | } | |
2358 | ||
2359 | ||
2360 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2361 | PyObject *obj; | |
2362 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2363 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2364 | Py_INCREF(obj); | |
2365 | return Py_BuildValue((char *)""); | |
2366 | } | |
cbd72d4f RD |
2367 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { |
2368 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2369 | return 1; | |
2370 | } | |
2371 | ||
2372 | ||
2373 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2374 | PyObject *pyobj; | |
2375 | ||
2376 | { | |
2377 | #if wxUSE_UNICODE | |
2378 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2379 | #else | |
2380 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2381 | #endif | |
2382 | } | |
2383 | return pyobj; | |
2384 | } | |
2385 | ||
2386 | ||
d14a1e28 RD |
2387 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2388 | PyObject *resultobj; | |
2389 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2390 | int arg2 ; |
d14a1e28 RD |
2391 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2392 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2393 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2394 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2395 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2396 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2397 | int arg6 = (int) 0 ; | |
2398 | wxString *arg7 = (wxString *) NULL ; | |
2399 | long arg8 = (long) 0 ; | |
2400 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2401 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2402 | wxString const &arg10_defvalue = wxPyComboBoxNameStr ; | |
2403 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2404 | wxComboBox *result; | |
423f194a | 2405 | bool temp3 = False ; |
d14a1e28 RD |
2406 | wxPoint temp4 ; |
2407 | wxSize temp5 ; | |
423f194a | 2408 | bool temp9 = False ; |
d14a1e28 RD |
2409 | PyObject * obj0 = 0 ; |
2410 | PyObject * obj2 = 0 ; | |
2411 | PyObject * obj3 = 0 ; | |
2412 | PyObject * obj4 = 0 ; | |
2413 | PyObject * obj5 = 0 ; | |
2414 | PyObject * obj7 = 0 ; | |
2415 | PyObject * obj8 = 0 ; | |
2416 | char *kwnames[] = { | |
2417 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2418 | }; | |
2419 | ||
2420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOOlOO:new_ComboBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
2421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2422 | if (obj2) { | |
2423 | { | |
2424 | arg3 = wxString_in_helper(obj2); | |
2425 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2426 | temp3 = True; |
d14a1e28 RD |
2427 | } |
2428 | } | |
2429 | if (obj3) { | |
2430 | { | |
2431 | arg4 = &temp4; | |
2432 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2433 | } | |
2434 | } | |
2435 | if (obj4) { | |
2436 | { | |
2437 | arg5 = &temp5; | |
2438 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2439 | } | |
2440 | } | |
2441 | if (obj5) { | |
2442 | { | |
2443 | arg6 = PyList_Size(obj5); | |
2444 | arg7 = wxString_LIST_helper(obj5); | |
2445 | if (arg7 == NULL) SWIG_fail; | |
2446 | } | |
2447 | } | |
2448 | if (obj7) { | |
2449 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2450 | if (arg9 == NULL) { | |
2451 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2452 | } | |
2453 | } | |
2454 | if (obj8) { | |
2455 | { | |
2456 | arg10 = wxString_in_helper(obj8); | |
2457 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 2458 | temp9 = True; |
d14a1e28 RD |
2459 | } |
2460 | } | |
2461 | { | |
2462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2463 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
2464 | ||
2465 | wxPyEndAllowThreads(__tstate); | |
2466 | if (PyErr_Occurred()) SWIG_fail; | |
2467 | } | |
2468 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2469 | { | |
2470 | if (temp3) | |
2471 | delete arg3; | |
2472 | } | |
2473 | { | |
2474 | if (arg7) delete [] arg7; | |
2475 | } | |
2476 | { | |
2477 | if (temp9) | |
2478 | delete arg10; | |
2479 | } | |
2480 | return resultobj; | |
2481 | fail: | |
2482 | { | |
2483 | if (temp3) | |
2484 | delete arg3; | |
2485 | } | |
2486 | { | |
2487 | if (arg7) delete [] arg7; | |
2488 | } | |
2489 | { | |
2490 | if (temp9) | |
2491 | delete arg10; | |
2492 | } | |
2493 | return NULL; | |
2494 | } | |
2495 | ||
2496 | ||
2497 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2498 | PyObject *resultobj; | |
2499 | wxComboBox *result; | |
2500 | char *kwnames[] = { | |
2501 | NULL | |
2502 | }; | |
2503 | ||
2504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2505 | { | |
2506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2507 | result = (wxComboBox *)new wxComboBox(); | |
2508 | ||
2509 | wxPyEndAllowThreads(__tstate); | |
2510 | if (PyErr_Occurred()) SWIG_fail; | |
2511 | } | |
2512 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2513 | return resultobj; | |
2514 | fail: | |
2515 | return NULL; | |
2516 | } | |
2517 | ||
2518 | ||
2519 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2520 | PyObject *resultobj; | |
2521 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2522 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2523 | int arg3 ; |
d14a1e28 RD |
2524 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2525 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2526 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2527 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2528 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2529 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2530 | int arg7 = (int) 0 ; | |
2531 | wxString *arg8 = (wxString *) NULL ; | |
2532 | long arg9 = (long) 0 ; | |
2533 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
2534 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
2535 | wxString const &arg11_defvalue = wxPyComboBoxNameStr ; | |
2536 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
2537 | bool result; | |
423f194a | 2538 | bool temp4 = False ; |
d14a1e28 RD |
2539 | wxPoint temp5 ; |
2540 | wxSize temp6 ; | |
423f194a | 2541 | bool temp10 = False ; |
d14a1e28 RD |
2542 | PyObject * obj0 = 0 ; |
2543 | PyObject * obj1 = 0 ; | |
2544 | PyObject * obj3 = 0 ; | |
2545 | PyObject * obj4 = 0 ; | |
2546 | PyObject * obj5 = 0 ; | |
2547 | PyObject * obj6 = 0 ; | |
2548 | PyObject * obj8 = 0 ; | |
2549 | PyObject * obj9 = 0 ; | |
2550 | char *kwnames[] = { | |
2551 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2552 | }; | |
2553 | ||
2554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOOlOO:ComboBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&obj6,&arg9,&obj8,&obj9)) goto fail; | |
2555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2556 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2557 | if (obj3) { | |
2558 | { | |
2559 | arg4 = wxString_in_helper(obj3); | |
2560 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2561 | temp4 = True; |
d14a1e28 RD |
2562 | } |
2563 | } | |
2564 | if (obj4) { | |
2565 | { | |
2566 | arg5 = &temp5; | |
2567 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2568 | } | |
2569 | } | |
2570 | if (obj5) { | |
2571 | { | |
2572 | arg6 = &temp6; | |
2573 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2574 | } | |
2575 | } | |
2576 | if (obj6) { | |
2577 | { | |
2578 | arg7 = PyList_Size(obj6); | |
2579 | arg8 = wxString_LIST_helper(obj6); | |
2580 | if (arg8 == NULL) SWIG_fail; | |
2581 | } | |
2582 | } | |
2583 | if (obj8) { | |
2584 | if ((SWIG_ConvertPtr(obj8,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2585 | if (arg10 == NULL) { | |
2586 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2587 | } | |
2588 | } | |
2589 | if (obj9) { | |
2590 | { | |
2591 | arg11 = wxString_in_helper(obj9); | |
2592 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 2593 | temp10 = True; |
d14a1e28 RD |
2594 | } |
2595 | } | |
2596 | { | |
2597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2598 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
2599 | ||
2600 | wxPyEndAllowThreads(__tstate); | |
2601 | if (PyErr_Occurred()) SWIG_fail; | |
2602 | } | |
2603 | resultobj = PyInt_FromLong((long)result); | |
2604 | { | |
2605 | if (temp4) | |
2606 | delete arg4; | |
2607 | } | |
2608 | { | |
2609 | if (arg8) delete [] arg8; | |
2610 | } | |
2611 | { | |
2612 | if (temp10) | |
2613 | delete arg11; | |
2614 | } | |
2615 | return resultobj; | |
2616 | fail: | |
2617 | { | |
2618 | if (temp4) | |
2619 | delete arg4; | |
2620 | } | |
2621 | { | |
2622 | if (arg8) delete [] arg8; | |
2623 | } | |
2624 | { | |
2625 | if (temp10) | |
2626 | delete arg11; | |
2627 | } | |
2628 | return NULL; | |
2629 | } | |
2630 | ||
2631 | ||
2632 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2633 | PyObject *resultobj; | |
2634 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2635 | wxString result; | |
2636 | PyObject * obj0 = 0 ; | |
2637 | char *kwnames[] = { | |
2638 | (char *) "self", NULL | |
2639 | }; | |
2640 | ||
2641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2643 | { | |
2644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2645 | result = ((wxComboBox const *)arg1)->GetValue(); | |
2646 | ||
2647 | wxPyEndAllowThreads(__tstate); | |
2648 | if (PyErr_Occurred()) SWIG_fail; | |
2649 | } | |
2650 | { | |
2651 | #if wxUSE_UNICODE | |
2652 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2653 | #else | |
2654 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2655 | #endif | |
2656 | } | |
2657 | return resultobj; | |
2658 | fail: | |
2659 | return NULL; | |
2660 | } | |
2661 | ||
2662 | ||
2663 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2664 | PyObject *resultobj; | |
2665 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2666 | wxString *arg2 = 0 ; | |
423f194a | 2667 | bool temp2 = False ; |
d14a1e28 RD |
2668 | PyObject * obj0 = 0 ; |
2669 | PyObject * obj1 = 0 ; | |
2670 | char *kwnames[] = { | |
2671 | (char *) "self",(char *) "value", NULL | |
2672 | }; | |
2673 | ||
2674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2676 | { | |
2677 | arg2 = wxString_in_helper(obj1); | |
2678 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2679 | temp2 = True; |
d14a1e28 RD |
2680 | } |
2681 | { | |
2682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2683 | (arg1)->SetValue((wxString const &)*arg2); | |
2684 | ||
2685 | wxPyEndAllowThreads(__tstate); | |
2686 | if (PyErr_Occurred()) SWIG_fail; | |
2687 | } | |
2688 | Py_INCREF(Py_None); resultobj = Py_None; | |
2689 | { | |
2690 | if (temp2) | |
2691 | delete arg2; | |
2692 | } | |
2693 | return resultobj; | |
2694 | fail: | |
2695 | { | |
2696 | if (temp2) | |
2697 | delete arg2; | |
2698 | } | |
2699 | return NULL; | |
2700 | } | |
2701 | ||
2702 | ||
2703 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2704 | PyObject *resultobj; | |
2705 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2706 | PyObject * obj0 = 0 ; | |
2707 | char *kwnames[] = { | |
2708 | (char *) "self", NULL | |
2709 | }; | |
2710 | ||
2711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
2712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2713 | { | |
2714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2715 | (arg1)->Copy(); | |
2716 | ||
2717 | wxPyEndAllowThreads(__tstate); | |
2718 | if (PyErr_Occurred()) SWIG_fail; | |
2719 | } | |
2720 | Py_INCREF(Py_None); resultobj = Py_None; | |
2721 | return resultobj; | |
2722 | fail: | |
2723 | return NULL; | |
2724 | } | |
2725 | ||
2726 | ||
2727 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2728 | PyObject *resultobj; | |
2729 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2730 | PyObject * obj0 = 0 ; | |
2731 | char *kwnames[] = { | |
2732 | (char *) "self", NULL | |
2733 | }; | |
2734 | ||
2735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
2736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2737 | { | |
2738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2739 | (arg1)->Cut(); | |
2740 | ||
2741 | wxPyEndAllowThreads(__tstate); | |
2742 | if (PyErr_Occurred()) SWIG_fail; | |
2743 | } | |
2744 | Py_INCREF(Py_None); resultobj = Py_None; | |
2745 | return resultobj; | |
2746 | fail: | |
2747 | return NULL; | |
2748 | } | |
2749 | ||
2750 | ||
2751 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2752 | PyObject *resultobj; | |
2753 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2754 | PyObject * obj0 = 0 ; | |
2755 | char *kwnames[] = { | |
2756 | (char *) "self", NULL | |
2757 | }; | |
2758 | ||
2759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
2760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2761 | { | |
2762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2763 | (arg1)->Paste(); | |
2764 | ||
2765 | wxPyEndAllowThreads(__tstate); | |
2766 | if (PyErr_Occurred()) SWIG_fail; | |
2767 | } | |
2768 | Py_INCREF(Py_None); resultobj = Py_None; | |
2769 | return resultobj; | |
2770 | fail: | |
2771 | return NULL; | |
2772 | } | |
2773 | ||
2774 | ||
2775 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2776 | PyObject *resultobj; | |
2777 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2778 | long arg2 ; | |
2779 | PyObject * obj0 = 0 ; | |
2780 | char *kwnames[] = { | |
2781 | (char *) "self",(char *) "pos", NULL | |
2782 | }; | |
2783 | ||
2784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ComboBox_SetInsertionPoint",kwnames,&obj0,&arg2)) goto fail; | |
2785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2786 | { | |
2787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2788 | (arg1)->SetInsertionPoint(arg2); | |
2789 | ||
2790 | wxPyEndAllowThreads(__tstate); | |
2791 | if (PyErr_Occurred()) SWIG_fail; | |
2792 | } | |
2793 | Py_INCREF(Py_None); resultobj = Py_None; | |
2794 | return resultobj; | |
2795 | fail: | |
2796 | return NULL; | |
2797 | } | |
2798 | ||
2799 | ||
2800 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2801 | PyObject *resultobj; | |
2802 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2803 | long result; | |
2804 | PyObject * obj0 = 0 ; | |
2805 | char *kwnames[] = { | |
2806 | (char *) "self", NULL | |
2807 | }; | |
2808 | ||
2809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
2810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2811 | { | |
2812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2813 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
2814 | ||
2815 | wxPyEndAllowThreads(__tstate); | |
2816 | if (PyErr_Occurred()) SWIG_fail; | |
2817 | } | |
2818 | resultobj = PyInt_FromLong((long)result); | |
2819 | return resultobj; | |
2820 | fail: | |
2821 | return NULL; | |
2822 | } | |
2823 | ||
2824 | ||
2825 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2826 | PyObject *resultobj; | |
2827 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2828 | long result; | |
2829 | PyObject * obj0 = 0 ; | |
2830 | char *kwnames[] = { | |
2831 | (char *) "self", NULL | |
2832 | }; | |
2833 | ||
2834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
2835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2836 | { | |
2837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2838 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
2839 | ||
2840 | wxPyEndAllowThreads(__tstate); | |
2841 | if (PyErr_Occurred()) SWIG_fail; | |
2842 | } | |
2843 | resultobj = PyInt_FromLong((long)result); | |
2844 | return resultobj; | |
2845 | fail: | |
2846 | return NULL; | |
2847 | } | |
2848 | ||
2849 | ||
2850 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2851 | PyObject *resultobj; | |
2852 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2853 | long arg2 ; | |
2854 | long arg3 ; | |
2855 | wxString *arg4 = 0 ; | |
423f194a | 2856 | bool temp4 = False ; |
d14a1e28 RD |
2857 | PyObject * obj0 = 0 ; |
2858 | PyObject * obj3 = 0 ; | |
2859 | char *kwnames[] = { | |
2860 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
2861 | }; | |
2862 | ||
2863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:ComboBox_Replace",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
2864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2865 | { | |
2866 | arg4 = wxString_in_helper(obj3); | |
2867 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2868 | temp4 = True; |
d14a1e28 RD |
2869 | } |
2870 | { | |
2871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2872 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
2873 | ||
2874 | wxPyEndAllowThreads(__tstate); | |
2875 | if (PyErr_Occurred()) SWIG_fail; | |
2876 | } | |
2877 | Py_INCREF(Py_None); resultobj = Py_None; | |
2878 | { | |
2879 | if (temp4) | |
2880 | delete arg4; | |
2881 | } | |
2882 | return resultobj; | |
2883 | fail: | |
2884 | { | |
2885 | if (temp4) | |
2886 | delete arg4; | |
2887 | } | |
2888 | return NULL; | |
2889 | } | |
2890 | ||
2891 | ||
100c4552 RD |
2892 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2893 | PyObject *resultobj; | |
2894 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2895 | int arg2 ; | |
2896 | PyObject * obj0 = 0 ; | |
2897 | char *kwnames[] = { | |
2898 | (char *) "self",(char *) "n", NULL | |
2899 | }; | |
2900 | ||
2901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ComboBox_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
2902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2903 | { | |
2904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2905 | (arg1)->SetSelection(arg2); | |
2906 | ||
2907 | wxPyEndAllowThreads(__tstate); | |
2908 | if (PyErr_Occurred()) SWIG_fail; | |
2909 | } | |
2910 | Py_INCREF(Py_None); resultobj = Py_None; | |
2911 | return resultobj; | |
2912 | fail: | |
2913 | return NULL; | |
2914 | } | |
2915 | ||
2916 | ||
d14a1e28 RD |
2917 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
2918 | PyObject *resultobj; | |
2919 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2920 | long arg2 ; | |
2921 | long arg3 ; | |
2922 | PyObject * obj0 = 0 ; | |
2923 | char *kwnames[] = { | |
2924 | (char *) "self",(char *) "from",(char *) "to", NULL | |
2925 | }; | |
2926 | ||
2927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ComboBox_SetMark",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2929 | { | |
2930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2931 | (arg1)->SetSelection(arg2,arg3); | |
2932 | ||
2933 | wxPyEndAllowThreads(__tstate); | |
2934 | if (PyErr_Occurred()) SWIG_fail; | |
2935 | } | |
2936 | Py_INCREF(Py_None); resultobj = Py_None; | |
2937 | return resultobj; | |
2938 | fail: | |
2939 | return NULL; | |
2940 | } | |
2941 | ||
2942 | ||
2943 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2944 | PyObject *resultobj; | |
2945 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2946 | bool arg2 ; | |
2947 | PyObject * obj0 = 0 ; | |
2948 | PyObject * obj1 = 0 ; | |
2949 | char *kwnames[] = { | |
2950 | (char *) "self",(char *) "editable", NULL | |
2951 | }; | |
2952 | ||
2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
2954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2955 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
2956 | if (PyErr_Occurred()) SWIG_fail; | |
2957 | { | |
2958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2959 | (arg1)->SetEditable(arg2); | |
2960 | ||
2961 | wxPyEndAllowThreads(__tstate); | |
2962 | if (PyErr_Occurred()) SWIG_fail; | |
2963 | } | |
2964 | Py_INCREF(Py_None); resultobj = Py_None; | |
2965 | return resultobj; | |
2966 | fail: | |
2967 | return NULL; | |
2968 | } | |
2969 | ||
2970 | ||
2971 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2972 | PyObject *resultobj; | |
2973 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2974 | PyObject * obj0 = 0 ; | |
2975 | char *kwnames[] = { | |
2976 | (char *) "self", NULL | |
2977 | }; | |
2978 | ||
2979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
2980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2981 | { | |
2982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2983 | (arg1)->SetInsertionPointEnd(); | |
2984 | ||
2985 | wxPyEndAllowThreads(__tstate); | |
2986 | if (PyErr_Occurred()) SWIG_fail; | |
2987 | } | |
2988 | Py_INCREF(Py_None); resultobj = Py_None; | |
2989 | return resultobj; | |
2990 | fail: | |
2991 | return NULL; | |
2992 | } | |
2993 | ||
2994 | ||
2995 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2996 | PyObject *resultobj; | |
2997 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2998 | long arg2 ; | |
2999 | long arg3 ; | |
3000 | PyObject * obj0 = 0 ; | |
3001 | char *kwnames[] = { | |
3002 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3003 | }; | |
3004 | ||
3005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ComboBox_Remove",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3007 | { | |
3008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3009 | (arg1)->Remove(arg2,arg3); | |
3010 | ||
3011 | wxPyEndAllowThreads(__tstate); | |
3012 | if (PyErr_Occurred()) SWIG_fail; | |
3013 | } | |
3014 | Py_INCREF(Py_None); resultobj = Py_None; | |
3015 | return resultobj; | |
3016 | fail: | |
3017 | return NULL; | |
3018 | } | |
3019 | ||
3020 | ||
3021 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3022 | PyObject *obj; | |
3023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3024 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3025 | Py_INCREF(obj); | |
3026 | return Py_BuildValue((char *)""); | |
3027 | } | |
cbd72d4f RD |
3028 | static int _wrap_GaugeNameStr_set(PyObject *_val) { |
3029 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3030 | return 1; | |
3031 | } | |
3032 | ||
3033 | ||
3034 | static PyObject *_wrap_GaugeNameStr_get() { | |
3035 | PyObject *pyobj; | |
3036 | ||
3037 | { | |
3038 | #if wxUSE_UNICODE | |
3039 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3040 | #else | |
3041 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3042 | #endif | |
3043 | } | |
3044 | return pyobj; | |
3045 | } | |
3046 | ||
3047 | ||
d14a1e28 RD |
3048 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3049 | PyObject *resultobj; | |
3050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3051 | int arg2 ; |
d14a1e28 RD |
3052 | int arg3 ; |
3053 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3054 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3055 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3056 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3057 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3058 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3059 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3060 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3061 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3062 | wxGauge *result; | |
3063 | wxPoint temp4 ; | |
3064 | wxSize temp5 ; | |
423f194a | 3065 | bool temp8 = False ; |
d14a1e28 RD |
3066 | PyObject * obj0 = 0 ; |
3067 | PyObject * obj3 = 0 ; | |
3068 | PyObject * obj4 = 0 ; | |
3069 | PyObject * obj6 = 0 ; | |
3070 | PyObject * obj7 = 0 ; | |
3071 | char *kwnames[] = { | |
3072 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3073 | }; | |
3074 | ||
3075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|OOlOO:new_Gauge",kwnames,&obj0,&arg2,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
3076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3077 | if (obj3) { | |
3078 | { | |
3079 | arg4 = &temp4; | |
3080 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3081 | } | |
3082 | } | |
3083 | if (obj4) { | |
3084 | { | |
3085 | arg5 = &temp5; | |
3086 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3087 | } | |
3088 | } | |
3089 | if (obj6) { | |
3090 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3091 | if (arg7 == NULL) { | |
3092 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3093 | } | |
3094 | } | |
3095 | if (obj7) { | |
3096 | { | |
3097 | arg8 = wxString_in_helper(obj7); | |
3098 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3099 | temp8 = True; |
d14a1e28 RD |
3100 | } |
3101 | } | |
3102 | { | |
3103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3104 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3105 | ||
3106 | wxPyEndAllowThreads(__tstate); | |
3107 | if (PyErr_Occurred()) SWIG_fail; | |
3108 | } | |
3109 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3110 | { | |
3111 | if (temp8) | |
3112 | delete arg8; | |
3113 | } | |
3114 | return resultobj; | |
3115 | fail: | |
3116 | { | |
3117 | if (temp8) | |
3118 | delete arg8; | |
3119 | } | |
3120 | return NULL; | |
3121 | } | |
3122 | ||
3123 | ||
3124 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3125 | PyObject *resultobj; | |
3126 | wxGauge *result; | |
3127 | char *kwnames[] = { | |
3128 | NULL | |
3129 | }; | |
3130 | ||
3131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3132 | { | |
3133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3134 | result = (wxGauge *)new wxGauge(); | |
3135 | ||
3136 | wxPyEndAllowThreads(__tstate); | |
3137 | if (PyErr_Occurred()) SWIG_fail; | |
3138 | } | |
3139 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3140 | return resultobj; | |
3141 | fail: | |
3142 | return NULL; | |
3143 | } | |
3144 | ||
3145 | ||
3146 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3147 | PyObject *resultobj; | |
3148 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3149 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3150 | int arg3 ; |
d14a1e28 RD |
3151 | int arg4 ; |
3152 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3153 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3154 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3155 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3156 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3157 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3158 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3159 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3160 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3161 | bool result; | |
3162 | wxPoint temp5 ; | |
3163 | wxSize temp6 ; | |
423f194a | 3164 | bool temp9 = False ; |
d14a1e28 RD |
3165 | PyObject * obj0 = 0 ; |
3166 | PyObject * obj1 = 0 ; | |
3167 | PyObject * obj4 = 0 ; | |
3168 | PyObject * obj5 = 0 ; | |
3169 | PyObject * obj7 = 0 ; | |
3170 | PyObject * obj8 = 0 ; | |
3171 | char *kwnames[] = { | |
3172 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3173 | }; | |
3174 | ||
3175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|OOlOO:Gauge_Create",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
3176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3177 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3178 | if (obj4) { | |
3179 | { | |
3180 | arg5 = &temp5; | |
3181 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3182 | } | |
3183 | } | |
3184 | if (obj5) { | |
3185 | { | |
3186 | arg6 = &temp6; | |
3187 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3188 | } | |
3189 | } | |
3190 | if (obj7) { | |
3191 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3192 | if (arg8 == NULL) { | |
3193 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3194 | } | |
3195 | } | |
3196 | if (obj8) { | |
3197 | { | |
3198 | arg9 = wxString_in_helper(obj8); | |
3199 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 3200 | temp9 = True; |
d14a1e28 RD |
3201 | } |
3202 | } | |
3203 | { | |
3204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3205 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3206 | ||
3207 | wxPyEndAllowThreads(__tstate); | |
3208 | if (PyErr_Occurred()) SWIG_fail; | |
3209 | } | |
3210 | resultobj = PyInt_FromLong((long)result); | |
3211 | { | |
3212 | if (temp9) | |
3213 | delete arg9; | |
3214 | } | |
3215 | return resultobj; | |
3216 | fail: | |
3217 | { | |
3218 | if (temp9) | |
3219 | delete arg9; | |
3220 | } | |
3221 | return NULL; | |
3222 | } | |
3223 | ||
3224 | ||
3225 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3226 | PyObject *resultobj; | |
3227 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3228 | int arg2 ; | |
3229 | PyObject * obj0 = 0 ; | |
3230 | char *kwnames[] = { | |
3231 | (char *) "self",(char *) "range", NULL | |
3232 | }; | |
3233 | ||
3234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetRange",kwnames,&obj0,&arg2)) goto fail; | |
3235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3236 | { | |
3237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3238 | (arg1)->SetRange(arg2); | |
3239 | ||
3240 | wxPyEndAllowThreads(__tstate); | |
3241 | if (PyErr_Occurred()) SWIG_fail; | |
3242 | } | |
3243 | Py_INCREF(Py_None); resultobj = Py_None; | |
3244 | return resultobj; | |
3245 | fail: | |
3246 | return NULL; | |
3247 | } | |
3248 | ||
3249 | ||
3250 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3251 | PyObject *resultobj; | |
3252 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3253 | int result; | |
3254 | PyObject * obj0 = 0 ; | |
3255 | char *kwnames[] = { | |
3256 | (char *) "self", NULL | |
3257 | }; | |
3258 | ||
3259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3261 | { | |
3262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3263 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3264 | ||
3265 | wxPyEndAllowThreads(__tstate); | |
3266 | if (PyErr_Occurred()) SWIG_fail; | |
3267 | } | |
3268 | resultobj = PyInt_FromLong((long)result); | |
3269 | return resultobj; | |
3270 | fail: | |
3271 | return NULL; | |
3272 | } | |
3273 | ||
3274 | ||
3275 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3276 | PyObject *resultobj; | |
3277 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3278 | int arg2 ; | |
3279 | PyObject * obj0 = 0 ; | |
3280 | char *kwnames[] = { | |
3281 | (char *) "self",(char *) "pos", NULL | |
3282 | }; | |
3283 | ||
3284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
3285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3286 | { | |
3287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3288 | (arg1)->SetValue(arg2); | |
3289 | ||
3290 | wxPyEndAllowThreads(__tstate); | |
3291 | if (PyErr_Occurred()) SWIG_fail; | |
3292 | } | |
3293 | Py_INCREF(Py_None); resultobj = Py_None; | |
3294 | return resultobj; | |
3295 | fail: | |
3296 | return NULL; | |
3297 | } | |
3298 | ||
3299 | ||
3300 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3301 | PyObject *resultobj; | |
3302 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3303 | int result; | |
3304 | PyObject * obj0 = 0 ; | |
3305 | char *kwnames[] = { | |
3306 | (char *) "self", NULL | |
3307 | }; | |
3308 | ||
3309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3311 | { | |
3312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3313 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3314 | ||
3315 | wxPyEndAllowThreads(__tstate); | |
3316 | if (PyErr_Occurred()) SWIG_fail; | |
3317 | } | |
3318 | resultobj = PyInt_FromLong((long)result); | |
3319 | return resultobj; | |
3320 | fail: | |
3321 | return NULL; | |
3322 | } | |
3323 | ||
3324 | ||
3325 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3326 | PyObject *resultobj; | |
3327 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3328 | bool result; | |
3329 | PyObject * obj0 = 0 ; | |
3330 | char *kwnames[] = { | |
3331 | (char *) "self", NULL | |
3332 | }; | |
3333 | ||
3334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3336 | { | |
3337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3338 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3339 | ||
3340 | wxPyEndAllowThreads(__tstate); | |
3341 | if (PyErr_Occurred()) SWIG_fail; | |
3342 | } | |
3343 | resultobj = PyInt_FromLong((long)result); | |
3344 | return resultobj; | |
3345 | fail: | |
3346 | return NULL; | |
3347 | } | |
3348 | ||
3349 | ||
3350 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3351 | PyObject *resultobj; | |
3352 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3353 | int arg2 ; | |
3354 | PyObject * obj0 = 0 ; | |
3355 | char *kwnames[] = { | |
3356 | (char *) "self",(char *) "w", NULL | |
3357 | }; | |
3358 | ||
3359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetShadowWidth",kwnames,&obj0,&arg2)) goto fail; | |
3360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3361 | { | |
3362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3363 | (arg1)->SetShadowWidth(arg2); | |
3364 | ||
3365 | wxPyEndAllowThreads(__tstate); | |
3366 | if (PyErr_Occurred()) SWIG_fail; | |
3367 | } | |
3368 | Py_INCREF(Py_None); resultobj = Py_None; | |
3369 | return resultobj; | |
3370 | fail: | |
3371 | return NULL; | |
3372 | } | |
3373 | ||
3374 | ||
3375 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3376 | PyObject *resultobj; | |
3377 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3378 | int result; | |
3379 | PyObject * obj0 = 0 ; | |
3380 | char *kwnames[] = { | |
3381 | (char *) "self", NULL | |
3382 | }; | |
3383 | ||
3384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
3385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3386 | { | |
3387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3388 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3389 | ||
3390 | wxPyEndAllowThreads(__tstate); | |
3391 | if (PyErr_Occurred()) SWIG_fail; | |
3392 | } | |
3393 | resultobj = PyInt_FromLong((long)result); | |
3394 | return resultobj; | |
3395 | fail: | |
3396 | return NULL; | |
3397 | } | |
3398 | ||
3399 | ||
3400 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3401 | PyObject *resultobj; | |
3402 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3403 | int arg2 ; | |
3404 | PyObject * obj0 = 0 ; | |
3405 | char *kwnames[] = { | |
3406 | (char *) "self",(char *) "w", NULL | |
3407 | }; | |
3408 | ||
3409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetBezelFace",kwnames,&obj0,&arg2)) goto fail; | |
3410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3411 | { | |
3412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3413 | (arg1)->SetBezelFace(arg2); | |
3414 | ||
3415 | wxPyEndAllowThreads(__tstate); | |
3416 | if (PyErr_Occurred()) SWIG_fail; | |
3417 | } | |
3418 | Py_INCREF(Py_None); resultobj = Py_None; | |
3419 | return resultobj; | |
3420 | fail: | |
3421 | return NULL; | |
3422 | } | |
3423 | ||
3424 | ||
3425 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3426 | PyObject *resultobj; | |
3427 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3428 | int result; | |
3429 | PyObject * obj0 = 0 ; | |
3430 | char *kwnames[] = { | |
3431 | (char *) "self", NULL | |
3432 | }; | |
3433 | ||
3434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3436 | { | |
3437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3438 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3439 | ||
3440 | wxPyEndAllowThreads(__tstate); | |
3441 | if (PyErr_Occurred()) SWIG_fail; | |
3442 | } | |
3443 | resultobj = PyInt_FromLong((long)result); | |
3444 | return resultobj; | |
3445 | fail: | |
3446 | return NULL; | |
3447 | } | |
3448 | ||
3449 | ||
3450 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3451 | PyObject *obj; | |
3452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3453 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3454 | Py_INCREF(obj); | |
3455 | return Py_BuildValue((char *)""); | |
3456 | } | |
cbd72d4f RD |
3457 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { |
3458 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
3459 | return 1; | |
3460 | } | |
3461 | ||
3462 | ||
3463 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
3464 | PyObject *pyobj; | |
3465 | ||
3466 | { | |
3467 | #if wxUSE_UNICODE | |
3468 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3469 | #else | |
3470 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3471 | #endif | |
3472 | } | |
3473 | return pyobj; | |
3474 | } | |
3475 | ||
3476 | ||
3477 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
3478 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
3479 | return 1; | |
3480 | } | |
3481 | ||
3482 | ||
3483 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
3484 | PyObject *pyobj; | |
3485 | ||
3486 | { | |
3487 | #if wxUSE_UNICODE | |
3488 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3489 | #else | |
3490 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3491 | #endif | |
3492 | } | |
3493 | return pyobj; | |
3494 | } | |
3495 | ||
3496 | ||
3497 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
3498 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
3499 | return 1; | |
3500 | } | |
3501 | ||
3502 | ||
3503 | static PyObject *_wrap_StaticTextNameStr_get() { | |
3504 | PyObject *pyobj; | |
3505 | ||
3506 | { | |
3507 | #if wxUSE_UNICODE | |
3508 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3509 | #else | |
3510 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3511 | #endif | |
3512 | } | |
3513 | return pyobj; | |
3514 | } | |
3515 | ||
3516 | ||
d14a1e28 RD |
3517 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
3518 | PyObject *resultobj; | |
3519 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3520 | int arg2 ; |
d14a1e28 RD |
3521 | wxString *arg3 = 0 ; |
3522 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3523 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3524 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3525 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3526 | long arg6 = (long) 0 ; | |
3527 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
3528 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3529 | wxStaticBox *result; | |
423f194a | 3530 | bool temp3 = False ; |
d14a1e28 RD |
3531 | wxPoint temp4 ; |
3532 | wxSize temp5 ; | |
423f194a | 3533 | bool temp7 = False ; |
d14a1e28 RD |
3534 | PyObject * obj0 = 0 ; |
3535 | PyObject * obj2 = 0 ; | |
3536 | PyObject * obj3 = 0 ; | |
3537 | PyObject * obj4 = 0 ; | |
3538 | PyObject * obj6 = 0 ; | |
3539 | char *kwnames[] = { | |
3540 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3541 | }; | |
3542 | ||
3543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3545 | { | |
3546 | arg3 = wxString_in_helper(obj2); | |
3547 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3548 | temp3 = True; |
d14a1e28 RD |
3549 | } |
3550 | if (obj3) { | |
3551 | { | |
3552 | arg4 = &temp4; | |
3553 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3554 | } | |
3555 | } | |
3556 | if (obj4) { | |
3557 | { | |
3558 | arg5 = &temp5; | |
3559 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3560 | } | |
3561 | } | |
3562 | if (obj6) { | |
3563 | { | |
3564 | arg7 = wxString_in_helper(obj6); | |
3565 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 3566 | temp7 = True; |
d14a1e28 RD |
3567 | } |
3568 | } | |
3569 | { | |
3570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3571 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3572 | ||
3573 | wxPyEndAllowThreads(__tstate); | |
3574 | if (PyErr_Occurred()) SWIG_fail; | |
3575 | } | |
3576 | { | |
3577 | resultobj = wxPyMake_wxObject(result); | |
3578 | } | |
3579 | { | |
3580 | if (temp3) | |
3581 | delete arg3; | |
3582 | } | |
3583 | { | |
3584 | if (temp7) | |
3585 | delete arg7; | |
3586 | } | |
3587 | return resultobj; | |
3588 | fail: | |
3589 | { | |
3590 | if (temp3) | |
3591 | delete arg3; | |
3592 | } | |
3593 | { | |
3594 | if (temp7) | |
3595 | delete arg7; | |
3596 | } | |
3597 | return NULL; | |
3598 | } | |
3599 | ||
3600 | ||
3601 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3602 | PyObject *resultobj; | |
3603 | wxStaticBox *result; | |
3604 | char *kwnames[] = { | |
3605 | NULL | |
3606 | }; | |
3607 | ||
3608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
3609 | { | |
3610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3611 | result = (wxStaticBox *)new wxStaticBox(); | |
3612 | ||
3613 | wxPyEndAllowThreads(__tstate); | |
3614 | if (PyErr_Occurred()) SWIG_fail; | |
3615 | } | |
3616 | { | |
3617 | resultobj = wxPyMake_wxObject(result); | |
3618 | } | |
3619 | return resultobj; | |
3620 | fail: | |
3621 | return NULL; | |
3622 | } | |
3623 | ||
3624 | ||
3625 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3626 | PyObject *resultobj; | |
3627 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
3628 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3629 | int arg3 ; |
d14a1e28 RD |
3630 | wxString *arg4 = 0 ; |
3631 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3632 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3633 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3634 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3635 | long arg7 = (long) 0 ; | |
3636 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
3637 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3638 | bool result; | |
423f194a | 3639 | bool temp4 = False ; |
d14a1e28 RD |
3640 | wxPoint temp5 ; |
3641 | wxSize temp6 ; | |
423f194a | 3642 | bool temp8 = False ; |
d14a1e28 RD |
3643 | PyObject * obj0 = 0 ; |
3644 | PyObject * obj1 = 0 ; | |
3645 | PyObject * obj3 = 0 ; | |
3646 | PyObject * obj4 = 0 ; | |
3647 | PyObject * obj5 = 0 ; | |
3648 | PyObject * obj7 = 0 ; | |
3649 | char *kwnames[] = { | |
3650 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3651 | }; | |
3652 | ||
3653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
3654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3655 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3656 | { | |
3657 | arg4 = wxString_in_helper(obj3); | |
3658 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3659 | temp4 = True; |
d14a1e28 RD |
3660 | } |
3661 | if (obj4) { | |
3662 | { | |
3663 | arg5 = &temp5; | |
3664 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3665 | } | |
3666 | } | |
3667 | if (obj5) { | |
3668 | { | |
3669 | arg6 = &temp6; | |
3670 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3671 | } | |
3672 | } | |
3673 | if (obj7) { | |
3674 | { | |
3675 | arg8 = wxString_in_helper(obj7); | |
3676 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3677 | temp8 = True; |
d14a1e28 RD |
3678 | } |
3679 | } | |
3680 | { | |
3681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3682 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3683 | ||
3684 | wxPyEndAllowThreads(__tstate); | |
3685 | if (PyErr_Occurred()) SWIG_fail; | |
3686 | } | |
3687 | resultobj = PyInt_FromLong((long)result); | |
3688 | { | |
3689 | if (temp4) | |
3690 | delete arg4; | |
3691 | } | |
3692 | { | |
3693 | if (temp8) | |
3694 | delete arg8; | |
3695 | } | |
3696 | return resultobj; | |
3697 | fail: | |
3698 | { | |
3699 | if (temp4) | |
3700 | delete arg4; | |
3701 | } | |
3702 | { | |
3703 | if (temp8) | |
3704 | delete arg8; | |
3705 | } | |
3706 | return NULL; | |
3707 | } | |
3708 | ||
3709 | ||
3710 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
3711 | PyObject *obj; | |
3712 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3713 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
3714 | Py_INCREF(obj); | |
3715 | return Py_BuildValue((char *)""); | |
3716 | } | |
3717 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3718 | PyObject *resultobj; | |
3719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3720 | int arg2 ; |
d14a1e28 RD |
3721 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
3722 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3723 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3724 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3725 | long arg5 = (long) wxLI_HORIZONTAL ; | |
3726 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
3727 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
3728 | wxStaticLine *result; | |
3729 | wxPoint temp3 ; | |
3730 | wxSize temp4 ; | |
423f194a | 3731 | bool temp6 = False ; |
d14a1e28 RD |
3732 | PyObject * obj0 = 0 ; |
3733 | PyObject * obj2 = 0 ; | |
3734 | PyObject * obj3 = 0 ; | |
3735 | PyObject * obj5 = 0 ; | |
3736 | char *kwnames[] = { | |
3737 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3738 | }; | |
3739 | ||
3740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_StaticLine",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
3741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3742 | if (obj2) { | |
3743 | { | |
3744 | arg3 = &temp3; | |
3745 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
3746 | } | |
3747 | } | |
3748 | if (obj3) { | |
3749 | { | |
3750 | arg4 = &temp4; | |
3751 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
3752 | } | |
3753 | } | |
3754 | if (obj5) { | |
3755 | { | |
3756 | arg6 = wxString_in_helper(obj5); | |
3757 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 3758 | temp6 = True; |
d14a1e28 RD |
3759 | } |
3760 | } | |
3761 | { | |
3762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3763 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
3764 | ||
3765 | wxPyEndAllowThreads(__tstate); | |
3766 | if (PyErr_Occurred()) SWIG_fail; | |
3767 | } | |
3768 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
3769 | { | |
3770 | if (temp6) | |
3771 | delete arg6; | |
3772 | } | |
3773 | return resultobj; | |
3774 | fail: | |
3775 | { | |
3776 | if (temp6) | |
3777 | delete arg6; | |
3778 | } | |
3779 | return NULL; | |
3780 | } | |
3781 | ||
3782 | ||
3783 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3784 | PyObject *resultobj; | |
3785 | wxStaticLine *result; | |
3786 | char *kwnames[] = { | |
3787 | NULL | |
3788 | }; | |
3789 | ||
3790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
3791 | { | |
3792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3793 | result = (wxStaticLine *)new wxStaticLine(); | |
3794 | ||
3795 | wxPyEndAllowThreads(__tstate); | |
3796 | if (PyErr_Occurred()) SWIG_fail; | |
3797 | } | |
3798 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
3799 | return resultobj; | |
3800 | fail: | |
3801 | return NULL; | |
3802 | } | |
3803 | ||
3804 | ||
3805 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3806 | PyObject *resultobj; | |
3807 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
3808 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3809 | int arg3 ; |
d14a1e28 RD |
3810 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3811 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3812 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3813 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3814 | long arg6 = (long) wxLI_HORIZONTAL ; | |
3815 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
3816 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3817 | bool result; | |
3818 | wxPoint temp4 ; | |
3819 | wxSize temp5 ; | |
423f194a | 3820 | bool temp7 = False ; |
d14a1e28 RD |
3821 | PyObject * obj0 = 0 ; |
3822 | PyObject * obj1 = 0 ; | |
3823 | PyObject * obj3 = 0 ; | |
3824 | PyObject * obj4 = 0 ; | |
3825 | PyObject * obj6 = 0 ; | |
3826 | char *kwnames[] = { | |
3827 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3828 | }; | |
3829 | ||
3830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:StaticLine_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3832 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3833 | if (obj3) { | |
3834 | { | |
3835 | arg4 = &temp4; | |
3836 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3837 | } | |
3838 | } | |
3839 | if (obj4) { | |
3840 | { | |
3841 | arg5 = &temp5; | |
3842 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3843 | } | |
3844 | } | |
3845 | if (obj6) { | |
3846 | { | |
3847 | arg7 = wxString_in_helper(obj6); | |
3848 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 3849 | temp7 = True; |
d14a1e28 RD |
3850 | } |
3851 | } | |
3852 | { | |
3853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3854 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3855 | ||
3856 | wxPyEndAllowThreads(__tstate); | |
3857 | if (PyErr_Occurred()) SWIG_fail; | |
3858 | } | |
3859 | resultobj = PyInt_FromLong((long)result); | |
3860 | { | |
3861 | if (temp7) | |
3862 | delete arg7; | |
3863 | } | |
3864 | return resultobj; | |
3865 | fail: | |
3866 | { | |
3867 | if (temp7) | |
3868 | delete arg7; | |
3869 | } | |
3870 | return NULL; | |
3871 | } | |
3872 | ||
3873 | ||
3874 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3875 | PyObject *resultobj; | |
3876 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
3877 | bool result; | |
3878 | PyObject * obj0 = 0 ; | |
3879 | char *kwnames[] = { | |
3880 | (char *) "self", NULL | |
3881 | }; | |
3882 | ||
3883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
3884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3885 | { | |
3886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3887 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
3888 | ||
3889 | wxPyEndAllowThreads(__tstate); | |
3890 | if (PyErr_Occurred()) SWIG_fail; | |
3891 | } | |
3892 | resultobj = PyInt_FromLong((long)result); | |
3893 | return resultobj; | |
3894 | fail: | |
3895 | return NULL; | |
3896 | } | |
3897 | ||
3898 | ||
3899 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3900 | PyObject *resultobj; | |
3901 | int result; | |
3902 | char *kwnames[] = { | |
3903 | NULL | |
3904 | }; | |
3905 | ||
3906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
3907 | { | |
3908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3909 | result = (int)wxStaticLine::GetDefaultSize(); | |
3910 | ||
3911 | wxPyEndAllowThreads(__tstate); | |
3912 | if (PyErr_Occurred()) SWIG_fail; | |
3913 | } | |
3914 | resultobj = PyInt_FromLong((long)result); | |
3915 | return resultobj; | |
3916 | fail: | |
3917 | return NULL; | |
3918 | } | |
3919 | ||
3920 | ||
3921 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
3922 | PyObject *obj; | |
3923 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3924 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
3925 | Py_INCREF(obj); | |
3926 | return Py_BuildValue((char *)""); | |
3927 | } | |
3928 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3929 | PyObject *resultobj; | |
3930 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3931 | int arg2 ; |
d14a1e28 RD |
3932 | wxString *arg3 = 0 ; |
3933 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3934 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3935 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3936 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3937 | long arg6 = (long) 0 ; | |
3938 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
3939 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3940 | wxStaticText *result; | |
423f194a | 3941 | bool temp3 = False ; |
d14a1e28 RD |
3942 | wxPoint temp4 ; |
3943 | wxSize temp5 ; | |
423f194a | 3944 | bool temp7 = False ; |
d14a1e28 RD |
3945 | PyObject * obj0 = 0 ; |
3946 | PyObject * obj2 = 0 ; | |
3947 | PyObject * obj3 = 0 ; | |
3948 | PyObject * obj4 = 0 ; | |
3949 | PyObject * obj6 = 0 ; | |
3950 | char *kwnames[] = { | |
3951 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3952 | }; | |
3953 | ||
3954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticText",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3956 | { | |
3957 | arg3 = wxString_in_helper(obj2); | |
3958 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3959 | temp3 = True; |
d14a1e28 RD |
3960 | } |
3961 | if (obj3) { | |
3962 | { | |
3963 | arg4 = &temp4; | |
3964 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3965 | } | |
3966 | } | |
3967 | if (obj4) { | |
3968 | { | |
3969 | arg5 = &temp5; | |
3970 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3971 | } | |
3972 | } | |
3973 | if (obj6) { | |
3974 | { | |
3975 | arg7 = wxString_in_helper(obj6); | |
3976 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 3977 | temp7 = True; |
d14a1e28 RD |
3978 | } |
3979 | } | |
3980 | { | |
3981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3982 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3983 | ||
3984 | wxPyEndAllowThreads(__tstate); | |
3985 | if (PyErr_Occurred()) SWIG_fail; | |
3986 | } | |
3987 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
3988 | { | |
3989 | if (temp3) | |
3990 | delete arg3; | |
3991 | } | |
3992 | { | |
3993 | if (temp7) | |
3994 | delete arg7; | |
3995 | } | |
3996 | return resultobj; | |
3997 | fail: | |
3998 | { | |
3999 | if (temp3) | |
4000 | delete arg3; | |
4001 | } | |
4002 | { | |
4003 | if (temp7) | |
4004 | delete arg7; | |
4005 | } | |
4006 | return NULL; | |
4007 | } | |
4008 | ||
4009 | ||
4010 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4011 | PyObject *resultobj; | |
4012 | wxStaticText *result; | |
4013 | char *kwnames[] = { | |
4014 | NULL | |
4015 | }; | |
4016 | ||
4017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4018 | { | |
4019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4020 | result = (wxStaticText *)new wxStaticText(); | |
4021 | ||
4022 | wxPyEndAllowThreads(__tstate); | |
4023 | if (PyErr_Occurred()) SWIG_fail; | |
4024 | } | |
4025 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4026 | return resultobj; | |
4027 | fail: | |
4028 | return NULL; | |
4029 | } | |
4030 | ||
4031 | ||
4032 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4033 | PyObject *resultobj; | |
4034 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4035 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4036 | int arg3 ; |
d14a1e28 RD |
4037 | wxString *arg4 = 0 ; |
4038 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4039 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4040 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4041 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4042 | long arg7 = (long) 0 ; | |
4043 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4044 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4045 | bool result; | |
423f194a | 4046 | bool temp4 = False ; |
d14a1e28 RD |
4047 | wxPoint temp5 ; |
4048 | wxSize temp6 ; | |
423f194a | 4049 | bool temp8 = False ; |
d14a1e28 RD |
4050 | PyObject * obj0 = 0 ; |
4051 | PyObject * obj1 = 0 ; | |
4052 | PyObject * obj3 = 0 ; | |
4053 | PyObject * obj4 = 0 ; | |
4054 | PyObject * obj5 = 0 ; | |
4055 | PyObject * obj7 = 0 ; | |
4056 | char *kwnames[] = { | |
4057 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4058 | }; | |
4059 | ||
4060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticText_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
4061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4062 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4063 | { | |
4064 | arg4 = wxString_in_helper(obj3); | |
4065 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4066 | temp4 = True; |
d14a1e28 RD |
4067 | } |
4068 | if (obj4) { | |
4069 | { | |
4070 | arg5 = &temp5; | |
4071 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4072 | } | |
4073 | } | |
4074 | if (obj5) { | |
4075 | { | |
4076 | arg6 = &temp6; | |
4077 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4078 | } | |
4079 | } | |
4080 | if (obj7) { | |
4081 | { | |
4082 | arg8 = wxString_in_helper(obj7); | |
4083 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4084 | temp8 = True; |
d14a1e28 RD |
4085 | } |
4086 | } | |
4087 | { | |
4088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4089 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4090 | ||
4091 | wxPyEndAllowThreads(__tstate); | |
4092 | if (PyErr_Occurred()) SWIG_fail; | |
4093 | } | |
4094 | resultobj = PyInt_FromLong((long)result); | |
4095 | { | |
4096 | if (temp4) | |
4097 | delete arg4; | |
4098 | } | |
4099 | { | |
4100 | if (temp8) | |
4101 | delete arg8; | |
4102 | } | |
4103 | return resultobj; | |
4104 | fail: | |
4105 | { | |
4106 | if (temp4) | |
4107 | delete arg4; | |
4108 | } | |
4109 | { | |
4110 | if (temp8) | |
4111 | delete arg8; | |
4112 | } | |
4113 | return NULL; | |
4114 | } | |
4115 | ||
4116 | ||
4117 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4118 | PyObject *obj; | |
4119 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4120 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4121 | Py_INCREF(obj); | |
4122 | return Py_BuildValue((char *)""); | |
4123 | } | |
4124 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4125 | PyObject *resultobj; | |
4126 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4127 | int arg2 ; |
d14a1e28 RD |
4128 | wxBitmap *arg3 = 0 ; |
4129 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4130 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4131 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4132 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4133 | long arg6 = (long) 0 ; | |
4134 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4135 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4136 | wxStaticBitmap *result; | |
4137 | wxPoint temp4 ; | |
4138 | wxSize temp5 ; | |
423f194a | 4139 | bool temp7 = False ; |
d14a1e28 RD |
4140 | PyObject * obj0 = 0 ; |
4141 | PyObject * obj2 = 0 ; | |
4142 | PyObject * obj3 = 0 ; | |
4143 | PyObject * obj4 = 0 ; | |
4144 | PyObject * obj6 = 0 ; | |
4145 | char *kwnames[] = { | |
4146 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4147 | }; | |
4148 | ||
4149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticBitmap",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
4150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4151 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4152 | if (arg3 == NULL) { | |
4153 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4154 | } | |
4155 | if (obj3) { | |
4156 | { | |
4157 | arg4 = &temp4; | |
4158 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4159 | } | |
4160 | } | |
4161 | if (obj4) { | |
4162 | { | |
4163 | arg5 = &temp5; | |
4164 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4165 | } | |
4166 | } | |
4167 | if (obj6) { | |
4168 | { | |
4169 | arg7 = wxString_in_helper(obj6); | |
4170 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4171 | temp7 = True; |
d14a1e28 RD |
4172 | } |
4173 | } | |
4174 | { | |
4175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4176 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4177 | ||
4178 | wxPyEndAllowThreads(__tstate); | |
4179 | if (PyErr_Occurred()) SWIG_fail; | |
4180 | } | |
4181 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4182 | { | |
4183 | if (temp7) | |
4184 | delete arg7; | |
4185 | } | |
4186 | return resultobj; | |
4187 | fail: | |
4188 | { | |
4189 | if (temp7) | |
4190 | delete arg7; | |
4191 | } | |
4192 | return NULL; | |
4193 | } | |
4194 | ||
4195 | ||
4196 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4197 | PyObject *resultobj; | |
4198 | wxStaticBitmap *result; | |
4199 | char *kwnames[] = { | |
4200 | NULL | |
4201 | }; | |
4202 | ||
4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4204 | { | |
4205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4206 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4207 | ||
4208 | wxPyEndAllowThreads(__tstate); | |
4209 | if (PyErr_Occurred()) SWIG_fail; | |
4210 | } | |
4211 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4212 | return resultobj; | |
4213 | fail: | |
4214 | return NULL; | |
4215 | } | |
4216 | ||
4217 | ||
4218 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4219 | PyObject *resultobj; | |
4220 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4221 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4222 | int arg3 ; |
d14a1e28 RD |
4223 | wxBitmap *arg4 = 0 ; |
4224 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4225 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4226 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4227 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4228 | long arg7 = (long) 0 ; | |
4229 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4230 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4231 | bool result; | |
4232 | wxPoint temp5 ; | |
4233 | wxSize temp6 ; | |
423f194a | 4234 | bool temp8 = False ; |
d14a1e28 RD |
4235 | PyObject * obj0 = 0 ; |
4236 | PyObject * obj1 = 0 ; | |
4237 | PyObject * obj3 = 0 ; | |
4238 | PyObject * obj4 = 0 ; | |
4239 | PyObject * obj5 = 0 ; | |
4240 | PyObject * obj7 = 0 ; | |
4241 | char *kwnames[] = { | |
4242 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4243 | }; | |
4244 | ||
4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticBitmap_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
4246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4247 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4248 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4249 | if (arg4 == NULL) { | |
4250 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4251 | } | |
4252 | if (obj4) { | |
4253 | { | |
4254 | arg5 = &temp5; | |
4255 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4256 | } | |
4257 | } | |
4258 | if (obj5) { | |
4259 | { | |
4260 | arg6 = &temp6; | |
4261 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4262 | } | |
4263 | } | |
4264 | if (obj7) { | |
4265 | { | |
4266 | arg8 = wxString_in_helper(obj7); | |
4267 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4268 | temp8 = True; |
d14a1e28 RD |
4269 | } |
4270 | } | |
4271 | { | |
4272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4273 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4274 | ||
4275 | wxPyEndAllowThreads(__tstate); | |
4276 | if (PyErr_Occurred()) SWIG_fail; | |
4277 | } | |
4278 | resultobj = PyInt_FromLong((long)result); | |
4279 | { | |
4280 | if (temp8) | |
4281 | delete arg8; | |
4282 | } | |
4283 | return resultobj; | |
4284 | fail: | |
4285 | { | |
4286 | if (temp8) | |
4287 | delete arg8; | |
4288 | } | |
4289 | return NULL; | |
4290 | } | |
4291 | ||
4292 | ||
4293 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4294 | PyObject *resultobj; | |
4295 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4296 | wxBitmap result; | |
4297 | PyObject * obj0 = 0 ; | |
4298 | char *kwnames[] = { | |
4299 | (char *) "self", NULL | |
4300 | }; | |
4301 | ||
4302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4304 | { | |
4305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4306 | result = (arg1)->GetBitmap(); | |
4307 | ||
4308 | wxPyEndAllowThreads(__tstate); | |
4309 | if (PyErr_Occurred()) SWIG_fail; | |
4310 | } | |
4311 | { | |
4312 | wxBitmap * resultptr; | |
4313 | resultptr = new wxBitmap((wxBitmap &) result); | |
4314 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4315 | } | |
4316 | return resultobj; | |
4317 | fail: | |
4318 | return NULL; | |
4319 | } | |
4320 | ||
4321 | ||
4322 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4323 | PyObject *resultobj; | |
4324 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4325 | wxBitmap *arg2 = 0 ; | |
4326 | PyObject * obj0 = 0 ; | |
4327 | PyObject * obj1 = 0 ; | |
4328 | char *kwnames[] = { | |
4329 | (char *) "self",(char *) "bitmap", NULL | |
4330 | }; | |
4331 | ||
4332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4334 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4335 | if (arg2 == NULL) { | |
4336 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4337 | } | |
4338 | { | |
4339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4340 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4341 | ||
4342 | wxPyEndAllowThreads(__tstate); | |
4343 | if (PyErr_Occurred()) SWIG_fail; | |
4344 | } | |
4345 | Py_INCREF(Py_None); resultobj = Py_None; | |
4346 | return resultobj; | |
4347 | fail: | |
4348 | return NULL; | |
4349 | } | |
4350 | ||
4351 | ||
4352 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4353 | PyObject *resultobj; | |
4354 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4355 | wxIcon *arg2 = 0 ; | |
4356 | PyObject * obj0 = 0 ; | |
4357 | PyObject * obj1 = 0 ; | |
4358 | char *kwnames[] = { | |
4359 | (char *) "self",(char *) "icon", NULL | |
4360 | }; | |
4361 | ||
4362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4364 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4365 | if (arg2 == NULL) { | |
4366 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4367 | } | |
4368 | { | |
4369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4370 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
4371 | ||
4372 | wxPyEndAllowThreads(__tstate); | |
4373 | if (PyErr_Occurred()) SWIG_fail; | |
4374 | } | |
4375 | Py_INCREF(Py_None); resultobj = Py_None; | |
4376 | return resultobj; | |
4377 | fail: | |
4378 | return NULL; | |
4379 | } | |
4380 | ||
4381 | ||
4382 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
4383 | PyObject *obj; | |
4384 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4385 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
4386 | Py_INCREF(obj); | |
4387 | return Py_BuildValue((char *)""); | |
4388 | } | |
cbd72d4f RD |
4389 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { |
4390 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
4391 | return 1; | |
4392 | } | |
4393 | ||
4394 | ||
4395 | static PyObject *_wrap_ListBoxNameStr_get() { | |
4396 | PyObject *pyobj; | |
4397 | ||
4398 | { | |
4399 | #if wxUSE_UNICODE | |
4400 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4401 | #else | |
4402 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4403 | #endif | |
4404 | } | |
4405 | return pyobj; | |
4406 | } | |
4407 | ||
4408 | ||
d14a1e28 RD |
4409 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4410 | PyObject *resultobj; | |
4411 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4412 | int arg2 ; |
d14a1e28 RD |
4413 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4414 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4415 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4416 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4417 | int arg5 = (int) 0 ; | |
4418 | wxString *arg6 = (wxString *) NULL ; | |
4419 | long arg7 = (long) 0 ; | |
4420 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4421 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4422 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
4423 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4424 | wxListBox *result; | |
4425 | wxPoint temp3 ; | |
4426 | wxSize temp4 ; | |
423f194a | 4427 | bool temp8 = False ; |
d14a1e28 RD |
4428 | PyObject * obj0 = 0 ; |
4429 | PyObject * obj2 = 0 ; | |
4430 | PyObject * obj3 = 0 ; | |
4431 | PyObject * obj4 = 0 ; | |
4432 | PyObject * obj6 = 0 ; | |
4433 | PyObject * obj7 = 0 ; | |
4434 | char *kwnames[] = { | |
4435 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4436 | }; | |
4437 | ||
4438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_ListBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
4439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4440 | if (obj2) { | |
4441 | { | |
4442 | arg3 = &temp3; | |
4443 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4444 | } | |
4445 | } | |
4446 | if (obj3) { | |
4447 | { | |
4448 | arg4 = &temp4; | |
4449 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4450 | } | |
4451 | } | |
4452 | if (obj4) { | |
4453 | { | |
4454 | arg5 = PyList_Size(obj4); | |
4455 | arg6 = wxString_LIST_helper(obj4); | |
4456 | if (arg6 == NULL) SWIG_fail; | |
4457 | } | |
4458 | } | |
4459 | if (obj6) { | |
4460 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4461 | if (arg8 == NULL) { | |
4462 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4463 | } | |
4464 | } | |
4465 | if (obj7) { | |
4466 | { | |
4467 | arg9 = wxString_in_helper(obj7); | |
4468 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 4469 | temp8 = True; |
d14a1e28 RD |
4470 | } |
4471 | } | |
4472 | { | |
4473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4474 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4475 | ||
4476 | wxPyEndAllowThreads(__tstate); | |
4477 | if (PyErr_Occurred()) SWIG_fail; | |
4478 | } | |
4479 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4480 | { | |
4481 | if (arg6) delete [] arg6; | |
4482 | } | |
4483 | { | |
4484 | if (temp8) | |
4485 | delete arg9; | |
4486 | } | |
4487 | return resultobj; | |
4488 | fail: | |
4489 | { | |
4490 | if (arg6) delete [] arg6; | |
4491 | } | |
4492 | { | |
4493 | if (temp8) | |
4494 | delete arg9; | |
4495 | } | |
4496 | return NULL; | |
4497 | } | |
4498 | ||
4499 | ||
4500 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4501 | PyObject *resultobj; | |
4502 | wxListBox *result; | |
4503 | char *kwnames[] = { | |
4504 | NULL | |
4505 | }; | |
4506 | ||
4507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
4508 | { | |
4509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4510 | result = (wxListBox *)new wxListBox(); | |
4511 | ||
4512 | wxPyEndAllowThreads(__tstate); | |
4513 | if (PyErr_Occurred()) SWIG_fail; | |
4514 | } | |
4515 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4516 | return resultobj; | |
4517 | fail: | |
4518 | return NULL; | |
4519 | } | |
4520 | ||
4521 | ||
4522 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4523 | PyObject *resultobj; | |
4524 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4525 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4526 | int arg3 ; |
d14a1e28 RD |
4527 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4528 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4529 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4530 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4531 | int arg6 = (int) 0 ; | |
4532 | wxString *arg7 = (wxString *) NULL ; | |
4533 | long arg8 = (long) 0 ; | |
4534 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
4535 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
4536 | wxString const &arg10_defvalue = wxPyListBoxNameStr ; | |
4537 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
4538 | bool result; | |
4539 | wxPoint temp4 ; | |
4540 | wxSize temp5 ; | |
423f194a | 4541 | bool temp9 = False ; |
d14a1e28 RD |
4542 | PyObject * obj0 = 0 ; |
4543 | PyObject * obj1 = 0 ; | |
4544 | PyObject * obj3 = 0 ; | |
4545 | PyObject * obj4 = 0 ; | |
4546 | PyObject * obj5 = 0 ; | |
4547 | PyObject * obj7 = 0 ; | |
4548 | PyObject * obj8 = 0 ; | |
4549 | char *kwnames[] = { | |
4550 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4551 | }; | |
4552 | ||
4553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:ListBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
4554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4555 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4556 | if (obj3) { | |
4557 | { | |
4558 | arg4 = &temp4; | |
4559 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4560 | } | |
4561 | } | |
4562 | if (obj4) { | |
4563 | { | |
4564 | arg5 = &temp5; | |
4565 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4566 | } | |
4567 | } | |
4568 | if (obj5) { | |
4569 | { | |
4570 | arg6 = PyList_Size(obj5); | |
4571 | arg7 = wxString_LIST_helper(obj5); | |
4572 | if (arg7 == NULL) SWIG_fail; | |
4573 | } | |
4574 | } | |
4575 | if (obj7) { | |
4576 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4577 | if (arg9 == NULL) { | |
4578 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4579 | } | |
4580 | } | |
4581 | if (obj8) { | |
4582 | { | |
4583 | arg10 = wxString_in_helper(obj8); | |
4584 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 4585 | temp9 = True; |
d14a1e28 RD |
4586 | } |
4587 | } | |
4588 | { | |
4589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4590 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
4591 | ||
4592 | wxPyEndAllowThreads(__tstate); | |
4593 | if (PyErr_Occurred()) SWIG_fail; | |
4594 | } | |
4595 | resultobj = PyInt_FromLong((long)result); | |
4596 | { | |
4597 | if (arg7) delete [] arg7; | |
4598 | } | |
4599 | { | |
4600 | if (temp9) | |
4601 | delete arg10; | |
4602 | } | |
4603 | return resultobj; | |
4604 | fail: | |
4605 | { | |
4606 | if (arg7) delete [] arg7; | |
4607 | } | |
4608 | { | |
4609 | if (temp9) | |
4610 | delete arg10; | |
4611 | } | |
4612 | return NULL; | |
4613 | } | |
4614 | ||
4615 | ||
4616 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4617 | PyObject *resultobj; | |
4618 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4619 | wxString *arg2 = 0 ; | |
4620 | int arg3 ; | |
4621 | PyObject *arg4 = (PyObject *) NULL ; | |
423f194a | 4622 | bool temp2 = False ; |
d14a1e28 RD |
4623 | PyObject * obj0 = 0 ; |
4624 | PyObject * obj1 = 0 ; | |
4625 | PyObject * obj3 = 0 ; | |
4626 | char *kwnames[] = { | |
4627 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
4628 | }; | |
4629 | ||
4630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:ListBox_Insert",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
4631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4632 | { | |
4633 | arg2 = wxString_in_helper(obj1); | |
4634 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4635 | temp2 = True; |
d14a1e28 RD |
4636 | } |
4637 | if (obj3) { | |
4638 | arg4 = obj3; | |
4639 | } | |
4640 | { | |
4641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4642 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
4643 | ||
4644 | wxPyEndAllowThreads(__tstate); | |
4645 | if (PyErr_Occurred()) SWIG_fail; | |
4646 | } | |
4647 | Py_INCREF(Py_None); resultobj = Py_None; | |
4648 | { | |
4649 | if (temp2) | |
4650 | delete arg2; | |
4651 | } | |
4652 | return resultobj; | |
4653 | fail: | |
4654 | { | |
4655 | if (temp2) | |
4656 | delete arg2; | |
4657 | } | |
4658 | return NULL; | |
4659 | } | |
4660 | ||
4661 | ||
4662 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4663 | PyObject *resultobj; | |
4664 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4665 | wxArrayString *arg2 = 0 ; | |
4666 | int arg3 ; | |
4667 | PyObject * obj0 = 0 ; | |
4668 | PyObject * obj1 = 0 ; | |
4669 | char *kwnames[] = { | |
4670 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
4671 | }; | |
4672 | ||
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListBox_InsertItems",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
4674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4675 | { | |
4676 | if (! PySequence_Check(obj1)) { | |
4677 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4678 | SWIG_fail; | |
4679 | } | |
4680 | arg2 = new wxArrayString; | |
4681 | int i, len=PySequence_Length(obj1); | |
4682 | for (i=0; i<len; i++) { | |
4683 | PyObject* item = PySequence_GetItem(obj1, i); | |
4684 | #if wxUSE_UNICODE | |
4685 | PyObject* str = PyObject_Unicode(item); | |
4686 | #else | |
4687 | PyObject* str = PyObject_Str(item); | |
4688 | #endif | |
4689 | arg2->Add(Py2wxString(str)); | |
4690 | Py_DECREF(item); | |
4691 | Py_DECREF(str); | |
4692 | } | |
4693 | } | |
4694 | { | |
4695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4696 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
4697 | ||
4698 | wxPyEndAllowThreads(__tstate); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
4701 | Py_INCREF(Py_None); resultobj = Py_None; | |
4702 | { | |
4703 | if (arg2) delete arg2; | |
4704 | } | |
4705 | return resultobj; | |
4706 | fail: | |
4707 | { | |
4708 | if (arg2) delete arg2; | |
4709 | } | |
4710 | return NULL; | |
4711 | } | |
4712 | ||
4713 | ||
4714 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4715 | PyObject *resultobj; | |
4716 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4717 | wxArrayString *arg2 = 0 ; | |
4718 | PyObject * obj0 = 0 ; | |
4719 | PyObject * obj1 = 0 ; | |
4720 | char *kwnames[] = { | |
4721 | (char *) "self",(char *) "items", NULL | |
4722 | }; | |
4723 | ||
4724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
4725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4726 | { | |
4727 | if (! PySequence_Check(obj1)) { | |
4728 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4729 | SWIG_fail; | |
4730 | } | |
4731 | arg2 = new wxArrayString; | |
4732 | int i, len=PySequence_Length(obj1); | |
4733 | for (i=0; i<len; i++) { | |
4734 | PyObject* item = PySequence_GetItem(obj1, i); | |
4735 | #if wxUSE_UNICODE | |
4736 | PyObject* str = PyObject_Unicode(item); | |
4737 | #else | |
4738 | PyObject* str = PyObject_Str(item); | |
4739 | #endif | |
4740 | arg2->Add(Py2wxString(str)); | |
4741 | Py_DECREF(item); | |
4742 | Py_DECREF(str); | |
4743 | } | |
4744 | } | |
4745 | { | |
4746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4747 | (arg1)->Set((wxArrayString const &)*arg2); | |
4748 | ||
4749 | wxPyEndAllowThreads(__tstate); | |
4750 | if (PyErr_Occurred()) SWIG_fail; | |
4751 | } | |
4752 | Py_INCREF(Py_None); resultobj = Py_None; | |
4753 | { | |
4754 | if (arg2) delete arg2; | |
4755 | } | |
4756 | return resultobj; | |
4757 | fail: | |
4758 | { | |
4759 | if (arg2) delete arg2; | |
4760 | } | |
4761 | return NULL; | |
4762 | } | |
4763 | ||
4764 | ||
4765 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4766 | PyObject *resultobj; | |
4767 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4768 | int arg2 ; | |
4769 | bool result; | |
4770 | PyObject * obj0 = 0 ; | |
4771 | char *kwnames[] = { | |
4772 | (char *) "self",(char *) "n", NULL | |
4773 | }; | |
4774 | ||
4775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_IsSelected",kwnames,&obj0,&arg2)) goto fail; | |
4776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4777 | { | |
4778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4779 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
4780 | ||
4781 | wxPyEndAllowThreads(__tstate); | |
4782 | if (PyErr_Occurred()) SWIG_fail; | |
4783 | } | |
4784 | resultobj = PyInt_FromLong((long)result); | |
4785 | return resultobj; | |
4786 | fail: | |
4787 | return NULL; | |
4788 | } | |
4789 | ||
4790 | ||
4791 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4792 | PyObject *resultobj; | |
4793 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4794 | int arg2 ; | |
423f194a | 4795 | bool arg3 = (bool) True ; |
d14a1e28 RD |
4796 | PyObject * obj0 = 0 ; |
4797 | PyObject * obj2 = 0 ; | |
4798 | char *kwnames[] = { | |
4799 | (char *) "self",(char *) "n",(char *) "select", NULL | |
4800 | }; | |
4801 | ||
4802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:ListBox_SetSelection",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
4803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4804 | if (obj2) { | |
4805 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
4806 | if (PyErr_Occurred()) SWIG_fail; | |
4807 | } | |
4808 | { | |
4809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4810 | (arg1)->SetSelection(arg2,arg3); | |
4811 | ||
4812 | wxPyEndAllowThreads(__tstate); | |
4813 | if (PyErr_Occurred()) SWIG_fail; | |
4814 | } | |
4815 | Py_INCREF(Py_None); resultobj = Py_None; | |
4816 | return resultobj; | |
4817 | fail: | |
4818 | return NULL; | |
4819 | } | |
4820 | ||
4821 | ||
4822 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4823 | PyObject *resultobj; | |
4824 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4825 | int arg2 ; | |
4826 | PyObject * obj0 = 0 ; | |
4827 | char *kwnames[] = { | |
4828 | (char *) "self",(char *) "n", NULL | |
4829 | }; | |
4830 | ||
4831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_Select",kwnames,&obj0,&arg2)) goto fail; | |
4832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4833 | { | |
4834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4835 | (arg1)->Select(arg2); | |
4836 | ||
4837 | wxPyEndAllowThreads(__tstate); | |
4838 | if (PyErr_Occurred()) SWIG_fail; | |
4839 | } | |
4840 | Py_INCREF(Py_None); resultobj = Py_None; | |
4841 | return resultobj; | |
4842 | fail: | |
4843 | return NULL; | |
4844 | } | |
4845 | ||
4846 | ||
4847 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4848 | PyObject *resultobj; | |
4849 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4850 | int arg2 ; | |
4851 | PyObject * obj0 = 0 ; | |
4852 | char *kwnames[] = { | |
4853 | (char *) "self",(char *) "n", NULL | |
4854 | }; | |
4855 | ||
4856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_Deselect",kwnames,&obj0,&arg2)) goto fail; | |
4857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4858 | { | |
4859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4860 | (arg1)->Deselect(arg2); | |
4861 | ||
4862 | wxPyEndAllowThreads(__tstate); | |
4863 | if (PyErr_Occurred()) SWIG_fail; | |
4864 | } | |
4865 | Py_INCREF(Py_None); resultobj = Py_None; | |
4866 | return resultobj; | |
4867 | fail: | |
4868 | return NULL; | |
4869 | } | |
4870 | ||
4871 | ||
4872 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4873 | PyObject *resultobj; | |
4874 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4875 | int arg2 = (int) -1 ; | |
4876 | PyObject * obj0 = 0 ; | |
4877 | char *kwnames[] = { | |
4878 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
4879 | }; | |
4880 | ||
4881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:ListBox_DeselectAll",kwnames,&obj0,&arg2)) goto fail; | |
4882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4883 | { | |
4884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4885 | (arg1)->DeselectAll(arg2); | |
4886 | ||
4887 | wxPyEndAllowThreads(__tstate); | |
4888 | if (PyErr_Occurred()) SWIG_fail; | |
4889 | } | |
4890 | Py_INCREF(Py_None); resultobj = Py_None; | |
4891 | return resultobj; | |
4892 | fail: | |
4893 | return NULL; | |
4894 | } | |
4895 | ||
4896 | ||
4897 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4898 | PyObject *resultobj; | |
4899 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4900 | wxString *arg2 = 0 ; | |
423f194a | 4901 | bool arg3 = (bool) True ; |
d14a1e28 | 4902 | bool result; |
423f194a | 4903 | bool temp2 = False ; |
d14a1e28 RD |
4904 | PyObject * obj0 = 0 ; |
4905 | PyObject * obj1 = 0 ; | |
4906 | PyObject * obj2 = 0 ; | |
4907 | char *kwnames[] = { | |
4908 | (char *) "self",(char *) "s",(char *) "select", NULL | |
4909 | }; | |
4910 | ||
4911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4913 | { | |
4914 | arg2 = wxString_in_helper(obj1); | |
4915 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4916 | temp2 = True; |
d14a1e28 RD |
4917 | } |
4918 | if (obj2) { | |
4919 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
4920 | if (PyErr_Occurred()) SWIG_fail; | |
4921 | } | |
4922 | { | |
4923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4924 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
4925 | ||
4926 | wxPyEndAllowThreads(__tstate); | |
4927 | if (PyErr_Occurred()) SWIG_fail; | |
4928 | } | |
4929 | resultobj = PyInt_FromLong((long)result); | |
4930 | { | |
4931 | if (temp2) | |
4932 | delete arg2; | |
4933 | } | |
4934 | return resultobj; | |
4935 | fail: | |
4936 | { | |
4937 | if (temp2) | |
4938 | delete arg2; | |
4939 | } | |
4940 | return NULL; | |
4941 | } | |
4942 | ||
4943 | ||
4944 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4945 | PyObject *resultobj; | |
4946 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4947 | PyObject *result; | |
4948 | PyObject * obj0 = 0 ; | |
4949 | char *kwnames[] = { | |
4950 | (char *) "self", NULL | |
4951 | }; | |
4952 | ||
4953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
4954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4955 | { | |
4956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4957 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
4958 | ||
4959 | wxPyEndAllowThreads(__tstate); | |
4960 | if (PyErr_Occurred()) SWIG_fail; | |
4961 | } | |
4962 | resultobj = result; | |
4963 | return resultobj; | |
4964 | fail: | |
4965 | return NULL; | |
4966 | } | |
4967 | ||
4968 | ||
4969 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4970 | PyObject *resultobj; | |
4971 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4972 | int arg2 ; | |
4973 | PyObject * obj0 = 0 ; | |
4974 | char *kwnames[] = { | |
4975 | (char *) "self",(char *) "n", NULL | |
4976 | }; | |
4977 | ||
4978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_SetFirstItem",kwnames,&obj0,&arg2)) goto fail; | |
4979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4980 | { | |
4981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4982 | (arg1)->SetFirstItem(arg2); | |
4983 | ||
4984 | wxPyEndAllowThreads(__tstate); | |
4985 | if (PyErr_Occurred()) SWIG_fail; | |
4986 | } | |
4987 | Py_INCREF(Py_None); resultobj = Py_None; | |
4988 | return resultobj; | |
4989 | fail: | |
4990 | return NULL; | |
4991 | } | |
4992 | ||
4993 | ||
4994 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4995 | PyObject *resultobj; | |
4996 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4997 | wxString *arg2 = 0 ; | |
423f194a | 4998 | bool temp2 = False ; |
d14a1e28 RD |
4999 | PyObject * obj0 = 0 ; |
5000 | PyObject * obj1 = 0 ; | |
5001 | char *kwnames[] = { | |
5002 | (char *) "self",(char *) "s", NULL | |
5003 | }; | |
5004 | ||
5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
5006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5007 | { | |
5008 | arg2 = wxString_in_helper(obj1); | |
5009 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5010 | temp2 = True; |
d14a1e28 RD |
5011 | } |
5012 | { | |
5013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5014 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5015 | ||
5016 | wxPyEndAllowThreads(__tstate); | |
5017 | if (PyErr_Occurred()) SWIG_fail; | |
5018 | } | |
5019 | Py_INCREF(Py_None); resultobj = Py_None; | |
5020 | { | |
5021 | if (temp2) | |
5022 | delete arg2; | |
5023 | } | |
5024 | return resultobj; | |
5025 | fail: | |
5026 | { | |
5027 | if (temp2) | |
5028 | delete arg2; | |
5029 | } | |
5030 | return NULL; | |
5031 | } | |
5032 | ||
5033 | ||
5034 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5035 | PyObject *resultobj; | |
5036 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5037 | int arg2 ; | |
5038 | PyObject * obj0 = 0 ; | |
5039 | char *kwnames[] = { | |
5040 | (char *) "self",(char *) "n", NULL | |
5041 | }; | |
5042 | ||
5043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_EnsureVisible",kwnames,&obj0,&arg2)) goto fail; | |
5044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5045 | { | |
5046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5047 | (arg1)->EnsureVisible(arg2); | |
5048 | ||
5049 | wxPyEndAllowThreads(__tstate); | |
5050 | if (PyErr_Occurred()) SWIG_fail; | |
5051 | } | |
5052 | Py_INCREF(Py_None); resultobj = Py_None; | |
5053 | return resultobj; | |
5054 | fail: | |
5055 | return NULL; | |
5056 | } | |
5057 | ||
5058 | ||
5059 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5060 | PyObject *resultobj; | |
5061 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5062 | wxString *arg2 = 0 ; | |
423f194a | 5063 | bool temp2 = False ; |
d14a1e28 RD |
5064 | PyObject * obj0 = 0 ; |
5065 | PyObject * obj1 = 0 ; | |
5066 | char *kwnames[] = { | |
5067 | (char *) "self",(char *) "s", NULL | |
5068 | }; | |
5069 | ||
5070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5072 | { | |
5073 | arg2 = wxString_in_helper(obj1); | |
5074 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5075 | temp2 = True; |
d14a1e28 RD |
5076 | } |
5077 | { | |
5078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5079 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5080 | ||
5081 | wxPyEndAllowThreads(__tstate); | |
5082 | if (PyErr_Occurred()) SWIG_fail; | |
5083 | } | |
5084 | Py_INCREF(Py_None); resultobj = Py_None; | |
5085 | { | |
5086 | if (temp2) | |
5087 | delete arg2; | |
5088 | } | |
5089 | return resultobj; | |
5090 | fail: | |
5091 | { | |
5092 | if (temp2) | |
5093 | delete arg2; | |
5094 | } | |
5095 | return NULL; | |
5096 | } | |
5097 | ||
5098 | ||
5099 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5100 | PyObject *resultobj; | |
5101 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5102 | bool result; | |
5103 | PyObject * obj0 = 0 ; | |
5104 | char *kwnames[] = { | |
5105 | (char *) "self", NULL | |
5106 | }; | |
5107 | ||
5108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
5109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5110 | { | |
5111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5112 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5113 | ||
5114 | wxPyEndAllowThreads(__tstate); | |
5115 | if (PyErr_Occurred()) SWIG_fail; | |
5116 | } | |
5117 | resultobj = PyInt_FromLong((long)result); | |
5118 | return resultobj; | |
5119 | fail: | |
5120 | return NULL; | |
5121 | } | |
5122 | ||
5123 | ||
5124 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { | |
5125 | PyObject *obj; | |
5126 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5127 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
5128 | Py_INCREF(obj); | |
5129 | return Py_BuildValue((char *)""); | |
5130 | } | |
5131 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5132 | PyObject *resultobj; | |
5133 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 5134 | int arg2 ; |
d14a1e28 RD |
5135 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5136 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5137 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5138 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5139 | int arg5 = (int) 0 ; | |
5140 | wxString *arg6 = (wxString *) NULL ; | |
5141 | long arg7 = (long) 0 ; | |
5142 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5143 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5144 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5145 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5146 | wxCheckListBox *result; | |
5147 | wxPoint temp3 ; | |
5148 | wxSize temp4 ; | |
423f194a | 5149 | bool temp8 = False ; |
d14a1e28 RD |
5150 | PyObject * obj0 = 0 ; |
5151 | PyObject * obj2 = 0 ; | |
5152 | PyObject * obj3 = 0 ; | |
5153 | PyObject * obj4 = 0 ; | |
5154 | PyObject * obj6 = 0 ; | |
5155 | PyObject * obj7 = 0 ; | |
5156 | char *kwnames[] = { | |
5157 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5158 | }; | |
5159 | ||
5160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_CheckListBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
5161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5162 | if (obj2) { | |
5163 | { | |
5164 | arg3 = &temp3; | |
5165 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5166 | } | |
5167 | } | |
5168 | if (obj3) { | |
5169 | { | |
5170 | arg4 = &temp4; | |
5171 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5172 | } | |
5173 | } | |
5174 | if (obj4) { | |
5175 | { | |
5176 | arg5 = PyList_Size(obj4); | |
5177 | arg6 = wxString_LIST_helper(obj4); | |
5178 | if (arg6 == NULL) SWIG_fail; | |
5179 | } | |
5180 | } | |
5181 | if (obj6) { | |
5182 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5183 | if (arg8 == NULL) { | |
5184 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5185 | } | |
5186 | } | |
5187 | if (obj7) { | |
5188 | { | |
5189 | arg9 = wxString_in_helper(obj7); | |
5190 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 5191 | temp8 = True; |
d14a1e28 RD |
5192 | } |
5193 | } | |
5194 | { | |
5195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5196 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5197 | ||
5198 | wxPyEndAllowThreads(__tstate); | |
5199 | if (PyErr_Occurred()) SWIG_fail; | |
5200 | } | |
5201 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5202 | { | |
5203 | if (arg6) delete [] arg6; | |
5204 | } | |
5205 | { | |
5206 | if (temp8) | |
5207 | delete arg9; | |
5208 | } | |
5209 | return resultobj; | |
5210 | fail: | |
5211 | { | |
5212 | if (arg6) delete [] arg6; | |
5213 | } | |
5214 | { | |
5215 | if (temp8) | |
5216 | delete arg9; | |
5217 | } | |
5218 | return NULL; | |
5219 | } | |
5220 | ||
5221 | ||
5222 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5223 | PyObject *resultobj; | |
5224 | wxCheckListBox *result; | |
5225 | char *kwnames[] = { | |
5226 | NULL | |
5227 | }; | |
5228 | ||
5229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
5230 | { | |
5231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5232 | result = (wxCheckListBox *)new wxCheckListBox(); | |
5233 | ||
5234 | wxPyEndAllowThreads(__tstate); | |
5235 | if (PyErr_Occurred()) SWIG_fail; | |
5236 | } | |
5237 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5238 | return resultobj; | |
5239 | fail: | |
5240 | return NULL; | |
5241 | } | |
5242 | ||
5243 | ||
5244 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5245 | PyObject *resultobj; | |
5246 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5247 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5248 | int arg3 ; |
d14a1e28 RD |
5249 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5250 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5251 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5252 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5253 | int arg6 = (int) 0 ; | |
5254 | wxString *arg7 = (wxString *) NULL ; | |
5255 | long arg8 = (long) 0 ; | |
5256 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5257 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5258 | wxString const &arg10_defvalue = wxPyListBoxNameStr ; | |
5259 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5260 | bool result; | |
5261 | wxPoint temp4 ; | |
5262 | wxSize temp5 ; | |
423f194a | 5263 | bool temp9 = False ; |
d14a1e28 RD |
5264 | PyObject * obj0 = 0 ; |
5265 | PyObject * obj1 = 0 ; | |
5266 | PyObject * obj3 = 0 ; | |
5267 | PyObject * obj4 = 0 ; | |
5268 | PyObject * obj5 = 0 ; | |
5269 | PyObject * obj7 = 0 ; | |
5270 | PyObject * obj8 = 0 ; | |
5271 | char *kwnames[] = { | |
5272 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5273 | }; | |
5274 | ||
5275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:CheckListBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
5276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5277 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5278 | if (obj3) { | |
5279 | { | |
5280 | arg4 = &temp4; | |
5281 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5282 | } | |
5283 | } | |
5284 | if (obj4) { | |
5285 | { | |
5286 | arg5 = &temp5; | |
5287 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5288 | } | |
5289 | } | |
5290 | if (obj5) { | |
5291 | { | |
5292 | arg6 = PyList_Size(obj5); | |
5293 | arg7 = wxString_LIST_helper(obj5); | |
5294 | if (arg7 == NULL) SWIG_fail; | |
5295 | } | |
5296 | } | |
5297 | if (obj7) { | |
5298 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5299 | if (arg9 == NULL) { | |
5300 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5301 | } | |
5302 | } | |
5303 | if (obj8) { | |
5304 | { | |
5305 | arg10 = wxString_in_helper(obj8); | |
5306 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 5307 | temp9 = True; |
d14a1e28 RD |
5308 | } |
5309 | } | |
5310 | { | |
5311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5312 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
5313 | ||
5314 | wxPyEndAllowThreads(__tstate); | |
5315 | if (PyErr_Occurred()) SWIG_fail; | |
5316 | } | |
5317 | resultobj = PyInt_FromLong((long)result); | |
5318 | { | |
5319 | if (arg7) delete [] arg7; | |
5320 | } | |
5321 | { | |
5322 | if (temp9) | |
5323 | delete arg10; | |
5324 | } | |
5325 | return resultobj; | |
5326 | fail: | |
5327 | { | |
5328 | if (arg7) delete [] arg7; | |
5329 | } | |
5330 | { | |
5331 | if (temp9) | |
5332 | delete arg10; | |
5333 | } | |
5334 | return NULL; | |
5335 | } | |
5336 | ||
5337 | ||
5338 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5339 | PyObject *resultobj; | |
5340 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5341 | int arg2 ; | |
5342 | bool result; | |
5343 | PyObject * obj0 = 0 ; | |
5344 | char *kwnames[] = { | |
5345 | (char *) "self",(char *) "index", NULL | |
5346 | }; | |
5347 | ||
5348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CheckListBox_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
5349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5350 | { | |
5351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5352 | result = (bool)(arg1)->IsChecked(arg2); | |
5353 | ||
5354 | wxPyEndAllowThreads(__tstate); | |
5355 | if (PyErr_Occurred()) SWIG_fail; | |
5356 | } | |
5357 | resultobj = PyInt_FromLong((long)result); | |
5358 | return resultobj; | |
5359 | fail: | |
5360 | return NULL; | |
5361 | } | |
5362 | ||
5363 | ||
5364 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5365 | PyObject *resultobj; | |
5366 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5367 | int arg2 ; | |
423f194a | 5368 | int arg3 = (int) True ; |
d14a1e28 RD |
5369 | PyObject * obj0 = 0 ; |
5370 | char *kwnames[] = { | |
5371 | (char *) "self",(char *) "index",(char *) "check", NULL | |
5372 | }; | |
5373 | ||
5374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:CheckListBox_Check",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5376 | { | |
5377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5378 | (arg1)->Check(arg2,arg3); | |
5379 | ||
5380 | wxPyEndAllowThreads(__tstate); | |
5381 | if (PyErr_Occurred()) SWIG_fail; | |
5382 | } | |
5383 | Py_INCREF(Py_None); resultobj = Py_None; | |
5384 | return resultobj; | |
5385 | fail: | |
5386 | return NULL; | |
5387 | } | |
5388 | ||
5389 | ||
5390 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5391 | PyObject *resultobj; | |
5392 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5393 | wxPoint *arg2 = 0 ; | |
5394 | int result; | |
5395 | wxPoint temp2 ; | |
5396 | PyObject * obj0 = 0 ; | |
5397 | PyObject * obj1 = 0 ; | |
5398 | char *kwnames[] = { | |
5399 | (char *) "self",(char *) "pt", NULL | |
5400 | }; | |
5401 | ||
5402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
5403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5404 | { | |
5405 | arg2 = &temp2; | |
5406 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5407 | } | |
5408 | { | |
5409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5410 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
5411 | ||
5412 | wxPyEndAllowThreads(__tstate); | |
5413 | if (PyErr_Occurred()) SWIG_fail; | |
5414 | } | |
5415 | resultobj = PyInt_FromLong((long)result); | |
5416 | return resultobj; | |
5417 | fail: | |
5418 | return NULL; | |
5419 | } | |
5420 | ||
5421 | ||
5422 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5423 | PyObject *resultobj; | |
5424 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
423f194a RD |
5425 | int arg2 ; |
5426 | int arg3 ; | |
d14a1e28 RD |
5427 | int result; |
5428 | PyObject * obj0 = 0 ; | |
5429 | char *kwnames[] = { | |
5430 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5431 | }; | |
5432 | ||
5433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:CheckListBox_HitTestXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5435 | { | |
5436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5437 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
5438 | ||
5439 | wxPyEndAllowThreads(__tstate); | |
5440 | if (PyErr_Occurred()) SWIG_fail; | |
5441 | } | |
5442 | resultobj = PyInt_FromLong((long)result); | |
5443 | return resultobj; | |
5444 | fail: | |
5445 | return NULL; | |
5446 | } | |
5447 | ||
5448 | ||
5449 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
5450 | PyObject *obj; | |
5451 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5452 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
5453 | Py_INCREF(obj); | |
5454 | return Py_BuildValue((char *)""); | |
5455 | } | |
cbd72d4f RD |
5456 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { |
5457 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
5458 | return 1; | |
5459 | } | |
5460 | ||
5461 | ||
5462 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
5463 | PyObject *pyobj; | |
5464 | ||
5465 | { | |
5466 | #if wxUSE_UNICODE | |
5467 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
5468 | #else | |
5469 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
5470 | #endif | |
5471 | } | |
5472 | return pyobj; | |
5473 | } | |
5474 | ||
5475 | ||
d14a1e28 RD |
5476 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
5477 | PyObject *resultobj; | |
5478 | wxTextAttr *result; | |
5479 | ||
5480 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
5481 | { | |
5482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5483 | result = (wxTextAttr *)new wxTextAttr(); | |
5484 | ||
5485 | wxPyEndAllowThreads(__tstate); | |
5486 | if (PyErr_Occurred()) SWIG_fail; | |
5487 | } | |
5488 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
5489 | return resultobj; | |
5490 | fail: | |
5491 | return NULL; | |
5492 | } | |
5493 | ||
5494 | ||
5495 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
5496 | PyObject *resultobj; | |
5497 | wxColour *arg1 = 0 ; | |
5498 | wxColour const &arg2_defvalue = wxNullColour ; | |
5499 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
5500 | wxFont const &arg3_defvalue = wxNullFont ; | |
5501 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
5502 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
5503 | wxTextAttr *result; | |
5504 | wxColour temp1 ; | |
5505 | wxColour temp2 ; | |
5506 | PyObject * obj0 = 0 ; | |
5507 | PyObject * obj1 = 0 ; | |
5508 | PyObject * obj2 = 0 ; | |
5509 | ||
5510 | if(!PyArg_ParseTuple(args,(char *)"O|OOi:new_TextAttr",&obj0,&obj1,&obj2,&arg4)) goto fail; | |
5511 | { | |
5512 | arg1 = &temp1; | |
5513 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5514 | } | |
5515 | if (obj1) { | |
5516 | { | |
5517 | arg2 = &temp2; | |
5518 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5519 | } | |
5520 | } | |
5521 | if (obj2) { | |
5522 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5523 | if (arg3 == NULL) { | |
5524 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5525 | } | |
5526 | } | |
5527 | { | |
5528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5529 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
5530 | ||
5531 | wxPyEndAllowThreads(__tstate); | |
5532 | if (PyErr_Occurred()) SWIG_fail; | |
5533 | } | |
5534 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
5535 | return resultobj; | |
5536 | fail: | |
5537 | return NULL; | |
5538 | } | |
5539 | ||
5540 | ||
5541 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
5542 | int argc; | |
5543 | PyObject *argv[5]; | |
5544 | int ii; | |
5545 | ||
5546 | argc = PyObject_Length(args); | |
5547 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
5548 | argv[ii] = PyTuple_GetItem(args,ii); | |
5549 | } | |
5550 | if (argc == 0) { | |
5551 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
5552 | } | |
5553 | if ((argc >= 1) && (argc <= 4)) { | |
5554 | int _v; | |
5555 | { | |
5556 | _v = wxColour_typecheck(argv[0]); | |
5557 | } | |
5558 | if (_v) { | |
5559 | if (argc <= 1) { | |
5560 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5561 | } | |
5562 | { | |
5563 | _v = wxColour_typecheck(argv[1]); | |
5564 | } | |
5565 | if (_v) { | |
5566 | if (argc <= 2) { | |
5567 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5568 | } | |
5569 | { | |
5570 | void *ptr; | |
5571 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
5572 | _v = 0; | |
5573 | PyErr_Clear(); | |
5574 | } else { | |
5575 | _v = 1; | |
5576 | } | |
5577 | } | |
5578 | if (_v) { | |
5579 | if (argc <= 3) { | |
5580 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5581 | } | |
5582 | { | |
5583 | _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0; | |
5584 | } | |
5585 | if (_v) { | |
5586 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5587 | } | |
5588 | } | |
5589 | } | |
5590 | } | |
5591 | } | |
5592 | ||
5593 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
5594 | return NULL; | |
5595 | } | |
5596 | ||
5597 | ||
5598 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5599 | PyObject *resultobj; | |
5600 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5601 | PyObject * obj0 = 0 ; | |
5602 | char *kwnames[] = { | |
5603 | (char *) "self", NULL | |
5604 | }; | |
5605 | ||
5606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
5607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5608 | { | |
5609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5610 | (arg1)->Init(); | |
5611 | ||
5612 | wxPyEndAllowThreads(__tstate); | |
5613 | if (PyErr_Occurred()) SWIG_fail; | |
5614 | } | |
5615 | Py_INCREF(Py_None); resultobj = Py_None; | |
5616 | return resultobj; | |
5617 | fail: | |
5618 | return NULL; | |
5619 | } | |
5620 | ||
5621 | ||
5622 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5623 | PyObject *resultobj; | |
5624 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5625 | wxColour *arg2 = 0 ; | |
5626 | wxColour temp2 ; | |
5627 | PyObject * obj0 = 0 ; | |
5628 | PyObject * obj1 = 0 ; | |
5629 | char *kwnames[] = { | |
5630 | (char *) "self",(char *) "colText", NULL | |
5631 | }; | |
5632 | ||
5633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
5634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5635 | { | |
5636 | arg2 = &temp2; | |
5637 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5638 | } | |
5639 | { | |
5640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5641 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
5642 | ||
5643 | wxPyEndAllowThreads(__tstate); | |
5644 | if (PyErr_Occurred()) SWIG_fail; | |
5645 | } | |
5646 | Py_INCREF(Py_None); resultobj = Py_None; | |
5647 | return resultobj; | |
5648 | fail: | |
5649 | return NULL; | |
5650 | } | |
5651 | ||
5652 | ||
5653 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5654 | PyObject *resultobj; | |
5655 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5656 | wxColour *arg2 = 0 ; | |
5657 | wxColour temp2 ; | |
5658 | PyObject * obj0 = 0 ; | |
5659 | PyObject * obj1 = 0 ; | |
5660 | char *kwnames[] = { | |
5661 | (char *) "self",(char *) "colBack", NULL | |
5662 | }; | |
5663 | ||
5664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
5665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5666 | { | |
5667 | arg2 = &temp2; | |
5668 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5669 | } | |
5670 | { | |
5671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5672 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
5673 | ||
5674 | wxPyEndAllowThreads(__tstate); | |
5675 | if (PyErr_Occurred()) SWIG_fail; | |
5676 | } | |
5677 | Py_INCREF(Py_None); resultobj = Py_None; | |
5678 | return resultobj; | |
5679 | fail: | |
5680 | return NULL; | |
5681 | } | |
5682 | ||
5683 | ||
5684 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5685 | PyObject *resultobj; | |
5686 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5687 | wxFont *arg2 = 0 ; | |
5688 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
5689 | PyObject * obj0 = 0 ; | |
5690 | PyObject * obj1 = 0 ; | |
5691 | char *kwnames[] = { | |
5692 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
5693 | }; | |
5694 | ||
5695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:TextAttr_SetFont",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5697 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5698 | if (arg2 == NULL) { | |
5699 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5700 | } | |
5701 | { | |
5702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5703 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
5704 | ||
5705 | wxPyEndAllowThreads(__tstate); | |
5706 | if (PyErr_Occurred()) SWIG_fail; | |
5707 | } | |
5708 | Py_INCREF(Py_None); resultobj = Py_None; | |
5709 | return resultobj; | |
5710 | fail: | |
5711 | return NULL; | |
5712 | } | |
5713 | ||
5714 | ||
5715 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5716 | PyObject *resultobj; | |
5717 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5718 | int arg2 ; | |
5719 | PyObject * obj0 = 0 ; | |
5720 | char *kwnames[] = { | |
5721 | (char *) "self",(char *) "alignment", NULL | |
5722 | }; | |
5723 | ||
5724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetAlignment",kwnames,&obj0,&arg2)) goto fail; | |
5725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5726 | { | |
5727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5728 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
5729 | ||
5730 | wxPyEndAllowThreads(__tstate); | |
5731 | if (PyErr_Occurred()) SWIG_fail; | |
5732 | } | |
5733 | Py_INCREF(Py_None); resultobj = Py_None; | |
5734 | return resultobj; | |
5735 | fail: | |
5736 | return NULL; | |
5737 | } | |
5738 | ||
5739 | ||
5740 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5741 | PyObject *resultobj; | |
5742 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5743 | wxArrayInt *arg2 = 0 ; | |
5744 | PyObject * obj0 = 0 ; | |
5745 | PyObject * obj1 = 0 ; | |
5746 | char *kwnames[] = { | |
5747 | (char *) "self",(char *) "tabs", NULL | |
5748 | }; | |
5749 | ||
5750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
5751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5752 | { | |
5753 | if (! PySequence_Check(obj1)) { | |
5754 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
5755 | SWIG_fail; | |
5756 | } | |
5757 | arg2 = new wxArrayInt; | |
5758 | int i, len=PySequence_Length(obj1); | |
5759 | for (i=0; i<len; i++) { | |
5760 | PyObject* item = PySequence_GetItem(obj1, i); | |
5761 | PyObject* number = PyNumber_Int(item); | |
5762 | arg2->Add(PyInt_AS_LONG(number)); | |
5763 | Py_DECREF(item); | |
5764 | Py_DECREF(number); | |
5765 | } | |
5766 | } | |
5767 | { | |
5768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5769 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
5770 | ||
5771 | wxPyEndAllowThreads(__tstate); | |
5772 | if (PyErr_Occurred()) SWIG_fail; | |
5773 | } | |
5774 | Py_INCREF(Py_None); resultobj = Py_None; | |
5775 | { | |
5776 | if (arg2) delete arg2; | |
5777 | } | |
5778 | return resultobj; | |
5779 | fail: | |
5780 | { | |
5781 | if (arg2) delete arg2; | |
5782 | } | |
5783 | return NULL; | |
5784 | } | |
5785 | ||
5786 | ||
5787 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5788 | PyObject *resultobj; | |
5789 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5790 | int arg2 ; | |
5791 | PyObject * obj0 = 0 ; | |
5792 | char *kwnames[] = { | |
5793 | (char *) "self",(char *) "indent", NULL | |
5794 | }; | |
5795 | ||
5796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetLeftIndent",kwnames,&obj0,&arg2)) goto fail; | |
5797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5798 | { | |
5799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5800 | (arg1)->SetLeftIndent(arg2); | |
5801 | ||
5802 | wxPyEndAllowThreads(__tstate); | |
5803 | if (PyErr_Occurred()) SWIG_fail; | |
5804 | } | |
5805 | Py_INCREF(Py_None); resultobj = Py_None; | |
5806 | return resultobj; | |
5807 | fail: | |
5808 | return NULL; | |
5809 | } | |
5810 | ||
5811 | ||
5812 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5813 | PyObject *resultobj; | |
5814 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5815 | int arg2 ; | |
5816 | PyObject * obj0 = 0 ; | |
5817 | char *kwnames[] = { | |
5818 | (char *) "self",(char *) "indent", NULL | |
5819 | }; | |
5820 | ||
5821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetRightIndent",kwnames,&obj0,&arg2)) goto fail; | |
5822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5823 | { | |
5824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5825 | (arg1)->SetRightIndent(arg2); | |
5826 | ||
5827 | wxPyEndAllowThreads(__tstate); | |
5828 | if (PyErr_Occurred()) SWIG_fail; | |
5829 | } | |
5830 | Py_INCREF(Py_None); resultobj = Py_None; | |
5831 | return resultobj; | |
5832 | fail: | |
5833 | return NULL; | |
5834 | } | |
5835 | ||
5836 | ||
5837 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5838 | PyObject *resultobj; | |
5839 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5840 | long arg2 ; | |
5841 | PyObject * obj0 = 0 ; | |
5842 | char *kwnames[] = { | |
5843 | (char *) "self",(char *) "flags", NULL | |
5844 | }; | |
5845 | ||
5846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextAttr_SetFlags",kwnames,&obj0,&arg2)) goto fail; | |
5847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5848 | { | |
5849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5850 | (arg1)->SetFlags(arg2); | |
5851 | ||
5852 | wxPyEndAllowThreads(__tstate); | |
5853 | if (PyErr_Occurred()) SWIG_fail; | |
5854 | } | |
5855 | Py_INCREF(Py_None); resultobj = Py_None; | |
5856 | return resultobj; | |
5857 | fail: | |
5858 | return NULL; | |
5859 | } | |
5860 | ||
5861 | ||
5862 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5863 | PyObject *resultobj; | |
5864 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5865 | bool result; | |
5866 | PyObject * obj0 = 0 ; | |
5867 | char *kwnames[] = { | |
5868 | (char *) "self", NULL | |
5869 | }; | |
5870 | ||
5871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
5872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5873 | { | |
5874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5875 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
5876 | ||
5877 | wxPyEndAllowThreads(__tstate); | |
5878 | if (PyErr_Occurred()) SWIG_fail; | |
5879 | } | |
5880 | resultobj = PyInt_FromLong((long)result); | |
5881 | return resultobj; | |
5882 | fail: | |
5883 | return NULL; | |
5884 | } | |
5885 | ||
5886 | ||
5887 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5888 | PyObject *resultobj; | |
5889 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5890 | bool result; | |
5891 | PyObject * obj0 = 0 ; | |
5892 | char *kwnames[] = { | |
5893 | (char *) "self", NULL | |
5894 | }; | |
5895 | ||
5896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
5897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5898 | { | |
5899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5900 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
5901 | ||
5902 | wxPyEndAllowThreads(__tstate); | |
5903 | if (PyErr_Occurred()) SWIG_fail; | |
5904 | } | |
5905 | resultobj = PyInt_FromLong((long)result); | |
5906 | return resultobj; | |
5907 | fail: | |
5908 | return NULL; | |
5909 | } | |
5910 | ||
5911 | ||
5912 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5913 | PyObject *resultobj; | |
5914 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5915 | bool result; | |
5916 | PyObject * obj0 = 0 ; | |
5917 | char *kwnames[] = { | |
5918 | (char *) "self", NULL | |
5919 | }; | |
5920 | ||
5921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
5922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5923 | { | |
5924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5925 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
5926 | ||
5927 | wxPyEndAllowThreads(__tstate); | |
5928 | if (PyErr_Occurred()) SWIG_fail; | |
5929 | } | |
5930 | resultobj = PyInt_FromLong((long)result); | |
5931 | return resultobj; | |
5932 | fail: | |
5933 | return NULL; | |
5934 | } | |
5935 | ||
5936 | ||
5937 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5938 | PyObject *resultobj; | |
5939 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5940 | bool result; | |
5941 | PyObject * obj0 = 0 ; | |
5942 | char *kwnames[] = { | |
5943 | (char *) "self", NULL | |
5944 | }; | |
5945 | ||
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
5947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5948 | { | |
5949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5950 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
5951 | ||
5952 | wxPyEndAllowThreads(__tstate); | |
5953 | if (PyErr_Occurred()) SWIG_fail; | |
5954 | } | |
5955 | resultobj = PyInt_FromLong((long)result); | |
5956 | return resultobj; | |
5957 | fail: | |
5958 | return NULL; | |
5959 | } | |
5960 | ||
5961 | ||
5962 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5963 | PyObject *resultobj; | |
5964 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5965 | bool result; | |
5966 | PyObject * obj0 = 0 ; | |
5967 | char *kwnames[] = { | |
5968 | (char *) "self", NULL | |
5969 | }; | |
5970 | ||
5971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",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 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
5976 | ||
5977 | wxPyEndAllowThreads(__tstate); | |
5978 | if (PyErr_Occurred()) SWIG_fail; | |
5979 | } | |
5980 | resultobj = PyInt_FromLong((long)result); | |
5981 | return resultobj; | |
5982 | fail: | |
5983 | return NULL; | |
5984 | } | |
5985 | ||
5986 | ||
5987 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5988 | PyObject *resultobj; | |
5989 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5990 | bool result; | |
5991 | PyObject * obj0 = 0 ; | |
5992 | char *kwnames[] = { | |
5993 | (char *) "self", NULL | |
5994 | }; | |
5995 | ||
5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
5997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5998 | { | |
5999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6000 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
6001 | ||
6002 | wxPyEndAllowThreads(__tstate); | |
6003 | if (PyErr_Occurred()) SWIG_fail; | |
6004 | } | |
6005 | resultobj = PyInt_FromLong((long)result); | |
6006 | return resultobj; | |
6007 | fail: | |
6008 | return NULL; | |
6009 | } | |
6010 | ||
6011 | ||
6012 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6013 | PyObject *resultobj; | |
6014 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6015 | bool result; | |
6016 | PyObject * obj0 = 0 ; | |
6017 | char *kwnames[] = { | |
6018 | (char *) "self", NULL | |
6019 | }; | |
6020 | ||
6021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
6022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6023 | { | |
6024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6025 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
6026 | ||
6027 | wxPyEndAllowThreads(__tstate); | |
6028 | if (PyErr_Occurred()) SWIG_fail; | |
6029 | } | |
6030 | resultobj = PyInt_FromLong((long)result); | |
6031 | return resultobj; | |
6032 | fail: | |
6033 | return NULL; | |
6034 | } | |
6035 | ||
6036 | ||
6037 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6038 | PyObject *resultobj; | |
6039 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6040 | long arg2 ; | |
6041 | bool result; | |
6042 | PyObject * obj0 = 0 ; | |
6043 | char *kwnames[] = { | |
6044 | (char *) "self",(char *) "flag", NULL | |
6045 | }; | |
6046 | ||
6047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextAttr_HasFlag",kwnames,&obj0,&arg2)) goto fail; | |
6048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6049 | { | |
6050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6051 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
6052 | ||
6053 | wxPyEndAllowThreads(__tstate); | |
6054 | if (PyErr_Occurred()) SWIG_fail; | |
6055 | } | |
6056 | resultobj = PyInt_FromLong((long)result); | |
6057 | return resultobj; | |
6058 | fail: | |
6059 | return NULL; | |
6060 | } | |
6061 | ||
6062 | ||
6063 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6064 | PyObject *resultobj; | |
6065 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6066 | wxColour *result; | |
6067 | PyObject * obj0 = 0 ; | |
6068 | char *kwnames[] = { | |
6069 | (char *) "self", NULL | |
6070 | }; | |
6071 | ||
6072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
6073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6074 | { | |
6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6076 | { | |
6077 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
6078 | result = (wxColour *) &_result_ref; | |
6079 | } | |
6080 | ||
6081 | wxPyEndAllowThreads(__tstate); | |
6082 | if (PyErr_Occurred()) SWIG_fail; | |
6083 | } | |
6084 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6085 | return resultobj; | |
6086 | fail: | |
6087 | return NULL; | |
6088 | } | |
6089 | ||
6090 | ||
6091 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6092 | PyObject *resultobj; | |
6093 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6094 | wxColour *result; | |
6095 | PyObject * obj0 = 0 ; | |
6096 | char *kwnames[] = { | |
6097 | (char *) "self", NULL | |
6098 | }; | |
6099 | ||
6100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
6101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6102 | { | |
6103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6104 | { | |
6105 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
6106 | result = (wxColour *) &_result_ref; | |
6107 | } | |
6108 | ||
6109 | wxPyEndAllowThreads(__tstate); | |
6110 | if (PyErr_Occurred()) SWIG_fail; | |
6111 | } | |
6112 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6113 | return resultobj; | |
6114 | fail: | |
6115 | return NULL; | |
6116 | } | |
6117 | ||
6118 | ||
6119 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6120 | PyObject *resultobj; | |
6121 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6122 | wxFont *result; | |
6123 | PyObject * obj0 = 0 ; | |
6124 | char *kwnames[] = { | |
6125 | (char *) "self", NULL | |
6126 | }; | |
6127 | ||
6128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
6129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6130 | { | |
6131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6132 | { | |
6133 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
6134 | result = (wxFont *) &_result_ref; | |
6135 | } | |
6136 | ||
6137 | wxPyEndAllowThreads(__tstate); | |
6138 | if (PyErr_Occurred()) SWIG_fail; | |
6139 | } | |
6140 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
6141 | return resultobj; | |
6142 | fail: | |
6143 | return NULL; | |
6144 | } | |
6145 | ||
6146 | ||
6147 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6148 | PyObject *resultobj; | |
6149 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6150 | int result; | |
6151 | PyObject * obj0 = 0 ; | |
6152 | char *kwnames[] = { | |
6153 | (char *) "self", NULL | |
6154 | }; | |
6155 | ||
6156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
6157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6158 | { | |
6159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6160 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
6161 | ||
6162 | wxPyEndAllowThreads(__tstate); | |
6163 | if (PyErr_Occurred()) SWIG_fail; | |
6164 | } | |
6165 | resultobj = PyInt_FromLong((long)result); | |
6166 | return resultobj; | |
6167 | fail: | |
6168 | return NULL; | |
6169 | } | |
6170 | ||
6171 | ||
6172 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6173 | PyObject *resultobj; | |
6174 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6175 | wxArrayInt *result; | |
6176 | PyObject * obj0 = 0 ; | |
6177 | char *kwnames[] = { | |
6178 | (char *) "self", NULL | |
6179 | }; | |
6180 | ||
6181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
6182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6183 | { | |
6184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6185 | { | |
6186 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
6187 | result = (wxArrayInt *) &_result_ref; | |
6188 | } | |
6189 | ||
6190 | wxPyEndAllowThreads(__tstate); | |
6191 | if (PyErr_Occurred()) SWIG_fail; | |
6192 | } | |
6193 | { | |
6194 | resultobj = PyList_New(0); | |
6195 | size_t idx; | |
6196 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
6197 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
6198 | PyList_Append(resultobj, val); | |
6199 | Py_DECREF(val); | |
6200 | } | |
6201 | } | |
6202 | return resultobj; | |
6203 | fail: | |
6204 | return NULL; | |
6205 | } | |
6206 | ||
6207 | ||
6208 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6209 | PyObject *resultobj; | |
6210 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6211 | long result; | |
6212 | PyObject * obj0 = 0 ; | |
6213 | char *kwnames[] = { | |
6214 | (char *) "self", NULL | |
6215 | }; | |
6216 | ||
6217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
6218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6219 | { | |
6220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6221 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
6222 | ||
6223 | wxPyEndAllowThreads(__tstate); | |
6224 | if (PyErr_Occurred()) SWIG_fail; | |
6225 | } | |
6226 | resultobj = PyInt_FromLong((long)result); | |
6227 | return resultobj; | |
6228 | fail: | |
6229 | return NULL; | |
6230 | } | |
6231 | ||
6232 | ||
6233 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6234 | PyObject *resultobj; | |
6235 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6236 | long result; | |
6237 | PyObject * obj0 = 0 ; | |
6238 | char *kwnames[] = { | |
6239 | (char *) "self", NULL | |
6240 | }; | |
6241 | ||
6242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
6243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6244 | { | |
6245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6246 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
6247 | ||
6248 | wxPyEndAllowThreads(__tstate); | |
6249 | if (PyErr_Occurred()) SWIG_fail; | |
6250 | } | |
6251 | resultobj = PyInt_FromLong((long)result); | |
6252 | return resultobj; | |
6253 | fail: | |
6254 | return NULL; | |
6255 | } | |
6256 | ||
6257 | ||
6258 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6259 | PyObject *resultobj; | |
6260 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6261 | long result; | |
6262 | PyObject * obj0 = 0 ; | |
6263 | char *kwnames[] = { | |
6264 | (char *) "self", NULL | |
6265 | }; | |
6266 | ||
6267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
6268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6269 | { | |
6270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6271 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
6272 | ||
6273 | wxPyEndAllowThreads(__tstate); | |
6274 | if (PyErr_Occurred()) SWIG_fail; | |
6275 | } | |
6276 | resultobj = PyInt_FromLong((long)result); | |
6277 | return resultobj; | |
6278 | fail: | |
6279 | return NULL; | |
6280 | } | |
6281 | ||
6282 | ||
6283 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6284 | PyObject *resultobj; | |
6285 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6286 | bool result; | |
6287 | PyObject * obj0 = 0 ; | |
6288 | char *kwnames[] = { | |
6289 | (char *) "self", NULL | |
6290 | }; | |
6291 | ||
6292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
6293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6294 | { | |
6295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6296 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
6297 | ||
6298 | wxPyEndAllowThreads(__tstate); | |
6299 | if (PyErr_Occurred()) SWIG_fail; | |
6300 | } | |
6301 | resultobj = PyInt_FromLong((long)result); | |
6302 | return resultobj; | |
6303 | fail: | |
6304 | return NULL; | |
6305 | } | |
6306 | ||
6307 | ||
6308 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6309 | PyObject *resultobj; | |
6310 | wxTextAttr *arg1 = 0 ; | |
6311 | wxTextAttr *arg2 = 0 ; | |
6312 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
6313 | wxTextAttr result; | |
6314 | PyObject * obj0 = 0 ; | |
6315 | PyObject * obj1 = 0 ; | |
6316 | PyObject * obj2 = 0 ; | |
6317 | char *kwnames[] = { | |
6318 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
6319 | }; | |
6320 | ||
6321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6323 | if (arg1 == NULL) { | |
6324 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6325 | } | |
6326 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6327 | if (arg2 == NULL) { | |
6328 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6329 | } | |
6330 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6331 | { | |
6332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6333 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
6334 | ||
6335 | wxPyEndAllowThreads(__tstate); | |
6336 | if (PyErr_Occurred()) SWIG_fail; | |
6337 | } | |
6338 | { | |
6339 | wxTextAttr * resultptr; | |
6340 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
6341 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
6342 | } | |
6343 | return resultobj; | |
6344 | fail: | |
6345 | return NULL; | |
6346 | } | |
6347 | ||
6348 | ||
6349 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
6350 | PyObject *obj; | |
6351 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6352 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
6353 | Py_INCREF(obj); | |
6354 | return Py_BuildValue((char *)""); | |
6355 | } | |
6356 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6357 | PyObject *resultobj; | |
6358 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 6359 | int arg2 ; |
d14a1e28 RD |
6360 | wxString const &arg3_defvalue = wxPyEmptyString ; |
6361 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6362 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6363 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6364 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6365 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6366 | long arg6 = (long) 0 ; | |
6367 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6368 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6369 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
6370 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6371 | wxTextCtrl *result; | |
423f194a | 6372 | bool temp3 = False ; |
d14a1e28 RD |
6373 | wxPoint temp4 ; |
6374 | wxSize temp5 ; | |
423f194a | 6375 | bool temp8 = False ; |
d14a1e28 RD |
6376 | PyObject * obj0 = 0 ; |
6377 | PyObject * obj2 = 0 ; | |
6378 | PyObject * obj3 = 0 ; | |
6379 | PyObject * obj4 = 0 ; | |
6380 | PyObject * obj6 = 0 ; | |
6381 | PyObject * obj7 = 0 ; | |
6382 | char *kwnames[] = { | |
6383 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6384 | }; | |
6385 | ||
6386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_TextCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
6387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6388 | if (obj2) { | |
6389 | { | |
6390 | arg3 = wxString_in_helper(obj2); | |
6391 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6392 | temp3 = True; |
d14a1e28 RD |
6393 | } |
6394 | } | |
6395 | if (obj3) { | |
6396 | { | |
6397 | arg4 = &temp4; | |
6398 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6399 | } | |
6400 | } | |
6401 | if (obj4) { | |
6402 | { | |
6403 | arg5 = &temp5; | |
6404 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6405 | } | |
6406 | } | |
6407 | if (obj6) { | |
6408 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6409 | if (arg7 == NULL) { | |
6410 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6411 | } | |
6412 | } | |
6413 | if (obj7) { | |
6414 | { | |
6415 | arg8 = wxString_in_helper(obj7); | |
6416 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 6417 | temp8 = True; |
d14a1e28 RD |
6418 | } |
6419 | } | |
6420 | { | |
6421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6422 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6423 | ||
6424 | wxPyEndAllowThreads(__tstate); | |
6425 | if (PyErr_Occurred()) SWIG_fail; | |
6426 | } | |
6427 | { | |
6428 | resultobj = wxPyMake_wxObject(result); | |
6429 | } | |
6430 | { | |
6431 | if (temp3) | |
6432 | delete arg3; | |
6433 | } | |
6434 | { | |
6435 | if (temp8) | |
6436 | delete arg8; | |
6437 | } | |
6438 | return resultobj; | |
6439 | fail: | |
6440 | { | |
6441 | if (temp3) | |
6442 | delete arg3; | |
6443 | } | |
6444 | { | |
6445 | if (temp8) | |
6446 | delete arg8; | |
6447 | } | |
6448 | return NULL; | |
6449 | } | |
6450 | ||
6451 | ||
6452 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6453 | PyObject *resultobj; | |
6454 | wxTextCtrl *result; | |
6455 | char *kwnames[] = { | |
6456 | NULL | |
6457 | }; | |
6458 | ||
6459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
6460 | { | |
6461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6462 | result = (wxTextCtrl *)new wxTextCtrl(); | |
6463 | ||
6464 | wxPyEndAllowThreads(__tstate); | |
6465 | if (PyErr_Occurred()) SWIG_fail; | |
6466 | } | |
6467 | { | |
6468 | resultobj = wxPyMake_wxObject(result); | |
6469 | } | |
6470 | return resultobj; | |
6471 | fail: | |
6472 | return NULL; | |
6473 | } | |
6474 | ||
6475 | ||
6476 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6477 | PyObject *resultobj; | |
6478 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6479 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 6480 | int arg3 ; |
d14a1e28 RD |
6481 | wxString const &arg4_defvalue = wxPyEmptyString ; |
6482 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6483 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6484 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6485 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6486 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6487 | long arg7 = (long) 0 ; | |
6488 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6489 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6490 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
6491 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6492 | bool result; | |
423f194a | 6493 | bool temp4 = False ; |
d14a1e28 RD |
6494 | wxPoint temp5 ; |
6495 | wxSize temp6 ; | |
423f194a | 6496 | bool temp9 = False ; |
d14a1e28 RD |
6497 | PyObject * obj0 = 0 ; |
6498 | PyObject * obj1 = 0 ; | |
6499 | PyObject * obj3 = 0 ; | |
6500 | PyObject * obj4 = 0 ; | |
6501 | PyObject * obj5 = 0 ; | |
6502 | PyObject * obj7 = 0 ; | |
6503 | PyObject * obj8 = 0 ; | |
6504 | char *kwnames[] = { | |
6505 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6506 | }; | |
6507 | ||
6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:TextCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
6509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6510 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6511 | if (obj3) { | |
6512 | { | |
6513 | arg4 = wxString_in_helper(obj3); | |
6514 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 6515 | temp4 = True; |
d14a1e28 RD |
6516 | } |
6517 | } | |
6518 | if (obj4) { | |
6519 | { | |
6520 | arg5 = &temp5; | |
6521 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6522 | } | |
6523 | } | |
6524 | if (obj5) { | |
6525 | { | |
6526 | arg6 = &temp6; | |
6527 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6528 | } | |
6529 | } | |
6530 | if (obj7) { | |
6531 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6532 | if (arg8 == NULL) { | |
6533 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6534 | } | |
6535 | } | |
6536 | if (obj8) { | |
6537 | { | |
6538 | arg9 = wxString_in_helper(obj8); | |
6539 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 6540 | temp9 = True; |
d14a1e28 RD |
6541 | } |
6542 | } | |
6543 | { | |
6544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6545 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6546 | ||
6547 | wxPyEndAllowThreads(__tstate); | |
6548 | if (PyErr_Occurred()) SWIG_fail; | |
6549 | } | |
6550 | resultobj = PyInt_FromLong((long)result); | |
6551 | { | |
6552 | if (temp4) | |
6553 | delete arg4; | |
6554 | } | |
6555 | { | |
6556 | if (temp9) | |
6557 | delete arg9; | |
6558 | } | |
6559 | return resultobj; | |
6560 | fail: | |
6561 | { | |
6562 | if (temp4) | |
6563 | delete arg4; | |
6564 | } | |
6565 | { | |
6566 | if (temp9) | |
6567 | delete arg9; | |
6568 | } | |
6569 | return NULL; | |
6570 | } | |
6571 | ||
6572 | ||
6573 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6574 | PyObject *resultobj; | |
6575 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6576 | wxString result; | |
6577 | PyObject * obj0 = 0 ; | |
6578 | char *kwnames[] = { | |
6579 | (char *) "self", NULL | |
6580 | }; | |
6581 | ||
6582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
6583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6584 | { | |
6585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6586 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
6587 | ||
6588 | wxPyEndAllowThreads(__tstate); | |
6589 | if (PyErr_Occurred()) SWIG_fail; | |
6590 | } | |
6591 | { | |
6592 | #if wxUSE_UNICODE | |
6593 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6594 | #else | |
6595 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6596 | #endif | |
6597 | } | |
6598 | return resultobj; | |
6599 | fail: | |
6600 | return NULL; | |
6601 | } | |
6602 | ||
6603 | ||
6604 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject *resultobj; | |
6606 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6607 | wxString *arg2 = 0 ; | |
423f194a | 6608 | bool temp2 = False ; |
d14a1e28 RD |
6609 | PyObject * obj0 = 0 ; |
6610 | PyObject * obj1 = 0 ; | |
6611 | char *kwnames[] = { | |
6612 | (char *) "self",(char *) "value", NULL | |
6613 | }; | |
6614 | ||
6615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
6616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6617 | { | |
6618 | arg2 = wxString_in_helper(obj1); | |
6619 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6620 | temp2 = True; |
d14a1e28 RD |
6621 | } |
6622 | { | |
6623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6624 | (arg1)->SetValue((wxString const &)*arg2); | |
6625 | ||
6626 | wxPyEndAllowThreads(__tstate); | |
6627 | if (PyErr_Occurred()) SWIG_fail; | |
6628 | } | |
6629 | Py_INCREF(Py_None); resultobj = Py_None; | |
6630 | { | |
6631 | if (temp2) | |
6632 | delete arg2; | |
6633 | } | |
6634 | return resultobj; | |
6635 | fail: | |
6636 | { | |
6637 | if (temp2) | |
6638 | delete arg2; | |
6639 | } | |
6640 | return NULL; | |
6641 | } | |
6642 | ||
6643 | ||
6644 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6645 | PyObject *resultobj; | |
6646 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6647 | long arg2 ; | |
6648 | long arg3 ; | |
6649 | wxString result; | |
6650 | PyObject * obj0 = 0 ; | |
6651 | char *kwnames[] = { | |
6652 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6653 | }; | |
6654 | ||
6655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_GetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
6656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6657 | { | |
6658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6659 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
6660 | ||
6661 | wxPyEndAllowThreads(__tstate); | |
6662 | if (PyErr_Occurred()) SWIG_fail; | |
6663 | } | |
6664 | { | |
6665 | #if wxUSE_UNICODE | |
6666 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6667 | #else | |
6668 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6669 | #endif | |
6670 | } | |
6671 | return resultobj; | |
6672 | fail: | |
6673 | return NULL; | |
6674 | } | |
6675 | ||
6676 | ||
6677 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6678 | PyObject *resultobj; | |
6679 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6680 | long arg2 ; | |
6681 | int result; | |
6682 | PyObject * obj0 = 0 ; | |
6683 | char *kwnames[] = { | |
6684 | (char *) "self",(char *) "lineNo", NULL | |
6685 | }; | |
6686 | ||
6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_GetLineLength",kwnames,&obj0,&arg2)) goto fail; | |
6688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6689 | { | |
6690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6691 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
6692 | ||
6693 | wxPyEndAllowThreads(__tstate); | |
6694 | if (PyErr_Occurred()) SWIG_fail; | |
6695 | } | |
6696 | resultobj = PyInt_FromLong((long)result); | |
6697 | return resultobj; | |
6698 | fail: | |
6699 | return NULL; | |
6700 | } | |
6701 | ||
6702 | ||
6703 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6704 | PyObject *resultobj; | |
6705 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6706 | long arg2 ; | |
6707 | wxString result; | |
6708 | PyObject * obj0 = 0 ; | |
6709 | char *kwnames[] = { | |
6710 | (char *) "self",(char *) "lineNo", NULL | |
6711 | }; | |
6712 | ||
6713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_GetLineText",kwnames,&obj0,&arg2)) goto fail; | |
6714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6715 | { | |
6716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6717 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
6718 | ||
6719 | wxPyEndAllowThreads(__tstate); | |
6720 | if (PyErr_Occurred()) SWIG_fail; | |
6721 | } | |
6722 | { | |
6723 | #if wxUSE_UNICODE | |
6724 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6725 | #else | |
6726 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6727 | #endif | |
6728 | } | |
6729 | return resultobj; | |
6730 | fail: | |
6731 | return NULL; | |
6732 | } | |
6733 | ||
6734 | ||
6735 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6736 | PyObject *resultobj; | |
6737 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6738 | int result; | |
6739 | PyObject * obj0 = 0 ; | |
6740 | char *kwnames[] = { | |
6741 | (char *) "self", NULL | |
6742 | }; | |
6743 | ||
6744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
6745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6746 | { | |
6747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6748 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
6749 | ||
6750 | wxPyEndAllowThreads(__tstate); | |
6751 | if (PyErr_Occurred()) SWIG_fail; | |
6752 | } | |
6753 | resultobj = PyInt_FromLong((long)result); | |
6754 | return resultobj; | |
6755 | fail: | |
6756 | return NULL; | |
6757 | } | |
6758 | ||
6759 | ||
6760 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6761 | PyObject *resultobj; | |
6762 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6763 | bool result; | |
6764 | PyObject * obj0 = 0 ; | |
6765 | char *kwnames[] = { | |
6766 | (char *) "self", NULL | |
6767 | }; | |
6768 | ||
6769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
6770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6771 | { | |
6772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6773 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
6774 | ||
6775 | wxPyEndAllowThreads(__tstate); | |
6776 | if (PyErr_Occurred()) SWIG_fail; | |
6777 | } | |
6778 | resultobj = PyInt_FromLong((long)result); | |
6779 | return resultobj; | |
6780 | fail: | |
6781 | return NULL; | |
6782 | } | |
6783 | ||
6784 | ||
6785 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6786 | PyObject *resultobj; | |
6787 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6788 | bool result; | |
6789 | PyObject * obj0 = 0 ; | |
6790 | char *kwnames[] = { | |
6791 | (char *) "self", NULL | |
6792 | }; | |
6793 | ||
6794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
6795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6796 | { | |
6797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6798 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
6799 | ||
6800 | wxPyEndAllowThreads(__tstate); | |
6801 | if (PyErr_Occurred()) SWIG_fail; | |
6802 | } | |
6803 | resultobj = PyInt_FromLong((long)result); | |
6804 | return resultobj; | |
6805 | fail: | |
6806 | return NULL; | |
6807 | } | |
6808 | ||
6809 | ||
6810 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6811 | PyObject *resultobj; | |
6812 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6813 | bool result; | |
6814 | PyObject * obj0 = 0 ; | |
6815 | char *kwnames[] = { | |
6816 | (char *) "self", NULL | |
6817 | }; | |
6818 | ||
6819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
6820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6821 | { | |
6822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6823 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
6824 | ||
6825 | wxPyEndAllowThreads(__tstate); | |
6826 | if (PyErr_Occurred()) SWIG_fail; | |
6827 | } | |
6828 | resultobj = PyInt_FromLong((long)result); | |
6829 | return resultobj; | |
6830 | fail: | |
6831 | return NULL; | |
6832 | } | |
6833 | ||
6834 | ||
6835 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6836 | PyObject *resultobj; | |
6837 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6838 | bool result; | |
6839 | PyObject * obj0 = 0 ; | |
6840 | char *kwnames[] = { | |
6841 | (char *) "self", NULL | |
6842 | }; | |
6843 | ||
6844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
6845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6846 | { | |
6847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6848 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
6849 | ||
6850 | wxPyEndAllowThreads(__tstate); | |
6851 | if (PyErr_Occurred()) SWIG_fail; | |
6852 | } | |
6853 | resultobj = PyInt_FromLong((long)result); | |
6854 | return resultobj; | |
6855 | fail: | |
6856 | return NULL; | |
6857 | } | |
6858 | ||
6859 | ||
6860 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6861 | PyObject *resultobj; | |
6862 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6863 | long *arg2 = (long *) 0 ; | |
6864 | long *arg3 = (long *) 0 ; | |
6865 | long temp2 ; | |
6866 | long temp3 ; | |
6867 | PyObject * obj0 = 0 ; | |
6868 | char *kwnames[] = { | |
6869 | (char *) "self", NULL | |
6870 | }; | |
6871 | ||
6872 | arg2 = &temp2; | |
6873 | arg3 = &temp3; | |
6874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
6875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6876 | { | |
6877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6878 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
6879 | ||
6880 | wxPyEndAllowThreads(__tstate); | |
6881 | if (PyErr_Occurred()) SWIG_fail; | |
6882 | } | |
6883 | Py_INCREF(Py_None); resultobj = Py_None; | |
6884 | { | |
6885 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
6886 | resultobj = t_output_helper(resultobj,o); | |
6887 | } | |
6888 | { | |
6889 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
6890 | resultobj = t_output_helper(resultobj,o); | |
6891 | } | |
6892 | return resultobj; | |
6893 | fail: | |
6894 | return NULL; | |
6895 | } | |
6896 | ||
6897 | ||
6898 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6899 | PyObject *resultobj; | |
6900 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6901 | wxString result; | |
6902 | PyObject * obj0 = 0 ; | |
6903 | char *kwnames[] = { | |
6904 | (char *) "self", NULL | |
6905 | }; | |
6906 | ||
6907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
6908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6909 | { | |
6910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6911 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
6912 | ||
6913 | wxPyEndAllowThreads(__tstate); | |
6914 | if (PyErr_Occurred()) SWIG_fail; | |
6915 | } | |
6916 | { | |
6917 | #if wxUSE_UNICODE | |
6918 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6919 | #else | |
6920 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6921 | #endif | |
6922 | } | |
6923 | return resultobj; | |
6924 | fail: | |
6925 | return NULL; | |
6926 | } | |
6927 | ||
6928 | ||
6929 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6930 | PyObject *resultobj; | |
6931 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6932 | PyObject * obj0 = 0 ; | |
6933 | char *kwnames[] = { | |
6934 | (char *) "self", NULL | |
6935 | }; | |
6936 | ||
6937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
6938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6939 | { | |
6940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6941 | (arg1)->Clear(); | |
6942 | ||
6943 | wxPyEndAllowThreads(__tstate); | |
6944 | if (PyErr_Occurred()) SWIG_fail; | |
6945 | } | |
6946 | Py_INCREF(Py_None); resultobj = Py_None; | |
6947 | return resultobj; | |
6948 | fail: | |
6949 | return NULL; | |
6950 | } | |
6951 | ||
6952 | ||
6953 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6954 | PyObject *resultobj; | |
6955 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6956 | long arg2 ; | |
6957 | long arg3 ; | |
6958 | wxString *arg4 = 0 ; | |
423f194a | 6959 | bool temp4 = False ; |
d14a1e28 RD |
6960 | PyObject * obj0 = 0 ; |
6961 | PyObject * obj3 = 0 ; | |
6962 | char *kwnames[] = { | |
6963 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
6964 | }; | |
6965 | ||
6966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:TextCtrl_Replace",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
6967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6968 | { | |
6969 | arg4 = wxString_in_helper(obj3); | |
6970 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 6971 | temp4 = True; |
d14a1e28 RD |
6972 | } |
6973 | { | |
6974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6975 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6976 | ||
6977 | wxPyEndAllowThreads(__tstate); | |
6978 | if (PyErr_Occurred()) SWIG_fail; | |
6979 | } | |
6980 | Py_INCREF(Py_None); resultobj = Py_None; | |
6981 | { | |
6982 | if (temp4) | |
6983 | delete arg4; | |
6984 | } | |
6985 | return resultobj; | |
6986 | fail: | |
6987 | { | |
6988 | if (temp4) | |
6989 | delete arg4; | |
6990 | } | |
6991 | return NULL; | |
6992 | } | |
6993 | ||
6994 | ||
6995 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6996 | PyObject *resultobj; | |
6997 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6998 | long arg2 ; | |
6999 | long arg3 ; | |
7000 | PyObject * obj0 = 0 ; | |
7001 | char *kwnames[] = { | |
7002 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7003 | }; | |
7004 | ||
7005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_Remove",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7007 | { | |
7008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7009 | (arg1)->Remove(arg2,arg3); | |
7010 | ||
7011 | wxPyEndAllowThreads(__tstate); | |
7012 | if (PyErr_Occurred()) SWIG_fail; | |
7013 | } | |
7014 | Py_INCREF(Py_None); resultobj = Py_None; | |
7015 | return resultobj; | |
7016 | fail: | |
7017 | return NULL; | |
7018 | } | |
7019 | ||
7020 | ||
7021 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7022 | PyObject *resultobj; | |
7023 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7024 | wxString *arg2 = 0 ; | |
7025 | bool result; | |
423f194a | 7026 | bool temp2 = False ; |
d14a1e28 RD |
7027 | PyObject * obj0 = 0 ; |
7028 | PyObject * obj1 = 0 ; | |
7029 | char *kwnames[] = { | |
7030 | (char *) "self",(char *) "file", NULL | |
7031 | }; | |
7032 | ||
7033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
7034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7035 | { | |
7036 | arg2 = wxString_in_helper(obj1); | |
7037 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7038 | temp2 = True; |
d14a1e28 RD |
7039 | } |
7040 | { | |
7041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7042 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
7043 | ||
7044 | wxPyEndAllowThreads(__tstate); | |
7045 | if (PyErr_Occurred()) SWIG_fail; | |
7046 | } | |
7047 | resultobj = PyInt_FromLong((long)result); | |
7048 | { | |
7049 | if (temp2) | |
7050 | delete arg2; | |
7051 | } | |
7052 | return resultobj; | |
7053 | fail: | |
7054 | { | |
7055 | if (temp2) | |
7056 | delete arg2; | |
7057 | } | |
7058 | return NULL; | |
7059 | } | |
7060 | ||
7061 | ||
7062 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7063 | PyObject *resultobj; | |
7064 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7065 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
7066 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7067 | bool result; | |
423f194a | 7068 | bool temp2 = False ; |
d14a1e28 RD |
7069 | PyObject * obj0 = 0 ; |
7070 | PyObject * obj1 = 0 ; | |
7071 | char *kwnames[] = { | |
7072 | (char *) "self",(char *) "file", NULL | |
7073 | }; | |
7074 | ||
7075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
7076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7077 | if (obj1) { | |
7078 | { | |
7079 | arg2 = wxString_in_helper(obj1); | |
7080 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7081 | temp2 = True; |
d14a1e28 RD |
7082 | } |
7083 | } | |
7084 | { | |
7085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7086 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
7087 | ||
7088 | wxPyEndAllowThreads(__tstate); | |
7089 | if (PyErr_Occurred()) SWIG_fail; | |
7090 | } | |
7091 | resultobj = PyInt_FromLong((long)result); | |
7092 | { | |
7093 | if (temp2) | |
7094 | delete arg2; | |
7095 | } | |
7096 | return resultobj; | |
7097 | fail: | |
7098 | { | |
7099 | if (temp2) | |
7100 | delete arg2; | |
7101 | } | |
7102 | return NULL; | |
7103 | } | |
7104 | ||
7105 | ||
7106 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7107 | PyObject *resultobj; | |
7108 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7109 | PyObject * obj0 = 0 ; | |
7110 | char *kwnames[] = { | |
7111 | (char *) "self", NULL | |
7112 | }; | |
7113 | ||
7114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
7115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7116 | { | |
7117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7118 | (arg1)->MarkDirty(); | |
7119 | ||
7120 | wxPyEndAllowThreads(__tstate); | |
7121 | if (PyErr_Occurred()) SWIG_fail; | |
7122 | } | |
7123 | Py_INCREF(Py_None); resultobj = Py_None; | |
7124 | return resultobj; | |
7125 | fail: | |
7126 | return NULL; | |
7127 | } | |
7128 | ||
7129 | ||
7130 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7131 | PyObject *resultobj; | |
7132 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7133 | PyObject * obj0 = 0 ; | |
7134 | char *kwnames[] = { | |
7135 | (char *) "self", NULL | |
7136 | }; | |
7137 | ||
7138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
7139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7140 | { | |
7141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7142 | (arg1)->DiscardEdits(); | |
7143 | ||
7144 | wxPyEndAllowThreads(__tstate); | |
7145 | if (PyErr_Occurred()) SWIG_fail; | |
7146 | } | |
7147 | Py_INCREF(Py_None); resultobj = Py_None; | |
7148 | return resultobj; | |
7149 | fail: | |
7150 | return NULL; | |
7151 | } | |
7152 | ||
7153 | ||
7154 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7155 | PyObject *resultobj; | |
7156 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7157 | unsigned long arg2 ; | |
7158 | PyObject * obj0 = 0 ; | |
7159 | PyObject * obj1 = 0 ; | |
7160 | char *kwnames[] = { | |
7161 | (char *) "self",(char *) "len", NULL | |
7162 | }; | |
7163 | ||
7164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
7165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7166 | arg2 = (unsigned long) PyInt_AsLong(obj1); | |
7167 | if (PyErr_Occurred()) SWIG_fail; | |
7168 | { | |
7169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7170 | (arg1)->SetMaxLength(arg2); | |
7171 | ||
7172 | wxPyEndAllowThreads(__tstate); | |
7173 | if (PyErr_Occurred()) SWIG_fail; | |
7174 | } | |
7175 | Py_INCREF(Py_None); resultobj = Py_None; | |
7176 | return resultobj; | |
7177 | fail: | |
7178 | return NULL; | |
7179 | } | |
7180 | ||
7181 | ||
7182 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7183 | PyObject *resultobj; | |
7184 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7185 | wxString *arg2 = 0 ; | |
423f194a | 7186 | bool temp2 = False ; |
d14a1e28 RD |
7187 | PyObject * obj0 = 0 ; |
7188 | PyObject * obj1 = 0 ; | |
7189 | char *kwnames[] = { | |
7190 | (char *) "self",(char *) "text", NULL | |
7191 | }; | |
7192 | ||
7193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
7194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7195 | { | |
7196 | arg2 = wxString_in_helper(obj1); | |
7197 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7198 | temp2 = True; |
d14a1e28 RD |
7199 | } |
7200 | { | |
7201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7202 | (arg1)->WriteText((wxString const &)*arg2); | |
7203 | ||
7204 | wxPyEndAllowThreads(__tstate); | |
7205 | if (PyErr_Occurred()) SWIG_fail; | |
7206 | } | |
7207 | Py_INCREF(Py_None); resultobj = Py_None; | |
7208 | { | |
7209 | if (temp2) | |
7210 | delete arg2; | |
7211 | } | |
7212 | return resultobj; | |
7213 | fail: | |
7214 | { | |
7215 | if (temp2) | |
7216 | delete arg2; | |
7217 | } | |
7218 | return NULL; | |
7219 | } | |
7220 | ||
7221 | ||
7222 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7223 | PyObject *resultobj; | |
7224 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7225 | wxString *arg2 = 0 ; | |
423f194a | 7226 | bool temp2 = False ; |
d14a1e28 RD |
7227 | PyObject * obj0 = 0 ; |
7228 | PyObject * obj1 = 0 ; | |
7229 | char *kwnames[] = { | |
7230 | (char *) "self",(char *) "text", NULL | |
7231 | }; | |
7232 | ||
7233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
7234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7235 | { | |
7236 | arg2 = wxString_in_helper(obj1); | |
7237 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7238 | temp2 = True; |
d14a1e28 RD |
7239 | } |
7240 | { | |
7241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7242 | (arg1)->AppendText((wxString const &)*arg2); | |
7243 | ||
7244 | wxPyEndAllowThreads(__tstate); | |
7245 | if (PyErr_Occurred()) SWIG_fail; | |
7246 | } | |
7247 | Py_INCREF(Py_None); resultobj = Py_None; | |
7248 | { | |
7249 | if (temp2) | |
7250 | delete arg2; | |
7251 | } | |
7252 | return resultobj; | |
7253 | fail: | |
7254 | { | |
7255 | if (temp2) | |
7256 | delete arg2; | |
7257 | } | |
7258 | return NULL; | |
7259 | } | |
7260 | ||
7261 | ||
7262 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7263 | PyObject *resultobj; | |
7264 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7265 | wxKeyEvent *arg2 = 0 ; | |
7266 | bool result; | |
7267 | PyObject * obj0 = 0 ; | |
7268 | PyObject * obj1 = 0 ; | |
7269 | char *kwnames[] = { | |
7270 | (char *) "self",(char *) "event", NULL | |
7271 | }; | |
7272 | ||
7273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
7274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7275 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7276 | if (arg2 == NULL) { | |
7277 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7278 | } | |
7279 | { | |
7280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7281 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
7282 | ||
7283 | wxPyEndAllowThreads(__tstate); | |
7284 | if (PyErr_Occurred()) SWIG_fail; | |
7285 | } | |
7286 | resultobj = PyInt_FromLong((long)result); | |
7287 | return resultobj; | |
7288 | fail: | |
7289 | return NULL; | |
7290 | } | |
7291 | ||
7292 | ||
7293 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7294 | PyObject *resultobj; | |
7295 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7296 | long arg2 ; | |
7297 | long arg3 ; | |
7298 | wxTextAttr *arg4 = 0 ; | |
7299 | bool result; | |
7300 | PyObject * obj0 = 0 ; | |
7301 | PyObject * obj3 = 0 ; | |
7302 | char *kwnames[] = { | |
7303 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
7304 | }; | |
7305 | ||
7306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:TextCtrl_SetStyle",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
7307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7308 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7309 | if (arg4 == NULL) { | |
7310 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7311 | } | |
7312 | { | |
7313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7314 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
7315 | ||
7316 | wxPyEndAllowThreads(__tstate); | |
7317 | if (PyErr_Occurred()) SWIG_fail; | |
7318 | } | |
7319 | resultobj = PyInt_FromLong((long)result); | |
7320 | return resultobj; | |
7321 | fail: | |
7322 | return NULL; | |
7323 | } | |
7324 | ||
7325 | ||
7326 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7327 | PyObject *resultobj; | |
7328 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7329 | long arg2 ; | |
7330 | wxTextAttr *arg3 = 0 ; | |
7331 | bool result; | |
7332 | PyObject * obj0 = 0 ; | |
7333 | PyObject * obj2 = 0 ; | |
7334 | char *kwnames[] = { | |
7335 | (char *) "self",(char *) "position",(char *) "style", NULL | |
7336 | }; | |
7337 | ||
7338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:TextCtrl_GetStyle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
7339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7340 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7341 | if (arg3 == NULL) { | |
7342 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7343 | } | |
7344 | { | |
7345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7346 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
7347 | ||
7348 | wxPyEndAllowThreads(__tstate); | |
7349 | if (PyErr_Occurred()) SWIG_fail; | |
7350 | } | |
7351 | resultobj = PyInt_FromLong((long)result); | |
7352 | return resultobj; | |
7353 | fail: | |
7354 | return NULL; | |
7355 | } | |
7356 | ||
7357 | ||
7358 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7359 | PyObject *resultobj; | |
7360 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7361 | wxTextAttr *arg2 = 0 ; | |
7362 | bool result; | |
7363 | PyObject * obj0 = 0 ; | |
7364 | PyObject * obj1 = 0 ; | |
7365 | char *kwnames[] = { | |
7366 | (char *) "self",(char *) "style", NULL | |
7367 | }; | |
7368 | ||
7369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
7370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7371 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7372 | if (arg2 == NULL) { | |
7373 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7374 | } | |
7375 | { | |
7376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7377 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
7378 | ||
7379 | wxPyEndAllowThreads(__tstate); | |
7380 | if (PyErr_Occurred()) SWIG_fail; | |
7381 | } | |
7382 | resultobj = PyInt_FromLong((long)result); | |
7383 | return resultobj; | |
7384 | fail: | |
7385 | return NULL; | |
7386 | } | |
7387 | ||
7388 | ||
7389 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7390 | PyObject *resultobj; | |
7391 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7392 | wxTextAttr *result; | |
7393 | PyObject * obj0 = 0 ; | |
7394 | char *kwnames[] = { | |
7395 | (char *) "self", NULL | |
7396 | }; | |
7397 | ||
7398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
7399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7400 | { | |
7401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7402 | { | |
7403 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
7404 | result = (wxTextAttr *) &_result_ref; | |
7405 | } | |
7406 | ||
7407 | wxPyEndAllowThreads(__tstate); | |
7408 | if (PyErr_Occurred()) SWIG_fail; | |
7409 | } | |
7410 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
7411 | return resultobj; | |
7412 | fail: | |
7413 | return NULL; | |
7414 | } | |
7415 | ||
7416 | ||
7417 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7418 | PyObject *resultobj; | |
7419 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7420 | long arg2 ; | |
7421 | long arg3 ; | |
7422 | long result; | |
7423 | PyObject * obj0 = 0 ; | |
7424 | char *kwnames[] = { | |
7425 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7426 | }; | |
7427 | ||
7428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_XYToPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7430 | { | |
7431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7432 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
7433 | ||
7434 | wxPyEndAllowThreads(__tstate); | |
7435 | if (PyErr_Occurred()) SWIG_fail; | |
7436 | } | |
7437 | resultobj = PyInt_FromLong((long)result); | |
7438 | return resultobj; | |
7439 | fail: | |
7440 | return NULL; | |
7441 | } | |
7442 | ||
7443 | ||
7444 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7445 | PyObject *resultobj; | |
7446 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7447 | long arg2 ; | |
7448 | long *arg3 = (long *) 0 ; | |
7449 | long *arg4 = (long *) 0 ; | |
7450 | long temp3 ; | |
7451 | long temp4 ; | |
7452 | PyObject * obj0 = 0 ; | |
7453 | char *kwnames[] = { | |
7454 | (char *) "self",(char *) "pos", NULL | |
7455 | }; | |
7456 | ||
7457 | arg3 = &temp3; | |
7458 | arg4 = &temp4; | |
7459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_PositionToXY",kwnames,&obj0,&arg2)) goto fail; | |
7460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7461 | { | |
7462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7463 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
7464 | ||
7465 | wxPyEndAllowThreads(__tstate); | |
7466 | if (PyErr_Occurred()) SWIG_fail; | |
7467 | } | |
7468 | Py_INCREF(Py_None); resultobj = Py_None; | |
7469 | { | |
7470 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7471 | resultobj = t_output_helper(resultobj,o); | |
7472 | } | |
7473 | { | |
7474 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
7475 | resultobj = t_output_helper(resultobj,o); | |
7476 | } | |
7477 | return resultobj; | |
7478 | fail: | |
7479 | return NULL; | |
7480 | } | |
7481 | ||
7482 | ||
7483 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7484 | PyObject *resultobj; | |
7485 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7486 | long arg2 ; | |
7487 | PyObject * obj0 = 0 ; | |
7488 | char *kwnames[] = { | |
7489 | (char *) "self",(char *) "pos", NULL | |
7490 | }; | |
7491 | ||
7492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_ShowPosition",kwnames,&obj0,&arg2)) goto fail; | |
7493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7494 | { | |
7495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7496 | (arg1)->ShowPosition(arg2); | |
7497 | ||
7498 | wxPyEndAllowThreads(__tstate); | |
7499 | if (PyErr_Occurred()) SWIG_fail; | |
7500 | } | |
7501 | Py_INCREF(Py_None); resultobj = Py_None; | |
7502 | return resultobj; | |
7503 | fail: | |
7504 | return NULL; | |
7505 | } | |
7506 | ||
7507 | ||
7508 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7509 | PyObject *resultobj; | |
7510 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7511 | PyObject * obj0 = 0 ; | |
7512 | char *kwnames[] = { | |
7513 | (char *) "self", NULL | |
7514 | }; | |
7515 | ||
7516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
7517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7518 | { | |
7519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7520 | (arg1)->Copy(); | |
7521 | ||
7522 | wxPyEndAllowThreads(__tstate); | |
7523 | if (PyErr_Occurred()) SWIG_fail; | |
7524 | } | |
7525 | Py_INCREF(Py_None); resultobj = Py_None; | |
7526 | return resultobj; | |
7527 | fail: | |
7528 | return NULL; | |
7529 | } | |
7530 | ||
7531 | ||
7532 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7533 | PyObject *resultobj; | |
7534 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7535 | PyObject * obj0 = 0 ; | |
7536 | char *kwnames[] = { | |
7537 | (char *) "self", NULL | |
7538 | }; | |
7539 | ||
7540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
7541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7542 | { | |
7543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7544 | (arg1)->Cut(); | |
7545 | ||
7546 | wxPyEndAllowThreads(__tstate); | |
7547 | if (PyErr_Occurred()) SWIG_fail; | |
7548 | } | |
7549 | Py_INCREF(Py_None); resultobj = Py_None; | |
7550 | return resultobj; | |
7551 | fail: | |
7552 | return NULL; | |
7553 | } | |
7554 | ||
7555 | ||
7556 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7557 | PyObject *resultobj; | |
7558 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7559 | PyObject * obj0 = 0 ; | |
7560 | char *kwnames[] = { | |
7561 | (char *) "self", NULL | |
7562 | }; | |
7563 | ||
7564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
7565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7566 | { | |
7567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7568 | (arg1)->Paste(); | |
7569 | ||
7570 | wxPyEndAllowThreads(__tstate); | |
7571 | if (PyErr_Occurred()) SWIG_fail; | |
7572 | } | |
7573 | Py_INCREF(Py_None); resultobj = Py_None; | |
7574 | return resultobj; | |
7575 | fail: | |
7576 | return NULL; | |
7577 | } | |
7578 | ||
7579 | ||
7580 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7581 | PyObject *resultobj; | |
7582 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7583 | bool result; | |
7584 | PyObject * obj0 = 0 ; | |
7585 | char *kwnames[] = { | |
7586 | (char *) "self", NULL | |
7587 | }; | |
7588 | ||
7589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
7590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7591 | { | |
7592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7593 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
7594 | ||
7595 | wxPyEndAllowThreads(__tstate); | |
7596 | if (PyErr_Occurred()) SWIG_fail; | |
7597 | } | |
7598 | resultobj = PyInt_FromLong((long)result); | |
7599 | return resultobj; | |
7600 | fail: | |
7601 | return NULL; | |
7602 | } | |
7603 | ||
7604 | ||
7605 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7606 | PyObject *resultobj; | |
7607 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7608 | bool result; | |
7609 | PyObject * obj0 = 0 ; | |
7610 | char *kwnames[] = { | |
7611 | (char *) "self", NULL | |
7612 | }; | |
7613 | ||
7614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
7615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7616 | { | |
7617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7618 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
7619 | ||
7620 | wxPyEndAllowThreads(__tstate); | |
7621 | if (PyErr_Occurred()) SWIG_fail; | |
7622 | } | |
7623 | resultobj = PyInt_FromLong((long)result); | |
7624 | return resultobj; | |
7625 | fail: | |
7626 | return NULL; | |
7627 | } | |
7628 | ||
7629 | ||
7630 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7631 | PyObject *resultobj; | |
7632 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7633 | bool result; | |
7634 | PyObject * obj0 = 0 ; | |
7635 | char *kwnames[] = { | |
7636 | (char *) "self", NULL | |
7637 | }; | |
7638 | ||
7639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
7640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7641 | { | |
7642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7643 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
7644 | ||
7645 | wxPyEndAllowThreads(__tstate); | |
7646 | if (PyErr_Occurred()) SWIG_fail; | |
7647 | } | |
7648 | resultobj = PyInt_FromLong((long)result); | |
7649 | return resultobj; | |
7650 | fail: | |
7651 | return NULL; | |
7652 | } | |
7653 | ||
7654 | ||
7655 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7656 | PyObject *resultobj; | |
7657 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7658 | PyObject * obj0 = 0 ; | |
7659 | char *kwnames[] = { | |
7660 | (char *) "self", NULL | |
7661 | }; | |
7662 | ||
7663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
7664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7665 | { | |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | (arg1)->Undo(); | |
7668 | ||
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) SWIG_fail; | |
7671 | } | |
7672 | Py_INCREF(Py_None); resultobj = Py_None; | |
7673 | return resultobj; | |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
7679 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7680 | PyObject *resultobj; | |
7681 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7682 | PyObject * obj0 = 0 ; | |
7683 | char *kwnames[] = { | |
7684 | (char *) "self", NULL | |
7685 | }; | |
7686 | ||
7687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
7688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7689 | { | |
7690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7691 | (arg1)->Redo(); | |
7692 | ||
7693 | wxPyEndAllowThreads(__tstate); | |
7694 | if (PyErr_Occurred()) SWIG_fail; | |
7695 | } | |
7696 | Py_INCREF(Py_None); resultobj = Py_None; | |
7697 | return resultobj; | |
7698 | fail: | |
7699 | return NULL; | |
7700 | } | |
7701 | ||
7702 | ||
7703 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7704 | PyObject *resultobj; | |
7705 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7706 | bool result; | |
7707 | PyObject * obj0 = 0 ; | |
7708 | char *kwnames[] = { | |
7709 | (char *) "self", NULL | |
7710 | }; | |
7711 | ||
7712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
7713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7714 | { | |
7715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7716 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
7717 | ||
7718 | wxPyEndAllowThreads(__tstate); | |
7719 | if (PyErr_Occurred()) SWIG_fail; | |
7720 | } | |
7721 | resultobj = PyInt_FromLong((long)result); | |
7722 | return resultobj; | |
7723 | fail: | |
7724 | return NULL; | |
7725 | } | |
7726 | ||
7727 | ||
7728 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7729 | PyObject *resultobj; | |
7730 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7731 | bool result; | |
7732 | PyObject * obj0 = 0 ; | |
7733 | char *kwnames[] = { | |
7734 | (char *) "self", NULL | |
7735 | }; | |
7736 | ||
7737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
7738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7739 | { | |
7740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7741 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
7742 | ||
7743 | wxPyEndAllowThreads(__tstate); | |
7744 | if (PyErr_Occurred()) SWIG_fail; | |
7745 | } | |
7746 | resultobj = PyInt_FromLong((long)result); | |
7747 | return resultobj; | |
7748 | fail: | |
7749 | return NULL; | |
7750 | } | |
7751 | ||
7752 | ||
7753 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7754 | PyObject *resultobj; | |
7755 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7756 | long arg2 ; | |
7757 | PyObject * obj0 = 0 ; | |
7758 | char *kwnames[] = { | |
7759 | (char *) "self",(char *) "pos", NULL | |
7760 | }; | |
7761 | ||
7762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_SetInsertionPoint",kwnames,&obj0,&arg2)) goto fail; | |
7763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7764 | { | |
7765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7766 | (arg1)->SetInsertionPoint(arg2); | |
7767 | ||
7768 | wxPyEndAllowThreads(__tstate); | |
7769 | if (PyErr_Occurred()) SWIG_fail; | |
7770 | } | |
7771 | Py_INCREF(Py_None); resultobj = Py_None; | |
7772 | return resultobj; | |
7773 | fail: | |
7774 | return NULL; | |
7775 | } | |
7776 | ||
7777 | ||
7778 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7779 | PyObject *resultobj; | |
7780 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7781 | PyObject * obj0 = 0 ; | |
7782 | char *kwnames[] = { | |
7783 | (char *) "self", NULL | |
7784 | }; | |
7785 | ||
7786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
7787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7788 | { | |
7789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7790 | (arg1)->SetInsertionPointEnd(); | |
7791 | ||
7792 | wxPyEndAllowThreads(__tstate); | |
7793 | if (PyErr_Occurred()) SWIG_fail; | |
7794 | } | |
7795 | Py_INCREF(Py_None); resultobj = Py_None; | |
7796 | return resultobj; | |
7797 | fail: | |
7798 | return NULL; | |
7799 | } | |
7800 | ||
7801 | ||
7802 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7803 | PyObject *resultobj; | |
7804 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7805 | long result; | |
7806 | PyObject * obj0 = 0 ; | |
7807 | char *kwnames[] = { | |
7808 | (char *) "self", NULL | |
7809 | }; | |
7810 | ||
7811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
7812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7813 | { | |
7814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7815 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
7816 | ||
7817 | wxPyEndAllowThreads(__tstate); | |
7818 | if (PyErr_Occurred()) SWIG_fail; | |
7819 | } | |
7820 | resultobj = PyInt_FromLong((long)result); | |
7821 | return resultobj; | |
7822 | fail: | |
7823 | return NULL; | |
7824 | } | |
7825 | ||
7826 | ||
7827 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7828 | PyObject *resultobj; | |
7829 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7830 | long result; | |
7831 | PyObject * obj0 = 0 ; | |
7832 | char *kwnames[] = { | |
7833 | (char *) "self", NULL | |
7834 | }; | |
7835 | ||
7836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
7837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7838 | { | |
7839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7840 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
7841 | ||
7842 | wxPyEndAllowThreads(__tstate); | |
7843 | if (PyErr_Occurred()) SWIG_fail; | |
7844 | } | |
7845 | resultobj = PyInt_FromLong((long)result); | |
7846 | return resultobj; | |
7847 | fail: | |
7848 | return NULL; | |
7849 | } | |
7850 | ||
7851 | ||
7852 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7853 | PyObject *resultobj; | |
7854 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7855 | long arg2 ; | |
7856 | long arg3 ; | |
7857 | PyObject * obj0 = 0 ; | |
7858 | char *kwnames[] = { | |
7859 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7860 | }; | |
7861 | ||
7862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7864 | { | |
7865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7866 | (arg1)->SetSelection(arg2,arg3); | |
7867 | ||
7868 | wxPyEndAllowThreads(__tstate); | |
7869 | if (PyErr_Occurred()) SWIG_fail; | |
7870 | } | |
7871 | Py_INCREF(Py_None); resultobj = Py_None; | |
7872 | return resultobj; | |
7873 | fail: | |
7874 | return NULL; | |
7875 | } | |
7876 | ||
7877 | ||
7878 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7879 | PyObject *resultobj; | |
7880 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7881 | PyObject * obj0 = 0 ; | |
7882 | char *kwnames[] = { | |
7883 | (char *) "self", NULL | |
7884 | }; | |
7885 | ||
7886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
7887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7888 | { | |
7889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7890 | (arg1)->SelectAll(); | |
7891 | ||
7892 | wxPyEndAllowThreads(__tstate); | |
7893 | if (PyErr_Occurred()) SWIG_fail; | |
7894 | } | |
7895 | Py_INCREF(Py_None); resultobj = Py_None; | |
7896 | return resultobj; | |
7897 | fail: | |
7898 | return NULL; | |
7899 | } | |
7900 | ||
7901 | ||
7902 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7903 | PyObject *resultobj; | |
7904 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7905 | bool arg2 ; | |
7906 | PyObject * obj0 = 0 ; | |
7907 | PyObject * obj1 = 0 ; | |
7908 | char *kwnames[] = { | |
7909 | (char *) "self",(char *) "editable", NULL | |
7910 | }; | |
7911 | ||
7912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
7913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7914 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7915 | if (PyErr_Occurred()) SWIG_fail; | |
7916 | { | |
7917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7918 | (arg1)->SetEditable(arg2); | |
7919 | ||
7920 | wxPyEndAllowThreads(__tstate); | |
7921 | if (PyErr_Occurred()) SWIG_fail; | |
7922 | } | |
7923 | Py_INCREF(Py_None); resultobj = Py_None; | |
7924 | return resultobj; | |
7925 | fail: | |
7926 | return NULL; | |
7927 | } | |
7928 | ||
7929 | ||
7930 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7931 | PyObject *resultobj; | |
7932 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7933 | wxString *arg2 = 0 ; | |
423f194a | 7934 | bool temp2 = False ; |
d14a1e28 RD |
7935 | PyObject * obj0 = 0 ; |
7936 | PyObject * obj1 = 0 ; | |
7937 | char *kwnames[] = { | |
7938 | (char *) "self",(char *) "text", NULL | |
7939 | }; | |
7940 | ||
7941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
7942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7943 | { | |
7944 | arg2 = wxString_in_helper(obj1); | |
7945 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7946 | temp2 = True; |
d14a1e28 RD |
7947 | } |
7948 | { | |
7949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7950 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
7951 | ||
7952 | wxPyEndAllowThreads(__tstate); | |
7953 | if (PyErr_Occurred()) SWIG_fail; | |
7954 | } | |
7955 | Py_INCREF(Py_None); resultobj = Py_None; | |
7956 | { | |
7957 | if (temp2) | |
7958 | delete arg2; | |
7959 | } | |
7960 | return resultobj; | |
7961 | fail: | |
7962 | { | |
7963 | if (temp2) | |
7964 | delete arg2; | |
7965 | } | |
7966 | return NULL; | |
7967 | } | |
7968 | ||
7969 | ||
7970 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7971 | PyObject *resultobj; | |
7972 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7973 | long arg2 ; | |
7974 | long arg3 ; | |
7975 | wxString result; | |
7976 | PyObject * obj0 = 0 ; | |
7977 | char *kwnames[] = { | |
7978 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7979 | }; | |
7980 | ||
7981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_GetString",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7983 | { | |
7984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7985 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
7986 | ||
7987 | wxPyEndAllowThreads(__tstate); | |
7988 | if (PyErr_Occurred()) SWIG_fail; | |
7989 | } | |
7990 | { | |
7991 | #if wxUSE_UNICODE | |
7992 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7993 | #else | |
7994 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7995 | #endif | |
7996 | } | |
7997 | return resultobj; | |
7998 | fail: | |
7999 | return NULL; | |
8000 | } | |
8001 | ||
8002 | ||
8003 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
8004 | PyObject *obj; | |
8005 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8006 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
8007 | Py_INCREF(obj); | |
8008 | return Py_BuildValue((char *)""); | |
8009 | } | |
8010 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8011 | PyObject *resultobj; | |
8012 | int arg1 ; | |
8013 | wxMouseEvent *arg2 = 0 ; | |
8014 | long arg3 ; | |
8015 | long arg4 ; | |
8016 | wxTextUrlEvent *result; | |
8017 | PyObject * obj1 = 0 ; | |
8018 | char *kwnames[] = { | |
8019 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
8020 | }; | |
8021 | ||
8022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOll:new_TextUrlEvent",kwnames,&arg1,&obj1,&arg3,&arg4)) goto fail; | |
8023 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8024 | if (arg2 == NULL) { | |
8025 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8026 | } | |
8027 | { | |
8028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8029 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
8030 | ||
8031 | wxPyEndAllowThreads(__tstate); | |
8032 | if (PyErr_Occurred()) SWIG_fail; | |
8033 | } | |
8034 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
8035 | return resultobj; | |
8036 | fail: | |
8037 | return NULL; | |
8038 | } | |
8039 | ||
8040 | ||
8041 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8042 | PyObject *resultobj; | |
8043 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8044 | wxMouseEvent *result; | |
8045 | PyObject * obj0 = 0 ; | |
8046 | char *kwnames[] = { | |
8047 | (char *) "self", NULL | |
8048 | }; | |
8049 | ||
8050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
8051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8052 | { | |
8053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8054 | { | |
8055 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
8056 | result = (wxMouseEvent *) &_result_ref; | |
8057 | } | |
8058 | ||
8059 | wxPyEndAllowThreads(__tstate); | |
8060 | if (PyErr_Occurred()) SWIG_fail; | |
8061 | } | |
8062 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
8063 | return resultobj; | |
8064 | fail: | |
8065 | return NULL; | |
8066 | } | |
8067 | ||
8068 | ||
8069 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8070 | PyObject *resultobj; | |
8071 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8072 | long result; | |
8073 | PyObject * obj0 = 0 ; | |
8074 | char *kwnames[] = { | |
8075 | (char *) "self", NULL | |
8076 | }; | |
8077 | ||
8078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
8079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8080 | { | |
8081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8082 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
8083 | ||
8084 | wxPyEndAllowThreads(__tstate); | |
8085 | if (PyErr_Occurred()) SWIG_fail; | |
8086 | } | |
8087 | resultobj = PyInt_FromLong((long)result); | |
8088 | return resultobj; | |
8089 | fail: | |
8090 | return NULL; | |
8091 | } | |
8092 | ||
8093 | ||
8094 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8095 | PyObject *resultobj; | |
8096 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8097 | long result; | |
8098 | PyObject * obj0 = 0 ; | |
8099 | char *kwnames[] = { | |
8100 | (char *) "self", NULL | |
8101 | }; | |
8102 | ||
8103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
8104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8105 | { | |
8106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8107 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
8108 | ||
8109 | wxPyEndAllowThreads(__tstate); | |
8110 | if (PyErr_Occurred()) SWIG_fail; | |
8111 | } | |
8112 | resultobj = PyInt_FromLong((long)result); | |
8113 | return resultobj; | |
8114 | fail: | |
8115 | return NULL; | |
8116 | } | |
8117 | ||
8118 | ||
8119 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
8120 | PyObject *obj; | |
8121 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8122 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
8123 | Py_INCREF(obj); | |
8124 | return Py_BuildValue((char *)""); | |
8125 | } | |
cbd72d4f RD |
8126 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { |
8127 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
8128 | return 1; | |
8129 | } | |
8130 | ||
8131 | ||
8132 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
8133 | PyObject *pyobj; | |
8134 | ||
8135 | { | |
8136 | #if wxUSE_UNICODE | |
8137 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
8138 | #else | |
8139 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
8140 | #endif | |
8141 | } | |
8142 | return pyobj; | |
8143 | } | |
8144 | ||
8145 | ||
d14a1e28 RD |
8146 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8147 | PyObject *resultobj; | |
8148 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 8149 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8150 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8151 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8152 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8153 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8154 | long arg5 = (long) wxSB_HORIZONTAL ; | |
8155 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
8156 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
8157 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
8158 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8159 | wxScrollBar *result; | |
8160 | wxPoint temp3 ; | |
8161 | wxSize temp4 ; | |
423f194a | 8162 | bool temp7 = False ; |
d14a1e28 RD |
8163 | PyObject * obj0 = 0 ; |
8164 | PyObject * obj2 = 0 ; | |
8165 | PyObject * obj3 = 0 ; | |
8166 | PyObject * obj5 = 0 ; | |
8167 | PyObject * obj6 = 0 ; | |
8168 | char *kwnames[] = { | |
8169 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8170 | }; | |
8171 | ||
8172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ScrollBar",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
8173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8174 | if (obj2) { | |
8175 | { | |
8176 | arg3 = &temp3; | |
8177 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8178 | } | |
8179 | } | |
8180 | if (obj3) { | |
8181 | { | |
8182 | arg4 = &temp4; | |
8183 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8184 | } | |
8185 | } | |
8186 | if (obj5) { | |
8187 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8188 | if (arg6 == NULL) { | |
8189 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8190 | } | |
8191 | } | |
8192 | if (obj6) { | |
8193 | { | |
8194 | arg7 = wxString_in_helper(obj6); | |
8195 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 8196 | temp7 = True; |
d14a1e28 RD |
8197 | } |
8198 | } | |
8199 | { | |
8200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8201 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
8202 | ||
8203 | wxPyEndAllowThreads(__tstate); | |
8204 | if (PyErr_Occurred()) SWIG_fail; | |
8205 | } | |
8206 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
8207 | { | |
8208 | if (temp7) | |
8209 | delete arg7; | |
8210 | } | |
8211 | return resultobj; | |
8212 | fail: | |
8213 | { | |
8214 | if (temp7) | |
8215 | delete arg7; | |
8216 | } | |
8217 | return NULL; | |
8218 | } | |
8219 | ||
8220 | ||
8221 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8222 | PyObject *resultobj; | |
8223 | wxScrollBar *result; | |
8224 | char *kwnames[] = { | |
8225 | NULL | |
8226 | }; | |
8227 | ||
8228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
8229 | { | |
8230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8231 | result = (wxScrollBar *)new wxScrollBar(); | |
8232 | ||
8233 | wxPyEndAllowThreads(__tstate); | |
8234 | if (PyErr_Occurred()) SWIG_fail; | |
8235 | } | |
8236 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
8237 | return resultobj; | |
8238 | fail: | |
8239 | return NULL; | |
8240 | } | |
8241 | ||
8242 | ||
8243 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8244 | PyObject *resultobj; | |
8245 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8246 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 8247 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8248 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8249 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8250 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8251 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8252 | long arg6 = (long) wxSB_HORIZONTAL ; | |
8253 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8254 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8255 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
8256 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8257 | bool result; | |
8258 | wxPoint temp4 ; | |
8259 | wxSize temp5 ; | |
423f194a | 8260 | bool temp8 = False ; |
d14a1e28 RD |
8261 | PyObject * obj0 = 0 ; |
8262 | PyObject * obj1 = 0 ; | |
8263 | PyObject * obj3 = 0 ; | |
8264 | PyObject * obj4 = 0 ; | |
8265 | PyObject * obj6 = 0 ; | |
8266 | PyObject * obj7 = 0 ; | |
8267 | char *kwnames[] = { | |
8268 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8269 | }; | |
8270 | ||
8271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ScrollBar_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
8272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8273 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8274 | if (obj3) { | |
8275 | { | |
8276 | arg4 = &temp4; | |
8277 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8278 | } | |
8279 | } | |
8280 | if (obj4) { | |
8281 | { | |
8282 | arg5 = &temp5; | |
8283 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8284 | } | |
8285 | } | |
8286 | if (obj6) { | |
8287 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8288 | if (arg7 == NULL) { | |
8289 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8290 | } | |
8291 | } | |
8292 | if (obj7) { | |
8293 | { | |
8294 | arg8 = wxString_in_helper(obj7); | |
8295 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 8296 | temp8 = True; |
d14a1e28 RD |
8297 | } |
8298 | } | |
8299 | { | |
8300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8301 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8302 | ||
8303 | wxPyEndAllowThreads(__tstate); | |
8304 | if (PyErr_Occurred()) SWIG_fail; | |
8305 | } | |
8306 | resultobj = PyInt_FromLong((long)result); | |
8307 | { | |
8308 | if (temp8) | |
8309 | delete arg8; | |
8310 | } | |
8311 | return resultobj; | |
8312 | fail: | |
8313 | { | |
8314 | if (temp8) | |
8315 | delete arg8; | |
8316 | } | |
8317 | return NULL; | |
8318 | } | |
8319 | ||
8320 | ||
8321 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8322 | PyObject *resultobj; | |
8323 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8324 | int result; | |
8325 | PyObject * obj0 = 0 ; | |
8326 | char *kwnames[] = { | |
8327 | (char *) "self", NULL | |
8328 | }; | |
8329 | ||
8330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
8331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8332 | { | |
8333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8334 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
8335 | ||
8336 | wxPyEndAllowThreads(__tstate); | |
8337 | if (PyErr_Occurred()) SWIG_fail; | |
8338 | } | |
8339 | resultobj = PyInt_FromLong((long)result); | |
8340 | return resultobj; | |
8341 | fail: | |
8342 | return NULL; | |
8343 | } | |
8344 | ||
8345 | ||
8346 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8347 | PyObject *resultobj; | |
8348 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8349 | int result; | |
8350 | PyObject * obj0 = 0 ; | |
8351 | char *kwnames[] = { | |
8352 | (char *) "self", NULL | |
8353 | }; | |
8354 | ||
8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
8356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8357 | { | |
8358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8359 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
8360 | ||
8361 | wxPyEndAllowThreads(__tstate); | |
8362 | if (PyErr_Occurred()) SWIG_fail; | |
8363 | } | |
8364 | resultobj = PyInt_FromLong((long)result); | |
8365 | return resultobj; | |
8366 | fail: | |
8367 | return NULL; | |
8368 | } | |
8369 | ||
8370 | ||
8371 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8372 | PyObject *resultobj; | |
8373 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8374 | int result; | |
8375 | PyObject * obj0 = 0 ; | |
8376 | char *kwnames[] = { | |
8377 | (char *) "self", NULL | |
8378 | }; | |
8379 | ||
8380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
8381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8382 | { | |
8383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8384 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
8385 | ||
8386 | wxPyEndAllowThreads(__tstate); | |
8387 | if (PyErr_Occurred()) SWIG_fail; | |
8388 | } | |
8389 | resultobj = PyInt_FromLong((long)result); | |
8390 | return resultobj; | |
8391 | fail: | |
8392 | return NULL; | |
8393 | } | |
8394 | ||
8395 | ||
8396 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8397 | PyObject *resultobj; | |
8398 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8399 | int result; | |
8400 | PyObject * obj0 = 0 ; | |
8401 | char *kwnames[] = { | |
8402 | (char *) "self", NULL | |
8403 | }; | |
8404 | ||
8405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
8406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8407 | { | |
8408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8409 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
8410 | ||
8411 | wxPyEndAllowThreads(__tstate); | |
8412 | if (PyErr_Occurred()) SWIG_fail; | |
8413 | } | |
8414 | resultobj = PyInt_FromLong((long)result); | |
8415 | return resultobj; | |
8416 | fail: | |
8417 | return NULL; | |
8418 | } | |
8419 | ||
8420 | ||
8421 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8422 | PyObject *resultobj; | |
8423 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8424 | bool result; | |
8425 | PyObject * obj0 = 0 ; | |
8426 | char *kwnames[] = { | |
8427 | (char *) "self", NULL | |
8428 | }; | |
8429 | ||
8430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
8431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8432 | { | |
8433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8434 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
8435 | ||
8436 | wxPyEndAllowThreads(__tstate); | |
8437 | if (PyErr_Occurred()) SWIG_fail; | |
8438 | } | |
8439 | resultobj = PyInt_FromLong((long)result); | |
8440 | return resultobj; | |
8441 | fail: | |
8442 | return NULL; | |
8443 | } | |
8444 | ||
8445 | ||
8446 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8447 | PyObject *resultobj; | |
8448 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8449 | int arg2 ; | |
8450 | PyObject * obj0 = 0 ; | |
8451 | char *kwnames[] = { | |
8452 | (char *) "self",(char *) "viewStart", NULL | |
8453 | }; | |
8454 | ||
8455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollBar_SetThumbPosition",kwnames,&obj0,&arg2)) goto fail; | |
8456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8457 | { | |
8458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8459 | (arg1)->SetThumbPosition(arg2); | |
8460 | ||
8461 | wxPyEndAllowThreads(__tstate); | |
8462 | if (PyErr_Occurred()) SWIG_fail; | |
8463 | } | |
8464 | Py_INCREF(Py_None); resultobj = Py_None; | |
8465 | return resultobj; | |
8466 | fail: | |
8467 | return NULL; | |
8468 | } | |
8469 | ||
8470 | ||
8471 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8472 | PyObject *resultobj; | |
8473 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8474 | int arg2 ; | |
8475 | int arg3 ; | |
8476 | int arg4 ; | |
8477 | int arg5 ; | |
423f194a | 8478 | bool arg6 = (bool) True ; |
d14a1e28 RD |
8479 | PyObject * obj0 = 0 ; |
8480 | PyObject * obj5 = 0 ; | |
8481 | char *kwnames[] = { | |
8482 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
8483 | }; | |
8484 | ||
8485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|O:ScrollBar_SetScrollbar",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
8486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8487 | if (obj5) { | |
8488 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
8489 | if (PyErr_Occurred()) SWIG_fail; | |
8490 | } | |
8491 | { | |
8492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8493 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
8494 | ||
8495 | wxPyEndAllowThreads(__tstate); | |
8496 | if (PyErr_Occurred()) SWIG_fail; | |
8497 | } | |
8498 | Py_INCREF(Py_None); resultobj = Py_None; | |
8499 | return resultobj; | |
8500 | fail: | |
8501 | return NULL; | |
8502 | } | |
8503 | ||
8504 | ||
8505 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
8506 | PyObject *obj; | |
8507 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8508 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
8509 | Py_INCREF(obj); | |
8510 | return Py_BuildValue((char *)""); | |
8511 | } | |
cbd72d4f RD |
8512 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { |
8513 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
8514 | return 1; | |
8515 | } | |
8516 | ||
8517 | ||
8518 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
8519 | PyObject *pyobj; | |
8520 | ||
8521 | { | |
8522 | #if wxUSE_UNICODE | |
8523 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
8524 | #else | |
8525 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
8526 | #endif | |
8527 | } | |
8528 | return pyobj; | |
8529 | } | |
8530 | ||
8531 | ||
8532 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
8533 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
8534 | return 1; | |
8535 | } | |
8536 | ||
8537 | ||
8538 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
8539 | PyObject *pyobj; | |
8540 | ||
8541 | { | |
8542 | #if wxUSE_UNICODE | |
8543 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
8544 | #else | |
8545 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
8546 | #endif | |
8547 | } | |
8548 | return pyobj; | |
8549 | } | |
8550 | ||
8551 | ||
d14a1e28 RD |
8552 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8553 | PyObject *resultobj; | |
8554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 8555 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8556 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8557 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8558 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8559 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8560 | long arg5 = (long) wxSP_HORIZONTAL ; | |
8561 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
8562 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8563 | wxSpinButton *result; | |
8564 | wxPoint temp3 ; | |
8565 | wxSize temp4 ; | |
423f194a | 8566 | bool temp6 = False ; |
d14a1e28 RD |
8567 | PyObject * obj0 = 0 ; |
8568 | PyObject * obj2 = 0 ; | |
8569 | PyObject * obj3 = 0 ; | |
8570 | PyObject * obj5 = 0 ; | |
8571 | char *kwnames[] = { | |
8572 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8573 | }; | |
8574 | ||
8575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlO:new_SpinButton",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
8576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8577 | if (obj2) { | |
8578 | { | |
8579 | arg3 = &temp3; | |
8580 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8581 | } | |
8582 | } | |
8583 | if (obj3) { | |
8584 | { | |
8585 | arg4 = &temp4; | |
8586 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8587 | } | |
8588 | } | |
8589 | if (obj5) { | |
8590 | { | |
8591 | arg6 = wxString_in_helper(obj5); | |
8592 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 8593 | temp6 = True; |
d14a1e28 RD |
8594 | } |
8595 | } | |
8596 | { | |
8597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8598 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8599 | ||
8600 | wxPyEndAllowThreads(__tstate); | |
8601 | if (PyErr_Occurred()) SWIG_fail; | |
8602 | } | |
8603 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
8604 | { | |
8605 | if (temp6) | |
8606 | delete arg6; | |
8607 | } | |
8608 | return resultobj; | |
8609 | fail: | |
8610 | { | |
8611 | if (temp6) | |
8612 | delete arg6; | |
8613 | } | |
8614 | return NULL; | |
8615 | } | |
8616 | ||
8617 | ||
8618 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8619 | PyObject *resultobj; | |
8620 | wxSpinButton *result; | |
8621 | char *kwnames[] = { | |
8622 | NULL | |
8623 | }; | |
8624 | ||
8625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
8626 | { | |
8627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8628 | result = (wxSpinButton *)new wxSpinButton(); | |
8629 | ||
8630 | wxPyEndAllowThreads(__tstate); | |
8631 | if (PyErr_Occurred()) SWIG_fail; | |
8632 | } | |
8633 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
8634 | return resultobj; | |
8635 | fail: | |
8636 | return NULL; | |
8637 | } | |
8638 | ||
8639 | ||
8640 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8641 | PyObject *resultobj; | |
8642 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8643 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 8644 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8645 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8646 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8647 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8648 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8649 | long arg6 = (long) wxSP_HORIZONTAL ; | |
8650 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
8651 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8652 | bool result; | |
8653 | wxPoint temp4 ; | |
8654 | wxSize temp5 ; | |
423f194a | 8655 | bool temp7 = False ; |
d14a1e28 RD |
8656 | PyObject * obj0 = 0 ; |
8657 | PyObject * obj1 = 0 ; | |
8658 | PyObject * obj3 = 0 ; | |
8659 | PyObject * obj4 = 0 ; | |
8660 | PyObject * obj6 = 0 ; | |
8661 | char *kwnames[] = { | |
8662 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8663 | }; | |
8664 | ||
8665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlO:SpinButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
8666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8667 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8668 | if (obj3) { | |
8669 | { | |
8670 | arg4 = &temp4; | |
8671 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8672 | } | |
8673 | } | |
8674 | if (obj4) { | |
8675 | { | |
8676 | arg5 = &temp5; | |
8677 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8678 | } | |
8679 | } | |
8680 | if (obj6) { | |
8681 | { | |
8682 | arg7 = wxString_in_helper(obj6); | |
8683 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 8684 | temp7 = True; |
d14a1e28 RD |
8685 | } |
8686 | } | |
8687 | { | |
8688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8689 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8690 | ||
8691 | wxPyEndAllowThreads(__tstate); | |
8692 | if (PyErr_Occurred()) SWIG_fail; | |
8693 | } | |
8694 | resultobj = PyInt_FromLong((long)result); | |
8695 | { | |
8696 | if (temp7) | |
8697 | delete arg7; | |
8698 | } | |
8699 | return resultobj; | |
8700 | fail: | |
8701 | { | |
8702 | if (temp7) | |
8703 | delete arg7; | |
8704 | } | |
8705 | return NULL; | |
8706 | } | |
8707 | ||
8708 | ||
8709 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8710 | PyObject *resultobj; | |
8711 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8712 | int result; | |
8713 | PyObject * obj0 = 0 ; | |
8714 | char *kwnames[] = { | |
8715 | (char *) "self", NULL | |
8716 | }; | |
8717 | ||
8718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
8719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8720 | { | |
8721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8722 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
8723 | ||
8724 | wxPyEndAllowThreads(__tstate); | |
8725 | if (PyErr_Occurred()) SWIG_fail; | |
8726 | } | |
8727 | resultobj = PyInt_FromLong((long)result); | |
8728 | return resultobj; | |
8729 | fail: | |
8730 | return NULL; | |
8731 | } | |
8732 | ||
8733 | ||
8734 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8735 | PyObject *resultobj; | |
8736 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8737 | int result; | |
8738 | PyObject * obj0 = 0 ; | |
8739 | char *kwnames[] = { | |
8740 | (char *) "self", NULL | |
8741 | }; | |
8742 | ||
8743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
8744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8745 | { | |
8746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8747 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
8748 | ||
8749 | wxPyEndAllowThreads(__tstate); | |
8750 | if (PyErr_Occurred()) SWIG_fail; | |
8751 | } | |
8752 | resultobj = PyInt_FromLong((long)result); | |
8753 | return resultobj; | |
8754 | fail: | |
8755 | return NULL; | |
8756 | } | |
8757 | ||
8758 | ||
8759 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8760 | PyObject *resultobj; | |
8761 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8762 | int result; | |
8763 | PyObject * obj0 = 0 ; | |
8764 | char *kwnames[] = { | |
8765 | (char *) "self", NULL | |
8766 | }; | |
8767 | ||
8768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
8769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8770 | { | |
8771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8772 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
8773 | ||
8774 | wxPyEndAllowThreads(__tstate); | |
8775 | if (PyErr_Occurred()) SWIG_fail; | |
8776 | } | |
8777 | resultobj = PyInt_FromLong((long)result); | |
8778 | return resultobj; | |
8779 | fail: | |
8780 | return NULL; | |
8781 | } | |
8782 | ||
8783 | ||
8784 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8785 | PyObject *resultobj; | |
8786 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8787 | int arg2 ; | |
8788 | PyObject * obj0 = 0 ; | |
8789 | char *kwnames[] = { | |
8790 | (char *) "self",(char *) "val", NULL | |
8791 | }; | |
8792 | ||
8793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
8794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8795 | { | |
8796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8797 | (arg1)->SetValue(arg2); | |
8798 | ||
8799 | wxPyEndAllowThreads(__tstate); | |
8800 | if (PyErr_Occurred()) SWIG_fail; | |
8801 | } | |
8802 | Py_INCREF(Py_None); resultobj = Py_None; | |
8803 | return resultobj; | |
8804 | fail: | |
8805 | return NULL; | |
8806 | } | |
8807 | ||
8808 | ||
8809 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8810 | PyObject *resultobj; | |
8811 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8812 | int arg2 ; | |
8813 | PyObject * obj0 = 0 ; | |
8814 | char *kwnames[] = { | |
8815 | (char *) "self",(char *) "minVal", NULL | |
8816 | }; | |
8817 | ||
8818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetMin",kwnames,&obj0,&arg2)) goto fail; | |
8819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8820 | { | |
8821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8822 | (arg1)->SetMin(arg2); | |
8823 | ||
8824 | wxPyEndAllowThreads(__tstate); | |
8825 | if (PyErr_Occurred()) SWIG_fail; | |
8826 | } | |
8827 | Py_INCREF(Py_None); resultobj = Py_None; | |
8828 | return resultobj; | |
8829 | fail: | |
8830 | return NULL; | |
8831 | } | |
8832 | ||
8833 | ||
8834 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8835 | PyObject *resultobj; | |
8836 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8837 | int arg2 ; | |
8838 | PyObject * obj0 = 0 ; | |
8839 | char *kwnames[] = { | |
8840 | (char *) "self",(char *) "maxVal", NULL | |
8841 | }; | |
8842 | ||
8843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetMax",kwnames,&obj0,&arg2)) goto fail; | |
8844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8845 | { | |
8846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8847 | (arg1)->SetMax(arg2); | |
8848 | ||
8849 | wxPyEndAllowThreads(__tstate); | |
8850 | if (PyErr_Occurred()) SWIG_fail; | |
8851 | } | |
8852 | Py_INCREF(Py_None); resultobj = Py_None; | |
8853 | return resultobj; | |
8854 | fail: | |
8855 | return NULL; | |
8856 | } | |
8857 | ||
8858 | ||
8859 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8860 | PyObject *resultobj; | |
8861 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8862 | int arg2 ; | |
8863 | int arg3 ; | |
8864 | PyObject * obj0 = 0 ; | |
8865 | char *kwnames[] = { | |
8866 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
8867 | }; | |
8868 | ||
8869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SpinButton_SetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8871 | { | |
8872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8873 | (arg1)->SetRange(arg2,arg3); | |
8874 | ||
8875 | wxPyEndAllowThreads(__tstate); | |
8876 | if (PyErr_Occurred()) SWIG_fail; | |
8877 | } | |
8878 | Py_INCREF(Py_None); resultobj = Py_None; | |
8879 | return resultobj; | |
8880 | fail: | |
8881 | return NULL; | |
8882 | } | |
8883 | ||
8884 | ||
8885 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8886 | PyObject *resultobj; | |
8887 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8888 | bool result; | |
8889 | PyObject * obj0 = 0 ; | |
8890 | char *kwnames[] = { | |
8891 | (char *) "self", NULL | |
8892 | }; | |
8893 | ||
8894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
8895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8896 | { | |
8897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8898 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
8899 | ||
8900 | wxPyEndAllowThreads(__tstate); | |
8901 | if (PyErr_Occurred()) SWIG_fail; | |
8902 | } | |
8903 | resultobj = PyInt_FromLong((long)result); | |
8904 | return resultobj; | |
8905 | fail: | |
8906 | return NULL; | |
8907 | } | |
8908 | ||
8909 | ||
8910 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
8911 | PyObject *obj; | |
8912 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8913 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
8914 | Py_INCREF(obj); | |
8915 | return Py_BuildValue((char *)""); | |
8916 | } | |
8917 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8918 | PyObject *resultobj; | |
8919 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 8920 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8921 | wxString const &arg3_defvalue = wxPyEmptyString ; |
8922 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8923 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8924 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8925 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8926 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8927 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
8928 | int arg7 = (int) 0 ; | |
8929 | int arg8 = (int) 100 ; | |
8930 | int arg9 = (int) 0 ; | |
8931 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
8932 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
8933 | wxSpinCtrl *result; | |
423f194a | 8934 | bool temp3 = False ; |
d14a1e28 RD |
8935 | wxPoint temp4 ; |
8936 | wxSize temp5 ; | |
423f194a | 8937 | bool temp10 = False ; |
d14a1e28 RD |
8938 | PyObject * obj0 = 0 ; |
8939 | PyObject * obj2 = 0 ; | |
8940 | PyObject * obj3 = 0 ; | |
8941 | PyObject * obj4 = 0 ; | |
8942 | PyObject * obj9 = 0 ; | |
8943 | char *kwnames[] = { | |
8944 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
8945 | }; | |
8946 | ||
8947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOOliiiO:new_SpinCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&arg7,&arg8,&arg9,&obj9)) goto fail; | |
8948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8949 | if (obj2) { | |
8950 | { | |
8951 | arg3 = wxString_in_helper(obj2); | |
8952 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8953 | temp3 = True; |
d14a1e28 RD |
8954 | } |
8955 | } | |
8956 | if (obj3) { | |
8957 | { | |
8958 | arg4 = &temp4; | |
8959 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8960 | } | |
8961 | } | |
8962 | if (obj4) { | |
8963 | { | |
8964 | arg5 = &temp5; | |
8965 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8966 | } | |
8967 | } | |
8968 | if (obj9) { | |
8969 | { | |
8970 | arg10 = wxString_in_helper(obj9); | |
8971 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 8972 | temp10 = True; |
d14a1e28 RD |
8973 | } |
8974 | } | |
8975 | { | |
8976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8977 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
8978 | ||
8979 | wxPyEndAllowThreads(__tstate); | |
8980 | if (PyErr_Occurred()) SWIG_fail; | |
8981 | } | |
8982 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
8983 | { | |
8984 | if (temp3) | |
8985 | delete arg3; | |
8986 | } | |
8987 | { | |
8988 | if (temp10) | |
8989 | delete arg10; | |
8990 | } | |
8991 | return resultobj; | |
8992 | fail: | |
8993 | { | |
8994 | if (temp3) | |
8995 | delete arg3; | |
8996 | } | |
8997 | { | |
8998 | if (temp10) | |
8999 | delete arg10; | |
9000 | } | |
9001 | return NULL; | |
9002 | } | |
9003 | ||
9004 | ||
9005 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9006 | PyObject *resultobj; | |
9007 | wxSpinCtrl *result; | |
9008 | char *kwnames[] = { | |
9009 | NULL | |
9010 | }; | |
9011 | ||
9012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
9013 | { | |
9014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9015 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
9016 | ||
9017 | wxPyEndAllowThreads(__tstate); | |
9018 | if (PyErr_Occurred()) SWIG_fail; | |
9019 | } | |
9020 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
9021 | return resultobj; | |
9022 | fail: | |
9023 | return NULL; | |
9024 | } | |
9025 | ||
9026 | ||
9027 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9028 | PyObject *resultobj; | |
9029 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9030 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9031 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9032 | wxString const &arg4_defvalue = wxPyEmptyString ; |
9033 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9034 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9035 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9036 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9037 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9038 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
9039 | int arg8 = (int) 0 ; | |
9040 | int arg9 = (int) 100 ; | |
9041 | int arg10 = (int) 0 ; | |
9042 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
9043 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
9044 | bool result; | |
423f194a | 9045 | bool temp4 = False ; |
d14a1e28 RD |
9046 | wxPoint temp5 ; |
9047 | wxSize temp6 ; | |
423f194a | 9048 | bool temp11 = False ; |
d14a1e28 RD |
9049 | PyObject * obj0 = 0 ; |
9050 | PyObject * obj1 = 0 ; | |
9051 | PyObject * obj3 = 0 ; | |
9052 | PyObject * obj4 = 0 ; | |
9053 | PyObject * obj5 = 0 ; | |
9054 | PyObject * obj10 = 0 ; | |
9055 | char *kwnames[] = { | |
9056 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
9057 | }; | |
9058 | ||
9059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOOliiiO:SpinCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&arg8,&arg9,&arg10,&obj10)) goto fail; | |
9060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9061 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9062 | if (obj3) { | |
9063 | { | |
9064 | arg4 = wxString_in_helper(obj3); | |
9065 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 9066 | temp4 = True; |
d14a1e28 RD |
9067 | } |
9068 | } | |
9069 | if (obj4) { | |
9070 | { | |
9071 | arg5 = &temp5; | |
9072 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9073 | } | |
9074 | } | |
9075 | if (obj5) { | |
9076 | { | |
9077 | arg6 = &temp6; | |
9078 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9079 | } | |
9080 | } | |
9081 | if (obj10) { | |
9082 | { | |
9083 | arg11 = wxString_in_helper(obj10); | |
9084 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 9085 | temp11 = True; |
d14a1e28 RD |
9086 | } |
9087 | } | |
9088 | { | |
9089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9090 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
9091 | ||
9092 | wxPyEndAllowThreads(__tstate); | |
9093 | if (PyErr_Occurred()) SWIG_fail; | |
9094 | } | |
9095 | resultobj = PyInt_FromLong((long)result); | |
9096 | { | |
9097 | if (temp4) | |
9098 | delete arg4; | |
9099 | } | |
9100 | { | |
9101 | if (temp11) | |
9102 | delete arg11; | |
9103 | } | |
9104 | return resultobj; | |
9105 | fail: | |
9106 | { | |
9107 | if (temp4) | |
9108 | delete arg4; | |
9109 | } | |
9110 | { | |
9111 | if (temp11) | |
9112 | delete arg11; | |
9113 | } | |
9114 | return NULL; | |
9115 | } | |
9116 | ||
9117 | ||
9118 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9119 | PyObject *resultobj; | |
9120 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9121 | int result; | |
9122 | PyObject * obj0 = 0 ; | |
9123 | char *kwnames[] = { | |
9124 | (char *) "self", NULL | |
9125 | }; | |
9126 | ||
9127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
9128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9129 | { | |
9130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9131 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
9132 | ||
9133 | wxPyEndAllowThreads(__tstate); | |
9134 | if (PyErr_Occurred()) SWIG_fail; | |
9135 | } | |
9136 | resultobj = PyInt_FromLong((long)result); | |
9137 | return resultobj; | |
9138 | fail: | |
9139 | return NULL; | |
9140 | } | |
9141 | ||
9142 | ||
9143 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9144 | PyObject *resultobj; | |
9145 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9146 | int arg2 ; | |
9147 | PyObject * obj0 = 0 ; | |
9148 | char *kwnames[] = { | |
9149 | (char *) "self",(char *) "value", NULL | |
9150 | }; | |
9151 | ||
9152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinCtrl_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
9153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9154 | { | |
9155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9156 | (arg1)->SetValue(arg2); | |
9157 | ||
9158 | wxPyEndAllowThreads(__tstate); | |
9159 | if (PyErr_Occurred()) SWIG_fail; | |
9160 | } | |
9161 | Py_INCREF(Py_None); resultobj = Py_None; | |
9162 | return resultobj; | |
9163 | fail: | |
9164 | return NULL; | |
9165 | } | |
9166 | ||
9167 | ||
9168 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9169 | PyObject *resultobj; | |
9170 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9171 | wxString *arg2 = 0 ; | |
423f194a | 9172 | bool temp2 = False ; |
d14a1e28 RD |
9173 | PyObject * obj0 = 0 ; |
9174 | PyObject * obj1 = 0 ; | |
9175 | char *kwnames[] = { | |
9176 | (char *) "self",(char *) "text", NULL | |
9177 | }; | |
9178 | ||
9179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
9180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9181 | { | |
9182 | arg2 = wxString_in_helper(obj1); | |
9183 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9184 | temp2 = True; |
d14a1e28 RD |
9185 | } |
9186 | { | |
9187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9188 | (arg1)->SetValue((wxString const &)*arg2); | |
9189 | ||
9190 | wxPyEndAllowThreads(__tstate); | |
9191 | if (PyErr_Occurred()) SWIG_fail; | |
9192 | } | |
9193 | Py_INCREF(Py_None); resultobj = Py_None; | |
9194 | { | |
9195 | if (temp2) | |
9196 | delete arg2; | |
9197 | } | |
9198 | return resultobj; | |
9199 | fail: | |
9200 | { | |
9201 | if (temp2) | |
9202 | delete arg2; | |
9203 | } | |
9204 | return NULL; | |
9205 | } | |
9206 | ||
9207 | ||
9208 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9209 | PyObject *resultobj; | |
9210 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9211 | int arg2 ; | |
9212 | int arg3 ; | |
9213 | PyObject * obj0 = 0 ; | |
9214 | char *kwnames[] = { | |
9215 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
9216 | }; | |
9217 | ||
9218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SpinCtrl_SetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9220 | { | |
9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9222 | (arg1)->SetRange(arg2,arg3); | |
9223 | ||
9224 | wxPyEndAllowThreads(__tstate); | |
9225 | if (PyErr_Occurred()) SWIG_fail; | |
9226 | } | |
9227 | Py_INCREF(Py_None); resultobj = Py_None; | |
9228 | return resultobj; | |
9229 | fail: | |
9230 | return NULL; | |
9231 | } | |
9232 | ||
9233 | ||
9234 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9235 | PyObject *resultobj; | |
9236 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9237 | int result; | |
9238 | PyObject * obj0 = 0 ; | |
9239 | char *kwnames[] = { | |
9240 | (char *) "self", NULL | |
9241 | }; | |
9242 | ||
9243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
9244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9245 | { | |
9246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9247 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
9248 | ||
9249 | wxPyEndAllowThreads(__tstate); | |
9250 | if (PyErr_Occurred()) SWIG_fail; | |
9251 | } | |
9252 | resultobj = PyInt_FromLong((long)result); | |
9253 | return resultobj; | |
9254 | fail: | |
9255 | return NULL; | |
9256 | } | |
9257 | ||
9258 | ||
9259 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9260 | PyObject *resultobj; | |
9261 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9262 | int result; | |
9263 | PyObject * obj0 = 0 ; | |
9264 | char *kwnames[] = { | |
9265 | (char *) "self", NULL | |
9266 | }; | |
9267 | ||
9268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
9269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9270 | { | |
9271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9272 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
9273 | ||
9274 | wxPyEndAllowThreads(__tstate); | |
9275 | if (PyErr_Occurred()) SWIG_fail; | |
9276 | } | |
9277 | resultobj = PyInt_FromLong((long)result); | |
9278 | return resultobj; | |
9279 | fail: | |
9280 | return NULL; | |
9281 | } | |
9282 | ||
9283 | ||
9284 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9285 | PyObject *resultobj; | |
9286 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9287 | long arg2 ; | |
9288 | long arg3 ; | |
9289 | PyObject * obj0 = 0 ; | |
9290 | char *kwnames[] = { | |
9291 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9292 | }; | |
9293 | ||
9294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:SpinCtrl_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9296 | { | |
9297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9298 | (arg1)->SetSelection(arg2,arg3); | |
9299 | ||
9300 | wxPyEndAllowThreads(__tstate); | |
9301 | if (PyErr_Occurred()) SWIG_fail; | |
9302 | } | |
9303 | Py_INCREF(Py_None); resultobj = Py_None; | |
9304 | return resultobj; | |
9305 | fail: | |
9306 | return NULL; | |
9307 | } | |
9308 | ||
9309 | ||
9310 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
9311 | PyObject *obj; | |
9312 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9313 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
9314 | Py_INCREF(obj); | |
9315 | return Py_BuildValue((char *)""); | |
9316 | } | |
cbd72d4f RD |
9317 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { |
9318 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
9319 | return 1; | |
9320 | } | |
9321 | ||
9322 | ||
9323 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
9324 | PyObject *pyobj; | |
9325 | ||
9326 | { | |
9327 | #if wxUSE_UNICODE | |
9328 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
9329 | #else | |
9330 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
9331 | #endif | |
9332 | } | |
9333 | return pyobj; | |
9334 | } | |
9335 | ||
9336 | ||
9337 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
9338 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
9339 | return 1; | |
9340 | } | |
9341 | ||
9342 | ||
9343 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
9344 | PyObject *pyobj; | |
9345 | ||
9346 | { | |
9347 | #if wxUSE_UNICODE | |
9348 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
9349 | #else | |
9350 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
9351 | #endif | |
9352 | } | |
9353 | return pyobj; | |
9354 | } | |
9355 | ||
9356 | ||
d14a1e28 RD |
9357 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9358 | PyObject *resultobj; | |
9359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9360 | int arg2 ; |
d14a1e28 RD |
9361 | wxString *arg3 = 0 ; |
9362 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9363 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9364 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9365 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9366 | int arg6 = (int) 0 ; | |
9367 | wxString *arg7 = (wxString *) NULL ; | |
9368 | int arg8 = (int) 0 ; | |
9369 | long arg9 = (long) wxRA_HORIZONTAL ; | |
9370 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
9371 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
9372 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
9373 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
9374 | wxRadioBox *result; | |
423f194a | 9375 | bool temp3 = False ; |
d14a1e28 RD |
9376 | wxPoint temp4 ; |
9377 | wxSize temp5 ; | |
423f194a | 9378 | bool temp10 = False ; |
d14a1e28 RD |
9379 | PyObject * obj0 = 0 ; |
9380 | PyObject * obj2 = 0 ; | |
9381 | PyObject * obj3 = 0 ; | |
9382 | PyObject * obj4 = 0 ; | |
9383 | PyObject * obj5 = 0 ; | |
9384 | PyObject * obj8 = 0 ; | |
9385 | PyObject * obj9 = 0 ; | |
9386 | char *kwnames[] = { | |
9387 | (char *) "parent",(char *) "id",(char *) "label",(char *) "point",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9388 | }; | |
9389 | ||
9390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOOilOO:new_RadioBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&arg8,&arg9,&obj8,&obj9)) goto fail; | |
9391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9392 | { | |
9393 | arg3 = wxString_in_helper(obj2); | |
9394 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9395 | temp3 = True; |
d14a1e28 RD |
9396 | } |
9397 | if (obj3) { | |
9398 | { | |
9399 | arg4 = &temp4; | |
9400 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9401 | } | |
9402 | } | |
9403 | if (obj4) { | |
9404 | { | |
9405 | arg5 = &temp5; | |
9406 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9407 | } | |
9408 | } | |
9409 | if (obj5) { | |
9410 | { | |
9411 | arg6 = PyList_Size(obj5); | |
9412 | arg7 = wxString_LIST_helper(obj5); | |
9413 | if (arg7 == NULL) SWIG_fail; | |
9414 | } | |
9415 | } | |
9416 | if (obj8) { | |
9417 | if ((SWIG_ConvertPtr(obj8,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9418 | if (arg10 == NULL) { | |
9419 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9420 | } | |
9421 | } | |
9422 | if (obj9) { | |
9423 | { | |
9424 | arg11 = wxString_in_helper(obj9); | |
9425 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 9426 | temp10 = True; |
d14a1e28 RD |
9427 | } |
9428 | } | |
9429 | { | |
9430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9431 | 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); | |
9432 | ||
9433 | wxPyEndAllowThreads(__tstate); | |
9434 | if (PyErr_Occurred()) SWIG_fail; | |
9435 | } | |
9436 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
9437 | { | |
9438 | if (temp3) | |
9439 | delete arg3; | |
9440 | } | |
9441 | { | |
9442 | if (arg7) delete [] arg7; | |
9443 | } | |
9444 | { | |
9445 | if (temp10) | |
9446 | delete arg11; | |
9447 | } | |
9448 | return resultobj; | |
9449 | fail: | |
9450 | { | |
9451 | if (temp3) | |
9452 | delete arg3; | |
9453 | } | |
9454 | { | |
9455 | if (arg7) delete [] arg7; | |
9456 | } | |
9457 | { | |
9458 | if (temp10) | |
9459 | delete arg11; | |
9460 | } | |
9461 | return NULL; | |
9462 | } | |
9463 | ||
9464 | ||
9465 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9466 | PyObject *resultobj; | |
9467 | wxRadioBox *result; | |
9468 | char *kwnames[] = { | |
9469 | NULL | |
9470 | }; | |
9471 | ||
9472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
9473 | { | |
9474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9475 | result = (wxRadioBox *)new wxRadioBox(); | |
9476 | ||
9477 | wxPyEndAllowThreads(__tstate); | |
9478 | if (PyErr_Occurred()) SWIG_fail; | |
9479 | } | |
9480 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
9481 | return resultobj; | |
9482 | fail: | |
9483 | return NULL; | |
9484 | } | |
9485 | ||
9486 | ||
9487 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9488 | PyObject *resultobj; | |
9489 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9490 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9491 | int arg3 ; |
d14a1e28 RD |
9492 | wxString *arg4 = 0 ; |
9493 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9494 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9495 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9496 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9497 | int arg7 = (int) 0 ; | |
9498 | wxString *arg8 = (wxString *) NULL ; | |
9499 | int arg9 = (int) 0 ; | |
9500 | long arg10 = (long) wxRA_HORIZONTAL ; | |
9501 | wxValidator const &arg11_defvalue = wxDefaultValidator ; | |
9502 | wxValidator *arg11 = (wxValidator *) &arg11_defvalue ; | |
9503 | wxString const &arg12_defvalue = wxPyRadioBoxNameStr ; | |
9504 | wxString *arg12 = (wxString *) &arg12_defvalue ; | |
9505 | bool result; | |
423f194a | 9506 | bool temp4 = False ; |
d14a1e28 RD |
9507 | wxPoint temp5 ; |
9508 | wxSize temp6 ; | |
423f194a | 9509 | bool temp11 = False ; |
d14a1e28 RD |
9510 | PyObject * obj0 = 0 ; |
9511 | PyObject * obj1 = 0 ; | |
9512 | PyObject * obj3 = 0 ; | |
9513 | PyObject * obj4 = 0 ; | |
9514 | PyObject * obj5 = 0 ; | |
9515 | PyObject * obj6 = 0 ; | |
9516 | PyObject * obj9 = 0 ; | |
9517 | PyObject * obj10 = 0 ; | |
9518 | char *kwnames[] = { | |
9519 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "point",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9520 | }; | |
9521 | ||
9522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOOilOO:RadioBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&obj6,&arg9,&arg10,&obj9,&obj10)) goto fail; | |
9523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9524 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9525 | { | |
9526 | arg4 = wxString_in_helper(obj3); | |
9527 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 9528 | temp4 = True; |
d14a1e28 RD |
9529 | } |
9530 | if (obj4) { | |
9531 | { | |
9532 | arg5 = &temp5; | |
9533 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9534 | } | |
9535 | } | |
9536 | if (obj5) { | |
9537 | { | |
9538 | arg6 = &temp6; | |
9539 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9540 | } | |
9541 | } | |
9542 | if (obj6) { | |
9543 | { | |
9544 | arg7 = PyList_Size(obj6); | |
9545 | arg8 = wxString_LIST_helper(obj6); | |
9546 | if (arg8 == NULL) SWIG_fail; | |
9547 | } | |
9548 | } | |
9549 | if (obj9) { | |
9550 | if ((SWIG_ConvertPtr(obj9,(void **) &arg11, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9551 | if (arg11 == NULL) { | |
9552 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9553 | } | |
9554 | } | |
9555 | if (obj10) { | |
9556 | { | |
9557 | arg12 = wxString_in_helper(obj10); | |
9558 | if (arg12 == NULL) SWIG_fail; | |
423f194a | 9559 | temp11 = True; |
d14a1e28 RD |
9560 | } |
9561 | } | |
9562 | { | |
9563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9564 | 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); | |
9565 | ||
9566 | wxPyEndAllowThreads(__tstate); | |
9567 | if (PyErr_Occurred()) SWIG_fail; | |
9568 | } | |
9569 | resultobj = PyInt_FromLong((long)result); | |
9570 | { | |
9571 | if (temp4) | |
9572 | delete arg4; | |
9573 | } | |
9574 | { | |
9575 | if (arg8) delete [] arg8; | |
9576 | } | |
9577 | { | |
9578 | if (temp11) | |
9579 | delete arg12; | |
9580 | } | |
9581 | return resultobj; | |
9582 | fail: | |
9583 | { | |
9584 | if (temp4) | |
9585 | delete arg4; | |
9586 | } | |
9587 | { | |
9588 | if (arg8) delete [] arg8; | |
9589 | } | |
9590 | { | |
9591 | if (temp11) | |
9592 | delete arg12; | |
9593 | } | |
9594 | return NULL; | |
9595 | } | |
9596 | ||
9597 | ||
9598 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9599 | PyObject *resultobj; | |
9600 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9601 | int arg2 ; | |
9602 | PyObject * obj0 = 0 ; | |
9603 | char *kwnames[] = { | |
9604 | (char *) "self",(char *) "n", NULL | |
9605 | }; | |
9606 | ||
9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:RadioBox_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
9608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9609 | { | |
9610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9611 | (arg1)->SetSelection(arg2); | |
9612 | ||
9613 | wxPyEndAllowThreads(__tstate); | |
9614 | if (PyErr_Occurred()) SWIG_fail; | |
9615 | } | |
9616 | Py_INCREF(Py_None); resultobj = Py_None; | |
9617 | return resultobj; | |
9618 | fail: | |
9619 | return NULL; | |
9620 | } | |
9621 | ||
9622 | ||
9623 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9624 | PyObject *resultobj; | |
9625 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9626 | int result; | |
9627 | PyObject * obj0 = 0 ; | |
9628 | char *kwnames[] = { | |
9629 | (char *) "self", NULL | |
9630 | }; | |
9631 | ||
9632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
9633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9634 | { | |
9635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9636 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
9637 | ||
9638 | wxPyEndAllowThreads(__tstate); | |
9639 | if (PyErr_Occurred()) SWIG_fail; | |
9640 | } | |
9641 | resultobj = PyInt_FromLong((long)result); | |
9642 | return resultobj; | |
9643 | fail: | |
9644 | return NULL; | |
9645 | } | |
9646 | ||
9647 | ||
9648 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9649 | PyObject *resultobj; | |
9650 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9651 | wxString result; | |
9652 | PyObject * obj0 = 0 ; | |
9653 | char *kwnames[] = { | |
9654 | (char *) "self", NULL | |
9655 | }; | |
9656 | ||
9657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
9658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9659 | { | |
9660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9661 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
9662 | ||
9663 | wxPyEndAllowThreads(__tstate); | |
9664 | if (PyErr_Occurred()) SWIG_fail; | |
9665 | } | |
9666 | { | |
9667 | #if wxUSE_UNICODE | |
9668 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9669 | #else | |
9670 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9671 | #endif | |
9672 | } | |
9673 | return resultobj; | |
9674 | fail: | |
9675 | return NULL; | |
9676 | } | |
9677 | ||
9678 | ||
9679 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9680 | PyObject *resultobj; | |
9681 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9682 | wxString *arg2 = 0 ; | |
9683 | bool result; | |
423f194a | 9684 | bool temp2 = False ; |
d14a1e28 RD |
9685 | PyObject * obj0 = 0 ; |
9686 | PyObject * obj1 = 0 ; | |
9687 | char *kwnames[] = { | |
9688 | (char *) "self",(char *) "s", NULL | |
9689 | }; | |
9690 | ||
9691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
9692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9693 | { | |
9694 | arg2 = wxString_in_helper(obj1); | |
9695 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9696 | temp2 = True; |
d14a1e28 RD |
9697 | } |
9698 | { | |
9699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9700 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
9701 | ||
9702 | wxPyEndAllowThreads(__tstate); | |
9703 | if (PyErr_Occurred()) SWIG_fail; | |
9704 | } | |
9705 | resultobj = PyInt_FromLong((long)result); | |
9706 | { | |
9707 | if (temp2) | |
9708 | delete arg2; | |
9709 | } | |
9710 | return resultobj; | |
9711 | fail: | |
9712 | { | |
9713 | if (temp2) | |
9714 | delete arg2; | |
9715 | } | |
9716 | return NULL; | |
9717 | } | |
9718 | ||
9719 | ||
9720 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9721 | PyObject *resultobj; | |
9722 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9723 | int result; | |
9724 | PyObject * obj0 = 0 ; | |
9725 | char *kwnames[] = { | |
9726 | (char *) "self", NULL | |
9727 | }; | |
9728 | ||
9729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
9730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9731 | { | |
9732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9733 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
9734 | ||
9735 | wxPyEndAllowThreads(__tstate); | |
9736 | if (PyErr_Occurred()) SWIG_fail; | |
9737 | } | |
9738 | resultobj = PyInt_FromLong((long)result); | |
9739 | return resultobj; | |
9740 | fail: | |
9741 | return NULL; | |
9742 | } | |
9743 | ||
9744 | ||
9745 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9746 | PyObject *resultobj; | |
9747 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9748 | wxString *arg2 = 0 ; | |
9749 | int result; | |
423f194a | 9750 | bool temp2 = False ; |
d14a1e28 RD |
9751 | PyObject * obj0 = 0 ; |
9752 | PyObject * obj1 = 0 ; | |
9753 | char *kwnames[] = { | |
9754 | (char *) "self",(char *) "s", NULL | |
9755 | }; | |
9756 | ||
9757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
9758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9759 | { | |
9760 | arg2 = wxString_in_helper(obj1); | |
9761 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9762 | temp2 = True; |
d14a1e28 RD |
9763 | } |
9764 | { | |
9765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9766 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
9767 | ||
9768 | wxPyEndAllowThreads(__tstate); | |
9769 | if (PyErr_Occurred()) SWIG_fail; | |
9770 | } | |
9771 | resultobj = PyInt_FromLong((long)result); | |
9772 | { | |
9773 | if (temp2) | |
9774 | delete arg2; | |
9775 | } | |
9776 | return resultobj; | |
9777 | fail: | |
9778 | { | |
9779 | if (temp2) | |
9780 | delete arg2; | |
9781 | } | |
9782 | return NULL; | |
9783 | } | |
9784 | ||
9785 | ||
9786 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9787 | PyObject *resultobj; | |
9788 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9789 | int arg2 ; | |
9790 | wxString result; | |
9791 | PyObject * obj0 = 0 ; | |
9792 | char *kwnames[] = { | |
9793 | (char *) "self",(char *) "n", NULL | |
9794 | }; | |
9795 | ||
9796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:RadioBox_GetString",kwnames,&obj0,&arg2)) goto fail; | |
9797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9798 | { | |
9799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9800 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
9801 | ||
9802 | wxPyEndAllowThreads(__tstate); | |
9803 | if (PyErr_Occurred()) SWIG_fail; | |
9804 | } | |
9805 | { | |
9806 | #if wxUSE_UNICODE | |
9807 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9808 | #else | |
9809 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9810 | #endif | |
9811 | } | |
9812 | return resultobj; | |
9813 | fail: | |
9814 | return NULL; | |
9815 | } | |
9816 | ||
9817 | ||
9818 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9819 | PyObject *resultobj; | |
9820 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9821 | int arg2 ; | |
9822 | wxString *arg3 = 0 ; | |
423f194a | 9823 | bool temp3 = False ; |
d14a1e28 RD |
9824 | PyObject * obj0 = 0 ; |
9825 | PyObject * obj2 = 0 ; | |
9826 | char *kwnames[] = { | |
9827 | (char *) "self",(char *) "n",(char *) "label", NULL | |
9828 | }; | |
9829 | ||
9830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:RadioBox_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
9831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9832 | { | |
9833 | arg3 = wxString_in_helper(obj2); | |
9834 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9835 | temp3 = True; |
d14a1e28 RD |
9836 | } |
9837 | { | |
9838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9839 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
9840 | ||
9841 | wxPyEndAllowThreads(__tstate); | |
9842 | if (PyErr_Occurred()) SWIG_fail; | |
9843 | } | |
9844 | Py_INCREF(Py_None); resultobj = Py_None; | |
9845 | { | |
9846 | if (temp3) | |
9847 | delete arg3; | |
9848 | } | |
9849 | return resultobj; | |
9850 | fail: | |
9851 | { | |
9852 | if (temp3) | |
9853 | delete arg3; | |
9854 | } | |
9855 | return NULL; | |
9856 | } | |
9857 | ||
9858 | ||
9859 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9860 | PyObject *resultobj; | |
9861 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9862 | int arg2 ; | |
423f194a | 9863 | bool arg3 = (bool) True ; |
d14a1e28 RD |
9864 | PyObject * obj0 = 0 ; |
9865 | PyObject * obj2 = 0 ; | |
9866 | char *kwnames[] = { | |
9867 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
9868 | }; | |
9869 | ||
9870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:RadioBox_EnableItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
9871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9872 | if (obj2) { | |
9873 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
9874 | if (PyErr_Occurred()) SWIG_fail; | |
9875 | } | |
9876 | { | |
9877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9878 | (arg1)->Enable(arg2,arg3); | |
9879 | ||
9880 | wxPyEndAllowThreads(__tstate); | |
9881 | if (PyErr_Occurred()) SWIG_fail; | |
9882 | } | |
9883 | Py_INCREF(Py_None); resultobj = Py_None; | |
9884 | return resultobj; | |
9885 | fail: | |
9886 | return NULL; | |
9887 | } | |
9888 | ||
9889 | ||
9890 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9891 | PyObject *resultobj; | |
9892 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9893 | int arg2 ; | |
423f194a | 9894 | bool arg3 = (bool) True ; |
d14a1e28 RD |
9895 | PyObject * obj0 = 0 ; |
9896 | PyObject * obj2 = 0 ; | |
9897 | char *kwnames[] = { | |
9898 | (char *) "self",(char *) "n",(char *) "show", NULL | |
9899 | }; | |
9900 | ||
9901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:RadioBox_ShowItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
9902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9903 | if (obj2) { | |
9904 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
9905 | if (PyErr_Occurred()) SWIG_fail; | |
9906 | } | |
9907 | { | |
9908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9909 | (arg1)->Show(arg2,arg3); | |
9910 | ||
9911 | wxPyEndAllowThreads(__tstate); | |
9912 | if (PyErr_Occurred()) SWIG_fail; | |
9913 | } | |
9914 | Py_INCREF(Py_None); resultobj = Py_None; | |
9915 | return resultobj; | |
9916 | fail: | |
9917 | return NULL; | |
9918 | } | |
9919 | ||
9920 | ||
9921 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9922 | PyObject *resultobj; | |
9923 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9924 | int result; | |
9925 | PyObject * obj0 = 0 ; | |
9926 | char *kwnames[] = { | |
9927 | (char *) "self", NULL | |
9928 | }; | |
9929 | ||
9930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
9931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9932 | { | |
9933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9934 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
9935 | ||
9936 | wxPyEndAllowThreads(__tstate); | |
9937 | if (PyErr_Occurred()) SWIG_fail; | |
9938 | } | |
9939 | resultobj = PyInt_FromLong((long)result); | |
9940 | return resultobj; | |
9941 | fail: | |
9942 | return NULL; | |
9943 | } | |
9944 | ||
9945 | ||
9946 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9947 | PyObject *resultobj; | |
9948 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9949 | int result; | |
9950 | PyObject * obj0 = 0 ; | |
9951 | char *kwnames[] = { | |
9952 | (char *) "self", NULL | |
9953 | }; | |
9954 | ||
9955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
9956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9957 | { | |
9958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9959 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
9960 | ||
9961 | wxPyEndAllowThreads(__tstate); | |
9962 | if (PyErr_Occurred()) SWIG_fail; | |
9963 | } | |
9964 | resultobj = PyInt_FromLong((long)result); | |
9965 | return resultobj; | |
9966 | fail: | |
9967 | return NULL; | |
9968 | } | |
9969 | ||
9970 | ||
9971 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9972 | PyObject *resultobj; | |
9973 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9974 | int arg2 ; | |
9975 | int arg3 ; | |
9976 | long arg4 ; | |
9977 | int result; | |
9978 | PyObject * obj0 = 0 ; | |
9979 | char *kwnames[] = { | |
9980 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
9981 | }; | |
9982 | ||
9983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiil:RadioBox_GetNextItem",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
9984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9985 | { | |
9986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9987 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
9988 | ||
9989 | wxPyEndAllowThreads(__tstate); | |
9990 | if (PyErr_Occurred()) SWIG_fail; | |
9991 | } | |
9992 | resultobj = PyInt_FromLong((long)result); | |
9993 | return resultobj; | |
9994 | fail: | |
9995 | return NULL; | |
9996 | } | |
9997 | ||
9998 | ||
9999 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
10000 | PyObject *obj; | |
10001 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10002 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
10003 | Py_INCREF(obj); | |
10004 | return Py_BuildValue((char *)""); | |
10005 | } | |
10006 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10007 | PyObject *resultobj; | |
10008 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10009 | int arg2 ; |
d14a1e28 RD |
10010 | wxString *arg3 = 0 ; |
10011 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10012 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10013 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10014 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10015 | long arg6 = (long) 0 ; | |
10016 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10017 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10018 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
10019 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10020 | wxRadioButton *result; | |
423f194a | 10021 | bool temp3 = False ; |
d14a1e28 RD |
10022 | wxPoint temp4 ; |
10023 | wxSize temp5 ; | |
423f194a | 10024 | bool temp8 = False ; |
d14a1e28 RD |
10025 | PyObject * obj0 = 0 ; |
10026 | PyObject * obj2 = 0 ; | |
10027 | PyObject * obj3 = 0 ; | |
10028 | PyObject * obj4 = 0 ; | |
10029 | PyObject * obj6 = 0 ; | |
10030 | PyObject * obj7 = 0 ; | |
10031 | char *kwnames[] = { | |
10032 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10033 | }; | |
10034 | ||
10035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_RadioButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
10036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10037 | { | |
10038 | arg3 = wxString_in_helper(obj2); | |
10039 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10040 | temp3 = True; |
d14a1e28 RD |
10041 | } |
10042 | if (obj3) { | |
10043 | { | |
10044 | arg4 = &temp4; | |
10045 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10046 | } | |
10047 | } | |
10048 | if (obj4) { | |
10049 | { | |
10050 | arg5 = &temp5; | |
10051 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10052 | } | |
10053 | } | |
10054 | if (obj6) { | |
10055 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10056 | if (arg7 == NULL) { | |
10057 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10058 | } | |
10059 | } | |
10060 | if (obj7) { | |
10061 | { | |
10062 | arg8 = wxString_in_helper(obj7); | |
10063 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 10064 | temp8 = True; |
d14a1e28 RD |
10065 | } |
10066 | } | |
10067 | { | |
10068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10069 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10070 | ||
10071 | wxPyEndAllowThreads(__tstate); | |
10072 | if (PyErr_Occurred()) SWIG_fail; | |
10073 | } | |
10074 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
10075 | { | |
10076 | if (temp3) | |
10077 | delete arg3; | |
10078 | } | |
10079 | { | |
10080 | if (temp8) | |
10081 | delete arg8; | |
10082 | } | |
10083 | return resultobj; | |
10084 | fail: | |
10085 | { | |
10086 | if (temp3) | |
10087 | delete arg3; | |
10088 | } | |
10089 | { | |
10090 | if (temp8) | |
10091 | delete arg8; | |
10092 | } | |
10093 | return NULL; | |
10094 | } | |
10095 | ||
10096 | ||
10097 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10098 | PyObject *resultobj; | |
10099 | wxRadioButton *result; | |
10100 | char *kwnames[] = { | |
10101 | NULL | |
10102 | }; | |
10103 | ||
10104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
10105 | { | |
10106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10107 | result = (wxRadioButton *)new wxRadioButton(); | |
10108 | ||
10109 | wxPyEndAllowThreads(__tstate); | |
10110 | if (PyErr_Occurred()) SWIG_fail; | |
10111 | } | |
10112 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
10113 | return resultobj; | |
10114 | fail: | |
10115 | return NULL; | |
10116 | } | |
10117 | ||
10118 | ||
10119 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10120 | PyObject *resultobj; | |
10121 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
10122 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10123 | int arg3 ; |
d14a1e28 RD |
10124 | wxString *arg4 = 0 ; |
10125 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10126 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10127 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10128 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10129 | long arg7 = (long) 0 ; | |
10130 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
10131 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
10132 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
10133 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
10134 | bool result; | |
423f194a | 10135 | bool temp4 = False ; |
d14a1e28 RD |
10136 | wxPoint temp5 ; |
10137 | wxSize temp6 ; | |
423f194a | 10138 | bool temp9 = False ; |
d14a1e28 RD |
10139 | PyObject * obj0 = 0 ; |
10140 | PyObject * obj1 = 0 ; | |
10141 | PyObject * obj3 = 0 ; | |
10142 | PyObject * obj4 = 0 ; | |
10143 | PyObject * obj5 = 0 ; | |
10144 | PyObject * obj7 = 0 ; | |
10145 | PyObject * obj8 = 0 ; | |
10146 | char *kwnames[] = { | |
10147 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10148 | }; | |
10149 | ||
10150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:RadioButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
10151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10152 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10153 | { | |
10154 | arg4 = wxString_in_helper(obj3); | |
10155 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10156 | temp4 = True; |
d14a1e28 RD |
10157 | } |
10158 | if (obj4) { | |
10159 | { | |
10160 | arg5 = &temp5; | |
10161 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10162 | } | |
10163 | } | |
10164 | if (obj5) { | |
10165 | { | |
10166 | arg6 = &temp6; | |
10167 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10168 | } | |
10169 | } | |
10170 | if (obj7) { | |
10171 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10172 | if (arg8 == NULL) { | |
10173 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10174 | } | |
10175 | } | |
10176 | if (obj8) { | |
10177 | { | |
10178 | arg9 = wxString_in_helper(obj8); | |
10179 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 10180 | temp9 = True; |
d14a1e28 RD |
10181 | } |
10182 | } | |
10183 | { | |
10184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10185 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10186 | ||
10187 | wxPyEndAllowThreads(__tstate); | |
10188 | if (PyErr_Occurred()) SWIG_fail; | |
10189 | } | |
10190 | resultobj = PyInt_FromLong((long)result); | |
10191 | { | |
10192 | if (temp4) | |
10193 | delete arg4; | |
10194 | } | |
10195 | { | |
10196 | if (temp9) | |
10197 | delete arg9; | |
10198 | } | |
10199 | return resultobj; | |
10200 | fail: | |
10201 | { | |
10202 | if (temp4) | |
10203 | delete arg4; | |
10204 | } | |
10205 | { | |
10206 | if (temp9) | |
10207 | delete arg9; | |
10208 | } | |
10209 | return NULL; | |
10210 | } | |
10211 | ||
10212 | ||
10213 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10214 | PyObject *resultobj; | |
10215 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
10216 | bool result; | |
10217 | PyObject * obj0 = 0 ; | |
10218 | char *kwnames[] = { | |
10219 | (char *) "self", NULL | |
10220 | }; | |
10221 | ||
10222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
10223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10224 | { | |
10225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10226 | result = (bool)(arg1)->GetValue(); | |
10227 | ||
10228 | wxPyEndAllowThreads(__tstate); | |
10229 | if (PyErr_Occurred()) SWIG_fail; | |
10230 | } | |
10231 | resultobj = PyInt_FromLong((long)result); | |
10232 | return resultobj; | |
10233 | fail: | |
10234 | return NULL; | |
10235 | } | |
10236 | ||
10237 | ||
10238 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10239 | PyObject *resultobj; | |
10240 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
10241 | bool arg2 ; | |
10242 | PyObject * obj0 = 0 ; | |
10243 | PyObject * obj1 = 0 ; | |
10244 | char *kwnames[] = { | |
10245 | (char *) "self",(char *) "value", NULL | |
10246 | }; | |
10247 | ||
10248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10250 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10251 | if (PyErr_Occurred()) SWIG_fail; | |
10252 | { | |
10253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10254 | (arg1)->SetValue(arg2); | |
10255 | ||
10256 | wxPyEndAllowThreads(__tstate); | |
10257 | if (PyErr_Occurred()) SWIG_fail; | |
10258 | } | |
10259 | Py_INCREF(Py_None); resultobj = Py_None; | |
10260 | return resultobj; | |
10261 | fail: | |
10262 | return NULL; | |
10263 | } | |
10264 | ||
10265 | ||
10266 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
10267 | PyObject *obj; | |
10268 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10269 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
10270 | Py_INCREF(obj); | |
10271 | return Py_BuildValue((char *)""); | |
10272 | } | |
cbd72d4f RD |
10273 | static int _wrap_SliderNameStr_set(PyObject *_val) { |
10274 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
10275 | return 1; | |
10276 | } | |
10277 | ||
10278 | ||
10279 | static PyObject *_wrap_SliderNameStr_get() { | |
10280 | PyObject *pyobj; | |
10281 | ||
10282 | { | |
10283 | #if wxUSE_UNICODE | |
10284 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
10285 | #else | |
10286 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
10287 | #endif | |
10288 | } | |
10289 | return pyobj; | |
10290 | } | |
10291 | ||
10292 | ||
d14a1e28 RD |
10293 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
10294 | PyObject *resultobj; | |
10295 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10296 | int arg2 ; |
d14a1e28 RD |
10297 | int arg3 ; |
10298 | int arg4 ; | |
10299 | int arg5 ; | |
10300 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
10301 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
10302 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
10303 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
10304 | long arg8 = (long) wxSL_HORIZONTAL ; | |
10305 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10306 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10307 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
10308 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10309 | wxSlider *result; | |
10310 | wxPoint temp6 ; | |
10311 | wxSize temp7 ; | |
423f194a | 10312 | bool temp10 = False ; |
d14a1e28 RD |
10313 | PyObject * obj0 = 0 ; |
10314 | PyObject * obj5 = 0 ; | |
10315 | PyObject * obj6 = 0 ; | |
10316 | PyObject * obj8 = 0 ; | |
10317 | PyObject * obj9 = 0 ; | |
10318 | char *kwnames[] = { | |
10319 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "point",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10320 | }; | |
10321 | ||
10322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOlOO:new_Slider",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8,&obj8,&obj9)) goto fail; | |
10323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10324 | if (obj5) { | |
10325 | { | |
10326 | arg6 = &temp6; | |
10327 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
10328 | } | |
10329 | } | |
10330 | if (obj6) { | |
10331 | { | |
10332 | arg7 = &temp7; | |
10333 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
10334 | } | |
10335 | } | |
10336 | if (obj8) { | |
10337 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10338 | if (arg9 == NULL) { | |
10339 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10340 | } | |
10341 | } | |
10342 | if (obj9) { | |
10343 | { | |
10344 | arg10 = wxString_in_helper(obj9); | |
10345 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10346 | temp10 = True; |
d14a1e28 RD |
10347 | } |
10348 | } | |
10349 | { | |
10350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10351 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
10352 | ||
10353 | wxPyEndAllowThreads(__tstate); | |
10354 | if (PyErr_Occurred()) SWIG_fail; | |
10355 | } | |
10356 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
10357 | { | |
10358 | if (temp10) | |
10359 | delete arg10; | |
10360 | } | |
10361 | return resultobj; | |
10362 | fail: | |
10363 | { | |
10364 | if (temp10) | |
10365 | delete arg10; | |
10366 | } | |
10367 | return NULL; | |
10368 | } | |
10369 | ||
10370 | ||
10371 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10372 | PyObject *resultobj; | |
10373 | wxSlider *result; | |
10374 | char *kwnames[] = { | |
10375 | NULL | |
10376 | }; | |
10377 | ||
10378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
10379 | { | |
10380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10381 | result = (wxSlider *)new wxSlider(); | |
10382 | ||
10383 | wxPyEndAllowThreads(__tstate); | |
10384 | if (PyErr_Occurred()) SWIG_fail; | |
10385 | } | |
10386 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
10387 | return resultobj; | |
10388 | fail: | |
10389 | return NULL; | |
10390 | } | |
10391 | ||
10392 | ||
10393 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10394 | PyObject *resultobj; | |
10395 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10396 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10397 | int arg3 ; |
d14a1e28 RD |
10398 | int arg4 ; |
10399 | int arg5 ; | |
10400 | int arg6 ; | |
10401 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
10402 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
10403 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
10404 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
10405 | long arg9 = (long) wxSL_HORIZONTAL ; | |
10406 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
10407 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
10408 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
10409 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10410 | bool result; | |
10411 | wxPoint temp7 ; | |
10412 | wxSize temp8 ; | |
423f194a | 10413 | bool temp11 = False ; |
d14a1e28 RD |
10414 | PyObject * obj0 = 0 ; |
10415 | PyObject * obj1 = 0 ; | |
10416 | PyObject * obj6 = 0 ; | |
10417 | PyObject * obj7 = 0 ; | |
10418 | PyObject * obj9 = 0 ; | |
10419 | PyObject * obj10 = 0 ; | |
10420 | char *kwnames[] = { | |
10421 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "point",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10422 | }; | |
10423 | ||
10424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiiii|OOlOO:Slider_Create",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6,&obj7,&arg9,&obj9,&obj10)) goto fail; | |
10425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10426 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10427 | if (obj6) { | |
10428 | { | |
10429 | arg7 = &temp7; | |
10430 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
10431 | } | |
10432 | } | |
10433 | if (obj7) { | |
10434 | { | |
10435 | arg8 = &temp8; | |
10436 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
10437 | } | |
10438 | } | |
10439 | if (obj9) { | |
10440 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10441 | if (arg10 == NULL) { | |
10442 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10443 | } | |
10444 | } | |
10445 | if (obj10) { | |
10446 | { | |
10447 | arg11 = wxString_in_helper(obj10); | |
10448 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10449 | temp11 = True; |
d14a1e28 RD |
10450 | } |
10451 | } | |
10452 | { | |
10453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10454 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
10455 | ||
10456 | wxPyEndAllowThreads(__tstate); | |
10457 | if (PyErr_Occurred()) SWIG_fail; | |
10458 | } | |
10459 | resultobj = PyInt_FromLong((long)result); | |
10460 | { | |
10461 | if (temp11) | |
10462 | delete arg11; | |
10463 | } | |
10464 | return resultobj; | |
10465 | fail: | |
10466 | { | |
10467 | if (temp11) | |
10468 | delete arg11; | |
10469 | } | |
10470 | return NULL; | |
10471 | } | |
10472 | ||
10473 | ||
10474 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10475 | PyObject *resultobj; | |
10476 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10477 | int result; | |
10478 | PyObject * obj0 = 0 ; | |
10479 | char *kwnames[] = { | |
10480 | (char *) "self", NULL | |
10481 | }; | |
10482 | ||
10483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
10484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10485 | { | |
10486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10487 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
10488 | ||
10489 | wxPyEndAllowThreads(__tstate); | |
10490 | if (PyErr_Occurred()) SWIG_fail; | |
10491 | } | |
10492 | resultobj = PyInt_FromLong((long)result); | |
10493 | return resultobj; | |
10494 | fail: | |
10495 | return NULL; | |
10496 | } | |
10497 | ||
10498 | ||
10499 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10500 | PyObject *resultobj; | |
10501 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10502 | int arg2 ; | |
10503 | PyObject * obj0 = 0 ; | |
10504 | char *kwnames[] = { | |
10505 | (char *) "self",(char *) "value", NULL | |
10506 | }; | |
10507 | ||
10508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
10509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10510 | { | |
10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10512 | (arg1)->SetValue(arg2); | |
10513 | ||
10514 | wxPyEndAllowThreads(__tstate); | |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | } | |
10517 | Py_INCREF(Py_None); resultobj = Py_None; | |
10518 | return resultobj; | |
10519 | fail: | |
10520 | return NULL; | |
10521 | } | |
10522 | ||
10523 | ||
10524 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10525 | PyObject *resultobj; | |
10526 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10527 | int arg2 ; | |
10528 | int arg3 ; | |
10529 | PyObject * obj0 = 0 ; | |
10530 | char *kwnames[] = { | |
10531 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
10532 | }; | |
10533 | ||
10534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10536 | { | |
10537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10538 | (arg1)->SetRange(arg2,arg3); | |
10539 | ||
10540 | wxPyEndAllowThreads(__tstate); | |
10541 | if (PyErr_Occurred()) SWIG_fail; | |
10542 | } | |
10543 | Py_INCREF(Py_None); resultobj = Py_None; | |
10544 | return resultobj; | |
10545 | fail: | |
10546 | return NULL; | |
10547 | } | |
10548 | ||
10549 | ||
10550 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10551 | PyObject *resultobj; | |
10552 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10553 | int result; | |
10554 | PyObject * obj0 = 0 ; | |
10555 | char *kwnames[] = { | |
10556 | (char *) "self", NULL | |
10557 | }; | |
10558 | ||
10559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
10560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10561 | { | |
10562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10563 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
10564 | ||
10565 | wxPyEndAllowThreads(__tstate); | |
10566 | if (PyErr_Occurred()) SWIG_fail; | |
10567 | } | |
10568 | resultobj = PyInt_FromLong((long)result); | |
10569 | return resultobj; | |
10570 | fail: | |
10571 | return NULL; | |
10572 | } | |
10573 | ||
10574 | ||
10575 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10576 | PyObject *resultobj; | |
10577 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10578 | int result; | |
10579 | PyObject * obj0 = 0 ; | |
10580 | char *kwnames[] = { | |
10581 | (char *) "self", NULL | |
10582 | }; | |
10583 | ||
10584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
10585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10586 | { | |
10587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10588 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
10589 | ||
10590 | wxPyEndAllowThreads(__tstate); | |
10591 | if (PyErr_Occurred()) SWIG_fail; | |
10592 | } | |
10593 | resultobj = PyInt_FromLong((long)result); | |
10594 | return resultobj; | |
10595 | fail: | |
10596 | return NULL; | |
10597 | } | |
10598 | ||
10599 | ||
10600 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10601 | PyObject *resultobj; | |
10602 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10603 | int arg2 ; | |
10604 | PyObject * obj0 = 0 ; | |
10605 | char *kwnames[] = { | |
10606 | (char *) "self",(char *) "minValue", NULL | |
10607 | }; | |
10608 | ||
10609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetMin",kwnames,&obj0,&arg2)) goto fail; | |
10610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10611 | { | |
10612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10613 | (arg1)->SetMin(arg2); | |
10614 | ||
10615 | wxPyEndAllowThreads(__tstate); | |
10616 | if (PyErr_Occurred()) SWIG_fail; | |
10617 | } | |
10618 | Py_INCREF(Py_None); resultobj = Py_None; | |
10619 | return resultobj; | |
10620 | fail: | |
10621 | return NULL; | |
10622 | } | |
10623 | ||
10624 | ||
10625 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10626 | PyObject *resultobj; | |
10627 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10628 | int arg2 ; | |
10629 | PyObject * obj0 = 0 ; | |
10630 | char *kwnames[] = { | |
10631 | (char *) "self",(char *) "maxValue", NULL | |
10632 | }; | |
10633 | ||
10634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetMax",kwnames,&obj0,&arg2)) goto fail; | |
10635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10636 | { | |
10637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10638 | (arg1)->SetMax(arg2); | |
10639 | ||
10640 | wxPyEndAllowThreads(__tstate); | |
10641 | if (PyErr_Occurred()) SWIG_fail; | |
10642 | } | |
10643 | Py_INCREF(Py_None); resultobj = Py_None; | |
10644 | return resultobj; | |
10645 | fail: | |
10646 | return NULL; | |
10647 | } | |
10648 | ||
10649 | ||
10650 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10651 | PyObject *resultobj; | |
10652 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10653 | int arg2 ; | |
10654 | PyObject * obj0 = 0 ; | |
10655 | char *kwnames[] = { | |
10656 | (char *) "self",(char *) "lineSize", NULL | |
10657 | }; | |
10658 | ||
10659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetLineSize",kwnames,&obj0,&arg2)) 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)->SetLineSize(arg2); | |
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_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10676 | PyObject *resultobj; | |
10677 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10678 | int arg2 ; | |
10679 | PyObject * obj0 = 0 ; | |
10680 | char *kwnames[] = { | |
10681 | (char *) "self",(char *) "pageSize", NULL | |
10682 | }; | |
10683 | ||
10684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetPageSize",kwnames,&obj0,&arg2)) 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 | (arg1)->SetPageSize(arg2); | |
10689 | ||
10690 | wxPyEndAllowThreads(__tstate); | |
10691 | if (PyErr_Occurred()) SWIG_fail; | |
10692 | } | |
10693 | Py_INCREF(Py_None); resultobj = Py_None; | |
10694 | return resultobj; | |
10695 | fail: | |
10696 | return NULL; | |
10697 | } | |
10698 | ||
10699 | ||
10700 | static PyObject *_wrap_Slider_GetLineSize(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_GetLineSize",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)->GetLineSize(); | |
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_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10726 | PyObject *resultobj; | |
10727 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10728 | int result; | |
10729 | PyObject * obj0 = 0 ; | |
10730 | char *kwnames[] = { | |
10731 | (char *) "self", NULL | |
10732 | }; | |
10733 | ||
10734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
10735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10736 | { | |
10737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10738 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
10739 | ||
10740 | wxPyEndAllowThreads(__tstate); | |
10741 | if (PyErr_Occurred()) SWIG_fail; | |
10742 | } | |
10743 | resultobj = PyInt_FromLong((long)result); | |
10744 | return resultobj; | |
10745 | fail: | |
10746 | return NULL; | |
10747 | } | |
10748 | ||
10749 | ||
10750 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10751 | PyObject *resultobj; | |
10752 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10753 | int arg2 ; | |
10754 | PyObject * obj0 = 0 ; | |
10755 | char *kwnames[] = { | |
10756 | (char *) "self",(char *) "lenPixels", NULL | |
10757 | }; | |
10758 | ||
10759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetThumbLength",kwnames,&obj0,&arg2)) goto fail; | |
10760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10761 | { | |
10762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10763 | (arg1)->SetThumbLength(arg2); | |
10764 | ||
10765 | wxPyEndAllowThreads(__tstate); | |
10766 | if (PyErr_Occurred()) SWIG_fail; | |
10767 | } | |
10768 | Py_INCREF(Py_None); resultobj = Py_None; | |
10769 | return resultobj; | |
10770 | fail: | |
10771 | return NULL; | |
10772 | } | |
10773 | ||
10774 | ||
10775 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10776 | PyObject *resultobj; | |
10777 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10778 | int result; | |
10779 | PyObject * obj0 = 0 ; | |
10780 | char *kwnames[] = { | |
10781 | (char *) "self", NULL | |
10782 | }; | |
10783 | ||
10784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
10785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10786 | { | |
10787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10788 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
10789 | ||
10790 | wxPyEndAllowThreads(__tstate); | |
10791 | if (PyErr_Occurred()) SWIG_fail; | |
10792 | } | |
10793 | resultobj = PyInt_FromLong((long)result); | |
10794 | return resultobj; | |
10795 | fail: | |
10796 | return NULL; | |
10797 | } | |
10798 | ||
10799 | ||
10800 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10801 | PyObject *resultobj; | |
10802 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10803 | int arg2 ; | |
10804 | int arg3 ; | |
10805 | PyObject * obj0 = 0 ; | |
10806 | char *kwnames[] = { | |
10807 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
10808 | }; | |
10809 | ||
10810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetTickFreq",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10812 | { | |
10813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10814 | (arg1)->SetTickFreq(arg2,arg3); | |
10815 | ||
10816 | wxPyEndAllowThreads(__tstate); | |
10817 | if (PyErr_Occurred()) SWIG_fail; | |
10818 | } | |
10819 | Py_INCREF(Py_None); resultobj = Py_None; | |
10820 | return resultobj; | |
10821 | fail: | |
10822 | return NULL; | |
10823 | } | |
10824 | ||
10825 | ||
10826 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10827 | PyObject *resultobj; | |
10828 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10829 | int result; | |
10830 | PyObject * obj0 = 0 ; | |
10831 | char *kwnames[] = { | |
10832 | (char *) "self", NULL | |
10833 | }; | |
10834 | ||
10835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
10836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10837 | { | |
10838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10839 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
10840 | ||
10841 | wxPyEndAllowThreads(__tstate); | |
10842 | if (PyErr_Occurred()) SWIG_fail; | |
10843 | } | |
10844 | resultobj = PyInt_FromLong((long)result); | |
10845 | return resultobj; | |
10846 | fail: | |
10847 | return NULL; | |
10848 | } | |
10849 | ||
10850 | ||
10851 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10852 | PyObject *resultobj; | |
10853 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10854 | PyObject * obj0 = 0 ; | |
10855 | char *kwnames[] = { | |
10856 | (char *) "self", NULL | |
10857 | }; | |
10858 | ||
10859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
10860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10861 | { | |
10862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10863 | (arg1)->ClearTicks(); | |
10864 | ||
10865 | wxPyEndAllowThreads(__tstate); | |
10866 | if (PyErr_Occurred()) SWIG_fail; | |
10867 | } | |
10868 | Py_INCREF(Py_None); resultobj = Py_None; | |
10869 | return resultobj; | |
10870 | fail: | |
10871 | return NULL; | |
10872 | } | |
10873 | ||
10874 | ||
10875 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10876 | PyObject *resultobj; | |
10877 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10878 | int arg2 ; | |
10879 | PyObject * obj0 = 0 ; | |
10880 | char *kwnames[] = { | |
10881 | (char *) "self",(char *) "tickPos", NULL | |
10882 | }; | |
10883 | ||
10884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetTick",kwnames,&obj0,&arg2)) goto fail; | |
10885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10886 | { | |
10887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10888 | (arg1)->SetTick(arg2); | |
10889 | ||
10890 | wxPyEndAllowThreads(__tstate); | |
10891 | if (PyErr_Occurred()) SWIG_fail; | |
10892 | } | |
10893 | Py_INCREF(Py_None); resultobj = Py_None; | |
10894 | return resultobj; | |
10895 | fail: | |
10896 | return NULL; | |
10897 | } | |
10898 | ||
10899 | ||
10900 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10901 | PyObject *resultobj; | |
10902 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10903 | PyObject * obj0 = 0 ; | |
10904 | char *kwnames[] = { | |
10905 | (char *) "self", NULL | |
10906 | }; | |
10907 | ||
10908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
10909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10910 | { | |
10911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10912 | (arg1)->ClearSel(); | |
10913 | ||
10914 | wxPyEndAllowThreads(__tstate); | |
10915 | if (PyErr_Occurred()) SWIG_fail; | |
10916 | } | |
10917 | Py_INCREF(Py_None); resultobj = Py_None; | |
10918 | return resultobj; | |
10919 | fail: | |
10920 | return NULL; | |
10921 | } | |
10922 | ||
10923 | ||
10924 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10925 | PyObject *resultobj; | |
10926 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10927 | int result; | |
10928 | PyObject * obj0 = 0 ; | |
10929 | char *kwnames[] = { | |
10930 | (char *) "self", NULL | |
10931 | }; | |
10932 | ||
10933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
10934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10935 | { | |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10937 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
10938 | ||
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
10942 | resultobj = PyInt_FromLong((long)result); | |
10943 | return resultobj; | |
10944 | fail: | |
10945 | return NULL; | |
10946 | } | |
10947 | ||
10948 | ||
10949 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10950 | PyObject *resultobj; | |
10951 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10952 | int result; | |
10953 | PyObject * obj0 = 0 ; | |
10954 | char *kwnames[] = { | |
10955 | (char *) "self", NULL | |
10956 | }; | |
10957 | ||
10958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
10959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10960 | { | |
10961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10962 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
10963 | ||
10964 | wxPyEndAllowThreads(__tstate); | |
10965 | if (PyErr_Occurred()) SWIG_fail; | |
10966 | } | |
10967 | resultobj = PyInt_FromLong((long)result); | |
10968 | return resultobj; | |
10969 | fail: | |
10970 | return NULL; | |
10971 | } | |
10972 | ||
10973 | ||
10974 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10975 | PyObject *resultobj; | |
10976 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10977 | int arg2 ; | |
10978 | int arg3 ; | |
10979 | PyObject * obj0 = 0 ; | |
10980 | char *kwnames[] = { | |
10981 | (char *) "self",(char *) "min",(char *) "max", NULL | |
10982 | }; | |
10983 | ||
10984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10986 | { | |
10987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10988 | (arg1)->SetSelection(arg2,arg3); | |
10989 | ||
10990 | wxPyEndAllowThreads(__tstate); | |
10991 | if (PyErr_Occurred()) SWIG_fail; | |
10992 | } | |
10993 | Py_INCREF(Py_None); resultobj = Py_None; | |
10994 | return resultobj; | |
10995 | fail: | |
10996 | return NULL; | |
10997 | } | |
10998 | ||
10999 | ||
11000 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
11001 | PyObject *obj; | |
11002 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11003 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
11004 | Py_INCREF(obj); | |
11005 | return Py_BuildValue((char *)""); | |
11006 | } | |
cbd72d4f RD |
11007 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { |
11008 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
11009 | return 1; | |
11010 | } | |
11011 | ||
11012 | ||
11013 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
11014 | PyObject *pyobj; | |
11015 | ||
11016 | { | |
11017 | #if wxUSE_UNICODE | |
11018 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
11019 | #else | |
11020 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
11021 | #endif | |
11022 | } | |
11023 | return pyobj; | |
11024 | } | |
11025 | ||
11026 | ||
d14a1e28 RD |
11027 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
11028 | PyObject *resultobj; | |
11029 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11030 | int arg2 ; |
d14a1e28 RD |
11031 | wxString *arg3 = 0 ; |
11032 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11033 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11034 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11035 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11036 | long arg6 = (long) 0 ; | |
11037 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11038 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11039 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
11040 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11041 | wxToggleButton *result; | |
423f194a | 11042 | bool temp3 = False ; |
d14a1e28 RD |
11043 | wxPoint temp4 ; |
11044 | wxSize temp5 ; | |
423f194a | 11045 | bool temp8 = False ; |
d14a1e28 RD |
11046 | PyObject * obj0 = 0 ; |
11047 | PyObject * obj2 = 0 ; | |
11048 | PyObject * obj3 = 0 ; | |
11049 | PyObject * obj4 = 0 ; | |
11050 | PyObject * obj6 = 0 ; | |
11051 | PyObject * obj7 = 0 ; | |
11052 | char *kwnames[] = { | |
11053 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11054 | }; | |
11055 | ||
11056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_ToggleButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
11057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11058 | { | |
11059 | arg3 = wxString_in_helper(obj2); | |
11060 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11061 | temp3 = True; |
d14a1e28 RD |
11062 | } |
11063 | if (obj3) { | |
11064 | { | |
11065 | arg4 = &temp4; | |
11066 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11067 | } | |
11068 | } | |
11069 | if (obj4) { | |
11070 | { | |
11071 | arg5 = &temp5; | |
11072 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11073 | } | |
11074 | } | |
11075 | if (obj6) { | |
11076 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11077 | if (arg7 == NULL) { | |
11078 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11079 | } | |
11080 | } | |
11081 | if (obj7) { | |
11082 | { | |
11083 | arg8 = wxString_in_helper(obj7); | |
11084 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 11085 | temp8 = True; |
d14a1e28 RD |
11086 | } |
11087 | } | |
11088 | { | |
11089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11090 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11091 | ||
11092 | wxPyEndAllowThreads(__tstate); | |
11093 | if (PyErr_Occurred()) SWIG_fail; | |
11094 | } | |
11095 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
11096 | { | |
11097 | if (temp3) | |
11098 | delete arg3; | |
11099 | } | |
11100 | { | |
11101 | if (temp8) | |
11102 | delete arg8; | |
11103 | } | |
11104 | return resultobj; | |
11105 | fail: | |
11106 | { | |
11107 | if (temp3) | |
11108 | delete arg3; | |
11109 | } | |
11110 | { | |
11111 | if (temp8) | |
11112 | delete arg8; | |
11113 | } | |
11114 | return NULL; | |
11115 | } | |
11116 | ||
11117 | ||
11118 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11119 | PyObject *resultobj; | |
11120 | wxToggleButton *result; | |
11121 | char *kwnames[] = { | |
11122 | NULL | |
11123 | }; | |
11124 | ||
11125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
11126 | { | |
11127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11128 | result = (wxToggleButton *)new wxToggleButton(); | |
11129 | ||
11130 | wxPyEndAllowThreads(__tstate); | |
11131 | if (PyErr_Occurred()) SWIG_fail; | |
11132 | } | |
11133 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
11134 | return resultobj; | |
11135 | fail: | |
11136 | return NULL; | |
11137 | } | |
11138 | ||
11139 | ||
11140 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
11141 | PyObject *obj; | |
11142 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11143 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
11144 | Py_INCREF(obj); | |
11145 | return Py_BuildValue((char *)""); | |
11146 | } | |
cbd72d4f RD |
11147 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { |
11148 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
11149 | return 1; | |
11150 | } | |
11151 | ||
11152 | ||
11153 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
11154 | PyObject *pyobj; | |
11155 | ||
11156 | { | |
11157 | #if wxUSE_UNICODE | |
11158 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
11159 | #else | |
11160 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
11161 | #endif | |
11162 | } | |
11163 | return pyobj; | |
11164 | } | |
11165 | ||
11166 | ||
d14a1e28 RD |
11167 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
11168 | PyObject *resultobj; | |
11169 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11170 | size_t result; | |
11171 | PyObject * obj0 = 0 ; | |
11172 | char *kwnames[] = { | |
11173 | (char *) "self", NULL | |
11174 | }; | |
11175 | ||
11176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
11177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11178 | { | |
11179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11180 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
11181 | ||
11182 | wxPyEndAllowThreads(__tstate); | |
11183 | if (PyErr_Occurred()) SWIG_fail; | |
11184 | } | |
11185 | resultobj = PyInt_FromLong((long)result); | |
11186 | return resultobj; | |
11187 | fail: | |
11188 | return NULL; | |
11189 | } | |
11190 | ||
11191 | ||
11192 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11193 | PyObject *resultobj; | |
11194 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11195 | size_t arg2 ; | |
11196 | wxWindow *result; | |
11197 | PyObject * obj0 = 0 ; | |
11198 | PyObject * obj1 = 0 ; | |
11199 | char *kwnames[] = { | |
11200 | (char *) "self",(char *) "n", NULL | |
11201 | }; | |
11202 | ||
11203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
11204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11205 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11206 | if (PyErr_Occurred()) SWIG_fail; | |
11207 | { | |
11208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11209 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
11210 | ||
11211 | wxPyEndAllowThreads(__tstate); | |
11212 | if (PyErr_Occurred()) SWIG_fail; | |
11213 | } | |
11214 | { | |
11215 | resultobj = wxPyMake_wxObject(result); | |
11216 | } | |
11217 | return resultobj; | |
11218 | fail: | |
11219 | return NULL; | |
11220 | } | |
11221 | ||
11222 | ||
11223 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11224 | PyObject *resultobj; | |
11225 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11226 | int result; | |
11227 | PyObject * obj0 = 0 ; | |
11228 | char *kwnames[] = { | |
11229 | (char *) "self", NULL | |
11230 | }; | |
11231 | ||
11232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
11233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11234 | { | |
11235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11236 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
11237 | ||
11238 | wxPyEndAllowThreads(__tstate); | |
11239 | if (PyErr_Occurred()) SWIG_fail; | |
11240 | } | |
11241 | resultobj = PyInt_FromLong((long)result); | |
11242 | return resultobj; | |
11243 | fail: | |
11244 | return NULL; | |
11245 | } | |
11246 | ||
11247 | ||
11248 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11249 | PyObject *resultobj; | |
11250 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11251 | size_t arg2 ; | |
11252 | wxString *arg3 = 0 ; | |
11253 | bool result; | |
423f194a | 11254 | bool temp3 = False ; |
d14a1e28 RD |
11255 | PyObject * obj0 = 0 ; |
11256 | PyObject * obj1 = 0 ; | |
11257 | PyObject * obj2 = 0 ; | |
11258 | char *kwnames[] = { | |
11259 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
11260 | }; | |
11261 | ||
11262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11264 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11265 | if (PyErr_Occurred()) SWIG_fail; | |
11266 | { | |
11267 | arg3 = wxString_in_helper(obj2); | |
11268 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11269 | temp3 = True; |
d14a1e28 RD |
11270 | } |
11271 | { | |
11272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11273 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
11274 | ||
11275 | wxPyEndAllowThreads(__tstate); | |
11276 | if (PyErr_Occurred()) SWIG_fail; | |
11277 | } | |
11278 | resultobj = PyInt_FromLong((long)result); | |
11279 | { | |
11280 | if (temp3) | |
11281 | delete arg3; | |
11282 | } | |
11283 | return resultobj; | |
11284 | fail: | |
11285 | { | |
11286 | if (temp3) | |
11287 | delete arg3; | |
11288 | } | |
11289 | return NULL; | |
11290 | } | |
11291 | ||
11292 | ||
11293 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11294 | PyObject *resultobj; | |
11295 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11296 | size_t arg2 ; | |
11297 | wxString result; | |
11298 | PyObject * obj0 = 0 ; | |
11299 | PyObject * obj1 = 0 ; | |
11300 | char *kwnames[] = { | |
11301 | (char *) "self",(char *) "n", NULL | |
11302 | }; | |
11303 | ||
11304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
11305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11306 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11307 | if (PyErr_Occurred()) SWIG_fail; | |
11308 | { | |
11309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11310 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
11311 | ||
11312 | wxPyEndAllowThreads(__tstate); | |
11313 | if (PyErr_Occurred()) SWIG_fail; | |
11314 | } | |
11315 | { | |
11316 | #if wxUSE_UNICODE | |
11317 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11318 | #else | |
11319 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11320 | #endif | |
11321 | } | |
11322 | return resultobj; | |
11323 | fail: | |
11324 | return NULL; | |
11325 | } | |
11326 | ||
11327 | ||
11328 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11329 | PyObject *resultobj; | |
11330 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11331 | wxImageList *arg2 = (wxImageList *) 0 ; | |
11332 | PyObject * obj0 = 0 ; | |
11333 | PyObject * obj1 = 0 ; | |
11334 | char *kwnames[] = { | |
11335 | (char *) "self",(char *) "imageList", NULL | |
11336 | }; | |
11337 | ||
11338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
11339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11340 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11341 | { | |
11342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11343 | (arg1)->SetImageList(arg2); | |
11344 | ||
11345 | wxPyEndAllowThreads(__tstate); | |
11346 | if (PyErr_Occurred()) SWIG_fail; | |
11347 | } | |
11348 | Py_INCREF(Py_None); resultobj = Py_None; | |
11349 | return resultobj; | |
11350 | fail: | |
11351 | return NULL; | |
11352 | } | |
11353 | ||
11354 | ||
11355 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11356 | PyObject *resultobj; | |
11357 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11358 | wxImageList *arg2 = (wxImageList *) 0 ; | |
11359 | PyObject * obj0 = 0 ; | |
11360 | PyObject * obj1 = 0 ; | |
11361 | char *kwnames[] = { | |
11362 | (char *) "self",(char *) "imageList", NULL | |
11363 | }; | |
11364 | ||
11365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
11366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11367 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11368 | { | |
11369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11370 | (arg1)->AssignImageList(arg2); | |
11371 | ||
11372 | wxPyEndAllowThreads(__tstate); | |
11373 | if (PyErr_Occurred()) SWIG_fail; | |
11374 | } | |
11375 | Py_INCREF(Py_None); resultobj = Py_None; | |
11376 | return resultobj; | |
11377 | fail: | |
11378 | return NULL; | |
11379 | } | |
11380 | ||
11381 | ||
11382 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11383 | PyObject *resultobj; | |
11384 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11385 | wxImageList *result; | |
11386 | PyObject * obj0 = 0 ; | |
11387 | char *kwnames[] = { | |
11388 | (char *) "self", NULL | |
11389 | }; | |
11390 | ||
11391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
11392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11393 | { | |
11394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11395 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
11396 | ||
11397 | wxPyEndAllowThreads(__tstate); | |
11398 | if (PyErr_Occurred()) SWIG_fail; | |
11399 | } | |
11400 | { | |
11401 | resultobj = wxPyMake_wxObject(result); | |
11402 | } | |
11403 | return resultobj; | |
11404 | fail: | |
11405 | return NULL; | |
11406 | } | |
11407 | ||
11408 | ||
11409 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11410 | PyObject *resultobj; | |
11411 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11412 | size_t arg2 ; | |
11413 | int result; | |
11414 | PyObject * obj0 = 0 ; | |
11415 | PyObject * obj1 = 0 ; | |
11416 | char *kwnames[] = { | |
11417 | (char *) "self",(char *) "n", NULL | |
11418 | }; | |
11419 | ||
11420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
11421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11422 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11423 | if (PyErr_Occurred()) SWIG_fail; | |
11424 | { | |
11425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11426 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
11427 | ||
11428 | wxPyEndAllowThreads(__tstate); | |
11429 | if (PyErr_Occurred()) SWIG_fail; | |
11430 | } | |
11431 | resultobj = PyInt_FromLong((long)result); | |
11432 | return resultobj; | |
11433 | fail: | |
11434 | return NULL; | |
11435 | } | |
11436 | ||
11437 | ||
11438 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11439 | PyObject *resultobj; | |
11440 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11441 | size_t arg2 ; | |
11442 | int arg3 ; | |
11443 | bool result; | |
11444 | PyObject * obj0 = 0 ; | |
11445 | PyObject * obj1 = 0 ; | |
11446 | char *kwnames[] = { | |
11447 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
11448 | }; | |
11449 | ||
11450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
11451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11452 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11453 | if (PyErr_Occurred()) SWIG_fail; | |
11454 | { | |
11455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11456 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
11457 | ||
11458 | wxPyEndAllowThreads(__tstate); | |
11459 | if (PyErr_Occurred()) SWIG_fail; | |
11460 | } | |
11461 | resultobj = PyInt_FromLong((long)result); | |
11462 | return resultobj; | |
11463 | fail: | |
11464 | return NULL; | |
11465 | } | |
11466 | ||
11467 | ||
11468 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11469 | PyObject *resultobj; | |
11470 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11471 | wxSize *arg2 = 0 ; | |
11472 | wxSize temp2 ; | |
11473 | PyObject * obj0 = 0 ; | |
11474 | PyObject * obj1 = 0 ; | |
11475 | char *kwnames[] = { | |
11476 | (char *) "self",(char *) "size", NULL | |
11477 | }; | |
11478 | ||
11479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
11480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11481 | { | |
11482 | arg2 = &temp2; | |
11483 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11484 | } | |
11485 | { | |
11486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11487 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
11488 | ||
11489 | wxPyEndAllowThreads(__tstate); | |
11490 | if (PyErr_Occurred()) SWIG_fail; | |
11491 | } | |
11492 | Py_INCREF(Py_None); resultobj = Py_None; | |
11493 | return resultobj; | |
11494 | fail: | |
11495 | return NULL; | |
11496 | } | |
11497 | ||
11498 | ||
11499 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11500 | PyObject *resultobj; | |
11501 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11502 | wxSize *arg2 = 0 ; | |
11503 | wxSize result; | |
11504 | wxSize temp2 ; | |
11505 | PyObject * obj0 = 0 ; | |
11506 | PyObject * obj1 = 0 ; | |
11507 | char *kwnames[] = { | |
11508 | (char *) "self",(char *) "sizePage", NULL | |
11509 | }; | |
11510 | ||
11511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
11512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11513 | { | |
11514 | arg2 = &temp2; | |
11515 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11516 | } | |
11517 | { | |
11518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11519 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
11520 | ||
11521 | wxPyEndAllowThreads(__tstate); | |
11522 | if (PyErr_Occurred()) SWIG_fail; | |
11523 | } | |
11524 | { | |
11525 | wxSize * resultptr; | |
11526 | resultptr = new wxSize((wxSize &) result); | |
11527 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11528 | } | |
11529 | return resultobj; | |
11530 | fail: | |
11531 | return NULL; | |
11532 | } | |
11533 | ||
11534 | ||
11535 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11536 | PyObject *resultobj; | |
11537 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11538 | size_t arg2 ; | |
11539 | bool result; | |
11540 | PyObject * obj0 = 0 ; | |
11541 | PyObject * obj1 = 0 ; | |
11542 | char *kwnames[] = { | |
11543 | (char *) "self",(char *) "n", NULL | |
11544 | }; | |
11545 | ||
11546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
11547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11548 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11549 | if (PyErr_Occurred()) SWIG_fail; | |
11550 | { | |
11551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11552 | result = (bool)(arg1)->DeletePage(arg2); | |
11553 | ||
11554 | wxPyEndAllowThreads(__tstate); | |
11555 | if (PyErr_Occurred()) SWIG_fail; | |
11556 | } | |
11557 | resultobj = PyInt_FromLong((long)result); | |
11558 | return resultobj; | |
11559 | fail: | |
11560 | return NULL; | |
11561 | } | |
11562 | ||
11563 | ||
11564 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11565 | PyObject *resultobj; | |
11566 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11567 | size_t arg2 ; | |
11568 | bool result; | |
11569 | PyObject * obj0 = 0 ; | |
11570 | PyObject * obj1 = 0 ; | |
11571 | char *kwnames[] = { | |
11572 | (char *) "self",(char *) "n", NULL | |
11573 | }; | |
11574 | ||
11575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
11576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11577 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11578 | if (PyErr_Occurred()) SWIG_fail; | |
11579 | { | |
11580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11581 | result = (bool)(arg1)->RemovePage(arg2); | |
11582 | ||
11583 | wxPyEndAllowThreads(__tstate); | |
11584 | if (PyErr_Occurred()) SWIG_fail; | |
11585 | } | |
11586 | resultobj = PyInt_FromLong((long)result); | |
11587 | return resultobj; | |
11588 | fail: | |
11589 | return NULL; | |
11590 | } | |
11591 | ||
11592 | ||
11593 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11594 | PyObject *resultobj; | |
11595 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11596 | bool result; | |
11597 | PyObject * obj0 = 0 ; | |
11598 | char *kwnames[] = { | |
11599 | (char *) "self", NULL | |
11600 | }; | |
11601 | ||
11602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
11603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11604 | { | |
11605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11606 | result = (bool)(arg1)->DeleteAllPages(); | |
11607 | ||
11608 | wxPyEndAllowThreads(__tstate); | |
11609 | if (PyErr_Occurred()) SWIG_fail; | |
11610 | } | |
11611 | resultobj = PyInt_FromLong((long)result); | |
11612 | return resultobj; | |
11613 | fail: | |
11614 | return NULL; | |
11615 | } | |
11616 | ||
11617 | ||
11618 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11619 | PyObject *resultobj; | |
11620 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11621 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11622 | wxString *arg3 = 0 ; | |
423f194a | 11623 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11624 | int arg5 = (int) -1 ; |
11625 | bool result; | |
423f194a | 11626 | bool temp3 = False ; |
d14a1e28 RD |
11627 | PyObject * obj0 = 0 ; |
11628 | PyObject * obj1 = 0 ; | |
11629 | PyObject * obj2 = 0 ; | |
11630 | PyObject * obj3 = 0 ; | |
11631 | char *kwnames[] = { | |
11632 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
11633 | }; | |
11634 | ||
11635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|Oi:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
11636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11637 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11638 | { | |
11639 | arg3 = wxString_in_helper(obj2); | |
11640 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11641 | temp3 = True; |
d14a1e28 RD |
11642 | } |
11643 | if (obj3) { | |
11644 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
11645 | if (PyErr_Occurred()) SWIG_fail; | |
11646 | } | |
11647 | { | |
11648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11649 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
11650 | ||
11651 | wxPyEndAllowThreads(__tstate); | |
11652 | if (PyErr_Occurred()) SWIG_fail; | |
11653 | } | |
11654 | resultobj = PyInt_FromLong((long)result); | |
11655 | { | |
11656 | if (temp3) | |
11657 | delete arg3; | |
11658 | } | |
11659 | return resultobj; | |
11660 | fail: | |
11661 | { | |
11662 | if (temp3) | |
11663 | delete arg3; | |
11664 | } | |
11665 | return NULL; | |
11666 | } | |
11667 | ||
11668 | ||
11669 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11670 | PyObject *resultobj; | |
11671 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11672 | size_t arg2 ; | |
11673 | wxWindow *arg3 = (wxWindow *) 0 ; | |
11674 | wxString *arg4 = 0 ; | |
423f194a | 11675 | bool arg5 = (bool) False ; |
d14a1e28 RD |
11676 | int arg6 = (int) -1 ; |
11677 | bool result; | |
423f194a | 11678 | bool temp4 = False ; |
d14a1e28 RD |
11679 | PyObject * obj0 = 0 ; |
11680 | PyObject * obj1 = 0 ; | |
11681 | PyObject * obj2 = 0 ; | |
11682 | PyObject * obj3 = 0 ; | |
11683 | PyObject * obj4 = 0 ; | |
11684 | char *kwnames[] = { | |
11685 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
11686 | }; | |
11687 | ||
11688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|Oi:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6)) goto fail; | |
11689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11690 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11691 | if (PyErr_Occurred()) SWIG_fail; | |
11692 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11693 | { | |
11694 | arg4 = wxString_in_helper(obj3); | |
11695 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11696 | temp4 = True; |
d14a1e28 RD |
11697 | } |
11698 | if (obj4) { | |
11699 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
11700 | if (PyErr_Occurred()) SWIG_fail; | |
11701 | } | |
11702 | { | |
11703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11704 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
11705 | ||
11706 | wxPyEndAllowThreads(__tstate); | |
11707 | if (PyErr_Occurred()) SWIG_fail; | |
11708 | } | |
11709 | resultobj = PyInt_FromLong((long)result); | |
11710 | { | |
11711 | if (temp4) | |
11712 | delete arg4; | |
11713 | } | |
11714 | return resultobj; | |
11715 | fail: | |
11716 | { | |
11717 | if (temp4) | |
11718 | delete arg4; | |
11719 | } | |
11720 | return NULL; | |
11721 | } | |
11722 | ||
11723 | ||
11724 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11725 | PyObject *resultobj; | |
11726 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11727 | size_t arg2 ; | |
11728 | int result; | |
11729 | PyObject * obj0 = 0 ; | |
11730 | PyObject * obj1 = 0 ; | |
11731 | char *kwnames[] = { | |
11732 | (char *) "self",(char *) "n", NULL | |
11733 | }; | |
11734 | ||
11735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
11736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11737 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11738 | if (PyErr_Occurred()) SWIG_fail; | |
11739 | { | |
11740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11741 | result = (int)(arg1)->SetSelection(arg2); | |
11742 | ||
11743 | wxPyEndAllowThreads(__tstate); | |
11744 | if (PyErr_Occurred()) SWIG_fail; | |
11745 | } | |
11746 | resultobj = PyInt_FromLong((long)result); | |
11747 | return resultobj; | |
11748 | fail: | |
11749 | return NULL; | |
11750 | } | |
11751 | ||
11752 | ||
11753 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11754 | PyObject *resultobj; | |
11755 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
423f194a | 11756 | bool arg2 = (bool) True ; |
d14a1e28 RD |
11757 | PyObject * obj0 = 0 ; |
11758 | PyObject * obj1 = 0 ; | |
11759 | char *kwnames[] = { | |
11760 | (char *) "self",(char *) "forward", NULL | |
11761 | }; | |
11762 | ||
11763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
11764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11765 | if (obj1) { | |
11766 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
11767 | if (PyErr_Occurred()) SWIG_fail; | |
11768 | } | |
11769 | { | |
11770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11771 | (arg1)->AdvanceSelection(arg2); | |
11772 | ||
11773 | wxPyEndAllowThreads(__tstate); | |
11774 | if (PyErr_Occurred()) SWIG_fail; | |
11775 | } | |
11776 | Py_INCREF(Py_None); resultobj = Py_None; | |
11777 | return resultobj; | |
11778 | fail: | |
11779 | return NULL; | |
11780 | } | |
11781 | ||
11782 | ||
11783 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
11784 | PyObject *obj; | |
11785 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11786 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
11787 | Py_INCREF(obj); | |
11788 | return Py_BuildValue((char *)""); | |
11789 | } | |
11790 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11791 | PyObject *resultobj; | |
11792 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11793 | int arg2 = (int) 0 ; | |
11794 | int arg3 = (int) -1 ; | |
11795 | int arg4 = (int) -1 ; | |
11796 | wxBookCtrlEvent *result; | |
11797 | char *kwnames[] = { | |
11798 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
11799 | }; | |
11800 | ||
11801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_BookCtrlEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
11802 | { | |
11803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11804 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
11805 | ||
11806 | wxPyEndAllowThreads(__tstate); | |
11807 | if (PyErr_Occurred()) SWIG_fail; | |
11808 | } | |
11809 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
11810 | return resultobj; | |
11811 | fail: | |
11812 | return NULL; | |
11813 | } | |
11814 | ||
11815 | ||
11816 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11817 | PyObject *resultobj; | |
11818 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11819 | int result; | |
11820 | PyObject * obj0 = 0 ; | |
11821 | char *kwnames[] = { | |
11822 | (char *) "self", NULL | |
11823 | }; | |
11824 | ||
11825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
11826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11827 | { | |
11828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11829 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
11830 | ||
11831 | wxPyEndAllowThreads(__tstate); | |
11832 | if (PyErr_Occurred()) SWIG_fail; | |
11833 | } | |
11834 | resultobj = PyInt_FromLong((long)result); | |
11835 | return resultobj; | |
11836 | fail: | |
11837 | return NULL; | |
11838 | } | |
11839 | ||
11840 | ||
11841 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11842 | PyObject *resultobj; | |
11843 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11844 | int arg2 ; | |
11845 | PyObject * obj0 = 0 ; | |
11846 | char *kwnames[] = { | |
11847 | (char *) "self",(char *) "nSel", NULL | |
11848 | }; | |
11849 | ||
11850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BookCtrlEvent_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
11851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11852 | { | |
11853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11854 | (arg1)->SetSelection(arg2); | |
11855 | ||
11856 | wxPyEndAllowThreads(__tstate); | |
11857 | if (PyErr_Occurred()) SWIG_fail; | |
11858 | } | |
11859 | Py_INCREF(Py_None); resultobj = Py_None; | |
11860 | return resultobj; | |
11861 | fail: | |
11862 | return NULL; | |
11863 | } | |
11864 | ||
11865 | ||
11866 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11867 | PyObject *resultobj; | |
11868 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11869 | int result; | |
11870 | PyObject * obj0 = 0 ; | |
11871 | char *kwnames[] = { | |
11872 | (char *) "self", NULL | |
11873 | }; | |
11874 | ||
11875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
11876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11877 | { | |
11878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11879 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
11880 | ||
11881 | wxPyEndAllowThreads(__tstate); | |
11882 | if (PyErr_Occurred()) SWIG_fail; | |
11883 | } | |
11884 | resultobj = PyInt_FromLong((long)result); | |
11885 | return resultobj; | |
11886 | fail: | |
11887 | return NULL; | |
11888 | } | |
11889 | ||
11890 | ||
11891 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11892 | PyObject *resultobj; | |
11893 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11894 | int arg2 ; | |
11895 | PyObject * obj0 = 0 ; | |
11896 | char *kwnames[] = { | |
11897 | (char *) "self",(char *) "nOldSel", NULL | |
11898 | }; | |
11899 | ||
11900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&arg2)) goto fail; | |
11901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11902 | { | |
11903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11904 | (arg1)->SetOldSelection(arg2); | |
11905 | ||
11906 | wxPyEndAllowThreads(__tstate); | |
11907 | if (PyErr_Occurred()) SWIG_fail; | |
11908 | } | |
11909 | Py_INCREF(Py_None); resultobj = Py_None; | |
11910 | return resultobj; | |
11911 | fail: | |
11912 | return NULL; | |
11913 | } | |
11914 | ||
11915 | ||
11916 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
11917 | PyObject *obj; | |
11918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11919 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
11920 | Py_INCREF(obj); | |
11921 | return Py_BuildValue((char *)""); | |
11922 | } | |
11923 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11924 | PyObject *resultobj; | |
11925 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11926 | int arg2 ; |
d14a1e28 RD |
11927 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
11928 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
11929 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
11930 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
11931 | long arg5 = (long) 0 ; | |
11932 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
11933 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
11934 | wxNotebook *result; | |
11935 | wxPoint temp3 ; | |
11936 | wxSize temp4 ; | |
423f194a | 11937 | bool temp6 = False ; |
d14a1e28 RD |
11938 | PyObject * obj0 = 0 ; |
11939 | PyObject * obj2 = 0 ; | |
11940 | PyObject * obj3 = 0 ; | |
11941 | PyObject * obj5 = 0 ; | |
11942 | char *kwnames[] = { | |
11943 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
11944 | }; | |
11945 | ||
11946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Notebook",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
11947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11948 | if (obj2) { | |
11949 | { | |
11950 | arg3 = &temp3; | |
11951 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11952 | } | |
11953 | } | |
11954 | if (obj3) { | |
11955 | { | |
11956 | arg4 = &temp4; | |
11957 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
11958 | } | |
11959 | } | |
11960 | if (obj5) { | |
11961 | { | |
11962 | arg6 = wxString_in_helper(obj5); | |
11963 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 11964 | temp6 = True; |
d14a1e28 RD |
11965 | } |
11966 | } | |
11967 | { | |
11968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11969 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
11970 | ||
11971 | wxPyEndAllowThreads(__tstate); | |
11972 | if (PyErr_Occurred()) SWIG_fail; | |
11973 | } | |
11974 | { | |
11975 | resultobj = wxPyMake_wxObject(result); | |
11976 | } | |
11977 | { | |
11978 | if (temp6) | |
11979 | delete arg6; | |
11980 | } | |
11981 | return resultobj; | |
11982 | fail: | |
11983 | { | |
11984 | if (temp6) | |
11985 | delete arg6; | |
11986 | } | |
11987 | return NULL; | |
11988 | } | |
11989 | ||
11990 | ||
11991 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11992 | PyObject *resultobj; | |
11993 | wxNotebook *result; | |
11994 | char *kwnames[] = { | |
11995 | NULL | |
11996 | }; | |
11997 | ||
11998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
11999 | { | |
12000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12001 | result = (wxNotebook *)new wxNotebook(); | |
12002 | ||
12003 | wxPyEndAllowThreads(__tstate); | |
12004 | if (PyErr_Occurred()) SWIG_fail; | |
12005 | } | |
12006 | { | |
12007 | resultobj = wxPyMake_wxObject(result); | |
12008 | } | |
12009 | return resultobj; | |
12010 | fail: | |
12011 | return NULL; | |
12012 | } | |
12013 | ||
12014 | ||
12015 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12016 | PyObject *resultobj; | |
12017 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12018 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 12019 | int arg3 ; |
d14a1e28 RD |
12020 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12021 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12022 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12023 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12024 | long arg6 = (long) 0 ; | |
12025 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
12026 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12027 | bool result; | |
12028 | wxPoint temp4 ; | |
12029 | wxSize temp5 ; | |
423f194a | 12030 | bool temp7 = False ; |
d14a1e28 RD |
12031 | PyObject * obj0 = 0 ; |
12032 | PyObject * obj1 = 0 ; | |
12033 | PyObject * obj3 = 0 ; | |
12034 | PyObject * obj4 = 0 ; | |
12035 | PyObject * obj6 = 0 ; | |
12036 | char *kwnames[] = { | |
12037 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12038 | }; | |
12039 | ||
12040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Notebook_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
12041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12042 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12043 | if (obj3) { | |
12044 | { | |
12045 | arg4 = &temp4; | |
12046 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12047 | } | |
12048 | } | |
12049 | if (obj4) { | |
12050 | { | |
12051 | arg5 = &temp5; | |
12052 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12053 | } | |
12054 | } | |
12055 | if (obj6) { | |
12056 | { | |
12057 | arg7 = wxString_in_helper(obj6); | |
12058 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 12059 | temp7 = True; |
d14a1e28 RD |
12060 | } |
12061 | } | |
12062 | { | |
12063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12064 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12065 | ||
12066 | wxPyEndAllowThreads(__tstate); | |
12067 | if (PyErr_Occurred()) SWIG_fail; | |
12068 | } | |
12069 | resultobj = PyInt_FromLong((long)result); | |
12070 | { | |
12071 | if (temp7) | |
12072 | delete arg7; | |
12073 | } | |
12074 | return resultobj; | |
12075 | fail: | |
12076 | { | |
12077 | if (temp7) | |
12078 | delete arg7; | |
12079 | } | |
12080 | return NULL; | |
12081 | } | |
12082 | ||
12083 | ||
12084 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12085 | PyObject *resultobj; | |
12086 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12087 | int result; | |
12088 | PyObject * obj0 = 0 ; | |
12089 | char *kwnames[] = { | |
12090 | (char *) "self", NULL | |
12091 | }; | |
12092 | ||
12093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
12094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12095 | { | |
12096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12097 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
12098 | ||
12099 | wxPyEndAllowThreads(__tstate); | |
12100 | if (PyErr_Occurred()) SWIG_fail; | |
12101 | } | |
12102 | resultobj = PyInt_FromLong((long)result); | |
12103 | return resultobj; | |
12104 | fail: | |
12105 | return NULL; | |
12106 | } | |
12107 | ||
12108 | ||
12109 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12110 | PyObject *resultobj; | |
12111 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12112 | wxSize *arg2 = 0 ; | |
12113 | wxSize temp2 ; | |
12114 | PyObject * obj0 = 0 ; | |
12115 | PyObject * obj1 = 0 ; | |
12116 | char *kwnames[] = { | |
12117 | (char *) "self",(char *) "padding", NULL | |
12118 | }; | |
12119 | ||
12120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",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 | (arg1)->SetPadding((wxSize const &)*arg2); | |
12129 | ||
12130 | wxPyEndAllowThreads(__tstate); | |
12131 | if (PyErr_Occurred()) SWIG_fail; | |
12132 | } | |
12133 | Py_INCREF(Py_None); resultobj = Py_None; | |
12134 | return resultobj; | |
12135 | fail: | |
12136 | return NULL; | |
12137 | } | |
12138 | ||
12139 | ||
12140 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12141 | PyObject *resultobj; | |
12142 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12143 | wxSize *arg2 = 0 ; | |
12144 | wxSize temp2 ; | |
12145 | PyObject * obj0 = 0 ; | |
12146 | PyObject * obj1 = 0 ; | |
12147 | char *kwnames[] = { | |
12148 | (char *) "self",(char *) "sz", NULL | |
12149 | }; | |
12150 | ||
12151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
12152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12153 | { | |
12154 | arg2 = &temp2; | |
12155 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12156 | } | |
12157 | { | |
12158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12159 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
12160 | ||
12161 | wxPyEndAllowThreads(__tstate); | |
12162 | if (PyErr_Occurred()) SWIG_fail; | |
12163 | } | |
12164 | Py_INCREF(Py_None); resultobj = Py_None; | |
12165 | return resultobj; | |
12166 | fail: | |
12167 | return NULL; | |
12168 | } | |
12169 | ||
12170 | ||
12171 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12172 | PyObject *resultobj; | |
12173 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12174 | wxPoint *arg2 = 0 ; | |
12175 | long *arg3 = (long *) 0 ; | |
12176 | int result; | |
12177 | wxPoint temp2 ; | |
12178 | long temp3 ; | |
12179 | PyObject * obj0 = 0 ; | |
12180 | PyObject * obj1 = 0 ; | |
12181 | char *kwnames[] = { | |
12182 | (char *) "self",(char *) "pt", NULL | |
12183 | }; | |
12184 | ||
12185 | arg3 = &temp3; | |
12186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
12187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12188 | { | |
12189 | arg2 = &temp2; | |
12190 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12191 | } | |
12192 | { | |
12193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12194 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
12195 | ||
12196 | wxPyEndAllowThreads(__tstate); | |
12197 | if (PyErr_Occurred()) SWIG_fail; | |
12198 | } | |
12199 | resultobj = PyInt_FromLong((long)result); | |
12200 | { | |
12201 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12202 | resultobj = t_output_helper(resultobj,o); | |
12203 | } | |
12204 | return resultobj; | |
12205 | fail: | |
12206 | return NULL; | |
12207 | } | |
12208 | ||
12209 | ||
12210 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12211 | PyObject *resultobj; | |
12212 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12213 | wxSize *arg2 = 0 ; | |
12214 | wxSize result; | |
12215 | wxSize temp2 ; | |
12216 | PyObject * obj0 = 0 ; | |
12217 | PyObject * obj1 = 0 ; | |
12218 | char *kwnames[] = { | |
12219 | (char *) "self",(char *) "sizePage", NULL | |
12220 | }; | |
12221 | ||
12222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
12223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12224 | { | |
12225 | arg2 = &temp2; | |
12226 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12227 | } | |
12228 | { | |
12229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12230 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
12231 | ||
12232 | wxPyEndAllowThreads(__tstate); | |
12233 | if (PyErr_Occurred()) SWIG_fail; | |
12234 | } | |
12235 | { | |
12236 | wxSize * resultptr; | |
12237 | resultptr = new wxSize((wxSize &) result); | |
12238 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12239 | } | |
12240 | return resultobj; | |
12241 | fail: | |
12242 | return NULL; | |
12243 | } | |
12244 | ||
12245 | ||
12246 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
12247 | PyObject *obj; | |
12248 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12249 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
12250 | Py_INCREF(obj); | |
12251 | return Py_BuildValue((char *)""); | |
12252 | } | |
12253 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12254 | PyObject *resultobj; | |
12255 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12256 | int arg2 = (int) 0 ; | |
12257 | int arg3 = (int) -1 ; | |
12258 | int arg4 = (int) -1 ; | |
12259 | wxNotebookEvent *result; | |
12260 | char *kwnames[] = { | |
12261 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
12262 | }; | |
12263 | ||
12264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_NotebookEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
12265 | { | |
12266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12267 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
12268 | ||
12269 | wxPyEndAllowThreads(__tstate); | |
12270 | if (PyErr_Occurred()) SWIG_fail; | |
12271 | } | |
12272 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
12273 | return resultobj; | |
12274 | fail: | |
12275 | return NULL; | |
12276 | } | |
12277 | ||
12278 | ||
12279 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
12280 | PyObject *obj; | |
12281 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12282 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
12283 | Py_INCREF(obj); | |
12284 | return Py_BuildValue((char *)""); | |
12285 | } | |
12286 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12287 | PyObject *resultobj; | |
12288 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12289 | int arg2 ; |
d14a1e28 RD |
12290 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12291 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12292 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12293 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12294 | long arg5 = (long) 0 ; | |
12295 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
12296 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12297 | wxListbook *result; | |
12298 | wxPoint temp3 ; | |
12299 | wxSize temp4 ; | |
423f194a | 12300 | bool temp6 = False ; |
d14a1e28 RD |
12301 | PyObject * obj0 = 0 ; |
12302 | PyObject * obj2 = 0 ; | |
12303 | PyObject * obj3 = 0 ; | |
12304 | PyObject * obj5 = 0 ; | |
12305 | char *kwnames[] = { | |
12306 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12307 | }; | |
12308 | ||
12309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Listbook",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
12310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12311 | if (obj2) { | |
12312 | { | |
12313 | arg3 = &temp3; | |
12314 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12315 | } | |
12316 | } | |
12317 | if (obj3) { | |
12318 | { | |
12319 | arg4 = &temp4; | |
12320 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12321 | } | |
12322 | } | |
12323 | if (obj5) { | |
12324 | { | |
12325 | arg6 = wxString_in_helper(obj5); | |
12326 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 12327 | temp6 = True; |
d14a1e28 RD |
12328 | } |
12329 | } | |
12330 | { | |
12331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12332 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12333 | ||
12334 | wxPyEndAllowThreads(__tstate); | |
12335 | if (PyErr_Occurred()) SWIG_fail; | |
12336 | } | |
12337 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
12338 | { | |
12339 | if (temp6) | |
12340 | delete arg6; | |
12341 | } | |
12342 | return resultobj; | |
12343 | fail: | |
12344 | { | |
12345 | if (temp6) | |
12346 | delete arg6; | |
12347 | } | |
12348 | return NULL; | |
12349 | } | |
12350 | ||
12351 | ||
12352 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12353 | PyObject *resultobj; | |
12354 | wxListbook *result; | |
12355 | char *kwnames[] = { | |
12356 | NULL | |
12357 | }; | |
12358 | ||
12359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
12360 | { | |
12361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12362 | result = (wxListbook *)new wxListbook(); | |
12363 | ||
12364 | wxPyEndAllowThreads(__tstate); | |
12365 | if (PyErr_Occurred()) SWIG_fail; | |
12366 | } | |
12367 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
12368 | return resultobj; | |
12369 | fail: | |
12370 | return NULL; | |
12371 | } | |
12372 | ||
12373 | ||
12374 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12375 | PyObject *resultobj; | |
12376 | wxListbook *arg1 = (wxListbook *) 0 ; | |
12377 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 12378 | int arg3 ; |
d14a1e28 RD |
12379 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12380 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12381 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12382 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12383 | long arg6 = (long) 0 ; | |
12384 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
12385 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12386 | bool result; | |
12387 | wxPoint temp4 ; | |
12388 | wxSize temp5 ; | |
423f194a | 12389 | bool temp7 = False ; |
d14a1e28 RD |
12390 | PyObject * obj0 = 0 ; |
12391 | PyObject * obj1 = 0 ; | |
12392 | PyObject * obj3 = 0 ; | |
12393 | PyObject * obj4 = 0 ; | |
12394 | PyObject * obj6 = 0 ; | |
12395 | char *kwnames[] = { | |
12396 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12397 | }; | |
12398 | ||
12399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Listbook_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
12400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12401 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12402 | if (obj3) { | |
12403 | { | |
12404 | arg4 = &temp4; | |
12405 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12406 | } | |
12407 | } | |
12408 | if (obj4) { | |
12409 | { | |
12410 | arg5 = &temp5; | |
12411 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12412 | } | |
12413 | } | |
12414 | if (obj6) { | |
12415 | { | |
12416 | arg7 = wxString_in_helper(obj6); | |
12417 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 12418 | temp7 = True; |
d14a1e28 RD |
12419 | } |
12420 | } | |
12421 | { | |
12422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12423 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12424 | ||
12425 | wxPyEndAllowThreads(__tstate); | |
12426 | if (PyErr_Occurred()) SWIG_fail; | |
12427 | } | |
12428 | resultobj = PyInt_FromLong((long)result); | |
12429 | { | |
12430 | if (temp7) | |
12431 | delete arg7; | |
12432 | } | |
12433 | return resultobj; | |
12434 | fail: | |
12435 | { | |
12436 | if (temp7) | |
12437 | delete arg7; | |
12438 | } | |
12439 | return NULL; | |
12440 | } | |
12441 | ||
12442 | ||
12443 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12444 | PyObject *resultobj; | |
12445 | wxListbook *arg1 = (wxListbook *) 0 ; | |
12446 | bool result; | |
12447 | PyObject * obj0 = 0 ; | |
12448 | char *kwnames[] = { | |
12449 | (char *) "self", NULL | |
12450 | }; | |
12451 | ||
12452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
12453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12454 | { | |
12455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12456 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
12457 | ||
12458 | wxPyEndAllowThreads(__tstate); | |
12459 | if (PyErr_Occurred()) SWIG_fail; | |
12460 | } | |
12461 | resultobj = PyInt_FromLong((long)result); | |
12462 | return resultobj; | |
12463 | fail: | |
12464 | return NULL; | |
12465 | } | |
12466 | ||
12467 | ||
12468 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
12469 | PyObject *obj; | |
12470 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12471 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
12472 | Py_INCREF(obj); | |
12473 | return Py_BuildValue((char *)""); | |
12474 | } | |
12475 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12476 | PyObject *resultobj; | |
12477 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12478 | int arg2 = (int) 0 ; | |
12479 | int arg3 = (int) -1 ; | |
12480 | int arg4 = (int) -1 ; | |
12481 | wxListbookEvent *result; | |
12482 | char *kwnames[] = { | |
12483 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
12484 | }; | |
12485 | ||
12486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_ListbookEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
12487 | { | |
12488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12489 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
12490 | ||
12491 | wxPyEndAllowThreads(__tstate); | |
12492 | if (PyErr_Occurred()) SWIG_fail; | |
12493 | } | |
12494 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
12495 | return resultobj; | |
12496 | fail: | |
12497 | return NULL; | |
12498 | } | |
12499 | ||
12500 | ||
12501 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
12502 | PyObject *obj; | |
12503 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12504 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
12505 | Py_INCREF(obj); | |
12506 | return Py_BuildValue((char *)""); | |
12507 | } | |
12508 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12509 | PyObject *resultobj; | |
12510 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12511 | wxBookCtrlSizer *result; | |
12512 | PyObject * obj0 = 0 ; | |
12513 | char *kwnames[] = { | |
12514 | (char *) "nb", NULL | |
12515 | }; | |
12516 | ||
12517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
12518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12519 | { | |
12520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12521 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
12522 | ||
12523 | wxPyEndAllowThreads(__tstate); | |
12524 | if (PyErr_Occurred()) SWIG_fail; | |
12525 | } | |
12526 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
12527 | return resultobj; | |
12528 | fail: | |
12529 | return NULL; | |
12530 | } | |
12531 | ||
12532 | ||
12533 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12534 | PyObject *resultobj; | |
12535 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
12536 | PyObject * obj0 = 0 ; | |
12537 | char *kwnames[] = { | |
12538 | (char *) "self", NULL | |
12539 | }; | |
12540 | ||
12541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
12542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12543 | { | |
12544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12545 | (arg1)->RecalcSizes(); | |
12546 | ||
12547 | wxPyEndAllowThreads(__tstate); | |
12548 | if (PyErr_Occurred()) SWIG_fail; | |
12549 | } | |
12550 | Py_INCREF(Py_None); resultobj = Py_None; | |
12551 | return resultobj; | |
12552 | fail: | |
12553 | return NULL; | |
12554 | } | |
12555 | ||
12556 | ||
12557 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12558 | PyObject *resultobj; | |
12559 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
12560 | wxSize result; | |
12561 | PyObject * obj0 = 0 ; | |
12562 | char *kwnames[] = { | |
12563 | (char *) "self", NULL | |
12564 | }; | |
12565 | ||
12566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
12567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12568 | { | |
12569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12570 | result = (arg1)->CalcMin(); | |
12571 | ||
12572 | wxPyEndAllowThreads(__tstate); | |
12573 | if (PyErr_Occurred()) SWIG_fail; | |
12574 | } | |
12575 | { | |
12576 | wxSize * resultptr; | |
12577 | resultptr = new wxSize((wxSize &) result); | |
12578 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12579 | } | |
12580 | return resultobj; | |
12581 | fail: | |
12582 | return NULL; | |
12583 | } | |
12584 | ||
12585 | ||
12586 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12587 | PyObject *resultobj; | |
12588 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
12589 | wxBookCtrl *result; | |
12590 | PyObject * obj0 = 0 ; | |
12591 | char *kwnames[] = { | |
12592 | (char *) "self", NULL | |
12593 | }; | |
12594 | ||
12595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
12596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12597 | { | |
12598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12599 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
12600 | ||
12601 | wxPyEndAllowThreads(__tstate); | |
12602 | if (PyErr_Occurred()) SWIG_fail; | |
12603 | } | |
12604 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
12605 | return resultobj; | |
12606 | fail: | |
12607 | return NULL; | |
12608 | } | |
12609 | ||
12610 | ||
12611 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
12612 | PyObject *obj; | |
12613 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12614 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
12615 | Py_INCREF(obj); | |
12616 | return Py_BuildValue((char *)""); | |
12617 | } | |
12618 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12619 | PyObject *resultobj; | |
12620 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12621 | wxNotebookSizer *result; | |
12622 | PyObject * obj0 = 0 ; | |
12623 | char *kwnames[] = { | |
12624 | (char *) "nb", NULL | |
12625 | }; | |
12626 | ||
12627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
12628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12629 | { | |
12630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12631 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
12632 | ||
12633 | wxPyEndAllowThreads(__tstate); | |
12634 | if (PyErr_Occurred()) SWIG_fail; | |
12635 | } | |
12636 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
12637 | return resultobj; | |
12638 | fail: | |
12639 | return NULL; | |
12640 | } | |
12641 | ||
12642 | ||
12643 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12644 | PyObject *resultobj; | |
12645 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
12646 | PyObject * obj0 = 0 ; | |
12647 | char *kwnames[] = { | |
12648 | (char *) "self", NULL | |
12649 | }; | |
12650 | ||
12651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
12652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12653 | { | |
12654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12655 | (arg1)->RecalcSizes(); | |
12656 | ||
12657 | wxPyEndAllowThreads(__tstate); | |
12658 | if (PyErr_Occurred()) SWIG_fail; | |
12659 | } | |
12660 | Py_INCREF(Py_None); resultobj = Py_None; | |
12661 | return resultobj; | |
12662 | fail: | |
12663 | return NULL; | |
12664 | } | |
12665 | ||
12666 | ||
12667 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12668 | PyObject *resultobj; | |
12669 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
12670 | wxSize result; | |
12671 | PyObject * obj0 = 0 ; | |
12672 | char *kwnames[] = { | |
12673 | (char *) "self", NULL | |
12674 | }; | |
12675 | ||
12676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
12677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12678 | { | |
12679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12680 | result = (arg1)->CalcMin(); | |
12681 | ||
12682 | wxPyEndAllowThreads(__tstate); | |
12683 | if (PyErr_Occurred()) SWIG_fail; | |
12684 | } | |
12685 | { | |
12686 | wxSize * resultptr; | |
12687 | resultptr = new wxSize((wxSize &) result); | |
12688 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12689 | } | |
12690 | return resultobj; | |
12691 | fail: | |
12692 | return NULL; | |
12693 | } | |
12694 | ||
12695 | ||
12696 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12697 | PyObject *resultobj; | |
12698 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
12699 | wxNotebook *result; | |
12700 | PyObject * obj0 = 0 ; | |
12701 | char *kwnames[] = { | |
12702 | (char *) "self", NULL | |
12703 | }; | |
12704 | ||
12705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
12706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12707 | { | |
12708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12709 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
12710 | ||
12711 | wxPyEndAllowThreads(__tstate); | |
12712 | if (PyErr_Occurred()) SWIG_fail; | |
12713 | } | |
12714 | { | |
12715 | resultobj = wxPyMake_wxObject(result); | |
12716 | } | |
12717 | return resultobj; | |
12718 | fail: | |
12719 | return NULL; | |
12720 | } | |
12721 | ||
12722 | ||
12723 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
12724 | PyObject *obj; | |
12725 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12726 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
12727 | Py_INCREF(obj); | |
12728 | return Py_BuildValue((char *)""); | |
12729 | } | |
12730 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12731 | PyObject *resultobj; | |
12732 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12733 | int result; | |
12734 | PyObject * obj0 = 0 ; | |
12735 | char *kwnames[] = { | |
12736 | (char *) "self", NULL | |
12737 | }; | |
12738 | ||
12739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
12740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12741 | { | |
12742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12743 | result = (int)(arg1)->GetId(); | |
12744 | ||
12745 | wxPyEndAllowThreads(__tstate); | |
12746 | if (PyErr_Occurred()) SWIG_fail; | |
12747 | } | |
12748 | resultobj = PyInt_FromLong((long)result); | |
12749 | return resultobj; | |
12750 | fail: | |
12751 | return NULL; | |
12752 | } | |
12753 | ||
12754 | ||
12755 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12756 | PyObject *resultobj; | |
12757 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12758 | wxControl *result; | |
12759 | PyObject * obj0 = 0 ; | |
12760 | char *kwnames[] = { | |
12761 | (char *) "self", NULL | |
12762 | }; | |
12763 | ||
12764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
12765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12766 | { | |
12767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12768 | result = (wxControl *)(arg1)->GetControl(); | |
12769 | ||
12770 | wxPyEndAllowThreads(__tstate); | |
12771 | if (PyErr_Occurred()) SWIG_fail; | |
12772 | } | |
12773 | { | |
12774 | resultobj = wxPyMake_wxObject(result); | |
12775 | } | |
12776 | return resultobj; | |
12777 | fail: | |
12778 | return NULL; | |
12779 | } | |
12780 | ||
12781 | ||
12782 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12783 | PyObject *resultobj; | |
12784 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12785 | wxToolBarBase *result; | |
12786 | PyObject * obj0 = 0 ; | |
12787 | char *kwnames[] = { | |
12788 | (char *) "self", NULL | |
12789 | }; | |
12790 | ||
12791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",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 = (wxToolBarBase *)(arg1)->GetToolBar(); | |
12796 | ||
12797 | wxPyEndAllowThreads(__tstate); | |
12798 | if (PyErr_Occurred()) SWIG_fail; | |
12799 | } | |
12800 | { | |
12801 | resultobj = wxPyMake_wxObject(result); | |
12802 | } | |
12803 | return resultobj; | |
12804 | fail: | |
12805 | return NULL; | |
12806 | } | |
12807 | ||
12808 | ||
12809 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12810 | PyObject *resultobj; | |
12811 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12812 | int result; | |
12813 | PyObject * obj0 = 0 ; | |
12814 | char *kwnames[] = { | |
12815 | (char *) "self", NULL | |
12816 | }; | |
12817 | ||
12818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
12819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12820 | { | |
12821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12822 | result = (int)(arg1)->IsButton(); | |
12823 | ||
12824 | wxPyEndAllowThreads(__tstate); | |
12825 | if (PyErr_Occurred()) SWIG_fail; | |
12826 | } | |
12827 | resultobj = PyInt_FromLong((long)result); | |
12828 | return resultobj; | |
12829 | fail: | |
12830 | return NULL; | |
12831 | } | |
12832 | ||
12833 | ||
12834 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12835 | PyObject *resultobj; | |
12836 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12837 | int result; | |
12838 | PyObject * obj0 = 0 ; | |
12839 | char *kwnames[] = { | |
12840 | (char *) "self", NULL | |
12841 | }; | |
12842 | ||
12843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
12844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12845 | { | |
12846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12847 | result = (int)(arg1)->IsControl(); | |
12848 | ||
12849 | wxPyEndAllowThreads(__tstate); | |
12850 | if (PyErr_Occurred()) SWIG_fail; | |
12851 | } | |
12852 | resultobj = PyInt_FromLong((long)result); | |
12853 | return resultobj; | |
12854 | fail: | |
12855 | return NULL; | |
12856 | } | |
12857 | ||
12858 | ||
12859 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12860 | PyObject *resultobj; | |
12861 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12862 | int result; | |
12863 | PyObject * obj0 = 0 ; | |
12864 | char *kwnames[] = { | |
12865 | (char *) "self", NULL | |
12866 | }; | |
12867 | ||
12868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
12869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12870 | { | |
12871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12872 | result = (int)(arg1)->IsSeparator(); | |
12873 | ||
12874 | wxPyEndAllowThreads(__tstate); | |
12875 | if (PyErr_Occurred()) SWIG_fail; | |
12876 | } | |
12877 | resultobj = PyInt_FromLong((long)result); | |
12878 | return resultobj; | |
12879 | fail: | |
12880 | return NULL; | |
12881 | } | |
12882 | ||
12883 | ||
12884 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12885 | PyObject *resultobj; | |
12886 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12887 | int result; | |
12888 | PyObject * obj0 = 0 ; | |
12889 | char *kwnames[] = { | |
12890 | (char *) "self", NULL | |
12891 | }; | |
12892 | ||
12893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
12894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12895 | { | |
12896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12897 | result = (int)(arg1)->GetStyle(); | |
12898 | ||
12899 | wxPyEndAllowThreads(__tstate); | |
12900 | if (PyErr_Occurred()) SWIG_fail; | |
12901 | } | |
12902 | resultobj = PyInt_FromLong((long)result); | |
12903 | return resultobj; | |
12904 | fail: | |
12905 | return NULL; | |
12906 | } | |
12907 | ||
12908 | ||
12909 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12910 | PyObject *resultobj; | |
12911 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12912 | int result; | |
12913 | PyObject * obj0 = 0 ; | |
12914 | char *kwnames[] = { | |
12915 | (char *) "self", NULL | |
12916 | }; | |
12917 | ||
12918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
12919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12920 | { | |
12921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12922 | result = (int)(arg1)->GetKind(); | |
12923 | ||
12924 | wxPyEndAllowThreads(__tstate); | |
12925 | if (PyErr_Occurred()) SWIG_fail; | |
12926 | } | |
12927 | resultobj = PyInt_FromLong((long)result); | |
12928 | return resultobj; | |
12929 | fail: | |
12930 | return NULL; | |
12931 | } | |
12932 | ||
12933 | ||
12934 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12935 | PyObject *resultobj; | |
12936 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12937 | bool result; | |
12938 | PyObject * obj0 = 0 ; | |
12939 | char *kwnames[] = { | |
12940 | (char *) "self", NULL | |
12941 | }; | |
12942 | ||
12943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
12944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12945 | { | |
12946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12947 | result = (bool)(arg1)->IsEnabled(); | |
12948 | ||
12949 | wxPyEndAllowThreads(__tstate); | |
12950 | if (PyErr_Occurred()) SWIG_fail; | |
12951 | } | |
12952 | resultobj = PyInt_FromLong((long)result); | |
12953 | return resultobj; | |
12954 | fail: | |
12955 | return NULL; | |
12956 | } | |
12957 | ||
12958 | ||
12959 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12960 | PyObject *resultobj; | |
12961 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12962 | bool result; | |
12963 | PyObject * obj0 = 0 ; | |
12964 | char *kwnames[] = { | |
12965 | (char *) "self", NULL | |
12966 | }; | |
12967 | ||
12968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
12969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12970 | { | |
12971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12972 | result = (bool)(arg1)->IsToggled(); | |
12973 | ||
12974 | wxPyEndAllowThreads(__tstate); | |
12975 | if (PyErr_Occurred()) SWIG_fail; | |
12976 | } | |
12977 | resultobj = PyInt_FromLong((long)result); | |
12978 | return resultobj; | |
12979 | fail: | |
12980 | return NULL; | |
12981 | } | |
12982 | ||
12983 | ||
12984 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12985 | PyObject *resultobj; | |
12986 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12987 | bool result; | |
12988 | PyObject * obj0 = 0 ; | |
12989 | char *kwnames[] = { | |
12990 | (char *) "self", NULL | |
12991 | }; | |
12992 | ||
12993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
12994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12995 | { | |
12996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12997 | result = (bool)(arg1)->CanBeToggled(); | |
12998 | ||
12999 | wxPyEndAllowThreads(__tstate); | |
13000 | if (PyErr_Occurred()) SWIG_fail; | |
13001 | } | |
13002 | resultobj = PyInt_FromLong((long)result); | |
13003 | return resultobj; | |
13004 | fail: | |
13005 | return NULL; | |
13006 | } | |
13007 | ||
13008 | ||
13009 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13010 | PyObject *resultobj; | |
13011 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13012 | wxBitmap *result; | |
13013 | PyObject * obj0 = 0 ; | |
13014 | char *kwnames[] = { | |
13015 | (char *) "self", NULL | |
13016 | }; | |
13017 | ||
13018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
13019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13020 | { | |
13021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13022 | { | |
13023 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
13024 | result = (wxBitmap *) &_result_ref; | |
13025 | } | |
13026 | ||
13027 | wxPyEndAllowThreads(__tstate); | |
13028 | if (PyErr_Occurred()) SWIG_fail; | |
13029 | } | |
13030 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
13031 | return resultobj; | |
13032 | fail: | |
13033 | return NULL; | |
13034 | } | |
13035 | ||
13036 | ||
13037 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13038 | PyObject *resultobj; | |
13039 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13040 | wxBitmap *result; | |
13041 | PyObject * obj0 = 0 ; | |
13042 | char *kwnames[] = { | |
13043 | (char *) "self", NULL | |
13044 | }; | |
13045 | ||
13046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
13047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13048 | { | |
13049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13050 | { | |
13051 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
13052 | result = (wxBitmap *) &_result_ref; | |
13053 | } | |
13054 | ||
13055 | wxPyEndAllowThreads(__tstate); | |
13056 | if (PyErr_Occurred()) SWIG_fail; | |
13057 | } | |
13058 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
13059 | return resultobj; | |
13060 | fail: | |
13061 | return NULL; | |
13062 | } | |
13063 | ||
13064 | ||
13065 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13066 | PyObject *resultobj; | |
13067 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13068 | wxBitmap result; | |
13069 | PyObject * obj0 = 0 ; | |
13070 | char *kwnames[] = { | |
13071 | (char *) "self", NULL | |
13072 | }; | |
13073 | ||
13074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
13075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13076 | { | |
13077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13078 | result = (arg1)->GetBitmap(); | |
13079 | ||
13080 | wxPyEndAllowThreads(__tstate); | |
13081 | if (PyErr_Occurred()) SWIG_fail; | |
13082 | } | |
13083 | { | |
13084 | wxBitmap * resultptr; | |
13085 | resultptr = new wxBitmap((wxBitmap &) result); | |
13086 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
13087 | } | |
13088 | return resultobj; | |
13089 | fail: | |
13090 | return NULL; | |
13091 | } | |
13092 | ||
13093 | ||
13094 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13095 | PyObject *resultobj; | |
13096 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13097 | wxString result; | |
13098 | PyObject * obj0 = 0 ; | |
13099 | char *kwnames[] = { | |
13100 | (char *) "self", NULL | |
13101 | }; | |
13102 | ||
13103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
13104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13105 | { | |
13106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13107 | result = (arg1)->GetLabel(); | |
13108 | ||
13109 | wxPyEndAllowThreads(__tstate); | |
13110 | if (PyErr_Occurred()) SWIG_fail; | |
13111 | } | |
13112 | { | |
13113 | #if wxUSE_UNICODE | |
13114 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13115 | #else | |
13116 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13117 | #endif | |
13118 | } | |
13119 | return resultobj; | |
13120 | fail: | |
13121 | return NULL; | |
13122 | } | |
13123 | ||
13124 | ||
13125 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13126 | PyObject *resultobj; | |
13127 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13128 | wxString result; | |
13129 | PyObject * obj0 = 0 ; | |
13130 | char *kwnames[] = { | |
13131 | (char *) "self", NULL | |
13132 | }; | |
13133 | ||
13134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
13135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13136 | { | |
13137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13138 | result = (arg1)->GetShortHelp(); | |
13139 | ||
13140 | wxPyEndAllowThreads(__tstate); | |
13141 | if (PyErr_Occurred()) SWIG_fail; | |
13142 | } | |
13143 | { | |
13144 | #if wxUSE_UNICODE | |
13145 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13146 | #else | |
13147 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13148 | #endif | |
13149 | } | |
13150 | return resultobj; | |
13151 | fail: | |
13152 | return NULL; | |
13153 | } | |
13154 | ||
13155 | ||
13156 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13157 | PyObject *resultobj; | |
13158 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13159 | wxString result; | |
13160 | PyObject * obj0 = 0 ; | |
13161 | char *kwnames[] = { | |
13162 | (char *) "self", NULL | |
13163 | }; | |
13164 | ||
13165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
13166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13167 | { | |
13168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13169 | result = (arg1)->GetLongHelp(); | |
13170 | ||
13171 | wxPyEndAllowThreads(__tstate); | |
13172 | if (PyErr_Occurred()) SWIG_fail; | |
13173 | } | |
13174 | { | |
13175 | #if wxUSE_UNICODE | |
13176 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13177 | #else | |
13178 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13179 | #endif | |
13180 | } | |
13181 | return resultobj; | |
13182 | fail: | |
13183 | return NULL; | |
13184 | } | |
13185 | ||
13186 | ||
13187 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13188 | PyObject *resultobj; | |
13189 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13190 | bool arg2 ; | |
13191 | bool result; | |
13192 | PyObject * obj0 = 0 ; | |
13193 | PyObject * obj1 = 0 ; | |
13194 | char *kwnames[] = { | |
13195 | (char *) "self",(char *) "enable", NULL | |
13196 | }; | |
13197 | ||
13198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
13199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13200 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13201 | if (PyErr_Occurred()) SWIG_fail; | |
13202 | { | |
13203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13204 | result = (bool)(arg1)->Enable(arg2); | |
13205 | ||
13206 | wxPyEndAllowThreads(__tstate); | |
13207 | if (PyErr_Occurred()) SWIG_fail; | |
13208 | } | |
13209 | resultobj = PyInt_FromLong((long)result); | |
13210 | return resultobj; | |
13211 | fail: | |
13212 | return NULL; | |
13213 | } | |
13214 | ||
13215 | ||
13216 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13217 | PyObject *resultobj; | |
13218 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13219 | PyObject * obj0 = 0 ; | |
13220 | char *kwnames[] = { | |
13221 | (char *) "self", NULL | |
13222 | }; | |
13223 | ||
13224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
13225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13226 | { | |
13227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13228 | (arg1)->Toggle(); | |
13229 | ||
13230 | wxPyEndAllowThreads(__tstate); | |
13231 | if (PyErr_Occurred()) SWIG_fail; | |
13232 | } | |
13233 | Py_INCREF(Py_None); resultobj = Py_None; | |
13234 | return resultobj; | |
13235 | fail: | |
13236 | return NULL; | |
13237 | } | |
13238 | ||
13239 | ||
13240 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13241 | PyObject *resultobj; | |
13242 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13243 | bool arg2 ; | |
13244 | bool result; | |
13245 | PyObject * obj0 = 0 ; | |
13246 | PyObject * obj1 = 0 ; | |
13247 | char *kwnames[] = { | |
13248 | (char *) "self",(char *) "toggle", NULL | |
13249 | }; | |
13250 | ||
13251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
13252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13253 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13254 | if (PyErr_Occurred()) SWIG_fail; | |
13255 | { | |
13256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13257 | result = (bool)(arg1)->SetToggle(arg2); | |
13258 | ||
13259 | wxPyEndAllowThreads(__tstate); | |
13260 | if (PyErr_Occurred()) SWIG_fail; | |
13261 | } | |
13262 | resultobj = PyInt_FromLong((long)result); | |
13263 | return resultobj; | |
13264 | fail: | |
13265 | return NULL; | |
13266 | } | |
13267 | ||
13268 | ||
13269 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13270 | PyObject *resultobj; | |
13271 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13272 | wxString *arg2 = 0 ; | |
13273 | bool result; | |
423f194a | 13274 | bool temp2 = False ; |
d14a1e28 RD |
13275 | PyObject * obj0 = 0 ; |
13276 | PyObject * obj1 = 0 ; | |
13277 | char *kwnames[] = { | |
13278 | (char *) "self",(char *) "help", NULL | |
13279 | }; | |
13280 | ||
13281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
13282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13283 | { | |
13284 | arg2 = wxString_in_helper(obj1); | |
13285 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13286 | temp2 = True; |
d14a1e28 RD |
13287 | } |
13288 | { | |
13289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13290 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
13291 | ||
13292 | wxPyEndAllowThreads(__tstate); | |
13293 | if (PyErr_Occurred()) SWIG_fail; | |
13294 | } | |
13295 | resultobj = PyInt_FromLong((long)result); | |
13296 | { | |
13297 | if (temp2) | |
13298 | delete arg2; | |
13299 | } | |
13300 | return resultobj; | |
13301 | fail: | |
13302 | { | |
13303 | if (temp2) | |
13304 | delete arg2; | |
13305 | } | |
13306 | return NULL; | |
13307 | } | |
13308 | ||
13309 | ||
13310 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13311 | PyObject *resultobj; | |
13312 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13313 | wxString *arg2 = 0 ; | |
13314 | bool result; | |
423f194a | 13315 | bool temp2 = False ; |
d14a1e28 RD |
13316 | PyObject * obj0 = 0 ; |
13317 | PyObject * obj1 = 0 ; | |
13318 | char *kwnames[] = { | |
13319 | (char *) "self",(char *) "help", NULL | |
13320 | }; | |
13321 | ||
13322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
13323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13324 | { | |
13325 | arg2 = wxString_in_helper(obj1); | |
13326 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13327 | temp2 = True; |
d14a1e28 RD |
13328 | } |
13329 | { | |
13330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13331 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
13332 | ||
13333 | wxPyEndAllowThreads(__tstate); | |
13334 | if (PyErr_Occurred()) SWIG_fail; | |
13335 | } | |
13336 | resultobj = PyInt_FromLong((long)result); | |
13337 | { | |
13338 | if (temp2) | |
13339 | delete arg2; | |
13340 | } | |
13341 | return resultobj; | |
13342 | fail: | |
13343 | { | |
13344 | if (temp2) | |
13345 | delete arg2; | |
13346 | } | |
13347 | return NULL; | |
13348 | } | |
13349 | ||
13350 | ||
13351 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13352 | PyObject *resultobj; | |
13353 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13354 | wxBitmap *arg2 = 0 ; | |
13355 | PyObject * obj0 = 0 ; | |
13356 | PyObject * obj1 = 0 ; | |
13357 | char *kwnames[] = { | |
13358 | (char *) "self",(char *) "bmp", NULL | |
13359 | }; | |
13360 | ||
13361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
13362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13363 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13364 | if (arg2 == NULL) { | |
13365 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13366 | } | |
13367 | { | |
13368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13369 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
13370 | ||
13371 | wxPyEndAllowThreads(__tstate); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
13374 | Py_INCREF(Py_None); resultobj = Py_None; | |
13375 | return resultobj; | |
13376 | fail: | |
13377 | return NULL; | |
13378 | } | |
13379 | ||
13380 | ||
13381 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13382 | PyObject *resultobj; | |
13383 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13384 | wxBitmap *arg2 = 0 ; | |
13385 | PyObject * obj0 = 0 ; | |
13386 | PyObject * obj1 = 0 ; | |
13387 | char *kwnames[] = { | |
13388 | (char *) "self",(char *) "bmp", NULL | |
13389 | }; | |
13390 | ||
13391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
13392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13393 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13394 | if (arg2 == NULL) { | |
13395 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13396 | } | |
13397 | { | |
13398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13399 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
13400 | ||
13401 | wxPyEndAllowThreads(__tstate); | |
13402 | if (PyErr_Occurred()) SWIG_fail; | |
13403 | } | |
13404 | Py_INCREF(Py_None); resultobj = Py_None; | |
13405 | return resultobj; | |
13406 | fail: | |
13407 | return NULL; | |
13408 | } | |
13409 | ||
13410 | ||
13411 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13412 | PyObject *resultobj; | |
13413 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13414 | wxString *arg2 = 0 ; | |
423f194a | 13415 | bool temp2 = False ; |
d14a1e28 RD |
13416 | PyObject * obj0 = 0 ; |
13417 | PyObject * obj1 = 0 ; | |
13418 | char *kwnames[] = { | |
13419 | (char *) "self",(char *) "label", NULL | |
13420 | }; | |
13421 | ||
13422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
13423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13424 | { | |
13425 | arg2 = wxString_in_helper(obj1); | |
13426 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13427 | temp2 = True; |
d14a1e28 RD |
13428 | } |
13429 | { | |
13430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13431 | (arg1)->SetLabel((wxString const &)*arg2); | |
13432 | ||
13433 | wxPyEndAllowThreads(__tstate); | |
13434 | if (PyErr_Occurred()) SWIG_fail; | |
13435 | } | |
13436 | Py_INCREF(Py_None); resultobj = Py_None; | |
13437 | { | |
13438 | if (temp2) | |
13439 | delete arg2; | |
13440 | } | |
13441 | return resultobj; | |
13442 | fail: | |
13443 | { | |
13444 | if (temp2) | |
13445 | delete arg2; | |
13446 | } | |
13447 | return NULL; | |
13448 | } | |
13449 | ||
13450 | ||
13451 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13452 | PyObject *resultobj; | |
13453 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13454 | PyObject * obj0 = 0 ; | |
13455 | char *kwnames[] = { | |
13456 | (char *) "self", NULL | |
13457 | }; | |
13458 | ||
13459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
13460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13461 | { | |
13462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13463 | (arg1)->Detach(); | |
13464 | ||
13465 | wxPyEndAllowThreads(__tstate); | |
13466 | if (PyErr_Occurred()) SWIG_fail; | |
13467 | } | |
13468 | Py_INCREF(Py_None); resultobj = Py_None; | |
13469 | return resultobj; | |
13470 | fail: | |
13471 | return NULL; | |
13472 | } | |
13473 | ||
13474 | ||
13475 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13476 | PyObject *resultobj; | |
13477 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13478 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
13479 | PyObject * obj0 = 0 ; | |
13480 | PyObject * obj1 = 0 ; | |
13481 | char *kwnames[] = { | |
13482 | (char *) "self",(char *) "tbar", NULL | |
13483 | }; | |
13484 | ||
13485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
13486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13487 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13488 | { | |
13489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13490 | (arg1)->Attach(arg2); | |
13491 | ||
13492 | wxPyEndAllowThreads(__tstate); | |
13493 | if (PyErr_Occurred()) SWIG_fail; | |
13494 | } | |
13495 | Py_INCREF(Py_None); resultobj = Py_None; | |
13496 | return resultobj; | |
13497 | fail: | |
13498 | return NULL; | |
13499 | } | |
13500 | ||
13501 | ||
13502 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13503 | PyObject *resultobj; | |
13504 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13505 | PyObject *result; | |
13506 | PyObject * obj0 = 0 ; | |
13507 | char *kwnames[] = { | |
13508 | (char *) "self", NULL | |
13509 | }; | |
13510 | ||
13511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
13512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13513 | { | |
13514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13515 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
13516 | ||
13517 | wxPyEndAllowThreads(__tstate); | |
13518 | if (PyErr_Occurred()) SWIG_fail; | |
13519 | } | |
13520 | resultobj = result; | |
13521 | return resultobj; | |
13522 | fail: | |
13523 | return NULL; | |
13524 | } | |
13525 | ||
13526 | ||
13527 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13528 | PyObject *resultobj; | |
13529 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13530 | PyObject *arg2 = (PyObject *) 0 ; | |
13531 | PyObject * obj0 = 0 ; | |
13532 | PyObject * obj1 = 0 ; | |
13533 | char *kwnames[] = { | |
13534 | (char *) "self",(char *) "clientData", NULL | |
13535 | }; | |
13536 | ||
13537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
13538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13539 | arg2 = obj1; | |
13540 | { | |
13541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13542 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
13543 | ||
13544 | wxPyEndAllowThreads(__tstate); | |
13545 | if (PyErr_Occurred()) SWIG_fail; | |
13546 | } | |
13547 | Py_INCREF(Py_None); resultobj = Py_None; | |
13548 | return resultobj; | |
13549 | fail: | |
13550 | return NULL; | |
13551 | } | |
13552 | ||
13553 | ||
13554 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
13555 | PyObject *obj; | |
13556 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13557 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
13558 | Py_INCREF(obj); | |
13559 | return Py_BuildValue((char *)""); | |
13560 | } | |
13561 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13562 | PyObject *resultobj; | |
13563 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13564 | int arg2 ; | |
13565 | wxString *arg3 = 0 ; | |
13566 | wxBitmap *arg4 = 0 ; | |
13567 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
13568 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
13569 | int arg6 = (int) wxITEM_NORMAL ; | |
13570 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
13571 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13572 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
13573 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13574 | PyObject *arg9 = (PyObject *) NULL ; | |
13575 | wxToolBarToolBase *result; | |
423f194a RD |
13576 | bool temp3 = False ; |
13577 | bool temp7 = False ; | |
13578 | bool temp8 = False ; | |
d14a1e28 RD |
13579 | PyObject * obj0 = 0 ; |
13580 | PyObject * obj2 = 0 ; | |
13581 | PyObject * obj3 = 0 ; | |
13582 | PyObject * obj4 = 0 ; | |
13583 | PyObject * obj6 = 0 ; | |
13584 | PyObject * obj7 = 0 ; | |
13585 | PyObject * obj8 = 0 ; | |
13586 | char *kwnames[] = { | |
13587 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
13588 | }; | |
13589 | ||
13590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|OiOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7,&obj8)) goto fail; | |
13591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13592 | { | |
13593 | arg3 = wxString_in_helper(obj2); | |
13594 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13595 | temp3 = True; |
d14a1e28 RD |
13596 | } |
13597 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13598 | if (arg4 == NULL) { | |
13599 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13600 | } | |
13601 | if (obj4) { | |
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 | } | |
13607 | if (obj6) { | |
13608 | { | |
13609 | arg7 = wxString_in_helper(obj6); | |
13610 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 13611 | temp7 = True; |
d14a1e28 RD |
13612 | } |
13613 | } | |
13614 | if (obj7) { | |
13615 | { | |
13616 | arg8 = wxString_in_helper(obj7); | |
13617 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 13618 | temp8 = True; |
d14a1e28 RD |
13619 | } |
13620 | } | |
13621 | if (obj8) { | |
13622 | arg9 = obj8; | |
13623 | } | |
13624 | { | |
13625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13626 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
13627 | ||
13628 | wxPyEndAllowThreads(__tstate); | |
13629 | if (PyErr_Occurred()) SWIG_fail; | |
13630 | } | |
13631 | { | |
13632 | resultobj = wxPyMake_wxObject(result); | |
13633 | } | |
13634 | { | |
13635 | if (temp3) | |
13636 | delete arg3; | |
13637 | } | |
13638 | { | |
13639 | if (temp7) | |
13640 | delete arg7; | |
13641 | } | |
13642 | { | |
13643 | if (temp8) | |
13644 | delete arg8; | |
13645 | } | |
13646 | return resultobj; | |
13647 | fail: | |
13648 | { | |
13649 | if (temp3) | |
13650 | delete arg3; | |
13651 | } | |
13652 | { | |
13653 | if (temp7) | |
13654 | delete arg7; | |
13655 | } | |
13656 | { | |
13657 | if (temp8) | |
13658 | delete arg8; | |
13659 | } | |
13660 | return NULL; | |
13661 | } | |
13662 | ||
13663 | ||
13664 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13665 | PyObject *resultobj; | |
13666 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13667 | size_t arg2 ; | |
13668 | int arg3 ; | |
13669 | wxString *arg4 = 0 ; | |
13670 | wxBitmap *arg5 = 0 ; | |
13671 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
13672 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
13673 | int arg7 = (int) wxITEM_NORMAL ; | |
13674 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
13675 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13676 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
13677 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13678 | PyObject *arg10 = (PyObject *) NULL ; | |
13679 | wxToolBarToolBase *result; | |
423f194a RD |
13680 | bool temp4 = False ; |
13681 | bool temp8 = False ; | |
13682 | bool temp9 = False ; | |
d14a1e28 RD |
13683 | PyObject * obj0 = 0 ; |
13684 | PyObject * obj1 = 0 ; | |
13685 | PyObject * obj3 = 0 ; | |
13686 | PyObject * obj4 = 0 ; | |
13687 | PyObject * obj5 = 0 ; | |
13688 | PyObject * obj7 = 0 ; | |
13689 | PyObject * obj8 = 0 ; | |
13690 | PyObject * obj9 = 0 ; | |
13691 | char *kwnames[] = { | |
13692 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
13693 | }; | |
13694 | ||
13695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiOO|OiOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8,&obj9)) goto fail; | |
13696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13697 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13698 | if (PyErr_Occurred()) SWIG_fail; | |
13699 | { | |
13700 | arg4 = wxString_in_helper(obj3); | |
13701 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13702 | temp4 = True; |
d14a1e28 RD |
13703 | } |
13704 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13705 | if (arg5 == NULL) { | |
13706 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13707 | } | |
13708 | if (obj5) { | |
13709 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13710 | if (arg6 == NULL) { | |
13711 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13712 | } | |
13713 | } | |
13714 | if (obj7) { | |
13715 | { | |
13716 | arg8 = wxString_in_helper(obj7); | |
13717 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 13718 | temp8 = True; |
d14a1e28 RD |
13719 | } |
13720 | } | |
13721 | if (obj8) { | |
13722 | { | |
13723 | arg9 = wxString_in_helper(obj8); | |
13724 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 13725 | temp9 = True; |
d14a1e28 RD |
13726 | } |
13727 | } | |
13728 | if (obj9) { | |
13729 | arg10 = obj9; | |
13730 | } | |
13731 | { | |
13732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13733 | 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); | |
13734 | ||
13735 | wxPyEndAllowThreads(__tstate); | |
13736 | if (PyErr_Occurred()) SWIG_fail; | |
13737 | } | |
13738 | { | |
13739 | resultobj = wxPyMake_wxObject(result); | |
13740 | } | |
13741 | { | |
13742 | if (temp4) | |
13743 | delete arg4; | |
13744 | } | |
13745 | { | |
13746 | if (temp8) | |
13747 | delete arg8; | |
13748 | } | |
13749 | { | |
13750 | if (temp9) | |
13751 | delete arg9; | |
13752 | } | |
13753 | return resultobj; | |
13754 | fail: | |
13755 | { | |
13756 | if (temp4) | |
13757 | delete arg4; | |
13758 | } | |
13759 | { | |
13760 | if (temp8) | |
13761 | delete arg8; | |
13762 | } | |
13763 | { | |
13764 | if (temp9) | |
13765 | delete arg9; | |
13766 | } | |
13767 | return NULL; | |
13768 | } | |
13769 | ||
13770 | ||
cbd72d4f RD |
13771 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
13772 | PyObject *resultobj; | |
13773 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13774 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
13775 | wxToolBarToolBase *result; | |
13776 | PyObject * obj0 = 0 ; | |
13777 | PyObject * obj1 = 0 ; | |
13778 | char *kwnames[] = { | |
13779 | (char *) "self",(char *) "tool", NULL | |
13780 | }; | |
13781 | ||
13782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
13783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13784 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13785 | { | |
13786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13787 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
13788 | ||
13789 | wxPyEndAllowThreads(__tstate); | |
13790 | if (PyErr_Occurred()) SWIG_fail; | |
13791 | } | |
13792 | { | |
13793 | resultobj = wxPyMake_wxObject(result); | |
13794 | } | |
13795 | return resultobj; | |
13796 | fail: | |
13797 | return NULL; | |
13798 | } | |
13799 | ||
13800 | ||
13801 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13802 | PyObject *resultobj; | |
13803 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13804 | size_t arg2 ; | |
13805 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
13806 | wxToolBarToolBase *result; | |
13807 | PyObject * obj0 = 0 ; | |
13808 | PyObject * obj1 = 0 ; | |
13809 | PyObject * obj2 = 0 ; | |
13810 | char *kwnames[] = { | |
13811 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
13812 | }; | |
13813 | ||
13814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13816 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13817 | if (PyErr_Occurred()) SWIG_fail; | |
13818 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13819 | { | |
13820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13821 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
13822 | ||
13823 | wxPyEndAllowThreads(__tstate); | |
13824 | if (PyErr_Occurred()) SWIG_fail; | |
13825 | } | |
13826 | { | |
13827 | resultobj = wxPyMake_wxObject(result); | |
13828 | } | |
13829 | return resultobj; | |
13830 | fail: | |
13831 | return NULL; | |
13832 | } | |
13833 | ||
13834 | ||
d14a1e28 RD |
13835 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
13836 | PyObject *resultobj; | |
13837 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13838 | wxControl *arg2 = (wxControl *) 0 ; | |
13839 | wxToolBarToolBase *result; | |
13840 | PyObject * obj0 = 0 ; | |
13841 | PyObject * obj1 = 0 ; | |
13842 | char *kwnames[] = { | |
13843 | (char *) "self",(char *) "control", NULL | |
13844 | }; | |
13845 | ||
13846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
13847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13848 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13849 | { | |
13850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13851 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
13852 | ||
13853 | wxPyEndAllowThreads(__tstate); | |
13854 | if (PyErr_Occurred()) SWIG_fail; | |
13855 | } | |
13856 | { | |
13857 | resultobj = wxPyMake_wxObject(result); | |
13858 | } | |
13859 | return resultobj; | |
13860 | fail: | |
13861 | return NULL; | |
13862 | } | |
13863 | ||
13864 | ||
13865 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13866 | PyObject *resultobj; | |
13867 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13868 | size_t arg2 ; | |
13869 | wxControl *arg3 = (wxControl *) 0 ; | |
13870 | wxToolBarToolBase *result; | |
13871 | PyObject * obj0 = 0 ; | |
13872 | PyObject * obj1 = 0 ; | |
13873 | PyObject * obj2 = 0 ; | |
13874 | char *kwnames[] = { | |
13875 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
13876 | }; | |
13877 | ||
13878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13880 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13881 | if (PyErr_Occurred()) SWIG_fail; | |
13882 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13883 | { | |
13884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13885 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
13886 | ||
13887 | wxPyEndAllowThreads(__tstate); | |
13888 | if (PyErr_Occurred()) SWIG_fail; | |
13889 | } | |
13890 | { | |
13891 | resultobj = wxPyMake_wxObject(result); | |
13892 | } | |
13893 | return resultobj; | |
13894 | fail: | |
13895 | return NULL; | |
13896 | } | |
13897 | ||
13898 | ||
13899 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13900 | PyObject *resultobj; | |
13901 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13902 | int arg2 ; | |
13903 | wxControl *result; | |
13904 | PyObject * obj0 = 0 ; | |
13905 | char *kwnames[] = { | |
13906 | (char *) "self",(char *) "id", NULL | |
13907 | }; | |
13908 | ||
13909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_FindControl",kwnames,&obj0,&arg2)) goto fail; | |
13910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13911 | { | |
13912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13913 | result = (wxControl *)(arg1)->FindControl(arg2); | |
13914 | ||
13915 | wxPyEndAllowThreads(__tstate); | |
13916 | if (PyErr_Occurred()) SWIG_fail; | |
13917 | } | |
13918 | { | |
13919 | resultobj = wxPyMake_wxObject(result); | |
13920 | } | |
13921 | return resultobj; | |
13922 | fail: | |
13923 | return NULL; | |
13924 | } | |
13925 | ||
13926 | ||
13927 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13928 | PyObject *resultobj; | |
13929 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13930 | wxToolBarToolBase *result; | |
13931 | PyObject * obj0 = 0 ; | |
13932 | char *kwnames[] = { | |
13933 | (char *) "self", NULL | |
13934 | }; | |
13935 | ||
13936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
13937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13938 | { | |
13939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13940 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
13941 | ||
13942 | wxPyEndAllowThreads(__tstate); | |
13943 | if (PyErr_Occurred()) SWIG_fail; | |
13944 | } | |
13945 | { | |
13946 | resultobj = wxPyMake_wxObject(result); | |
13947 | } | |
13948 | return resultobj; | |
13949 | fail: | |
13950 | return NULL; | |
13951 | } | |
13952 | ||
13953 | ||
13954 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13955 | PyObject *resultobj; | |
13956 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13957 | size_t arg2 ; | |
13958 | wxToolBarToolBase *result; | |
13959 | PyObject * obj0 = 0 ; | |
13960 | PyObject * obj1 = 0 ; | |
13961 | char *kwnames[] = { | |
13962 | (char *) "self",(char *) "pos", NULL | |
13963 | }; | |
13964 | ||
13965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
13966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13967 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13968 | if (PyErr_Occurred()) SWIG_fail; | |
13969 | { | |
13970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13971 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
13972 | ||
13973 | wxPyEndAllowThreads(__tstate); | |
13974 | if (PyErr_Occurred()) SWIG_fail; | |
13975 | } | |
13976 | { | |
13977 | resultobj = wxPyMake_wxObject(result); | |
13978 | } | |
13979 | return resultobj; | |
13980 | fail: | |
13981 | return NULL; | |
13982 | } | |
13983 | ||
13984 | ||
13985 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13986 | PyObject *resultobj; | |
13987 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13988 | int arg2 ; | |
13989 | wxToolBarToolBase *result; | |
13990 | PyObject * obj0 = 0 ; | |
13991 | char *kwnames[] = { | |
13992 | (char *) "self",(char *) "id", NULL | |
13993 | }; | |
13994 | ||
13995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_RemoveTool",kwnames,&obj0,&arg2)) goto fail; | |
13996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13997 | { | |
13998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13999 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
14000 | ||
14001 | wxPyEndAllowThreads(__tstate); | |
14002 | if (PyErr_Occurred()) SWIG_fail; | |
14003 | } | |
14004 | { | |
14005 | resultobj = wxPyMake_wxObject(result); | |
14006 | } | |
14007 | return resultobj; | |
14008 | fail: | |
14009 | return NULL; | |
14010 | } | |
14011 | ||
14012 | ||
14013 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14014 | PyObject *resultobj; | |
14015 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14016 | size_t arg2 ; | |
14017 | bool result; | |
14018 | PyObject * obj0 = 0 ; | |
14019 | PyObject * obj1 = 0 ; | |
14020 | char *kwnames[] = { | |
14021 | (char *) "self",(char *) "pos", NULL | |
14022 | }; | |
14023 | ||
14024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
14025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14026 | arg2 = (size_t) PyInt_AsLong(obj1); | |
14027 | if (PyErr_Occurred()) SWIG_fail; | |
14028 | { | |
14029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14030 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
14031 | ||
14032 | wxPyEndAllowThreads(__tstate); | |
14033 | if (PyErr_Occurred()) SWIG_fail; | |
14034 | } | |
14035 | resultobj = PyInt_FromLong((long)result); | |
14036 | return resultobj; | |
14037 | fail: | |
14038 | return NULL; | |
14039 | } | |
14040 | ||
14041 | ||
14042 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14043 | PyObject *resultobj; | |
14044 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14045 | int arg2 ; | |
14046 | bool result; | |
14047 | PyObject * obj0 = 0 ; | |
14048 | char *kwnames[] = { | |
14049 | (char *) "self",(char *) "id", NULL | |
14050 | }; | |
14051 | ||
14052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_DeleteTool",kwnames,&obj0,&arg2)) goto fail; | |
14053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14054 | { | |
14055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14056 | result = (bool)(arg1)->DeleteTool(arg2); | |
14057 | ||
14058 | wxPyEndAllowThreads(__tstate); | |
14059 | if (PyErr_Occurred()) SWIG_fail; | |
14060 | } | |
14061 | resultobj = PyInt_FromLong((long)result); | |
14062 | return resultobj; | |
14063 | fail: | |
14064 | return NULL; | |
14065 | } | |
14066 | ||
14067 | ||
14068 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14069 | PyObject *resultobj; | |
14070 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14071 | PyObject * obj0 = 0 ; | |
14072 | char *kwnames[] = { | |
14073 | (char *) "self", NULL | |
14074 | }; | |
14075 | ||
14076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
14077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14078 | { | |
14079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14080 | (arg1)->ClearTools(); | |
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_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14093 | PyObject *resultobj; | |
14094 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14095 | bool result; | |
14096 | PyObject * obj0 = 0 ; | |
14097 | char *kwnames[] = { | |
14098 | (char *) "self", NULL | |
14099 | }; | |
14100 | ||
14101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
14102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14103 | { | |
14104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14105 | result = (bool)(arg1)->Realize(); | |
14106 | ||
14107 | wxPyEndAllowThreads(__tstate); | |
14108 | if (PyErr_Occurred()) SWIG_fail; | |
14109 | } | |
14110 | resultobj = PyInt_FromLong((long)result); | |
14111 | return resultobj; | |
14112 | fail: | |
14113 | return NULL; | |
14114 | } | |
14115 | ||
14116 | ||
14117 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14118 | PyObject *resultobj; | |
14119 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14120 | int arg2 ; | |
14121 | bool arg3 ; | |
14122 | PyObject * obj0 = 0 ; | |
14123 | PyObject * obj2 = 0 ; | |
14124 | char *kwnames[] = { | |
14125 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
14126 | }; | |
14127 | ||
14128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_EnableTool",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14130 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14131 | if (PyErr_Occurred()) SWIG_fail; | |
14132 | { | |
14133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14134 | (arg1)->EnableTool(arg2,arg3); | |
14135 | ||
14136 | wxPyEndAllowThreads(__tstate); | |
14137 | if (PyErr_Occurred()) SWIG_fail; | |
14138 | } | |
14139 | Py_INCREF(Py_None); resultobj = Py_None; | |
14140 | return resultobj; | |
14141 | fail: | |
14142 | return NULL; | |
14143 | } | |
14144 | ||
14145 | ||
14146 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14147 | PyObject *resultobj; | |
14148 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14149 | int arg2 ; | |
14150 | bool arg3 ; | |
14151 | PyObject * obj0 = 0 ; | |
14152 | PyObject * obj2 = 0 ; | |
14153 | char *kwnames[] = { | |
14154 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
14155 | }; | |
14156 | ||
14157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_ToggleTool",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14159 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14160 | if (PyErr_Occurred()) SWIG_fail; | |
14161 | { | |
14162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14163 | (arg1)->ToggleTool(arg2,arg3); | |
14164 | ||
14165 | wxPyEndAllowThreads(__tstate); | |
14166 | if (PyErr_Occurred()) SWIG_fail; | |
14167 | } | |
14168 | Py_INCREF(Py_None); resultobj = Py_None; | |
14169 | return resultobj; | |
14170 | fail: | |
14171 | return NULL; | |
14172 | } | |
14173 | ||
14174 | ||
14175 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14176 | PyObject *resultobj; | |
14177 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14178 | int arg2 ; | |
14179 | bool arg3 ; | |
14180 | PyObject * obj0 = 0 ; | |
14181 | PyObject * obj2 = 0 ; | |
14182 | char *kwnames[] = { | |
14183 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
14184 | }; | |
14185 | ||
14186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToggle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14188 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14189 | if (PyErr_Occurred()) SWIG_fail; | |
14190 | { | |
14191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14192 | (arg1)->SetToggle(arg2,arg3); | |
14193 | ||
14194 | wxPyEndAllowThreads(__tstate); | |
14195 | if (PyErr_Occurred()) SWIG_fail; | |
14196 | } | |
14197 | Py_INCREF(Py_None); resultobj = Py_None; | |
14198 | return resultobj; | |
14199 | fail: | |
14200 | return NULL; | |
14201 | } | |
14202 | ||
14203 | ||
14204 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14205 | PyObject *resultobj; | |
14206 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14207 | int arg2 ; | |
14208 | PyObject *result; | |
14209 | PyObject * obj0 = 0 ; | |
14210 | char *kwnames[] = { | |
14211 | (char *) "self",(char *) "id", NULL | |
14212 | }; | |
14213 | ||
14214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolClientData",kwnames,&obj0,&arg2)) goto fail; | |
14215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14216 | { | |
14217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14218 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
14219 | ||
14220 | wxPyEndAllowThreads(__tstate); | |
14221 | if (PyErr_Occurred()) SWIG_fail; | |
14222 | } | |
14223 | resultobj = result; | |
14224 | return resultobj; | |
14225 | fail: | |
14226 | return NULL; | |
14227 | } | |
14228 | ||
14229 | ||
14230 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14231 | PyObject *resultobj; | |
14232 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14233 | int arg2 ; | |
14234 | PyObject *arg3 = (PyObject *) 0 ; | |
14235 | PyObject * obj0 = 0 ; | |
14236 | PyObject * obj2 = 0 ; | |
14237 | char *kwnames[] = { | |
14238 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
14239 | }; | |
14240 | ||
14241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolClientData",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14243 | arg3 = obj2; | |
14244 | { | |
14245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14246 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
14247 | ||
14248 | wxPyEndAllowThreads(__tstate); | |
14249 | if (PyErr_Occurred()) SWIG_fail; | |
14250 | } | |
14251 | Py_INCREF(Py_None); resultobj = Py_None; | |
14252 | return resultobj; | |
14253 | fail: | |
14254 | return NULL; | |
14255 | } | |
14256 | ||
14257 | ||
14258 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14259 | PyObject *resultobj; | |
14260 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14261 | int arg2 ; | |
14262 | int result; | |
14263 | PyObject * obj0 = 0 ; | |
14264 | char *kwnames[] = { | |
14265 | (char *) "self",(char *) "id", NULL | |
14266 | }; | |
14267 | ||
14268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolPos",kwnames,&obj0,&arg2)) goto fail; | |
14269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14270 | { | |
14271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14272 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
14273 | ||
14274 | wxPyEndAllowThreads(__tstate); | |
14275 | if (PyErr_Occurred()) SWIG_fail; | |
14276 | } | |
14277 | resultobj = PyInt_FromLong((long)result); | |
14278 | return resultobj; | |
14279 | fail: | |
14280 | return NULL; | |
14281 | } | |
14282 | ||
14283 | ||
14284 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14285 | PyObject *resultobj; | |
14286 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14287 | int arg2 ; | |
14288 | bool 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_GetToolState",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 = (bool)(arg1)->GetToolState(arg2); | |
14299 | ||
14300 | wxPyEndAllowThreads(__tstate); | |
14301 | if (PyErr_Occurred()) SWIG_fail; | |
14302 | } | |
14303 | resultobj = PyInt_FromLong((long)result); | |
14304 | return resultobj; | |
14305 | fail: | |
14306 | return NULL; | |
14307 | } | |
14308 | ||
14309 | ||
14310 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14311 | PyObject *resultobj; | |
14312 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14313 | int arg2 ; | |
14314 | bool result; | |
14315 | PyObject * obj0 = 0 ; | |
14316 | char *kwnames[] = { | |
14317 | (char *) "self",(char *) "id", NULL | |
14318 | }; | |
14319 | ||
14320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolEnabled",kwnames,&obj0,&arg2)) goto fail; | |
14321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14322 | { | |
14323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14324 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
14325 | ||
14326 | wxPyEndAllowThreads(__tstate); | |
14327 | if (PyErr_Occurred()) SWIG_fail; | |
14328 | } | |
14329 | resultobj = PyInt_FromLong((long)result); | |
14330 | return resultobj; | |
14331 | fail: | |
14332 | return NULL; | |
14333 | } | |
14334 | ||
14335 | ||
14336 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14337 | PyObject *resultobj; | |
14338 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14339 | int arg2 ; | |
14340 | wxString *arg3 = 0 ; | |
423f194a | 14341 | bool temp3 = False ; |
d14a1e28 RD |
14342 | PyObject * obj0 = 0 ; |
14343 | PyObject * obj2 = 0 ; | |
14344 | char *kwnames[] = { | |
14345 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
14346 | }; | |
14347 | ||
14348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14350 | { | |
14351 | arg3 = wxString_in_helper(obj2); | |
14352 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14353 | temp3 = True; |
d14a1e28 RD |
14354 | } |
14355 | { | |
14356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14357 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
14358 | ||
14359 | wxPyEndAllowThreads(__tstate); | |
14360 | if (PyErr_Occurred()) SWIG_fail; | |
14361 | } | |
14362 | Py_INCREF(Py_None); resultobj = Py_None; | |
14363 | { | |
14364 | if (temp3) | |
14365 | delete arg3; | |
14366 | } | |
14367 | return resultobj; | |
14368 | fail: | |
14369 | { | |
14370 | if (temp3) | |
14371 | delete arg3; | |
14372 | } | |
14373 | return NULL; | |
14374 | } | |
14375 | ||
14376 | ||
14377 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14378 | PyObject *resultobj; | |
14379 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14380 | int arg2 ; | |
14381 | wxString result; | |
14382 | PyObject * obj0 = 0 ; | |
14383 | char *kwnames[] = { | |
14384 | (char *) "self",(char *) "id", NULL | |
14385 | }; | |
14386 | ||
14387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&arg2)) goto fail; | |
14388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14389 | { | |
14390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14391 | result = (arg1)->GetToolShortHelp(arg2); | |
14392 | ||
14393 | wxPyEndAllowThreads(__tstate); | |
14394 | if (PyErr_Occurred()) SWIG_fail; | |
14395 | } | |
14396 | { | |
14397 | #if wxUSE_UNICODE | |
14398 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14399 | #else | |
14400 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14401 | #endif | |
14402 | } | |
14403 | return resultobj; | |
14404 | fail: | |
14405 | return NULL; | |
14406 | } | |
14407 | ||
14408 | ||
14409 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14410 | PyObject *resultobj; | |
14411 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14412 | int arg2 ; | |
14413 | wxString *arg3 = 0 ; | |
423f194a | 14414 | bool temp3 = False ; |
d14a1e28 RD |
14415 | PyObject * obj0 = 0 ; |
14416 | PyObject * obj2 = 0 ; | |
14417 | char *kwnames[] = { | |
14418 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
14419 | }; | |
14420 | ||
14421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14423 | { | |
14424 | arg3 = wxString_in_helper(obj2); | |
14425 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14426 | temp3 = True; |
d14a1e28 RD |
14427 | } |
14428 | { | |
14429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14430 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
14431 | ||
14432 | wxPyEndAllowThreads(__tstate); | |
14433 | if (PyErr_Occurred()) SWIG_fail; | |
14434 | } | |
14435 | Py_INCREF(Py_None); resultobj = Py_None; | |
14436 | { | |
14437 | if (temp3) | |
14438 | delete arg3; | |
14439 | } | |
14440 | return resultobj; | |
14441 | fail: | |
14442 | { | |
14443 | if (temp3) | |
14444 | delete arg3; | |
14445 | } | |
14446 | return NULL; | |
14447 | } | |
14448 | ||
14449 | ||
14450 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14451 | PyObject *resultobj; | |
14452 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14453 | int arg2 ; | |
14454 | wxString result; | |
14455 | PyObject * obj0 = 0 ; | |
14456 | char *kwnames[] = { | |
14457 | (char *) "self",(char *) "id", NULL | |
14458 | }; | |
14459 | ||
14460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&arg2)) goto fail; | |
14461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14462 | { | |
14463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14464 | result = (arg1)->GetToolLongHelp(arg2); | |
14465 | ||
14466 | wxPyEndAllowThreads(__tstate); | |
14467 | if (PyErr_Occurred()) SWIG_fail; | |
14468 | } | |
14469 | { | |
14470 | #if wxUSE_UNICODE | |
14471 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14472 | #else | |
14473 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14474 | #endif | |
14475 | } | |
14476 | return resultobj; | |
14477 | fail: | |
14478 | return NULL; | |
14479 | } | |
14480 | ||
14481 | ||
14482 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14483 | PyObject *resultobj; | |
14484 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14485 | int arg2 ; | |
14486 | int arg3 ; | |
14487 | PyObject * obj0 = 0 ; | |
14488 | char *kwnames[] = { | |
14489 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14490 | }; | |
14491 | ||
14492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_SetMarginsXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14494 | { | |
14495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14496 | (arg1)->SetMargins(arg2,arg3); | |
14497 | ||
14498 | wxPyEndAllowThreads(__tstate); | |
14499 | if (PyErr_Occurred()) SWIG_fail; | |
14500 | } | |
14501 | Py_INCREF(Py_None); resultobj = Py_None; | |
14502 | return resultobj; | |
14503 | fail: | |
14504 | return NULL; | |
14505 | } | |
14506 | ||
14507 | ||
14508 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14509 | PyObject *resultobj; | |
14510 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14511 | wxSize *arg2 = 0 ; | |
14512 | wxSize temp2 ; | |
14513 | PyObject * obj0 = 0 ; | |
14514 | PyObject * obj1 = 0 ; | |
14515 | char *kwnames[] = { | |
14516 | (char *) "self",(char *) "size", NULL | |
14517 | }; | |
14518 | ||
14519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
14520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14521 | { | |
14522 | arg2 = &temp2; | |
14523 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14524 | } | |
14525 | { | |
14526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14527 | (arg1)->SetMargins((wxSize const &)*arg2); | |
14528 | ||
14529 | wxPyEndAllowThreads(__tstate); | |
14530 | if (PyErr_Occurred()) SWIG_fail; | |
14531 | } | |
14532 | Py_INCREF(Py_None); resultobj = Py_None; | |
14533 | return resultobj; | |
14534 | fail: | |
14535 | return NULL; | |
14536 | } | |
14537 | ||
14538 | ||
14539 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14540 | PyObject *resultobj; | |
14541 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14542 | int arg2 ; | |
14543 | PyObject * obj0 = 0 ; | |
14544 | char *kwnames[] = { | |
14545 | (char *) "self",(char *) "packing", NULL | |
14546 | }; | |
14547 | ||
14548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetToolPacking",kwnames,&obj0,&arg2)) goto fail; | |
14549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14550 | { | |
14551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14552 | (arg1)->SetToolPacking(arg2); | |
14553 | ||
14554 | wxPyEndAllowThreads(__tstate); | |
14555 | if (PyErr_Occurred()) SWIG_fail; | |
14556 | } | |
14557 | Py_INCREF(Py_None); resultobj = Py_None; | |
14558 | return resultobj; | |
14559 | fail: | |
14560 | return NULL; | |
14561 | } | |
14562 | ||
14563 | ||
14564 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14565 | PyObject *resultobj; | |
14566 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14567 | int arg2 ; | |
14568 | PyObject * obj0 = 0 ; | |
14569 | char *kwnames[] = { | |
14570 | (char *) "self",(char *) "separation", NULL | |
14571 | }; | |
14572 | ||
14573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetToolSeparation",kwnames,&obj0,&arg2)) goto fail; | |
14574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14575 | { | |
14576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14577 | (arg1)->SetToolSeparation(arg2); | |
14578 | ||
14579 | wxPyEndAllowThreads(__tstate); | |
14580 | if (PyErr_Occurred()) SWIG_fail; | |
14581 | } | |
14582 | Py_INCREF(Py_None); resultobj = Py_None; | |
14583 | return resultobj; | |
14584 | fail: | |
14585 | return NULL; | |
14586 | } | |
14587 | ||
14588 | ||
14589 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14590 | PyObject *resultobj; | |
14591 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14592 | wxSize result; | |
14593 | PyObject * obj0 = 0 ; | |
14594 | char *kwnames[] = { | |
14595 | (char *) "self", NULL | |
14596 | }; | |
14597 | ||
14598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
14599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14600 | { | |
14601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14602 | result = (arg1)->GetToolMargins(); | |
14603 | ||
14604 | wxPyEndAllowThreads(__tstate); | |
14605 | if (PyErr_Occurred()) SWIG_fail; | |
14606 | } | |
14607 | { | |
14608 | wxSize * resultptr; | |
14609 | resultptr = new wxSize((wxSize &) result); | |
14610 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14611 | } | |
14612 | return resultobj; | |
14613 | fail: | |
14614 | return NULL; | |
14615 | } | |
14616 | ||
14617 | ||
14618 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14619 | PyObject *resultobj; | |
14620 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14621 | wxSize result; | |
14622 | PyObject * obj0 = 0 ; | |
14623 | char *kwnames[] = { | |
14624 | (char *) "self", NULL | |
14625 | }; | |
14626 | ||
14627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
14628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14629 | { | |
14630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14631 | result = (arg1)->GetMargins(); | |
14632 | ||
14633 | wxPyEndAllowThreads(__tstate); | |
14634 | if (PyErr_Occurred()) SWIG_fail; | |
14635 | } | |
14636 | { | |
14637 | wxSize * resultptr; | |
14638 | resultptr = new wxSize((wxSize &) result); | |
14639 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14640 | } | |
14641 | return resultobj; | |
14642 | fail: | |
14643 | return NULL; | |
14644 | } | |
14645 | ||
14646 | ||
14647 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14648 | PyObject *resultobj; | |
14649 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14650 | int result; | |
14651 | PyObject * obj0 = 0 ; | |
14652 | char *kwnames[] = { | |
14653 | (char *) "self", NULL | |
14654 | }; | |
14655 | ||
14656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
14657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14658 | { | |
14659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14660 | result = (int)(arg1)->GetToolPacking(); | |
14661 | ||
14662 | wxPyEndAllowThreads(__tstate); | |
14663 | if (PyErr_Occurred()) SWIG_fail; | |
14664 | } | |
14665 | resultobj = PyInt_FromLong((long)result); | |
14666 | return resultobj; | |
14667 | fail: | |
14668 | return NULL; | |
14669 | } | |
14670 | ||
14671 | ||
14672 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14673 | PyObject *resultobj; | |
14674 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14675 | int result; | |
14676 | PyObject * obj0 = 0 ; | |
14677 | char *kwnames[] = { | |
14678 | (char *) "self", NULL | |
14679 | }; | |
14680 | ||
14681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
14682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14683 | { | |
14684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14685 | result = (int)(arg1)->GetToolSeparation(); | |
14686 | ||
14687 | wxPyEndAllowThreads(__tstate); | |
14688 | if (PyErr_Occurred()) SWIG_fail; | |
14689 | } | |
14690 | resultobj = PyInt_FromLong((long)result); | |
14691 | return resultobj; | |
14692 | fail: | |
14693 | return NULL; | |
14694 | } | |
14695 | ||
14696 | ||
14697 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14698 | PyObject *resultobj; | |
14699 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14700 | int arg2 ; | |
14701 | PyObject * obj0 = 0 ; | |
14702 | char *kwnames[] = { | |
14703 | (char *) "self",(char *) "nRows", NULL | |
14704 | }; | |
14705 | ||
14706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetRows",kwnames,&obj0,&arg2)) goto fail; | |
14707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14708 | { | |
14709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14710 | (arg1)->SetRows(arg2); | |
14711 | ||
14712 | wxPyEndAllowThreads(__tstate); | |
14713 | if (PyErr_Occurred()) SWIG_fail; | |
14714 | } | |
14715 | Py_INCREF(Py_None); resultobj = Py_None; | |
14716 | return resultobj; | |
14717 | fail: | |
14718 | return NULL; | |
14719 | } | |
14720 | ||
14721 | ||
14722 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14723 | PyObject *resultobj; | |
14724 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14725 | int arg2 ; | |
14726 | int arg3 ; | |
14727 | PyObject * obj0 = 0 ; | |
14728 | char *kwnames[] = { | |
14729 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
14730 | }; | |
14731 | ||
14732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_SetMaxRowsCols",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 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
14737 | ||
14738 | wxPyEndAllowThreads(__tstate); | |
14739 | if (PyErr_Occurred()) SWIG_fail; | |
14740 | } | |
14741 | Py_INCREF(Py_None); resultobj = Py_None; | |
14742 | return resultobj; | |
14743 | fail: | |
14744 | return NULL; | |
14745 | } | |
14746 | ||
14747 | ||
14748 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14749 | PyObject *resultobj; | |
14750 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14751 | int result; | |
14752 | PyObject * obj0 = 0 ; | |
14753 | char *kwnames[] = { | |
14754 | (char *) "self", NULL | |
14755 | }; | |
14756 | ||
14757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
14758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14759 | { | |
14760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14761 | result = (int)(arg1)->GetMaxRows(); | |
14762 | ||
14763 | wxPyEndAllowThreads(__tstate); | |
14764 | if (PyErr_Occurred()) SWIG_fail; | |
14765 | } | |
14766 | resultobj = PyInt_FromLong((long)result); | |
14767 | return resultobj; | |
14768 | fail: | |
14769 | return NULL; | |
14770 | } | |
14771 | ||
14772 | ||
14773 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14774 | PyObject *resultobj; | |
14775 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14776 | int result; | |
14777 | PyObject * obj0 = 0 ; | |
14778 | char *kwnames[] = { | |
14779 | (char *) "self", NULL | |
14780 | }; | |
14781 | ||
14782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
14783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14784 | { | |
14785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14786 | result = (int)(arg1)->GetMaxCols(); | |
14787 | ||
14788 | wxPyEndAllowThreads(__tstate); | |
14789 | if (PyErr_Occurred()) SWIG_fail; | |
14790 | } | |
14791 | resultobj = PyInt_FromLong((long)result); | |
14792 | return resultobj; | |
14793 | fail: | |
14794 | return NULL; | |
14795 | } | |
14796 | ||
14797 | ||
14798 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14799 | PyObject *resultobj; | |
14800 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14801 | wxSize *arg2 = 0 ; | |
14802 | wxSize temp2 ; | |
14803 | PyObject * obj0 = 0 ; | |
14804 | PyObject * obj1 = 0 ; | |
14805 | char *kwnames[] = { | |
14806 | (char *) "self",(char *) "size", NULL | |
14807 | }; | |
14808 | ||
14809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
14810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14811 | { | |
14812 | arg2 = &temp2; | |
14813 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14814 | } | |
14815 | { | |
14816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14817 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
14818 | ||
14819 | wxPyEndAllowThreads(__tstate); | |
14820 | if (PyErr_Occurred()) SWIG_fail; | |
14821 | } | |
14822 | Py_INCREF(Py_None); resultobj = Py_None; | |
14823 | return resultobj; | |
14824 | fail: | |
14825 | return NULL; | |
14826 | } | |
14827 | ||
14828 | ||
14829 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14830 | PyObject *resultobj; | |
14831 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14832 | wxSize result; | |
14833 | PyObject * obj0 = 0 ; | |
14834 | char *kwnames[] = { | |
14835 | (char *) "self", NULL | |
14836 | }; | |
14837 | ||
14838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
14839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14840 | { | |
14841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14842 | result = (arg1)->GetToolBitmapSize(); | |
14843 | ||
14844 | wxPyEndAllowThreads(__tstate); | |
14845 | if (PyErr_Occurred()) SWIG_fail; | |
14846 | } | |
14847 | { | |
14848 | wxSize * resultptr; | |
14849 | resultptr = new wxSize((wxSize &) result); | |
14850 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14851 | } | |
14852 | return resultobj; | |
14853 | fail: | |
14854 | return NULL; | |
14855 | } | |
14856 | ||
14857 | ||
14858 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14859 | PyObject *resultobj; | |
14860 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14861 | wxSize result; | |
14862 | PyObject * obj0 = 0 ; | |
14863 | char *kwnames[] = { | |
14864 | (char *) "self", NULL | |
14865 | }; | |
14866 | ||
14867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
14868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14869 | { | |
14870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14871 | result = (arg1)->GetToolSize(); | |
14872 | ||
14873 | wxPyEndAllowThreads(__tstate); | |
14874 | if (PyErr_Occurred()) SWIG_fail; | |
14875 | } | |
14876 | { | |
14877 | wxSize * resultptr; | |
14878 | resultptr = new wxSize((wxSize &) result); | |
14879 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14880 | } | |
14881 | return resultobj; | |
14882 | fail: | |
14883 | return NULL; | |
14884 | } | |
14885 | ||
14886 | ||
14887 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14888 | PyObject *resultobj; | |
14889 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
423f194a RD |
14890 | int arg2 ; |
14891 | int arg3 ; | |
d14a1e28 RD |
14892 | wxToolBarToolBase *result; |
14893 | PyObject * obj0 = 0 ; | |
14894 | char *kwnames[] = { | |
14895 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14896 | }; | |
14897 | ||
14898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_FindToolForPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14900 | { | |
14901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14902 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
14903 | ||
14904 | wxPyEndAllowThreads(__tstate); | |
14905 | if (PyErr_Occurred()) SWIG_fail; | |
14906 | } | |
14907 | { | |
14908 | resultobj = wxPyMake_wxObject(result); | |
14909 | } | |
14910 | return resultobj; | |
14911 | fail: | |
14912 | return NULL; | |
14913 | } | |
14914 | ||
14915 | ||
cbd72d4f RD |
14916 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
14917 | PyObject *resultobj; | |
14918 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14919 | int arg2 ; | |
14920 | wxToolBarToolBase *result; | |
14921 | PyObject * obj0 = 0 ; | |
14922 | char *kwnames[] = { | |
14923 | (char *) "self",(char *) "toolid", NULL | |
14924 | }; | |
14925 | ||
14926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_FindById",kwnames,&obj0,&arg2)) goto fail; | |
14927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14928 | { | |
14929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14930 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
14931 | ||
14932 | wxPyEndAllowThreads(__tstate); | |
14933 | if (PyErr_Occurred()) SWIG_fail; | |
14934 | } | |
14935 | { | |
14936 | resultobj = wxPyMake_wxObject(result); | |
14937 | } | |
14938 | return resultobj; | |
14939 | fail: | |
14940 | return NULL; | |
14941 | } | |
14942 | ||
14943 | ||
d14a1e28 RD |
14944 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
14945 | PyObject *resultobj; | |
14946 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14947 | bool result; | |
14948 | PyObject * obj0 = 0 ; | |
14949 | char *kwnames[] = { | |
14950 | (char *) "self", NULL | |
14951 | }; | |
14952 | ||
14953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
14954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14955 | { | |
14956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14957 | result = (bool)(arg1)->IsVertical(); | |
14958 | ||
14959 | wxPyEndAllowThreads(__tstate); | |
14960 | if (PyErr_Occurred()) SWIG_fail; | |
14961 | } | |
14962 | resultobj = PyInt_FromLong((long)result); | |
14963 | return resultobj; | |
14964 | fail: | |
14965 | return NULL; | |
14966 | } | |
14967 | ||
14968 | ||
14969 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
14970 | PyObject *obj; | |
14971 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14972 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
14973 | Py_INCREF(obj); | |
14974 | return Py_BuildValue((char *)""); | |
14975 | } | |
14976 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14977 | PyObject *resultobj; | |
14978 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 14979 | int arg2 ; |
d14a1e28 RD |
14980 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14981 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14982 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14983 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14984 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
14985 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
14986 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14987 | wxToolBar *result; | |
14988 | wxPoint temp3 ; | |
14989 | wxSize temp4 ; | |
423f194a | 14990 | bool temp6 = False ; |
d14a1e28 RD |
14991 | PyObject * obj0 = 0 ; |
14992 | PyObject * obj2 = 0 ; | |
14993 | PyObject * obj3 = 0 ; | |
14994 | PyObject * obj5 = 0 ; | |
14995 | char *kwnames[] = { | |
14996 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14997 | }; | |
14998 | ||
14999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_ToolBar",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
15000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15001 | if (obj2) { | |
15002 | { | |
15003 | arg3 = &temp3; | |
15004 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15005 | } | |
15006 | } | |
15007 | if (obj3) { | |
15008 | { | |
15009 | arg4 = &temp4; | |
15010 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15011 | } | |
15012 | } | |
15013 | if (obj5) { | |
15014 | { | |
15015 | arg6 = wxString_in_helper(obj5); | |
15016 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 15017 | temp6 = True; |
d14a1e28 RD |
15018 | } |
15019 | } | |
15020 | { | |
15021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15022 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15023 | ||
15024 | wxPyEndAllowThreads(__tstate); | |
15025 | if (PyErr_Occurred()) SWIG_fail; | |
15026 | } | |
15027 | { | |
15028 | resultobj = wxPyMake_wxObject(result); | |
15029 | } | |
15030 | { | |
15031 | if (temp6) | |
15032 | delete arg6; | |
15033 | } | |
15034 | return resultobj; | |
15035 | fail: | |
15036 | { | |
15037 | if (temp6) | |
15038 | delete arg6; | |
15039 | } | |
15040 | return NULL; | |
15041 | } | |
15042 | ||
15043 | ||
15044 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15045 | PyObject *resultobj; | |
15046 | wxToolBar *result; | |
15047 | char *kwnames[] = { | |
15048 | NULL | |
15049 | }; | |
15050 | ||
15051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
15052 | { | |
15053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15054 | result = (wxToolBar *)new wxToolBar(); | |
15055 | ||
15056 | wxPyEndAllowThreads(__tstate); | |
15057 | if (PyErr_Occurred()) SWIG_fail; | |
15058 | } | |
15059 | { | |
15060 | resultobj = wxPyMake_wxObject(result); | |
15061 | } | |
15062 | return resultobj; | |
15063 | fail: | |
15064 | return NULL; | |
15065 | } | |
15066 | ||
15067 | ||
15068 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15069 | PyObject *resultobj; | |
15070 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
15071 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 15072 | int arg3 ; |
d14a1e28 RD |
15073 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15074 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15075 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15076 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15077 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
15078 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
15079 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15080 | bool result; | |
15081 | wxPoint temp4 ; | |
15082 | wxSize temp5 ; | |
423f194a | 15083 | bool temp7 = False ; |
d14a1e28 RD |
15084 | PyObject * obj0 = 0 ; |
15085 | PyObject * obj1 = 0 ; | |
15086 | PyObject * obj3 = 0 ; | |
15087 | PyObject * obj4 = 0 ; | |
15088 | PyObject * obj6 = 0 ; | |
15089 | char *kwnames[] = { | |
15090 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15091 | }; | |
15092 | ||
15093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:ToolBar_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
15094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15095 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15096 | if (obj3) { | |
15097 | { | |
15098 | arg4 = &temp4; | |
15099 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15100 | } | |
15101 | } | |
15102 | if (obj4) { | |
15103 | { | |
15104 | arg5 = &temp5; | |
15105 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15106 | } | |
15107 | } | |
15108 | if (obj6) { | |
15109 | { | |
15110 | arg7 = wxString_in_helper(obj6); | |
15111 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 15112 | temp7 = True; |
d14a1e28 RD |
15113 | } |
15114 | } | |
15115 | { | |
15116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15117 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15118 | ||
15119 | wxPyEndAllowThreads(__tstate); | |
15120 | if (PyErr_Occurred()) SWIG_fail; | |
15121 | } | |
15122 | resultobj = PyInt_FromLong((long)result); | |
15123 | { | |
15124 | if (temp7) | |
15125 | delete arg7; | |
15126 | } | |
15127 | return resultobj; | |
15128 | fail: | |
15129 | { | |
15130 | if (temp7) | |
15131 | delete arg7; | |
15132 | } | |
15133 | return NULL; | |
15134 | } | |
15135 | ||
15136 | ||
15137 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15138 | PyObject *resultobj; | |
15139 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
423f194a RD |
15140 | int arg2 ; |
15141 | int arg3 ; | |
d14a1e28 RD |
15142 | wxToolBarToolBase *result; |
15143 | PyObject * obj0 = 0 ; | |
15144 | char *kwnames[] = { | |
15145 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15146 | }; | |
15147 | ||
15148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBar_FindToolForPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
15149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15150 | { | |
15151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15152 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
15153 | ||
15154 | wxPyEndAllowThreads(__tstate); | |
15155 | if (PyErr_Occurred()) SWIG_fail; | |
15156 | } | |
15157 | { | |
15158 | resultobj = wxPyMake_wxObject(result); | |
15159 | } | |
15160 | return resultobj; | |
15161 | fail: | |
15162 | return NULL; | |
15163 | } | |
15164 | ||
15165 | ||
15166 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
15167 | PyObject *obj; | |
15168 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15169 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
15170 | Py_INCREF(obj); | |
15171 | return Py_BuildValue((char *)""); | |
15172 | } | |
cbd72d4f RD |
15173 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { |
15174 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
15175 | return 1; | |
15176 | } | |
15177 | ||
15178 | ||
15179 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
15180 | PyObject *pyobj; | |
15181 | ||
15182 | { | |
15183 | #if wxUSE_UNICODE | |
15184 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
15185 | #else | |
15186 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
15187 | #endif | |
15188 | } | |
15189 | return pyobj; | |
15190 | } | |
15191 | ||
15192 | ||
d14a1e28 RD |
15193 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
15194 | PyObject *resultobj; | |
15195 | wxColour const &arg1_defvalue = wxNullColour ; | |
15196 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
15197 | wxColour const &arg2_defvalue = wxNullColour ; | |
15198 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
15199 | wxFont const &arg3_defvalue = wxNullFont ; | |
15200 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
15201 | wxListItemAttr *result; | |
15202 | wxColour temp1 ; | |
15203 | wxColour temp2 ; | |
15204 | PyObject * obj0 = 0 ; | |
15205 | PyObject * obj1 = 0 ; | |
15206 | PyObject * obj2 = 0 ; | |
15207 | char *kwnames[] = { | |
15208 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
15209 | }; | |
15210 | ||
15211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15212 | if (obj0) { | |
15213 | { | |
15214 | arg1 = &temp1; | |
15215 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
15216 | } | |
15217 | } | |
15218 | if (obj1) { | |
15219 | { | |
15220 | arg2 = &temp2; | |
15221 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15222 | } | |
15223 | } | |
15224 | if (obj2) { | |
15225 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15226 | if (arg3 == NULL) { | |
15227 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15228 | } | |
15229 | } | |
15230 | { | |
15231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15232 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
15233 | ||
15234 | wxPyEndAllowThreads(__tstate); | |
15235 | if (PyErr_Occurred()) SWIG_fail; | |
15236 | } | |
15237 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
15238 | return resultobj; | |
15239 | fail: | |
15240 | return NULL; | |
15241 | } | |
15242 | ||
15243 | ||
15244 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15245 | PyObject *resultobj; | |
15246 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15247 | wxColour *arg2 = 0 ; | |
15248 | wxColour temp2 ; | |
15249 | PyObject * obj0 = 0 ; | |
15250 | PyObject * obj1 = 0 ; | |
15251 | char *kwnames[] = { | |
15252 | (char *) "self",(char *) "colText", NULL | |
15253 | }; | |
15254 | ||
15255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15257 | { | |
15258 | arg2 = &temp2; | |
15259 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15260 | } | |
15261 | { | |
15262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15263 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
15264 | ||
15265 | wxPyEndAllowThreads(__tstate); | |
15266 | if (PyErr_Occurred()) SWIG_fail; | |
15267 | } | |
15268 | Py_INCREF(Py_None); resultobj = Py_None; | |
15269 | return resultobj; | |
15270 | fail: | |
15271 | return NULL; | |
15272 | } | |
15273 | ||
15274 | ||
15275 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15276 | PyObject *resultobj; | |
15277 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15278 | wxColour *arg2 = 0 ; | |
15279 | wxColour temp2 ; | |
15280 | PyObject * obj0 = 0 ; | |
15281 | PyObject * obj1 = 0 ; | |
15282 | char *kwnames[] = { | |
15283 | (char *) "self",(char *) "colBack", NULL | |
15284 | }; | |
15285 | ||
15286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15288 | { | |
15289 | arg2 = &temp2; | |
15290 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15291 | } | |
15292 | { | |
15293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15294 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
15295 | ||
15296 | wxPyEndAllowThreads(__tstate); | |
15297 | if (PyErr_Occurred()) SWIG_fail; | |
15298 | } | |
15299 | Py_INCREF(Py_None); resultobj = Py_None; | |
15300 | return resultobj; | |
15301 | fail: | |
15302 | return NULL; | |
15303 | } | |
15304 | ||
15305 | ||
15306 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15307 | PyObject *resultobj; | |
15308 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15309 | wxFont *arg2 = 0 ; | |
15310 | PyObject * obj0 = 0 ; | |
15311 | PyObject * obj1 = 0 ; | |
15312 | char *kwnames[] = { | |
15313 | (char *) "self",(char *) "font", NULL | |
15314 | }; | |
15315 | ||
15316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15318 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15319 | if (arg2 == NULL) { | |
15320 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15321 | } | |
15322 | { | |
15323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15324 | (arg1)->SetFont((wxFont const &)*arg2); | |
15325 | ||
15326 | wxPyEndAllowThreads(__tstate); | |
15327 | if (PyErr_Occurred()) SWIG_fail; | |
15328 | } | |
15329 | Py_INCREF(Py_None); resultobj = Py_None; | |
15330 | return resultobj; | |
15331 | fail: | |
15332 | return NULL; | |
15333 | } | |
15334 | ||
15335 | ||
15336 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15337 | PyObject *resultobj; | |
15338 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15339 | bool result; | |
15340 | PyObject * obj0 = 0 ; | |
15341 | char *kwnames[] = { | |
15342 | (char *) "self", NULL | |
15343 | }; | |
15344 | ||
15345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15347 | { | |
15348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15349 | result = (bool)(arg1)->HasTextColour(); | |
15350 | ||
15351 | wxPyEndAllowThreads(__tstate); | |
15352 | if (PyErr_Occurred()) SWIG_fail; | |
15353 | } | |
15354 | resultobj = PyInt_FromLong((long)result); | |
15355 | return resultobj; | |
15356 | fail: | |
15357 | return NULL; | |
15358 | } | |
15359 | ||
15360 | ||
15361 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15362 | PyObject *resultobj; | |
15363 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15364 | bool result; | |
15365 | PyObject * obj0 = 0 ; | |
15366 | char *kwnames[] = { | |
15367 | (char *) "self", NULL | |
15368 | }; | |
15369 | ||
15370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15372 | { | |
15373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15374 | result = (bool)(arg1)->HasBackgroundColour(); | |
15375 | ||
15376 | wxPyEndAllowThreads(__tstate); | |
15377 | if (PyErr_Occurred()) SWIG_fail; | |
15378 | } | |
15379 | resultobj = PyInt_FromLong((long)result); | |
15380 | return resultobj; | |
15381 | fail: | |
15382 | return NULL; | |
15383 | } | |
15384 | ||
15385 | ||
15386 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15387 | PyObject *resultobj; | |
15388 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15389 | bool result; | |
15390 | PyObject * obj0 = 0 ; | |
15391 | char *kwnames[] = { | |
15392 | (char *) "self", NULL | |
15393 | }; | |
15394 | ||
15395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
15396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15397 | { | |
15398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15399 | result = (bool)(arg1)->HasFont(); | |
15400 | ||
15401 | wxPyEndAllowThreads(__tstate); | |
15402 | if (PyErr_Occurred()) SWIG_fail; | |
15403 | } | |
15404 | resultobj = PyInt_FromLong((long)result); | |
15405 | return resultobj; | |
15406 | fail: | |
15407 | return NULL; | |
15408 | } | |
15409 | ||
15410 | ||
15411 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15412 | PyObject *resultobj; | |
15413 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15414 | wxColour result; | |
15415 | PyObject * obj0 = 0 ; | |
15416 | char *kwnames[] = { | |
15417 | (char *) "self", NULL | |
15418 | }; | |
15419 | ||
15420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15422 | { | |
15423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15424 | result = (arg1)->GetTextColour(); | |
15425 | ||
15426 | wxPyEndAllowThreads(__tstate); | |
15427 | if (PyErr_Occurred()) SWIG_fail; | |
15428 | } | |
15429 | { | |
15430 | wxColour * resultptr; | |
15431 | resultptr = new wxColour((wxColour &) result); | |
15432 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15433 | } | |
15434 | return resultobj; | |
15435 | fail: | |
15436 | return NULL; | |
15437 | } | |
15438 | ||
15439 | ||
15440 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15441 | PyObject *resultobj; | |
15442 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15443 | wxColour result; | |
15444 | PyObject * obj0 = 0 ; | |
15445 | char *kwnames[] = { | |
15446 | (char *) "self", NULL | |
15447 | }; | |
15448 | ||
15449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15451 | { | |
15452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15453 | result = (arg1)->GetBackgroundColour(); | |
15454 | ||
15455 | wxPyEndAllowThreads(__tstate); | |
15456 | if (PyErr_Occurred()) SWIG_fail; | |
15457 | } | |
15458 | { | |
15459 | wxColour * resultptr; | |
15460 | resultptr = new wxColour((wxColour &) result); | |
15461 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15462 | } | |
15463 | return resultobj; | |
15464 | fail: | |
15465 | return NULL; | |
15466 | } | |
15467 | ||
15468 | ||
15469 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15470 | PyObject *resultobj; | |
15471 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15472 | wxFont result; | |
15473 | PyObject * obj0 = 0 ; | |
15474 | char *kwnames[] = { | |
15475 | (char *) "self", NULL | |
15476 | }; | |
15477 | ||
15478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
15479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15480 | { | |
15481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15482 | result = (arg1)->GetFont(); | |
15483 | ||
15484 | wxPyEndAllowThreads(__tstate); | |
15485 | if (PyErr_Occurred()) SWIG_fail; | |
15486 | } | |
15487 | { | |
15488 | wxFont * resultptr; | |
15489 | resultptr = new wxFont((wxFont &) result); | |
15490 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
15491 | } | |
15492 | return resultobj; | |
15493 | fail: | |
15494 | return NULL; | |
15495 | } | |
15496 | ||
15497 | ||
15498 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15499 | PyObject *resultobj; | |
15500 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15501 | PyObject * obj0 = 0 ; | |
15502 | char *kwnames[] = { | |
15503 | (char *) "self", NULL | |
15504 | }; | |
15505 | ||
15506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
15507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15508 | { | |
15509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15510 | wxListItemAttr_Destroy(arg1); | |
15511 | ||
15512 | wxPyEndAllowThreads(__tstate); | |
15513 | if (PyErr_Occurred()) SWIG_fail; | |
15514 | } | |
15515 | Py_INCREF(Py_None); resultobj = Py_None; | |
15516 | return resultobj; | |
15517 | fail: | |
15518 | return NULL; | |
15519 | } | |
15520 | ||
15521 | ||
15522 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
15523 | PyObject *obj; | |
15524 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15525 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
15526 | Py_INCREF(obj); | |
15527 | return Py_BuildValue((char *)""); | |
15528 | } | |
15529 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15530 | PyObject *resultobj; | |
15531 | wxListItem *result; | |
15532 | char *kwnames[] = { | |
15533 | NULL | |
15534 | }; | |
15535 | ||
15536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
15537 | { | |
15538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15539 | result = (wxListItem *)new wxListItem(); | |
15540 | ||
15541 | wxPyEndAllowThreads(__tstate); | |
15542 | if (PyErr_Occurred()) SWIG_fail; | |
15543 | } | |
15544 | { | |
15545 | resultobj = wxPyMake_wxObject(result); | |
15546 | } | |
15547 | return resultobj; | |
15548 | fail: | |
15549 | return NULL; | |
15550 | } | |
15551 | ||
15552 | ||
15553 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15554 | PyObject *resultobj; | |
15555 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15556 | PyObject * obj0 = 0 ; | |
15557 | char *kwnames[] = { | |
15558 | (char *) "self", NULL | |
15559 | }; | |
15560 | ||
15561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
15562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15563 | { | |
15564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15565 | delete arg1; | |
15566 | ||
15567 | wxPyEndAllowThreads(__tstate); | |
15568 | if (PyErr_Occurred()) SWIG_fail; | |
15569 | } | |
15570 | Py_INCREF(Py_None); resultobj = Py_None; | |
15571 | return resultobj; | |
15572 | fail: | |
15573 | return NULL; | |
15574 | } | |
15575 | ||
15576 | ||
15577 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15578 | PyObject *resultobj; | |
15579 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15580 | PyObject * obj0 = 0 ; | |
15581 | char *kwnames[] = { | |
15582 | (char *) "self", NULL | |
15583 | }; | |
15584 | ||
15585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) 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)->Clear(); | |
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_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15602 | PyObject *resultobj; | |
15603 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15604 | PyObject * obj0 = 0 ; | |
15605 | char *kwnames[] = { | |
15606 | (char *) "self", NULL | |
15607 | }; | |
15608 | ||
15609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
15610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15611 | { | |
15612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15613 | (arg1)->ClearAttributes(); | |
15614 | ||
15615 | wxPyEndAllowThreads(__tstate); | |
15616 | if (PyErr_Occurred()) SWIG_fail; | |
15617 | } | |
15618 | Py_INCREF(Py_None); resultobj = Py_None; | |
15619 | return resultobj; | |
15620 | fail: | |
15621 | return NULL; | |
15622 | } | |
15623 | ||
15624 | ||
15625 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15626 | PyObject *resultobj; | |
15627 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15628 | long arg2 ; | |
15629 | PyObject * obj0 = 0 ; | |
15630 | char *kwnames[] = { | |
15631 | (char *) "self",(char *) "mask", NULL | |
15632 | }; | |
15633 | ||
15634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetMask",kwnames,&obj0,&arg2)) goto fail; | |
15635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15636 | { | |
15637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15638 | (arg1)->SetMask(arg2); | |
15639 | ||
15640 | wxPyEndAllowThreads(__tstate); | |
15641 | if (PyErr_Occurred()) SWIG_fail; | |
15642 | } | |
15643 | Py_INCREF(Py_None); resultobj = Py_None; | |
15644 | return resultobj; | |
15645 | fail: | |
15646 | return NULL; | |
15647 | } | |
15648 | ||
15649 | ||
15650 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15651 | PyObject *resultobj; | |
15652 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15653 | long arg2 ; | |
15654 | PyObject * obj0 = 0 ; | |
15655 | char *kwnames[] = { | |
15656 | (char *) "self",(char *) "id", NULL | |
15657 | }; | |
15658 | ||
15659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetId",kwnames,&obj0,&arg2)) goto fail; | |
15660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15661 | { | |
15662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15663 | (arg1)->SetId(arg2); | |
15664 | ||
15665 | wxPyEndAllowThreads(__tstate); | |
15666 | if (PyErr_Occurred()) SWIG_fail; | |
15667 | } | |
15668 | Py_INCREF(Py_None); resultobj = Py_None; | |
15669 | return resultobj; | |
15670 | fail: | |
15671 | return NULL; | |
15672 | } | |
15673 | ||
15674 | ||
15675 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15676 | PyObject *resultobj; | |
15677 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15678 | int arg2 ; | |
15679 | PyObject * obj0 = 0 ; | |
15680 | char *kwnames[] = { | |
15681 | (char *) "self",(char *) "col", NULL | |
15682 | }; | |
15683 | ||
15684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetColumn",kwnames,&obj0,&arg2)) goto fail; | |
15685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15686 | { | |
15687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15688 | (arg1)->SetColumn(arg2); | |
15689 | ||
15690 | wxPyEndAllowThreads(__tstate); | |
15691 | if (PyErr_Occurred()) SWIG_fail; | |
15692 | } | |
15693 | Py_INCREF(Py_None); resultobj = Py_None; | |
15694 | return resultobj; | |
15695 | fail: | |
15696 | return NULL; | |
15697 | } | |
15698 | ||
15699 | ||
15700 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15701 | PyObject *resultobj; | |
15702 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15703 | long arg2 ; | |
15704 | PyObject * obj0 = 0 ; | |
15705 | char *kwnames[] = { | |
15706 | (char *) "self",(char *) "state", NULL | |
15707 | }; | |
15708 | ||
15709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetState",kwnames,&obj0,&arg2)) goto fail; | |
15710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15711 | { | |
15712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15713 | (arg1)->SetState(arg2); | |
15714 | ||
15715 | wxPyEndAllowThreads(__tstate); | |
15716 | if (PyErr_Occurred()) SWIG_fail; | |
15717 | } | |
15718 | Py_INCREF(Py_None); resultobj = Py_None; | |
15719 | return resultobj; | |
15720 | fail: | |
15721 | return NULL; | |
15722 | } | |
15723 | ||
15724 | ||
15725 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15726 | PyObject *resultobj; | |
15727 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15728 | long arg2 ; | |
15729 | PyObject * obj0 = 0 ; | |
15730 | char *kwnames[] = { | |
15731 | (char *) "self",(char *) "stateMask", NULL | |
15732 | }; | |
15733 | ||
15734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetStateMask",kwnames,&obj0,&arg2)) goto fail; | |
15735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15736 | { | |
15737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15738 | (arg1)->SetStateMask(arg2); | |
15739 | ||
15740 | wxPyEndAllowThreads(__tstate); | |
15741 | if (PyErr_Occurred()) SWIG_fail; | |
15742 | } | |
15743 | Py_INCREF(Py_None); resultobj = Py_None; | |
15744 | return resultobj; | |
15745 | fail: | |
15746 | return NULL; | |
15747 | } | |
15748 | ||
15749 | ||
15750 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15751 | PyObject *resultobj; | |
15752 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15753 | wxString *arg2 = 0 ; | |
423f194a | 15754 | bool temp2 = False ; |
d14a1e28 RD |
15755 | PyObject * obj0 = 0 ; |
15756 | PyObject * obj1 = 0 ; | |
15757 | char *kwnames[] = { | |
15758 | (char *) "self",(char *) "text", NULL | |
15759 | }; | |
15760 | ||
15761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15763 | { | |
15764 | arg2 = wxString_in_helper(obj1); | |
15765 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15766 | temp2 = True; |
d14a1e28 RD |
15767 | } |
15768 | { | |
15769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15770 | (arg1)->SetText((wxString const &)*arg2); | |
15771 | ||
15772 | wxPyEndAllowThreads(__tstate); | |
15773 | if (PyErr_Occurred()) SWIG_fail; | |
15774 | } | |
15775 | Py_INCREF(Py_None); resultobj = Py_None; | |
15776 | { | |
15777 | if (temp2) | |
15778 | delete arg2; | |
15779 | } | |
15780 | return resultobj; | |
15781 | fail: | |
15782 | { | |
15783 | if (temp2) | |
15784 | delete arg2; | |
15785 | } | |
15786 | return NULL; | |
15787 | } | |
15788 | ||
15789 | ||
15790 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15791 | PyObject *resultobj; | |
15792 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15793 | int arg2 ; | |
15794 | PyObject * obj0 = 0 ; | |
15795 | char *kwnames[] = { | |
15796 | (char *) "self",(char *) "image", NULL | |
15797 | }; | |
15798 | ||
15799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetImage",kwnames,&obj0,&arg2)) goto fail; | |
15800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15801 | { | |
15802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15803 | (arg1)->SetImage(arg2); | |
15804 | ||
15805 | wxPyEndAllowThreads(__tstate); | |
15806 | if (PyErr_Occurred()) SWIG_fail; | |
15807 | } | |
15808 | Py_INCREF(Py_None); resultobj = Py_None; | |
15809 | return resultobj; | |
15810 | fail: | |
15811 | return NULL; | |
15812 | } | |
15813 | ||
15814 | ||
15815 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15816 | PyObject *resultobj; | |
15817 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15818 | long arg2 ; | |
15819 | PyObject * obj0 = 0 ; | |
15820 | char *kwnames[] = { | |
15821 | (char *) "self",(char *) "data", NULL | |
15822 | }; | |
15823 | ||
15824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetData",kwnames,&obj0,&arg2)) goto fail; | |
15825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15826 | { | |
15827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15828 | (arg1)->SetData(arg2); | |
15829 | ||
15830 | wxPyEndAllowThreads(__tstate); | |
15831 | if (PyErr_Occurred()) SWIG_fail; | |
15832 | } | |
15833 | Py_INCREF(Py_None); resultobj = Py_None; | |
15834 | return resultobj; | |
15835 | fail: | |
15836 | return NULL; | |
15837 | } | |
15838 | ||
15839 | ||
15840 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15841 | PyObject *resultobj; | |
15842 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15843 | int arg2 ; | |
15844 | PyObject * obj0 = 0 ; | |
15845 | char *kwnames[] = { | |
15846 | (char *) "self",(char *) "width", NULL | |
15847 | }; | |
15848 | ||
15849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
15850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15851 | { | |
15852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15853 | (arg1)->SetWidth(arg2); | |
15854 | ||
15855 | wxPyEndAllowThreads(__tstate); | |
15856 | if (PyErr_Occurred()) SWIG_fail; | |
15857 | } | |
15858 | Py_INCREF(Py_None); resultobj = Py_None; | |
15859 | return resultobj; | |
15860 | fail: | |
15861 | return NULL; | |
15862 | } | |
15863 | ||
15864 | ||
15865 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15866 | PyObject *resultobj; | |
15867 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15868 | int arg2 ; | |
15869 | PyObject * obj0 = 0 ; | |
15870 | char *kwnames[] = { | |
15871 | (char *) "self",(char *) "align", NULL | |
15872 | }; | |
15873 | ||
15874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetAlign",kwnames,&obj0,&arg2)) goto fail; | |
15875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15876 | { | |
15877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15878 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
15879 | ||
15880 | wxPyEndAllowThreads(__tstate); | |
15881 | if (PyErr_Occurred()) SWIG_fail; | |
15882 | } | |
15883 | Py_INCREF(Py_None); resultobj = Py_None; | |
15884 | return resultobj; | |
15885 | fail: | |
15886 | return NULL; | |
15887 | } | |
15888 | ||
15889 | ||
15890 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15891 | PyObject *resultobj; | |
15892 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15893 | wxColour *arg2 = 0 ; | |
15894 | wxColour temp2 ; | |
15895 | PyObject * obj0 = 0 ; | |
15896 | PyObject * obj1 = 0 ; | |
15897 | char *kwnames[] = { | |
15898 | (char *) "self",(char *) "colText", NULL | |
15899 | }; | |
15900 | ||
15901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15903 | { | |
15904 | arg2 = &temp2; | |
15905 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15906 | } | |
15907 | { | |
15908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15909 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
15910 | ||
15911 | wxPyEndAllowThreads(__tstate); | |
15912 | if (PyErr_Occurred()) SWIG_fail; | |
15913 | } | |
15914 | Py_INCREF(Py_None); resultobj = Py_None; | |
15915 | return resultobj; | |
15916 | fail: | |
15917 | return NULL; | |
15918 | } | |
15919 | ||
15920 | ||
15921 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15922 | PyObject *resultobj; | |
15923 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15924 | wxColour *arg2 = 0 ; | |
15925 | wxColour temp2 ; | |
15926 | PyObject * obj0 = 0 ; | |
15927 | PyObject * obj1 = 0 ; | |
15928 | char *kwnames[] = { | |
15929 | (char *) "self",(char *) "colBack", NULL | |
15930 | }; | |
15931 | ||
15932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15934 | { | |
15935 | arg2 = &temp2; | |
15936 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15937 | } | |
15938 | { | |
15939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15940 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
15941 | ||
15942 | wxPyEndAllowThreads(__tstate); | |
15943 | if (PyErr_Occurred()) SWIG_fail; | |
15944 | } | |
15945 | Py_INCREF(Py_None); resultobj = Py_None; | |
15946 | return resultobj; | |
15947 | fail: | |
15948 | return NULL; | |
15949 | } | |
15950 | ||
15951 | ||
15952 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15953 | PyObject *resultobj; | |
15954 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15955 | wxFont *arg2 = 0 ; | |
15956 | PyObject * obj0 = 0 ; | |
15957 | PyObject * obj1 = 0 ; | |
15958 | char *kwnames[] = { | |
15959 | (char *) "self",(char *) "font", NULL | |
15960 | }; | |
15961 | ||
15962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15964 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15965 | if (arg2 == NULL) { | |
15966 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15967 | } | |
15968 | { | |
15969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15970 | (arg1)->SetFont((wxFont const &)*arg2); | |
15971 | ||
15972 | wxPyEndAllowThreads(__tstate); | |
15973 | if (PyErr_Occurred()) SWIG_fail; | |
15974 | } | |
15975 | Py_INCREF(Py_None); resultobj = Py_None; | |
15976 | return resultobj; | |
15977 | fail: | |
15978 | return NULL; | |
15979 | } | |
15980 | ||
15981 | ||
15982 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15983 | PyObject *resultobj; | |
15984 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15985 | long result; | |
15986 | PyObject * obj0 = 0 ; | |
15987 | char *kwnames[] = { | |
15988 | (char *) "self", NULL | |
15989 | }; | |
15990 | ||
15991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
15992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15993 | { | |
15994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15995 | result = (long)(arg1)->GetMask(); | |
15996 | ||
15997 | wxPyEndAllowThreads(__tstate); | |
15998 | if (PyErr_Occurred()) SWIG_fail; | |
15999 | } | |
16000 | resultobj = PyInt_FromLong((long)result); | |
16001 | return resultobj; | |
16002 | fail: | |
16003 | return NULL; | |
16004 | } | |
16005 | ||
16006 | ||
16007 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16008 | PyObject *resultobj; | |
16009 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16010 | long result; | |
16011 | PyObject * obj0 = 0 ; | |
16012 | char *kwnames[] = { | |
16013 | (char *) "self", NULL | |
16014 | }; | |
16015 | ||
16016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
16017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16018 | { | |
16019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16020 | result = (long)(arg1)->GetId(); | |
16021 | ||
16022 | wxPyEndAllowThreads(__tstate); | |
16023 | if (PyErr_Occurred()) SWIG_fail; | |
16024 | } | |
16025 | resultobj = PyInt_FromLong((long)result); | |
16026 | return resultobj; | |
16027 | fail: | |
16028 | return NULL; | |
16029 | } | |
16030 | ||
16031 | ||
16032 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16033 | PyObject *resultobj; | |
16034 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16035 | int result; | |
16036 | PyObject * obj0 = 0 ; | |
16037 | char *kwnames[] = { | |
16038 | (char *) "self", NULL | |
16039 | }; | |
16040 | ||
16041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
16042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16043 | { | |
16044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16045 | result = (int)(arg1)->GetColumn(); | |
16046 | ||
16047 | wxPyEndAllowThreads(__tstate); | |
16048 | if (PyErr_Occurred()) SWIG_fail; | |
16049 | } | |
16050 | resultobj = PyInt_FromLong((long)result); | |
16051 | return resultobj; | |
16052 | fail: | |
16053 | return NULL; | |
16054 | } | |
16055 | ||
16056 | ||
16057 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16058 | PyObject *resultobj; | |
16059 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16060 | long result; | |
16061 | PyObject * obj0 = 0 ; | |
16062 | char *kwnames[] = { | |
16063 | (char *) "self", NULL | |
16064 | }; | |
16065 | ||
16066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
16067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16068 | { | |
16069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16070 | result = (long)(arg1)->GetState(); | |
16071 | ||
16072 | wxPyEndAllowThreads(__tstate); | |
16073 | if (PyErr_Occurred()) SWIG_fail; | |
16074 | } | |
16075 | resultobj = PyInt_FromLong((long)result); | |
16076 | return resultobj; | |
16077 | fail: | |
16078 | return NULL; | |
16079 | } | |
16080 | ||
16081 | ||
16082 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16083 | PyObject *resultobj; | |
16084 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16085 | wxString *result; | |
16086 | PyObject * obj0 = 0 ; | |
16087 | char *kwnames[] = { | |
16088 | (char *) "self", NULL | |
16089 | }; | |
16090 | ||
16091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
16092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16093 | { | |
16094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16095 | { | |
16096 | wxString const &_result_ref = (arg1)->GetText(); | |
16097 | result = (wxString *) &_result_ref; | |
16098 | } | |
16099 | ||
16100 | wxPyEndAllowThreads(__tstate); | |
16101 | if (PyErr_Occurred()) SWIG_fail; | |
16102 | } | |
0f774bef RD |
16103 | { |
16104 | #if wxUSE_UNICODE | |
16105 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16106 | #else | |
16107 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16108 | #endif | |
16109 | } | |
d14a1e28 RD |
16110 | return resultobj; |
16111 | fail: | |
16112 | return NULL; | |
16113 | } | |
16114 | ||
16115 | ||
16116 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16117 | PyObject *resultobj; | |
16118 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16119 | int result; | |
16120 | PyObject * obj0 = 0 ; | |
16121 | char *kwnames[] = { | |
16122 | (char *) "self", NULL | |
16123 | }; | |
16124 | ||
16125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
16126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16127 | { | |
16128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16129 | result = (int)(arg1)->GetImage(); | |
16130 | ||
16131 | wxPyEndAllowThreads(__tstate); | |
16132 | if (PyErr_Occurred()) SWIG_fail; | |
16133 | } | |
16134 | resultobj = PyInt_FromLong((long)result); | |
16135 | return resultobj; | |
16136 | fail: | |
16137 | return NULL; | |
16138 | } | |
16139 | ||
16140 | ||
16141 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16142 | PyObject *resultobj; | |
16143 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16144 | long result; | |
16145 | PyObject * obj0 = 0 ; | |
16146 | char *kwnames[] = { | |
16147 | (char *) "self", NULL | |
16148 | }; | |
16149 | ||
16150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
16151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16152 | { | |
16153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16154 | result = (long)(arg1)->GetData(); | |
16155 | ||
16156 | wxPyEndAllowThreads(__tstate); | |
16157 | if (PyErr_Occurred()) SWIG_fail; | |
16158 | } | |
16159 | resultobj = PyInt_FromLong((long)result); | |
16160 | return resultobj; | |
16161 | fail: | |
16162 | return NULL; | |
16163 | } | |
16164 | ||
16165 | ||
16166 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16167 | PyObject *resultobj; | |
16168 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16169 | int result; | |
16170 | PyObject * obj0 = 0 ; | |
16171 | char *kwnames[] = { | |
16172 | (char *) "self", NULL | |
16173 | }; | |
16174 | ||
16175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
16176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16177 | { | |
16178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16179 | result = (int)(arg1)->GetWidth(); | |
16180 | ||
16181 | wxPyEndAllowThreads(__tstate); | |
16182 | if (PyErr_Occurred()) SWIG_fail; | |
16183 | } | |
16184 | resultobj = PyInt_FromLong((long)result); | |
16185 | return resultobj; | |
16186 | fail: | |
16187 | return NULL; | |
16188 | } | |
16189 | ||
16190 | ||
16191 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16192 | PyObject *resultobj; | |
16193 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16194 | int result; | |
16195 | PyObject * obj0 = 0 ; | |
16196 | char *kwnames[] = { | |
16197 | (char *) "self", NULL | |
16198 | }; | |
16199 | ||
16200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
16201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16202 | { | |
16203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16204 | result = (int)(arg1)->GetAlign(); | |
16205 | ||
16206 | wxPyEndAllowThreads(__tstate); | |
16207 | if (PyErr_Occurred()) SWIG_fail; | |
16208 | } | |
16209 | resultobj = PyInt_FromLong((long)result); | |
16210 | return resultobj; | |
16211 | fail: | |
16212 | return NULL; | |
16213 | } | |
16214 | ||
16215 | ||
16216 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16217 | PyObject *resultobj; | |
16218 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16219 | wxListItemAttr *result; | |
16220 | PyObject * obj0 = 0 ; | |
16221 | char *kwnames[] = { | |
16222 | (char *) "self", NULL | |
16223 | }; | |
16224 | ||
16225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
16226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16227 | { | |
16228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16229 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
16230 | ||
16231 | wxPyEndAllowThreads(__tstate); | |
16232 | if (PyErr_Occurred()) SWIG_fail; | |
16233 | } | |
16234 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
16235 | return resultobj; | |
16236 | fail: | |
16237 | return NULL; | |
16238 | } | |
16239 | ||
16240 | ||
16241 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16242 | PyObject *resultobj; | |
16243 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16244 | bool result; | |
16245 | PyObject * obj0 = 0 ; | |
16246 | char *kwnames[] = { | |
16247 | (char *) "self", NULL | |
16248 | }; | |
16249 | ||
16250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
16251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16252 | { | |
16253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16254 | result = (bool)(arg1)->HasAttributes(); | |
16255 | ||
16256 | wxPyEndAllowThreads(__tstate); | |
16257 | if (PyErr_Occurred()) SWIG_fail; | |
16258 | } | |
16259 | resultobj = PyInt_FromLong((long)result); | |
16260 | return resultobj; | |
16261 | fail: | |
16262 | return NULL; | |
16263 | } | |
16264 | ||
16265 | ||
16266 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16267 | PyObject *resultobj; | |
16268 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16269 | wxColour result; | |
16270 | PyObject * obj0 = 0 ; | |
16271 | char *kwnames[] = { | |
16272 | (char *) "self", NULL | |
16273 | }; | |
16274 | ||
16275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
16276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16277 | { | |
16278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16279 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
16280 | ||
16281 | wxPyEndAllowThreads(__tstate); | |
16282 | if (PyErr_Occurred()) SWIG_fail; | |
16283 | } | |
16284 | { | |
16285 | wxColour * resultptr; | |
16286 | resultptr = new wxColour((wxColour &) result); | |
16287 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16288 | } | |
16289 | return resultobj; | |
16290 | fail: | |
16291 | return NULL; | |
16292 | } | |
16293 | ||
16294 | ||
16295 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16296 | PyObject *resultobj; | |
16297 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16298 | wxColour result; | |
16299 | PyObject * obj0 = 0 ; | |
16300 | char *kwnames[] = { | |
16301 | (char *) "self", NULL | |
16302 | }; | |
16303 | ||
16304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
16305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16306 | { | |
16307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16308 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
16309 | ||
16310 | wxPyEndAllowThreads(__tstate); | |
16311 | if (PyErr_Occurred()) SWIG_fail; | |
16312 | } | |
16313 | { | |
16314 | wxColour * resultptr; | |
16315 | resultptr = new wxColour((wxColour &) result); | |
16316 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16317 | } | |
16318 | return resultobj; | |
16319 | fail: | |
16320 | return NULL; | |
16321 | } | |
16322 | ||
16323 | ||
16324 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16325 | PyObject *resultobj; | |
16326 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16327 | wxFont result; | |
16328 | PyObject * obj0 = 0 ; | |
16329 | char *kwnames[] = { | |
16330 | (char *) "self", NULL | |
16331 | }; | |
16332 | ||
16333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
16334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16335 | { | |
16336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16337 | result = ((wxListItem const *)arg1)->GetFont(); | |
16338 | ||
16339 | wxPyEndAllowThreads(__tstate); | |
16340 | if (PyErr_Occurred()) SWIG_fail; | |
16341 | } | |
16342 | { | |
16343 | wxFont * resultptr; | |
16344 | resultptr = new wxFont((wxFont &) result); | |
16345 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
16346 | } | |
16347 | return resultobj; | |
16348 | fail: | |
16349 | return NULL; | |
16350 | } | |
16351 | ||
16352 | ||
16353 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16354 | PyObject *resultobj; | |
16355 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16356 | long arg2 ; | |
16357 | PyObject * obj0 = 0 ; | |
16358 | char *kwnames[] = { | |
16359 | (char *) "self",(char *) "m_mask", NULL | |
16360 | }; | |
16361 | ||
16362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_mask_set",kwnames,&obj0,&arg2)) goto fail; | |
16363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16364 | if (arg1) (arg1)->m_mask = arg2; | |
16365 | ||
16366 | Py_INCREF(Py_None); resultobj = Py_None; | |
16367 | return resultobj; | |
16368 | fail: | |
16369 | return NULL; | |
16370 | } | |
16371 | ||
16372 | ||
16373 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16374 | PyObject *resultobj; | |
16375 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16376 | long result; | |
16377 | PyObject * obj0 = 0 ; | |
16378 | char *kwnames[] = { | |
16379 | (char *) "self", NULL | |
16380 | }; | |
16381 | ||
16382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
16383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16384 | result = (long) ((arg1)->m_mask); | |
16385 | ||
16386 | resultobj = PyInt_FromLong((long)result); | |
16387 | return resultobj; | |
16388 | fail: | |
16389 | return NULL; | |
16390 | } | |
16391 | ||
16392 | ||
16393 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16394 | PyObject *resultobj; | |
16395 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16396 | long arg2 ; | |
16397 | PyObject * obj0 = 0 ; | |
16398 | char *kwnames[] = { | |
16399 | (char *) "self",(char *) "m_itemId", NULL | |
16400 | }; | |
16401 | ||
16402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_itemId_set",kwnames,&obj0,&arg2)) goto fail; | |
16403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16404 | if (arg1) (arg1)->m_itemId = arg2; | |
16405 | ||
16406 | Py_INCREF(Py_None); resultobj = Py_None; | |
16407 | return resultobj; | |
16408 | fail: | |
16409 | return NULL; | |
16410 | } | |
16411 | ||
16412 | ||
16413 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16414 | PyObject *resultobj; | |
16415 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16416 | long result; | |
16417 | PyObject * obj0 = 0 ; | |
16418 | char *kwnames[] = { | |
16419 | (char *) "self", NULL | |
16420 | }; | |
16421 | ||
16422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
16423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16424 | result = (long) ((arg1)->m_itemId); | |
16425 | ||
16426 | resultobj = PyInt_FromLong((long)result); | |
16427 | return resultobj; | |
16428 | fail: | |
16429 | return NULL; | |
16430 | } | |
16431 | ||
16432 | ||
16433 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16434 | PyObject *resultobj; | |
16435 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16436 | int arg2 ; | |
16437 | PyObject * obj0 = 0 ; | |
16438 | char *kwnames[] = { | |
16439 | (char *) "self",(char *) "m_col", NULL | |
16440 | }; | |
16441 | ||
16442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_col_set",kwnames,&obj0,&arg2)) goto fail; | |
16443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16444 | if (arg1) (arg1)->m_col = arg2; | |
16445 | ||
16446 | Py_INCREF(Py_None); resultobj = Py_None; | |
16447 | return resultobj; | |
16448 | fail: | |
16449 | return NULL; | |
16450 | } | |
16451 | ||
16452 | ||
16453 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16454 | PyObject *resultobj; | |
16455 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16456 | int result; | |
16457 | PyObject * obj0 = 0 ; | |
16458 | char *kwnames[] = { | |
16459 | (char *) "self", NULL | |
16460 | }; | |
16461 | ||
16462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
16463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16464 | result = (int) ((arg1)->m_col); | |
16465 | ||
16466 | resultobj = PyInt_FromLong((long)result); | |
16467 | return resultobj; | |
16468 | fail: | |
16469 | return NULL; | |
16470 | } | |
16471 | ||
16472 | ||
16473 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16474 | PyObject *resultobj; | |
16475 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16476 | long arg2 ; | |
16477 | PyObject * obj0 = 0 ; | |
16478 | char *kwnames[] = { | |
16479 | (char *) "self",(char *) "m_state", NULL | |
16480 | }; | |
16481 | ||
16482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_state_set",kwnames,&obj0,&arg2)) goto fail; | |
16483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16484 | if (arg1) (arg1)->m_state = arg2; | |
16485 | ||
16486 | Py_INCREF(Py_None); resultobj = Py_None; | |
16487 | return resultobj; | |
16488 | fail: | |
16489 | return NULL; | |
16490 | } | |
16491 | ||
16492 | ||
16493 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16494 | PyObject *resultobj; | |
16495 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16496 | long result; | |
16497 | PyObject * obj0 = 0 ; | |
16498 | char *kwnames[] = { | |
16499 | (char *) "self", NULL | |
16500 | }; | |
16501 | ||
16502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
16503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16504 | result = (long) ((arg1)->m_state); | |
16505 | ||
16506 | resultobj = PyInt_FromLong((long)result); | |
16507 | return resultobj; | |
16508 | fail: | |
16509 | return NULL; | |
16510 | } | |
16511 | ||
16512 | ||
16513 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16514 | PyObject *resultobj; | |
16515 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16516 | long arg2 ; | |
16517 | PyObject * obj0 = 0 ; | |
16518 | char *kwnames[] = { | |
16519 | (char *) "self",(char *) "m_stateMask", NULL | |
16520 | }; | |
16521 | ||
16522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_stateMask_set",kwnames,&obj0,&arg2)) goto fail; | |
16523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16524 | if (arg1) (arg1)->m_stateMask = arg2; | |
16525 | ||
16526 | Py_INCREF(Py_None); resultobj = Py_None; | |
16527 | return resultobj; | |
16528 | fail: | |
16529 | return NULL; | |
16530 | } | |
16531 | ||
16532 | ||
16533 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16534 | PyObject *resultobj; | |
16535 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16536 | long result; | |
16537 | PyObject * obj0 = 0 ; | |
16538 | char *kwnames[] = { | |
16539 | (char *) "self", NULL | |
16540 | }; | |
16541 | ||
16542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
16543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16544 | result = (long) ((arg1)->m_stateMask); | |
16545 | ||
16546 | resultobj = PyInt_FromLong((long)result); | |
16547 | return resultobj; | |
16548 | fail: | |
16549 | return NULL; | |
16550 | } | |
16551 | ||
16552 | ||
16553 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16554 | PyObject *resultobj; | |
16555 | wxListItem *arg1 = (wxListItem *) 0 ; | |
cbd72d4f | 16556 | wxString *arg2 = (wxString *) 0 ; |
dae0faa6 | 16557 | bool temp2 = False ; |
d14a1e28 RD |
16558 | PyObject * obj0 = 0 ; |
16559 | PyObject * obj1 = 0 ; | |
16560 | char *kwnames[] = { | |
16561 | (char *) "self",(char *) "m_text", NULL | |
16562 | }; | |
16563 | ||
16564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
16565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
dae0faa6 RD |
16566 | { |
16567 | arg2 = wxString_in_helper(obj1); | |
16568 | if (arg2 == NULL) SWIG_fail; | |
16569 | temp2 = True; | |
16570 | } | |
cbd72d4f | 16571 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
16572 | |
16573 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
16574 | { |
16575 | if (temp2) | |
16576 | delete arg2; | |
16577 | } | |
d14a1e28 RD |
16578 | return resultobj; |
16579 | fail: | |
dae0faa6 RD |
16580 | { |
16581 | if (temp2) | |
16582 | delete arg2; | |
16583 | } | |
d14a1e28 RD |
16584 | return NULL; |
16585 | } | |
16586 | ||
16587 | ||
16588 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16589 | PyObject *resultobj; | |
16590 | wxListItem *arg1 = (wxListItem *) 0 ; | |
cbd72d4f | 16591 | wxString *result; |
d14a1e28 RD |
16592 | PyObject * obj0 = 0 ; |
16593 | char *kwnames[] = { | |
16594 | (char *) "self", NULL | |
16595 | }; | |
16596 | ||
16597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
16598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
cbd72d4f | 16599 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
16600 | |
16601 | { | |
16602 | #if wxUSE_UNICODE | |
cbd72d4f | 16603 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 16604 | #else |
cbd72d4f | 16605 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
16606 | #endif |
16607 | } | |
16608 | return resultobj; | |
16609 | fail: | |
16610 | return NULL; | |
16611 | } | |
16612 | ||
16613 | ||
16614 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16615 | PyObject *resultobj; | |
16616 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16617 | int arg2 ; | |
16618 | PyObject * obj0 = 0 ; | |
16619 | char *kwnames[] = { | |
16620 | (char *) "self",(char *) "m_image", NULL | |
16621 | }; | |
16622 | ||
16623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_image_set",kwnames,&obj0,&arg2)) goto fail; | |
16624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16625 | if (arg1) (arg1)->m_image = arg2; | |
16626 | ||
16627 | Py_INCREF(Py_None); resultobj = Py_None; | |
16628 | return resultobj; | |
16629 | fail: | |
16630 | return NULL; | |
16631 | } | |
16632 | ||
16633 | ||
16634 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16635 | PyObject *resultobj; | |
16636 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16637 | int result; | |
16638 | PyObject * obj0 = 0 ; | |
16639 | char *kwnames[] = { | |
16640 | (char *) "self", NULL | |
16641 | }; | |
16642 | ||
16643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
16644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16645 | result = (int) ((arg1)->m_image); | |
16646 | ||
16647 | resultobj = PyInt_FromLong((long)result); | |
16648 | return resultobj; | |
16649 | fail: | |
16650 | return NULL; | |
16651 | } | |
16652 | ||
16653 | ||
16654 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16655 | PyObject *resultobj; | |
16656 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16657 | long arg2 ; | |
16658 | PyObject * obj0 = 0 ; | |
16659 | char *kwnames[] = { | |
16660 | (char *) "self",(char *) "m_data", NULL | |
16661 | }; | |
16662 | ||
16663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_data_set",kwnames,&obj0,&arg2)) goto fail; | |
16664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16665 | if (arg1) (arg1)->m_data = arg2; | |
16666 | ||
16667 | Py_INCREF(Py_None); resultobj = Py_None; | |
16668 | return resultobj; | |
16669 | fail: | |
16670 | return NULL; | |
16671 | } | |
16672 | ||
16673 | ||
16674 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16675 | PyObject *resultobj; | |
16676 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16677 | long result; | |
16678 | PyObject * obj0 = 0 ; | |
16679 | char *kwnames[] = { | |
16680 | (char *) "self", NULL | |
16681 | }; | |
16682 | ||
16683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
16684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16685 | result = (long) ((arg1)->m_data); | |
16686 | ||
16687 | resultobj = PyInt_FromLong((long)result); | |
16688 | return resultobj; | |
16689 | fail: | |
16690 | return NULL; | |
16691 | } | |
16692 | ||
16693 | ||
16694 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16695 | PyObject *resultobj; | |
16696 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16697 | int arg2 ; | |
16698 | PyObject * obj0 = 0 ; | |
16699 | char *kwnames[] = { | |
16700 | (char *) "self",(char *) "m_format", NULL | |
16701 | }; | |
16702 | ||
16703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_format_set",kwnames,&obj0,&arg2)) goto fail; | |
16704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16705 | if (arg1) (arg1)->m_format = arg2; | |
16706 | ||
16707 | Py_INCREF(Py_None); resultobj = Py_None; | |
16708 | return resultobj; | |
16709 | fail: | |
16710 | return NULL; | |
16711 | } | |
16712 | ||
16713 | ||
16714 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16715 | PyObject *resultobj; | |
16716 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16717 | int result; | |
16718 | PyObject * obj0 = 0 ; | |
16719 | char *kwnames[] = { | |
16720 | (char *) "self", NULL | |
16721 | }; | |
16722 | ||
16723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
16724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16725 | result = (int) ((arg1)->m_format); | |
16726 | ||
16727 | resultobj = PyInt_FromLong((long)result); | |
16728 | return resultobj; | |
16729 | fail: | |
16730 | return NULL; | |
16731 | } | |
16732 | ||
16733 | ||
16734 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16735 | PyObject *resultobj; | |
16736 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16737 | int arg2 ; | |
16738 | PyObject * obj0 = 0 ; | |
16739 | char *kwnames[] = { | |
16740 | (char *) "self",(char *) "m_width", NULL | |
16741 | }; | |
16742 | ||
16743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_width_set",kwnames,&obj0,&arg2)) goto fail; | |
16744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16745 | if (arg1) (arg1)->m_width = arg2; | |
16746 | ||
16747 | Py_INCREF(Py_None); resultobj = Py_None; | |
16748 | return resultobj; | |
16749 | fail: | |
16750 | return NULL; | |
16751 | } | |
16752 | ||
16753 | ||
16754 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16755 | PyObject *resultobj; | |
16756 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16757 | int result; | |
16758 | PyObject * obj0 = 0 ; | |
16759 | char *kwnames[] = { | |
16760 | (char *) "self", NULL | |
16761 | }; | |
16762 | ||
16763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
16764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16765 | result = (int) ((arg1)->m_width); | |
16766 | ||
16767 | resultobj = PyInt_FromLong((long)result); | |
16768 | return resultobj; | |
16769 | fail: | |
16770 | return NULL; | |
16771 | } | |
16772 | ||
16773 | ||
16774 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
16775 | PyObject *obj; | |
16776 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16777 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
16778 | Py_INCREF(obj); | |
16779 | return Py_BuildValue((char *)""); | |
16780 | } | |
16781 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16782 | PyObject *resultobj; | |
16783 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16784 | int arg2 = (int) 0 ; | |
16785 | wxListEvent *result; | |
16786 | char *kwnames[] = { | |
16787 | (char *) "commandType",(char *) "id", NULL | |
16788 | }; | |
16789 | ||
16790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_ListEvent",kwnames,&arg1,&arg2)) goto fail; | |
16791 | { | |
16792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16793 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
16794 | ||
16795 | wxPyEndAllowThreads(__tstate); | |
16796 | if (PyErr_Occurred()) SWIG_fail; | |
16797 | } | |
16798 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
16799 | return resultobj; | |
16800 | fail: | |
16801 | return NULL; | |
16802 | } | |
16803 | ||
16804 | ||
16805 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16806 | PyObject *resultobj; | |
16807 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16808 | int arg2 ; | |
16809 | PyObject * obj0 = 0 ; | |
16810 | char *kwnames[] = { | |
16811 | (char *) "self",(char *) "m_code", NULL | |
16812 | }; | |
16813 | ||
16814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListEvent_m_code_set",kwnames,&obj0,&arg2)) goto fail; | |
16815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16816 | if (arg1) (arg1)->m_code = arg2; | |
16817 | ||
16818 | Py_INCREF(Py_None); resultobj = Py_None; | |
16819 | return resultobj; | |
16820 | fail: | |
16821 | return NULL; | |
16822 | } | |
16823 | ||
16824 | ||
16825 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16826 | PyObject *resultobj; | |
16827 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16828 | int result; | |
16829 | PyObject * obj0 = 0 ; | |
16830 | char *kwnames[] = { | |
16831 | (char *) "self", NULL | |
16832 | }; | |
16833 | ||
16834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
16835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16836 | result = (int) ((arg1)->m_code); | |
16837 | ||
16838 | resultobj = PyInt_FromLong((long)result); | |
16839 | return resultobj; | |
16840 | fail: | |
16841 | return NULL; | |
16842 | } | |
16843 | ||
16844 | ||
16845 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16846 | PyObject *resultobj; | |
16847 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16848 | long arg2 ; | |
16849 | PyObject * obj0 = 0 ; | |
16850 | char *kwnames[] = { | |
16851 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
16852 | }; | |
16853 | ||
16854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&arg2)) goto fail; | |
16855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16856 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
16857 | ||
16858 | Py_INCREF(Py_None); resultobj = Py_None; | |
16859 | return resultobj; | |
16860 | fail: | |
16861 | return NULL; | |
16862 | } | |
16863 | ||
16864 | ||
16865 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16866 | PyObject *resultobj; | |
16867 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16868 | long result; | |
16869 | PyObject * obj0 = 0 ; | |
16870 | char *kwnames[] = { | |
16871 | (char *) "self", NULL | |
16872 | }; | |
16873 | ||
16874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
16875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16876 | result = (long) ((arg1)->m_oldItemIndex); | |
16877 | ||
16878 | resultobj = PyInt_FromLong((long)result); | |
16879 | return resultobj; | |
16880 | fail: | |
16881 | return NULL; | |
16882 | } | |
16883 | ||
16884 | ||
16885 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16886 | PyObject *resultobj; | |
16887 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16888 | long arg2 ; | |
16889 | PyObject * obj0 = 0 ; | |
16890 | char *kwnames[] = { | |
16891 | (char *) "self",(char *) "m_itemIndex", NULL | |
16892 | }; | |
16893 | ||
16894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListEvent_m_itemIndex_set",kwnames,&obj0,&arg2)) goto fail; | |
16895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16896 | if (arg1) (arg1)->m_itemIndex = arg2; | |
16897 | ||
16898 | Py_INCREF(Py_None); resultobj = Py_None; | |
16899 | return resultobj; | |
16900 | fail: | |
16901 | return NULL; | |
16902 | } | |
16903 | ||
16904 | ||
16905 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16906 | PyObject *resultobj; | |
16907 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16908 | long result; | |
16909 | PyObject * obj0 = 0 ; | |
16910 | char *kwnames[] = { | |
16911 | (char *) "self", NULL | |
16912 | }; | |
16913 | ||
16914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
16915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16916 | result = (long) ((arg1)->m_itemIndex); | |
16917 | ||
16918 | resultobj = PyInt_FromLong((long)result); | |
16919 | return resultobj; | |
16920 | fail: | |
16921 | return NULL; | |
16922 | } | |
16923 | ||
16924 | ||
16925 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16926 | PyObject *resultobj; | |
16927 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16928 | int arg2 ; | |
16929 | PyObject * obj0 = 0 ; | |
16930 | char *kwnames[] = { | |
16931 | (char *) "self",(char *) "m_col", NULL | |
16932 | }; | |
16933 | ||
16934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListEvent_m_col_set",kwnames,&obj0,&arg2)) goto fail; | |
16935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16936 | if (arg1) (arg1)->m_col = arg2; | |
16937 | ||
16938 | Py_INCREF(Py_None); resultobj = Py_None; | |
16939 | return resultobj; | |
16940 | fail: | |
16941 | return NULL; | |
16942 | } | |
16943 | ||
16944 | ||
16945 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16946 | PyObject *resultobj; | |
16947 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16948 | int result; | |
16949 | PyObject * obj0 = 0 ; | |
16950 | char *kwnames[] = { | |
16951 | (char *) "self", NULL | |
16952 | }; | |
16953 | ||
16954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
16955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16956 | result = (int) ((arg1)->m_col); | |
16957 | ||
16958 | resultobj = PyInt_FromLong((long)result); | |
16959 | return resultobj; | |
16960 | fail: | |
16961 | return NULL; | |
16962 | } | |
16963 | ||
16964 | ||
16965 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16966 | PyObject *resultobj; | |
16967 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16968 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16969 | PyObject * obj0 = 0 ; | |
16970 | PyObject * obj1 = 0 ; | |
16971 | char *kwnames[] = { | |
16972 | (char *) "self",(char *) "m_pointDrag", NULL | |
16973 | }; | |
16974 | ||
16975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
16976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16977 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16978 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
16979 | ||
16980 | Py_INCREF(Py_None); resultobj = Py_None; | |
16981 | return resultobj; | |
16982 | fail: | |
16983 | return NULL; | |
16984 | } | |
16985 | ||
16986 | ||
16987 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16988 | PyObject *resultobj; | |
16989 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16990 | wxPoint *result; | |
16991 | PyObject * obj0 = 0 ; | |
16992 | char *kwnames[] = { | |
16993 | (char *) "self", NULL | |
16994 | }; | |
16995 | ||
16996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
16997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16998 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
16999 | ||
17000 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
17001 | return resultobj; | |
17002 | fail: | |
17003 | return NULL; | |
17004 | } | |
17005 | ||
17006 | ||
17007 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17008 | PyObject *resultobj; | |
17009 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17010 | wxListItem *result; | |
17011 | PyObject * obj0 = 0 ; | |
17012 | char *kwnames[] = { | |
17013 | (char *) "self", NULL | |
17014 | }; | |
17015 | ||
17016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
17017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17018 | result = (wxListItem *)& ((arg1)->m_item); | |
17019 | ||
17020 | { | |
17021 | resultobj = wxPyMake_wxObject(result); | |
17022 | } | |
17023 | return resultobj; | |
17024 | fail: | |
17025 | return NULL; | |
17026 | } | |
17027 | ||
17028 | ||
17029 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17030 | PyObject *resultobj; | |
17031 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17032 | int result; | |
17033 | PyObject * obj0 = 0 ; | |
17034 | char *kwnames[] = { | |
17035 | (char *) "self", NULL | |
17036 | }; | |
17037 | ||
17038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
17039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17040 | { | |
17041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17042 | result = (int)(arg1)->GetKeyCode(); | |
17043 | ||
17044 | wxPyEndAllowThreads(__tstate); | |
17045 | if (PyErr_Occurred()) SWIG_fail; | |
17046 | } | |
17047 | resultobj = PyInt_FromLong((long)result); | |
17048 | return resultobj; | |
17049 | fail: | |
17050 | return NULL; | |
17051 | } | |
17052 | ||
17053 | ||
17054 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17055 | PyObject *resultobj; | |
17056 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17057 | long result; | |
17058 | PyObject * obj0 = 0 ; | |
17059 | char *kwnames[] = { | |
17060 | (char *) "self", NULL | |
17061 | }; | |
17062 | ||
17063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
17064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17065 | { | |
17066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17067 | result = (long)(arg1)->GetIndex(); | |
17068 | ||
17069 | wxPyEndAllowThreads(__tstate); | |
17070 | if (PyErr_Occurred()) SWIG_fail; | |
17071 | } | |
17072 | resultobj = PyInt_FromLong((long)result); | |
17073 | return resultobj; | |
17074 | fail: | |
17075 | return NULL; | |
17076 | } | |
17077 | ||
17078 | ||
17079 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17080 | PyObject *resultobj; | |
17081 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17082 | int result; | |
17083 | PyObject * obj0 = 0 ; | |
17084 | char *kwnames[] = { | |
17085 | (char *) "self", NULL | |
17086 | }; | |
17087 | ||
17088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
17089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17090 | { | |
17091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17092 | result = (int)(arg1)->GetColumn(); | |
17093 | ||
17094 | wxPyEndAllowThreads(__tstate); | |
17095 | if (PyErr_Occurred()) SWIG_fail; | |
17096 | } | |
17097 | resultobj = PyInt_FromLong((long)result); | |
17098 | return resultobj; | |
17099 | fail: | |
17100 | return NULL; | |
17101 | } | |
17102 | ||
17103 | ||
17104 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17105 | PyObject *resultobj; | |
17106 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17107 | wxPoint result; | |
17108 | PyObject * obj0 = 0 ; | |
17109 | char *kwnames[] = { | |
17110 | (char *) "self", NULL | |
17111 | }; | |
17112 | ||
17113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
17114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17115 | { | |
17116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17117 | result = (arg1)->GetPoint(); | |
17118 | ||
17119 | wxPyEndAllowThreads(__tstate); | |
17120 | if (PyErr_Occurred()) SWIG_fail; | |
17121 | } | |
17122 | { | |
17123 | wxPoint * resultptr; | |
17124 | resultptr = new wxPoint((wxPoint &) result); | |
17125 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
17126 | } | |
17127 | return resultobj; | |
17128 | fail: | |
17129 | return NULL; | |
17130 | } | |
17131 | ||
17132 | ||
17133 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17134 | PyObject *resultobj; | |
17135 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17136 | wxString *result; | |
17137 | PyObject * obj0 = 0 ; | |
17138 | char *kwnames[] = { | |
17139 | (char *) "self", NULL | |
17140 | }; | |
17141 | ||
17142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
17143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17144 | { | |
17145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17146 | { | |
17147 | wxString const &_result_ref = (arg1)->GetLabel(); | |
17148 | result = (wxString *) &_result_ref; | |
17149 | } | |
17150 | ||
17151 | wxPyEndAllowThreads(__tstate); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | } | |
0f774bef RD |
17154 | { |
17155 | #if wxUSE_UNICODE | |
17156 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17157 | #else | |
17158 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17159 | #endif | |
17160 | } | |
d14a1e28 RD |
17161 | return resultobj; |
17162 | fail: | |
17163 | return NULL; | |
17164 | } | |
17165 | ||
17166 | ||
17167 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17168 | PyObject *resultobj; | |
17169 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17170 | wxString *result; | |
17171 | PyObject * obj0 = 0 ; | |
17172 | char *kwnames[] = { | |
17173 | (char *) "self", NULL | |
17174 | }; | |
17175 | ||
17176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
17177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17178 | { | |
17179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17180 | { | |
17181 | wxString const &_result_ref = (arg1)->GetText(); | |
17182 | result = (wxString *) &_result_ref; | |
17183 | } | |
17184 | ||
17185 | wxPyEndAllowThreads(__tstate); | |
17186 | if (PyErr_Occurred()) SWIG_fail; | |
17187 | } | |
0f774bef RD |
17188 | { |
17189 | #if wxUSE_UNICODE | |
17190 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17191 | #else | |
17192 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17193 | #endif | |
17194 | } | |
d14a1e28 RD |
17195 | return resultobj; |
17196 | fail: | |
17197 | return NULL; | |
17198 | } | |
17199 | ||
17200 | ||
17201 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17202 | PyObject *resultobj; | |
17203 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17204 | int result; | |
17205 | PyObject * obj0 = 0 ; | |
17206 | char *kwnames[] = { | |
17207 | (char *) "self", NULL | |
17208 | }; | |
17209 | ||
17210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
17211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17212 | { | |
17213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17214 | result = (int)(arg1)->GetImage(); | |
17215 | ||
17216 | wxPyEndAllowThreads(__tstate); | |
17217 | if (PyErr_Occurred()) SWIG_fail; | |
17218 | } | |
17219 | resultobj = PyInt_FromLong((long)result); | |
17220 | return resultobj; | |
17221 | fail: | |
17222 | return NULL; | |
17223 | } | |
17224 | ||
17225 | ||
17226 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17227 | PyObject *resultobj; | |
17228 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17229 | long result; | |
17230 | PyObject * obj0 = 0 ; | |
17231 | char *kwnames[] = { | |
17232 | (char *) "self", NULL | |
17233 | }; | |
17234 | ||
17235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
17236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17237 | { | |
17238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17239 | result = (long)(arg1)->GetData(); | |
17240 | ||
17241 | wxPyEndAllowThreads(__tstate); | |
17242 | if (PyErr_Occurred()) SWIG_fail; | |
17243 | } | |
17244 | resultobj = PyInt_FromLong((long)result); | |
17245 | return resultobj; | |
17246 | fail: | |
17247 | return NULL; | |
17248 | } | |
17249 | ||
17250 | ||
17251 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17252 | PyObject *resultobj; | |
17253 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17254 | long result; | |
17255 | PyObject * obj0 = 0 ; | |
17256 | char *kwnames[] = { | |
17257 | (char *) "self", NULL | |
17258 | }; | |
17259 | ||
17260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
17261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17262 | { | |
17263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17264 | result = (long)(arg1)->GetMask(); | |
17265 | ||
17266 | wxPyEndAllowThreads(__tstate); | |
17267 | if (PyErr_Occurred()) SWIG_fail; | |
17268 | } | |
17269 | resultobj = PyInt_FromLong((long)result); | |
17270 | return resultobj; | |
17271 | fail: | |
17272 | return NULL; | |
17273 | } | |
17274 | ||
17275 | ||
17276 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17277 | PyObject *resultobj; | |
17278 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17279 | wxListItem *result; | |
17280 | PyObject * obj0 = 0 ; | |
17281 | char *kwnames[] = { | |
17282 | (char *) "self", NULL | |
17283 | }; | |
17284 | ||
17285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
17286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17287 | { | |
17288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17289 | { | |
17290 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
17291 | result = (wxListItem *) &_result_ref; | |
17292 | } | |
17293 | ||
17294 | wxPyEndAllowThreads(__tstate); | |
17295 | if (PyErr_Occurred()) SWIG_fail; | |
17296 | } | |
17297 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
17298 | return resultobj; | |
17299 | fail: | |
17300 | return NULL; | |
17301 | } | |
17302 | ||
17303 | ||
17304 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17305 | PyObject *resultobj; | |
17306 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17307 | long result; | |
17308 | PyObject * obj0 = 0 ; | |
17309 | char *kwnames[] = { | |
17310 | (char *) "self", NULL | |
17311 | }; | |
17312 | ||
17313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
17314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17315 | { | |
17316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17317 | result = (long)(arg1)->GetCacheFrom(); | |
17318 | ||
17319 | wxPyEndAllowThreads(__tstate); | |
17320 | if (PyErr_Occurred()) SWIG_fail; | |
17321 | } | |
17322 | resultobj = PyInt_FromLong((long)result); | |
17323 | return resultobj; | |
17324 | fail: | |
17325 | return NULL; | |
17326 | } | |
17327 | ||
17328 | ||
17329 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17330 | PyObject *resultobj; | |
17331 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17332 | long result; | |
17333 | PyObject * obj0 = 0 ; | |
17334 | char *kwnames[] = { | |
17335 | (char *) "self", NULL | |
17336 | }; | |
17337 | ||
17338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
17339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17340 | { | |
17341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17342 | result = (long)(arg1)->GetCacheTo(); | |
17343 | ||
17344 | wxPyEndAllowThreads(__tstate); | |
17345 | if (PyErr_Occurred()) SWIG_fail; | |
17346 | } | |
17347 | resultobj = PyInt_FromLong((long)result); | |
17348 | return resultobj; | |
17349 | fail: | |
17350 | return NULL; | |
17351 | } | |
17352 | ||
17353 | ||
17354 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17355 | PyObject *resultobj; | |
17356 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17357 | bool result; | |
17358 | PyObject * obj0 = 0 ; | |
17359 | char *kwnames[] = { | |
17360 | (char *) "self", NULL | |
17361 | }; | |
17362 | ||
17363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
17364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17365 | { | |
17366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17367 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
17368 | ||
17369 | wxPyEndAllowThreads(__tstate); | |
17370 | if (PyErr_Occurred()) SWIG_fail; | |
17371 | } | |
17372 | resultobj = PyInt_FromLong((long)result); | |
17373 | return resultobj; | |
17374 | fail: | |
17375 | return NULL; | |
17376 | } | |
17377 | ||
17378 | ||
17379 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17380 | PyObject *resultobj; | |
17381 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17382 | bool arg2 ; | |
17383 | PyObject * obj0 = 0 ; | |
17384 | PyObject * obj1 = 0 ; | |
17385 | char *kwnames[] = { | |
17386 | (char *) "self",(char *) "editCancelled", NULL | |
17387 | }; | |
17388 | ||
17389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
17390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17391 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17392 | if (PyErr_Occurred()) SWIG_fail; | |
17393 | { | |
17394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17395 | (arg1)->SetEditCanceled(arg2); | |
17396 | ||
17397 | wxPyEndAllowThreads(__tstate); | |
17398 | if (PyErr_Occurred()) SWIG_fail; | |
17399 | } | |
17400 | Py_INCREF(Py_None); resultobj = Py_None; | |
17401 | return resultobj; | |
17402 | fail: | |
17403 | return NULL; | |
17404 | } | |
17405 | ||
17406 | ||
17407 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
17408 | PyObject *obj; | |
17409 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17410 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
17411 | Py_INCREF(obj); | |
17412 | return Py_BuildValue((char *)""); | |
17413 | } | |
17414 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17415 | PyObject *resultobj; | |
17416 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 17417 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17418 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17419 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17420 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17421 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17422 | long arg5 = (long) wxLC_ICON ; | |
17423 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
17424 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
17425 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
17426 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17427 | wxPyListCtrl *result; | |
17428 | wxPoint temp3 ; | |
17429 | wxSize temp4 ; | |
423f194a | 17430 | bool temp7 = False ; |
d14a1e28 RD |
17431 | PyObject * obj0 = 0 ; |
17432 | PyObject * obj2 = 0 ; | |
17433 | PyObject * obj3 = 0 ; | |
17434 | PyObject * obj5 = 0 ; | |
17435 | PyObject * obj6 = 0 ; | |
17436 | char *kwnames[] = { | |
17437 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17438 | }; | |
17439 | ||
17440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ListCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
17441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17442 | if (obj2) { | |
17443 | { | |
17444 | arg3 = &temp3; | |
17445 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17446 | } | |
17447 | } | |
17448 | if (obj3) { | |
17449 | { | |
17450 | arg4 = &temp4; | |
17451 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17452 | } | |
17453 | } | |
17454 | if (obj5) { | |
17455 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17456 | if (arg6 == NULL) { | |
17457 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17458 | } | |
17459 | } | |
17460 | if (obj6) { | |
17461 | { | |
17462 | arg7 = wxString_in_helper(obj6); | |
17463 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 17464 | temp7 = True; |
d14a1e28 RD |
17465 | } |
17466 | } | |
17467 | { | |
17468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17469 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
17470 | ||
17471 | wxPyEndAllowThreads(__tstate); | |
17472 | if (PyErr_Occurred()) SWIG_fail; | |
17473 | } | |
17474 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
17475 | { | |
17476 | if (temp7) | |
17477 | delete arg7; | |
17478 | } | |
17479 | return resultobj; | |
17480 | fail: | |
17481 | { | |
17482 | if (temp7) | |
17483 | delete arg7; | |
17484 | } | |
17485 | return NULL; | |
17486 | } | |
17487 | ||
17488 | ||
17489 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17490 | PyObject *resultobj; | |
17491 | wxPyListCtrl *result; | |
17492 | char *kwnames[] = { | |
17493 | NULL | |
17494 | }; | |
17495 | ||
17496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
17497 | { | |
17498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17499 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
17500 | ||
17501 | wxPyEndAllowThreads(__tstate); | |
17502 | if (PyErr_Occurred()) SWIG_fail; | |
17503 | } | |
17504 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
17505 | return resultobj; | |
17506 | fail: | |
17507 | return NULL; | |
17508 | } | |
17509 | ||
17510 | ||
17511 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17512 | PyObject *resultobj; | |
17513 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17514 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 17515 | int arg3 = (int) -1 ; |
d14a1e28 RD |
17516 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17517 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17518 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17519 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17520 | long arg6 = (long) wxLC_ICON ; | |
17521 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
17522 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
17523 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
17524 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17525 | bool result; | |
17526 | wxPoint temp4 ; | |
17527 | wxSize temp5 ; | |
423f194a | 17528 | bool temp8 = False ; |
d14a1e28 RD |
17529 | PyObject * obj0 = 0 ; |
17530 | PyObject * obj1 = 0 ; | |
17531 | PyObject * obj3 = 0 ; | |
17532 | PyObject * obj4 = 0 ; | |
17533 | PyObject * obj6 = 0 ; | |
17534 | PyObject * obj7 = 0 ; | |
17535 | char *kwnames[] = { | |
17536 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17537 | }; | |
17538 | ||
17539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ListCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
17540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17541 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17542 | if (obj3) { | |
17543 | { | |
17544 | arg4 = &temp4; | |
17545 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17546 | } | |
17547 | } | |
17548 | if (obj4) { | |
17549 | { | |
17550 | arg5 = &temp5; | |
17551 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17552 | } | |
17553 | } | |
17554 | if (obj6) { | |
17555 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17556 | if (arg7 == NULL) { | |
17557 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17558 | } | |
17559 | } | |
17560 | if (obj7) { | |
17561 | { | |
17562 | arg8 = wxString_in_helper(obj7); | |
17563 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 17564 | temp8 = True; |
d14a1e28 RD |
17565 | } |
17566 | } | |
17567 | { | |
17568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17569 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
17570 | ||
17571 | wxPyEndAllowThreads(__tstate); | |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
17573 | } | |
17574 | resultobj = PyInt_FromLong((long)result); | |
17575 | { | |
17576 | if (temp8) | |
17577 | delete arg8; | |
17578 | } | |
17579 | return resultobj; | |
17580 | fail: | |
17581 | { | |
17582 | if (temp8) | |
17583 | delete arg8; | |
17584 | } | |
17585 | return NULL; | |
17586 | } | |
17587 | ||
17588 | ||
17589 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17590 | PyObject *resultobj; | |
17591 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17592 | PyObject *arg2 = (PyObject *) 0 ; | |
17593 | PyObject *arg3 = (PyObject *) 0 ; | |
17594 | PyObject * obj0 = 0 ; | |
17595 | PyObject * obj1 = 0 ; | |
17596 | PyObject * obj2 = 0 ; | |
17597 | char *kwnames[] = { | |
17598 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17599 | }; | |
17600 | ||
17601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17603 | arg2 = obj1; | |
17604 | arg3 = obj2; | |
17605 | { | |
17606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17607 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17608 | ||
17609 | wxPyEndAllowThreads(__tstate); | |
17610 | if (PyErr_Occurred()) SWIG_fail; | |
17611 | } | |
17612 | Py_INCREF(Py_None); resultobj = Py_None; | |
17613 | return resultobj; | |
17614 | fail: | |
17615 | return NULL; | |
17616 | } | |
17617 | ||
17618 | ||
17619 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17620 | PyObject *resultobj; | |
17621 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17622 | wxColour *arg2 = 0 ; | |
17623 | bool result; | |
17624 | wxColour temp2 ; | |
17625 | PyObject * obj0 = 0 ; | |
17626 | PyObject * obj1 = 0 ; | |
17627 | char *kwnames[] = { | |
17628 | (char *) "self",(char *) "col", NULL | |
17629 | }; | |
17630 | ||
17631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17633 | { | |
17634 | arg2 = &temp2; | |
17635 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17636 | } | |
17637 | { | |
17638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17639 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
17640 | ||
17641 | wxPyEndAllowThreads(__tstate); | |
17642 | if (PyErr_Occurred()) SWIG_fail; | |
17643 | } | |
17644 | resultobj = PyInt_FromLong((long)result); | |
17645 | return resultobj; | |
17646 | fail: | |
17647 | return NULL; | |
17648 | } | |
17649 | ||
17650 | ||
17651 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17652 | PyObject *resultobj; | |
17653 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17654 | wxColour *arg2 = 0 ; | |
17655 | bool result; | |
17656 | wxColour temp2 ; | |
17657 | PyObject * obj0 = 0 ; | |
17658 | PyObject * obj1 = 0 ; | |
17659 | char *kwnames[] = { | |
17660 | (char *) "self",(char *) "col", NULL | |
17661 | }; | |
17662 | ||
17663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17665 | { | |
17666 | arg2 = &temp2; | |
17667 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17668 | } | |
17669 | { | |
17670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17671 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17672 | ||
17673 | wxPyEndAllowThreads(__tstate); | |
17674 | if (PyErr_Occurred()) SWIG_fail; | |
17675 | } | |
17676 | resultobj = PyInt_FromLong((long)result); | |
17677 | return resultobj; | |
17678 | fail: | |
17679 | return NULL; | |
17680 | } | |
17681 | ||
17682 | ||
17683 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17684 | PyObject *resultobj; | |
17685 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17686 | int arg2 ; | |
17687 | wxListItem *result; | |
17688 | PyObject * obj0 = 0 ; | |
17689 | char *kwnames[] = { | |
17690 | (char *) "self",(char *) "col", NULL | |
17691 | }; | |
17692 | ||
17693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetColumn",kwnames,&obj0,&arg2)) goto fail; | |
17694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17695 | { | |
17696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17697 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
17698 | ||
17699 | wxPyEndAllowThreads(__tstate); | |
17700 | if (PyErr_Occurred()) SWIG_fail; | |
17701 | } | |
17702 | { | |
17703 | resultobj = wxPyMake_wxObject(result); | |
17704 | } | |
17705 | return resultobj; | |
17706 | fail: | |
17707 | return NULL; | |
17708 | } | |
17709 | ||
17710 | ||
17711 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17712 | PyObject *resultobj; | |
17713 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17714 | int arg2 ; | |
17715 | wxListItem *arg3 = 0 ; | |
17716 | bool result; | |
17717 | PyObject * obj0 = 0 ; | |
17718 | PyObject * obj2 = 0 ; | |
17719 | char *kwnames[] = { | |
17720 | (char *) "self",(char *) "col",(char *) "item", NULL | |
17721 | }; | |
17722 | ||
17723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ListCtrl_SetColumn",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17725 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17726 | if (arg3 == NULL) { | |
17727 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17728 | } | |
17729 | { | |
17730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17731 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
17732 | ||
17733 | wxPyEndAllowThreads(__tstate); | |
17734 | if (PyErr_Occurred()) SWIG_fail; | |
17735 | } | |
17736 | resultobj = PyInt_FromLong((long)result); | |
17737 | return resultobj; | |
17738 | fail: | |
17739 | return NULL; | |
17740 | } | |
17741 | ||
17742 | ||
17743 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17744 | PyObject *resultobj; | |
17745 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17746 | int arg2 ; | |
17747 | int result; | |
17748 | PyObject * obj0 = 0 ; | |
17749 | char *kwnames[] = { | |
17750 | (char *) "self",(char *) "col", NULL | |
17751 | }; | |
17752 | ||
17753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetColumnWidth",kwnames,&obj0,&arg2)) 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 = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
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_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17770 | PyObject *resultobj; | |
17771 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17772 | int arg2 ; | |
17773 | int arg3 ; | |
17774 | bool result; | |
17775 | PyObject * obj0 = 0 ; | |
17776 | char *kwnames[] = { | |
17777 | (char *) "self",(char *) "col",(char *) "width", NULL | |
17778 | }; | |
17779 | ||
17780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListCtrl_SetColumnWidth",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17782 | { | |
17783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17784 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
17785 | ||
17786 | wxPyEndAllowThreads(__tstate); | |
17787 | if (PyErr_Occurred()) SWIG_fail; | |
17788 | } | |
17789 | resultobj = PyInt_FromLong((long)result); | |
17790 | return resultobj; | |
17791 | fail: | |
17792 | return NULL; | |
17793 | } | |
17794 | ||
17795 | ||
17796 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17797 | PyObject *resultobj; | |
17798 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17799 | int result; | |
17800 | PyObject * obj0 = 0 ; | |
17801 | char *kwnames[] = { | |
17802 | (char *) "self", NULL | |
17803 | }; | |
17804 | ||
17805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
17806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17807 | { | |
17808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17809 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
17810 | ||
17811 | wxPyEndAllowThreads(__tstate); | |
17812 | if (PyErr_Occurred()) SWIG_fail; | |
17813 | } | |
17814 | resultobj = PyInt_FromLong((long)result); | |
17815 | return resultobj; | |
17816 | fail: | |
17817 | return NULL; | |
17818 | } | |
17819 | ||
17820 | ||
17821 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17822 | PyObject *resultobj; | |
17823 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17824 | wxRect result; | |
17825 | PyObject * obj0 = 0 ; | |
17826 | char *kwnames[] = { | |
17827 | (char *) "self", NULL | |
17828 | }; | |
17829 | ||
17830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
17831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17832 | { | |
17833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17834 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
17835 | ||
17836 | wxPyEndAllowThreads(__tstate); | |
17837 | if (PyErr_Occurred()) SWIG_fail; | |
17838 | } | |
17839 | { | |
17840 | wxRect * resultptr; | |
17841 | resultptr = new wxRect((wxRect &) result); | |
17842 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
17843 | } | |
17844 | return resultobj; | |
17845 | fail: | |
17846 | return NULL; | |
17847 | } | |
17848 | ||
17849 | ||
17850 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17851 | PyObject *resultobj; | |
17852 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17853 | long arg2 ; | |
17854 | int arg3 = (int) 0 ; | |
17855 | wxListItem *result; | |
17856 | PyObject * obj0 = 0 ; | |
17857 | char *kwnames[] = { | |
17858 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
17859 | }; | |
17860 | ||
17861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:ListCtrl_GetItem",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17863 | { | |
17864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17865 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
17866 | ||
17867 | wxPyEndAllowThreads(__tstate); | |
17868 | if (PyErr_Occurred()) SWIG_fail; | |
17869 | } | |
17870 | { | |
17871 | resultobj = wxPyMake_wxObject(result); | |
17872 | } | |
17873 | return resultobj; | |
17874 | fail: | |
17875 | return NULL; | |
17876 | } | |
17877 | ||
17878 | ||
17879 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17880 | PyObject *resultobj; | |
17881 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17882 | wxListItem *arg2 = 0 ; | |
17883 | bool result; | |
17884 | PyObject * obj0 = 0 ; | |
17885 | PyObject * obj1 = 0 ; | |
17886 | char *kwnames[] = { | |
17887 | (char *) "self",(char *) "info", NULL | |
17888 | }; | |
17889 | ||
17890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
17891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17892 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17893 | if (arg2 == NULL) { | |
17894 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17895 | } | |
17896 | { | |
17897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17898 | result = (bool)(arg1)->SetItem(*arg2); | |
17899 | ||
17900 | wxPyEndAllowThreads(__tstate); | |
17901 | if (PyErr_Occurred()) SWIG_fail; | |
17902 | } | |
17903 | resultobj = PyInt_FromLong((long)result); | |
17904 | return resultobj; | |
17905 | fail: | |
17906 | return NULL; | |
17907 | } | |
17908 | ||
17909 | ||
17910 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17911 | PyObject *resultobj; | |
17912 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17913 | long arg2 ; | |
17914 | int arg3 ; | |
17915 | wxString *arg4 = 0 ; | |
17916 | int arg5 = (int) -1 ; | |
17917 | long result; | |
423f194a | 17918 | bool temp4 = False ; |
d14a1e28 RD |
17919 | PyObject * obj0 = 0 ; |
17920 | PyObject * obj3 = 0 ; | |
17921 | char *kwnames[] = { | |
17922 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
17923 | }; | |
17924 | ||
17925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OliO|i:ListCtrl_SetStringItem",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
17926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17927 | { | |
17928 | arg4 = wxString_in_helper(obj3); | |
17929 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 17930 | temp4 = True; |
d14a1e28 RD |
17931 | } |
17932 | { | |
17933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17934 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
17935 | ||
17936 | wxPyEndAllowThreads(__tstate); | |
17937 | if (PyErr_Occurred()) SWIG_fail; | |
17938 | } | |
17939 | resultobj = PyInt_FromLong((long)result); | |
17940 | { | |
17941 | if (temp4) | |
17942 | delete arg4; | |
17943 | } | |
17944 | return resultobj; | |
17945 | fail: | |
17946 | { | |
17947 | if (temp4) | |
17948 | delete arg4; | |
17949 | } | |
17950 | return NULL; | |
17951 | } | |
17952 | ||
17953 | ||
17954 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17955 | PyObject *resultobj; | |
17956 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17957 | long arg2 ; | |
17958 | long arg3 ; | |
17959 | int result; | |
17960 | PyObject * obj0 = 0 ; | |
17961 | char *kwnames[] = { | |
17962 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
17963 | }; | |
17964 | ||
17965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_GetItemState",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17967 | { | |
17968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17969 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
17970 | ||
17971 | wxPyEndAllowThreads(__tstate); | |
17972 | if (PyErr_Occurred()) SWIG_fail; | |
17973 | } | |
17974 | resultobj = PyInt_FromLong((long)result); | |
17975 | return resultobj; | |
17976 | fail: | |
17977 | return NULL; | |
17978 | } | |
17979 | ||
17980 | ||
17981 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17982 | PyObject *resultobj; | |
17983 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17984 | long arg2 ; | |
17985 | long arg3 ; | |
17986 | long arg4 ; | |
17987 | bool result; | |
17988 | PyObject * obj0 = 0 ; | |
17989 | char *kwnames[] = { | |
17990 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
17991 | }; | |
17992 | ||
17993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Olll:ListCtrl_SetItemState",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
17994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17995 | { | |
17996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17997 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
17998 | ||
17999 | wxPyEndAllowThreads(__tstate); | |
18000 | if (PyErr_Occurred()) SWIG_fail; | |
18001 | } | |
18002 | resultobj = PyInt_FromLong((long)result); | |
18003 | return resultobj; | |
18004 | fail: | |
18005 | return NULL; | |
18006 | } | |
18007 | ||
18008 | ||
18009 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18010 | PyObject *resultobj; | |
18011 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18012 | long arg2 ; | |
18013 | int arg3 ; | |
18014 | int arg4 ; | |
18015 | bool result; | |
18016 | PyObject * obj0 = 0 ; | |
18017 | char *kwnames[] = { | |
18018 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
18019 | }; | |
18020 | ||
18021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Olii:ListCtrl_SetItemImage",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
18022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18023 | { | |
18024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18025 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
18026 | ||
18027 | wxPyEndAllowThreads(__tstate); | |
18028 | if (PyErr_Occurred()) SWIG_fail; | |
18029 | } | |
18030 | resultobj = PyInt_FromLong((long)result); | |
18031 | return resultobj; | |
18032 | fail: | |
18033 | return NULL; | |
18034 | } | |
18035 | ||
18036 | ||
18037 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18038 | PyObject *resultobj; | |
18039 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18040 | long arg2 ; | |
18041 | wxString result; | |
18042 | PyObject * obj0 = 0 ; | |
18043 | char *kwnames[] = { | |
18044 | (char *) "self",(char *) "item", NULL | |
18045 | }; | |
18046 | ||
18047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemText",kwnames,&obj0,&arg2)) goto fail; | |
18048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18049 | { | |
18050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18051 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
18052 | ||
18053 | wxPyEndAllowThreads(__tstate); | |
18054 | if (PyErr_Occurred()) SWIG_fail; | |
18055 | } | |
18056 | { | |
18057 | #if wxUSE_UNICODE | |
18058 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18059 | #else | |
18060 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18061 | #endif | |
18062 | } | |
18063 | return resultobj; | |
18064 | fail: | |
18065 | return NULL; | |
18066 | } | |
18067 | ||
18068 | ||
18069 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18070 | PyObject *resultobj; | |
18071 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18072 | long arg2 ; | |
18073 | wxString *arg3 = 0 ; | |
423f194a | 18074 | bool temp3 = False ; |
d14a1e28 RD |
18075 | PyObject * obj0 = 0 ; |
18076 | PyObject * obj2 = 0 ; | |
18077 | char *kwnames[] = { | |
18078 | (char *) "self",(char *) "item",(char *) "str", NULL | |
18079 | }; | |
18080 | ||
18081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemText",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18083 | { | |
18084 | arg3 = wxString_in_helper(obj2); | |
18085 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 18086 | temp3 = True; |
d14a1e28 RD |
18087 | } |
18088 | { | |
18089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18090 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
18091 | ||
18092 | wxPyEndAllowThreads(__tstate); | |
18093 | if (PyErr_Occurred()) SWIG_fail; | |
18094 | } | |
18095 | Py_INCREF(Py_None); resultobj = Py_None; | |
18096 | { | |
18097 | if (temp3) | |
18098 | delete arg3; | |
18099 | } | |
18100 | return resultobj; | |
18101 | fail: | |
18102 | { | |
18103 | if (temp3) | |
18104 | delete arg3; | |
18105 | } | |
18106 | return NULL; | |
18107 | } | |
18108 | ||
18109 | ||
18110 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18111 | PyObject *resultobj; | |
18112 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18113 | long arg2 ; | |
18114 | long result; | |
18115 | PyObject * obj0 = 0 ; | |
18116 | char *kwnames[] = { | |
18117 | (char *) "self",(char *) "item", NULL | |
18118 | }; | |
18119 | ||
18120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemData",kwnames,&obj0,&arg2)) goto fail; | |
18121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18122 | { | |
18123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18124 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
18125 | ||
18126 | wxPyEndAllowThreads(__tstate); | |
18127 | if (PyErr_Occurred()) SWIG_fail; | |
18128 | } | |
18129 | resultobj = PyInt_FromLong((long)result); | |
18130 | return resultobj; | |
18131 | fail: | |
18132 | return NULL; | |
18133 | } | |
18134 | ||
18135 | ||
18136 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18137 | PyObject *resultobj; | |
18138 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18139 | long arg2 ; | |
18140 | long arg3 ; | |
18141 | bool result; | |
18142 | PyObject * obj0 = 0 ; | |
18143 | char *kwnames[] = { | |
18144 | (char *) "self",(char *) "item",(char *) "data", NULL | |
18145 | }; | |
18146 | ||
18147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_SetItemData",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18149 | { | |
18150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18151 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
18152 | ||
18153 | wxPyEndAllowThreads(__tstate); | |
18154 | if (PyErr_Occurred()) SWIG_fail; | |
18155 | } | |
18156 | resultobj = PyInt_FromLong((long)result); | |
18157 | return resultobj; | |
18158 | fail: | |
18159 | return NULL; | |
18160 | } | |
18161 | ||
18162 | ||
18163 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18164 | PyObject *resultobj; | |
18165 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18166 | long arg2 ; | |
18167 | wxPoint result; | |
18168 | PyObject * obj0 = 0 ; | |
18169 | char *kwnames[] = { | |
18170 | (char *) "self",(char *) "item", NULL | |
18171 | }; | |
18172 | ||
18173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemPosition",kwnames,&obj0,&arg2)) goto fail; | |
18174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18175 | { | |
18176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18177 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
18178 | ||
18179 | wxPyEndAllowThreads(__tstate); | |
18180 | if (PyErr_Occurred()) SWIG_fail; | |
18181 | } | |
18182 | { | |
18183 | wxPoint * resultptr; | |
18184 | resultptr = new wxPoint((wxPoint &) result); | |
18185 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
18186 | } | |
18187 | return resultobj; | |
18188 | fail: | |
18189 | return NULL; | |
18190 | } | |
18191 | ||
18192 | ||
18193 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18194 | PyObject *resultobj; | |
18195 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18196 | long arg2 ; | |
18197 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
18198 | wxRect result; | |
18199 | PyObject * obj0 = 0 ; | |
18200 | char *kwnames[] = { | |
18201 | (char *) "self",(char *) "item",(char *) "code", NULL | |
18202 | }; | |
18203 | ||
18204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:ListCtrl_GetItemRect",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18206 | { | |
18207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18208 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
18209 | ||
18210 | wxPyEndAllowThreads(__tstate); | |
18211 | if (PyErr_Occurred()) SWIG_fail; | |
18212 | } | |
18213 | { | |
18214 | wxRect * resultptr; | |
18215 | resultptr = new wxRect((wxRect &) result); | |
18216 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
18217 | } | |
18218 | return resultobj; | |
18219 | fail: | |
18220 | return NULL; | |
18221 | } | |
18222 | ||
18223 | ||
18224 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18225 | PyObject *resultobj; | |
18226 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18227 | long arg2 ; | |
18228 | wxPoint *arg3 = 0 ; | |
18229 | bool result; | |
18230 | wxPoint temp3 ; | |
18231 | PyObject * obj0 = 0 ; | |
18232 | PyObject * obj2 = 0 ; | |
18233 | char *kwnames[] = { | |
18234 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
18235 | }; | |
18236 | ||
18237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemPosition",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18239 | { | |
18240 | arg3 = &temp3; | |
18241 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18242 | } | |
18243 | { | |
18244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18245 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
18246 | ||
18247 | wxPyEndAllowThreads(__tstate); | |
18248 | if (PyErr_Occurred()) SWIG_fail; | |
18249 | } | |
18250 | resultobj = PyInt_FromLong((long)result); | |
18251 | return resultobj; | |
18252 | fail: | |
18253 | return NULL; | |
18254 | } | |
18255 | ||
18256 | ||
18257 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18258 | PyObject *resultobj; | |
18259 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18260 | int result; | |
18261 | PyObject * obj0 = 0 ; | |
18262 | char *kwnames[] = { | |
18263 | (char *) "self", NULL | |
18264 | }; | |
18265 | ||
18266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
18267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18268 | { | |
18269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18270 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
18271 | ||
18272 | wxPyEndAllowThreads(__tstate); | |
18273 | if (PyErr_Occurred()) SWIG_fail; | |
18274 | } | |
18275 | resultobj = PyInt_FromLong((long)result); | |
18276 | return resultobj; | |
18277 | fail: | |
18278 | return NULL; | |
18279 | } | |
18280 | ||
18281 | ||
18282 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18283 | PyObject *resultobj; | |
18284 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18285 | int result; | |
18286 | PyObject * obj0 = 0 ; | |
18287 | char *kwnames[] = { | |
18288 | (char *) "self", NULL | |
18289 | }; | |
18290 | ||
18291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
18292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18293 | { | |
18294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18295 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
18296 | ||
18297 | wxPyEndAllowThreads(__tstate); | |
18298 | if (PyErr_Occurred()) SWIG_fail; | |
18299 | } | |
18300 | resultobj = PyInt_FromLong((long)result); | |
18301 | return resultobj; | |
18302 | fail: | |
18303 | return NULL; | |
18304 | } | |
18305 | ||
18306 | ||
18307 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18308 | PyObject *resultobj; | |
18309 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18310 | wxSize result; | |
18311 | PyObject * obj0 = 0 ; | |
18312 | char *kwnames[] = { | |
18313 | (char *) "self", NULL | |
18314 | }; | |
18315 | ||
18316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
18317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18318 | { | |
18319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18320 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
18321 | ||
18322 | wxPyEndAllowThreads(__tstate); | |
18323 | if (PyErr_Occurred()) SWIG_fail; | |
18324 | } | |
18325 | { | |
18326 | wxSize * resultptr; | |
18327 | resultptr = new wxSize((wxSize &) result); | |
18328 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
18329 | } | |
18330 | return resultobj; | |
18331 | fail: | |
18332 | return NULL; | |
18333 | } | |
18334 | ||
18335 | ||
18336 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18337 | PyObject *resultobj; | |
18338 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18339 | int arg2 ; | |
423f194a | 18340 | bool arg3 = (bool) False ; |
d14a1e28 RD |
18341 | PyObject * obj0 = 0 ; |
18342 | PyObject * obj2 = 0 ; | |
18343 | char *kwnames[] = { | |
18344 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
18345 | }; | |
18346 | ||
18347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18349 | if (obj2) { | |
18350 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
18351 | if (PyErr_Occurred()) SWIG_fail; | |
18352 | } | |
18353 | { | |
18354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18355 | (arg1)->SetItemSpacing(arg2,arg3); | |
18356 | ||
18357 | wxPyEndAllowThreads(__tstate); | |
18358 | if (PyErr_Occurred()) SWIG_fail; | |
18359 | } | |
18360 | Py_INCREF(Py_None); resultobj = Py_None; | |
18361 | return resultobj; | |
18362 | fail: | |
18363 | return NULL; | |
18364 | } | |
18365 | ||
18366 | ||
18367 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18368 | PyObject *resultobj; | |
18369 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18370 | int result; | |
18371 | PyObject * obj0 = 0 ; | |
18372 | char *kwnames[] = { | |
18373 | (char *) "self", NULL | |
18374 | }; | |
18375 | ||
18376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
18377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18378 | { | |
18379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18380 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
18381 | ||
18382 | wxPyEndAllowThreads(__tstate); | |
18383 | if (PyErr_Occurred()) SWIG_fail; | |
18384 | } | |
18385 | resultobj = PyInt_FromLong((long)result); | |
18386 | return resultobj; | |
18387 | fail: | |
18388 | return NULL; | |
18389 | } | |
18390 | ||
18391 | ||
18392 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18393 | PyObject *resultobj; | |
18394 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18395 | wxColour result; | |
18396 | PyObject * obj0 = 0 ; | |
18397 | char *kwnames[] = { | |
18398 | (char *) "self", NULL | |
18399 | }; | |
18400 | ||
18401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
18402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18403 | { | |
18404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18405 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
18406 | ||
18407 | wxPyEndAllowThreads(__tstate); | |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
18409 | } | |
18410 | { | |
18411 | wxColour * resultptr; | |
18412 | resultptr = new wxColour((wxColour &) result); | |
18413 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18414 | } | |
18415 | return resultobj; | |
18416 | fail: | |
18417 | return NULL; | |
18418 | } | |
18419 | ||
18420 | ||
18421 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18422 | PyObject *resultobj; | |
18423 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18424 | wxColour *arg2 = 0 ; | |
18425 | wxColour temp2 ; | |
18426 | PyObject * obj0 = 0 ; | |
18427 | PyObject * obj1 = 0 ; | |
18428 | char *kwnames[] = { | |
18429 | (char *) "self",(char *) "col", NULL | |
18430 | }; | |
18431 | ||
18432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18434 | { | |
18435 | arg2 = &temp2; | |
18436 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18437 | } | |
18438 | { | |
18439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18440 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18441 | ||
18442 | wxPyEndAllowThreads(__tstate); | |
18443 | if (PyErr_Occurred()) SWIG_fail; | |
18444 | } | |
18445 | Py_INCREF(Py_None); resultobj = Py_None; | |
18446 | return resultobj; | |
18447 | fail: | |
18448 | return NULL; | |
18449 | } | |
18450 | ||
18451 | ||
18452 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18453 | PyObject *resultobj; | |
18454 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18455 | long result; | |
18456 | PyObject * obj0 = 0 ; | |
18457 | char *kwnames[] = { | |
18458 | (char *) "self", NULL | |
18459 | }; | |
18460 | ||
18461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
18462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18463 | { | |
18464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18465 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
18466 | ||
18467 | wxPyEndAllowThreads(__tstate); | |
18468 | if (PyErr_Occurred()) SWIG_fail; | |
18469 | } | |
18470 | resultobj = PyInt_FromLong((long)result); | |
18471 | return resultobj; | |
18472 | fail: | |
18473 | return NULL; | |
18474 | } | |
18475 | ||
18476 | ||
18477 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18478 | PyObject *resultobj; | |
18479 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18480 | long arg2 ; | |
423f194a | 18481 | bool arg3 = (bool) True ; |
d14a1e28 RD |
18482 | PyObject * obj0 = 0 ; |
18483 | PyObject * obj2 = 0 ; | |
18484 | char *kwnames[] = { | |
18485 | (char *) "self",(char *) "style",(char *) "add", NULL | |
18486 | }; | |
18487 | ||
18488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18490 | if (obj2) { | |
18491 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
18492 | if (PyErr_Occurred()) SWIG_fail; | |
18493 | } | |
18494 | { | |
18495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18496 | (arg1)->SetSingleStyle(arg2,arg3); | |
18497 | ||
18498 | wxPyEndAllowThreads(__tstate); | |
18499 | if (PyErr_Occurred()) SWIG_fail; | |
18500 | } | |
18501 | Py_INCREF(Py_None); resultobj = Py_None; | |
18502 | return resultobj; | |
18503 | fail: | |
18504 | return NULL; | |
18505 | } | |
18506 | ||
18507 | ||
18508 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18509 | PyObject *resultobj; | |
18510 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18511 | long arg2 ; | |
18512 | PyObject * obj0 = 0 ; | |
18513 | char *kwnames[] = { | |
18514 | (char *) "self",(char *) "style", NULL | |
18515 | }; | |
18516 | ||
18517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_SetWindowStyleFlag",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 | (arg1)->SetWindowStyleFlag(arg2); | |
18522 | ||
18523 | wxPyEndAllowThreads(__tstate); | |
18524 | if (PyErr_Occurred()) SWIG_fail; | |
18525 | } | |
18526 | Py_INCREF(Py_None); resultobj = Py_None; | |
18527 | return resultobj; | |
18528 | fail: | |
18529 | return NULL; | |
18530 | } | |
18531 | ||
18532 | ||
18533 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18534 | PyObject *resultobj; | |
18535 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18536 | long arg2 ; | |
18537 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
18538 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
18539 | long result; | |
18540 | PyObject * obj0 = 0 ; | |
18541 | char *kwnames[] = { | |
18542 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
18543 | }; | |
18544 | ||
18545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:ListCtrl_GetNextItem",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
18546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18547 | { | |
18548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18549 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
18550 | ||
18551 | wxPyEndAllowThreads(__tstate); | |
18552 | if (PyErr_Occurred()) SWIG_fail; | |
18553 | } | |
18554 | resultobj = PyInt_FromLong((long)result); | |
18555 | return resultobj; | |
18556 | fail: | |
18557 | return NULL; | |
18558 | } | |
18559 | ||
18560 | ||
18561 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18562 | PyObject *resultobj; | |
18563 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18564 | int arg2 ; | |
18565 | wxImageList *result; | |
18566 | PyObject * obj0 = 0 ; | |
18567 | char *kwnames[] = { | |
18568 | (char *) "self",(char *) "which", NULL | |
18569 | }; | |
18570 | ||
18571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetImageList",kwnames,&obj0,&arg2)) goto fail; | |
18572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18573 | { | |
18574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18575 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
18576 | ||
18577 | wxPyEndAllowThreads(__tstate); | |
18578 | if (PyErr_Occurred()) SWIG_fail; | |
18579 | } | |
18580 | { | |
18581 | resultobj = wxPyMake_wxObject(result); | |
18582 | } | |
18583 | return resultobj; | |
18584 | fail: | |
18585 | return NULL; | |
18586 | } | |
18587 | ||
18588 | ||
18589 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18590 | PyObject *resultobj; | |
18591 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18592 | wxImageList *arg2 = (wxImageList *) 0 ; | |
18593 | int arg3 ; | |
18594 | PyObject * obj0 = 0 ; | |
18595 | PyObject * obj1 = 0 ; | |
18596 | char *kwnames[] = { | |
18597 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
18598 | }; | |
18599 | ||
18600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
18601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18602 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18603 | { | |
18604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18605 | (arg1)->SetImageList(arg2,arg3); | |
18606 | ||
18607 | wxPyEndAllowThreads(__tstate); | |
18608 | if (PyErr_Occurred()) SWIG_fail; | |
18609 | } | |
18610 | Py_INCREF(Py_None); resultobj = Py_None; | |
18611 | return resultobj; | |
18612 | fail: | |
18613 | return NULL; | |
18614 | } | |
18615 | ||
18616 | ||
18617 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18618 | PyObject *resultobj; | |
18619 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18620 | wxImageList *arg2 = (wxImageList *) 0 ; | |
18621 | int arg3 ; | |
18622 | PyObject * obj0 = 0 ; | |
18623 | PyObject * obj1 = 0 ; | |
18624 | char *kwnames[] = { | |
18625 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
18626 | }; | |
18627 | ||
18628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
18629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18630 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18631 | { | |
18632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18633 | (arg1)->AssignImageList(arg2,arg3); | |
18634 | ||
18635 | wxPyEndAllowThreads(__tstate); | |
18636 | if (PyErr_Occurred()) SWIG_fail; | |
18637 | } | |
18638 | Py_INCREF(Py_None); resultobj = Py_None; | |
18639 | return resultobj; | |
18640 | fail: | |
18641 | return NULL; | |
18642 | } | |
18643 | ||
18644 | ||
18645 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18646 | PyObject *resultobj; | |
18647 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18648 | bool result; | |
18649 | PyObject * obj0 = 0 ; | |
18650 | char *kwnames[] = { | |
18651 | (char *) "self", NULL | |
18652 | }; | |
18653 | ||
18654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
18655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18656 | { | |
18657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18658 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
18659 | ||
18660 | wxPyEndAllowThreads(__tstate); | |
18661 | if (PyErr_Occurred()) SWIG_fail; | |
18662 | } | |
18663 | resultobj = PyInt_FromLong((long)result); | |
18664 | return resultobj; | |
18665 | fail: | |
18666 | return NULL; | |
18667 | } | |
18668 | ||
18669 | ||
18670 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18671 | PyObject *resultobj; | |
18672 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18673 | long arg2 ; | |
18674 | PyObject * obj0 = 0 ; | |
18675 | char *kwnames[] = { | |
18676 | (char *) "self",(char *) "item", NULL | |
18677 | }; | |
18678 | ||
18679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_RefreshItem",kwnames,&obj0,&arg2)) goto fail; | |
18680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18681 | { | |
18682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18683 | (arg1)->RefreshItem(arg2); | |
18684 | ||
18685 | wxPyEndAllowThreads(__tstate); | |
18686 | if (PyErr_Occurred()) SWIG_fail; | |
18687 | } | |
18688 | Py_INCREF(Py_None); resultobj = Py_None; | |
18689 | return resultobj; | |
18690 | fail: | |
18691 | return NULL; | |
18692 | } | |
18693 | ||
18694 | ||
18695 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18696 | PyObject *resultobj; | |
18697 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18698 | long arg2 ; | |
18699 | long arg3 ; | |
18700 | PyObject * obj0 = 0 ; | |
18701 | char *kwnames[] = { | |
18702 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
18703 | }; | |
18704 | ||
18705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_RefreshItems",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18707 | { | |
18708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18709 | (arg1)->RefreshItems(arg2,arg3); | |
18710 | ||
18711 | wxPyEndAllowThreads(__tstate); | |
18712 | if (PyErr_Occurred()) SWIG_fail; | |
18713 | } | |
18714 | Py_INCREF(Py_None); resultobj = Py_None; | |
18715 | return resultobj; | |
18716 | fail: | |
18717 | return NULL; | |
18718 | } | |
18719 | ||
18720 | ||
18721 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18722 | PyObject *resultobj; | |
18723 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18724 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
18725 | bool result; | |
18726 | PyObject * obj0 = 0 ; | |
18727 | char *kwnames[] = { | |
18728 | (char *) "self",(char *) "flag", NULL | |
18729 | }; | |
18730 | ||
18731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:ListCtrl_Arrange",kwnames,&obj0,&arg2)) goto fail; | |
18732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18733 | { | |
18734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18735 | result = (bool)(arg1)->Arrange(arg2); | |
18736 | ||
18737 | wxPyEndAllowThreads(__tstate); | |
18738 | if (PyErr_Occurred()) SWIG_fail; | |
18739 | } | |
18740 | resultobj = PyInt_FromLong((long)result); | |
18741 | return resultobj; | |
18742 | fail: | |
18743 | return NULL; | |
18744 | } | |
18745 | ||
18746 | ||
18747 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18748 | PyObject *resultobj; | |
18749 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18750 | long arg2 ; | |
18751 | bool result; | |
18752 | PyObject * obj0 = 0 ; | |
18753 | char *kwnames[] = { | |
18754 | (char *) "self",(char *) "item", NULL | |
18755 | }; | |
18756 | ||
18757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_DeleteItem",kwnames,&obj0,&arg2)) goto fail; | |
18758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18759 | { | |
18760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18761 | result = (bool)(arg1)->DeleteItem(arg2); | |
18762 | ||
18763 | wxPyEndAllowThreads(__tstate); | |
18764 | if (PyErr_Occurred()) SWIG_fail; | |
18765 | } | |
18766 | resultobj = PyInt_FromLong((long)result); | |
18767 | return resultobj; | |
18768 | fail: | |
18769 | return NULL; | |
18770 | } | |
18771 | ||
18772 | ||
18773 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18774 | PyObject *resultobj; | |
18775 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18776 | bool result; | |
18777 | PyObject * obj0 = 0 ; | |
18778 | char *kwnames[] = { | |
18779 | (char *) "self", NULL | |
18780 | }; | |
18781 | ||
18782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
18783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18784 | { | |
18785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18786 | result = (bool)(arg1)->DeleteAllItems(); | |
18787 | ||
18788 | wxPyEndAllowThreads(__tstate); | |
18789 | if (PyErr_Occurred()) SWIG_fail; | |
18790 | } | |
18791 | resultobj = PyInt_FromLong((long)result); | |
18792 | return resultobj; | |
18793 | fail: | |
18794 | return NULL; | |
18795 | } | |
18796 | ||
18797 | ||
18798 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18799 | PyObject *resultobj; | |
18800 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18801 | int arg2 ; | |
18802 | bool result; | |
18803 | PyObject * obj0 = 0 ; | |
18804 | char *kwnames[] = { | |
18805 | (char *) "self",(char *) "col", NULL | |
18806 | }; | |
18807 | ||
18808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_DeleteColumn",kwnames,&obj0,&arg2)) goto fail; | |
18809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18810 | { | |
18811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18812 | result = (bool)(arg1)->DeleteColumn(arg2); | |
18813 | ||
18814 | wxPyEndAllowThreads(__tstate); | |
18815 | if (PyErr_Occurred()) SWIG_fail; | |
18816 | } | |
18817 | resultobj = PyInt_FromLong((long)result); | |
18818 | return resultobj; | |
18819 | fail: | |
18820 | return NULL; | |
18821 | } | |
18822 | ||
18823 | ||
18824 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18825 | PyObject *resultobj; | |
18826 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18827 | bool result; | |
18828 | PyObject * obj0 = 0 ; | |
18829 | char *kwnames[] = { | |
18830 | (char *) "self", NULL | |
18831 | }; | |
18832 | ||
18833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
18834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18835 | { | |
18836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18837 | result = (bool)(arg1)->DeleteAllColumns(); | |
18838 | ||
18839 | wxPyEndAllowThreads(__tstate); | |
18840 | if (PyErr_Occurred()) SWIG_fail; | |
18841 | } | |
18842 | resultobj = PyInt_FromLong((long)result); | |
18843 | return resultobj; | |
18844 | fail: | |
18845 | return NULL; | |
18846 | } | |
18847 | ||
18848 | ||
18849 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18850 | PyObject *resultobj; | |
18851 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18852 | PyObject * obj0 = 0 ; | |
18853 | char *kwnames[] = { | |
18854 | (char *) "self", NULL | |
18855 | }; | |
18856 | ||
18857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
18858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18859 | { | |
18860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18861 | (arg1)->ClearAll(); | |
18862 | ||
18863 | wxPyEndAllowThreads(__tstate); | |
18864 | if (PyErr_Occurred()) SWIG_fail; | |
18865 | } | |
18866 | Py_INCREF(Py_None); resultobj = Py_None; | |
18867 | return resultobj; | |
18868 | fail: | |
18869 | return NULL; | |
18870 | } | |
18871 | ||
18872 | ||
18873 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18874 | PyObject *resultobj; | |
18875 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18876 | long arg2 ; | |
18877 | PyObject * obj0 = 0 ; | |
18878 | char *kwnames[] = { | |
18879 | (char *) "self",(char *) "item", NULL | |
18880 | }; | |
18881 | ||
18882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_EditLabel",kwnames,&obj0,&arg2)) goto fail; | |
18883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18884 | { | |
18885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18886 | (arg1)->EditLabel(arg2); | |
18887 | ||
18888 | wxPyEndAllowThreads(__tstate); | |
18889 | if (PyErr_Occurred()) SWIG_fail; | |
18890 | } | |
18891 | Py_INCREF(Py_None); resultobj = Py_None; | |
18892 | return resultobj; | |
18893 | fail: | |
18894 | return NULL; | |
18895 | } | |
18896 | ||
18897 | ||
18898 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18899 | PyObject *resultobj; | |
18900 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18901 | long arg2 ; | |
18902 | bool result; | |
18903 | PyObject * obj0 = 0 ; | |
18904 | char *kwnames[] = { | |
18905 | (char *) "self",(char *) "item", NULL | |
18906 | }; | |
18907 | ||
18908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_EnsureVisible",kwnames,&obj0,&arg2)) goto fail; | |
18909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18910 | { | |
18911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18912 | result = (bool)(arg1)->EnsureVisible(arg2); | |
18913 | ||
18914 | wxPyEndAllowThreads(__tstate); | |
18915 | if (PyErr_Occurred()) SWIG_fail; | |
18916 | } | |
18917 | resultobj = PyInt_FromLong((long)result); | |
18918 | return resultobj; | |
18919 | fail: | |
18920 | return NULL; | |
18921 | } | |
18922 | ||
18923 | ||
18924 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18925 | PyObject *resultobj; | |
18926 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18927 | long arg2 ; | |
18928 | wxString *arg3 = 0 ; | |
423f194a | 18929 | bool arg4 = (bool) False ; |
d14a1e28 | 18930 | long result; |
423f194a | 18931 | bool temp3 = False ; |
d14a1e28 RD |
18932 | PyObject * obj0 = 0 ; |
18933 | PyObject * obj2 = 0 ; | |
18934 | PyObject * obj3 = 0 ; | |
18935 | char *kwnames[] = { | |
18936 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
18937 | }; | |
18938 | ||
18939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO|O:ListCtrl_FindItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
18940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18941 | { | |
18942 | arg3 = wxString_in_helper(obj2); | |
18943 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 18944 | temp3 = True; |
d14a1e28 RD |
18945 | } |
18946 | if (obj3) { | |
18947 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
18948 | if (PyErr_Occurred()) SWIG_fail; | |
18949 | } | |
18950 | { | |
18951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18952 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
18953 | ||
18954 | wxPyEndAllowThreads(__tstate); | |
18955 | if (PyErr_Occurred()) SWIG_fail; | |
18956 | } | |
18957 | resultobj = PyInt_FromLong((long)result); | |
18958 | { | |
18959 | if (temp3) | |
18960 | delete arg3; | |
18961 | } | |
18962 | return resultobj; | |
18963 | fail: | |
18964 | { | |
18965 | if (temp3) | |
18966 | delete arg3; | |
18967 | } | |
18968 | return NULL; | |
18969 | } | |
18970 | ||
18971 | ||
18972 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18973 | PyObject *resultobj; | |
18974 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18975 | long arg2 ; | |
18976 | long arg3 ; | |
18977 | long result; | |
18978 | PyObject * obj0 = 0 ; | |
18979 | char *kwnames[] = { | |
18980 | (char *) "self",(char *) "start",(char *) "data", NULL | |
18981 | }; | |
18982 | ||
18983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_FindItemData",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18985 | { | |
18986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18987 | result = (long)(arg1)->FindItem(arg2,arg3); | |
18988 | ||
18989 | wxPyEndAllowThreads(__tstate); | |
18990 | if (PyErr_Occurred()) SWIG_fail; | |
18991 | } | |
18992 | resultobj = PyInt_FromLong((long)result); | |
18993 | return resultobj; | |
18994 | fail: | |
18995 | return NULL; | |
18996 | } | |
18997 | ||
18998 | ||
18999 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19000 | PyObject *resultobj; | |
19001 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19002 | long arg2 ; | |
19003 | wxPoint *arg3 = 0 ; | |
19004 | int arg4 ; | |
19005 | long result; | |
19006 | wxPoint temp3 ; | |
19007 | PyObject * obj0 = 0 ; | |
19008 | PyObject * obj2 = 0 ; | |
19009 | char *kwnames[] = { | |
19010 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
19011 | }; | |
19012 | ||
19013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlOi:ListCtrl_FindItemAtPos",kwnames,&obj0,&arg2,&obj2,&arg4)) goto fail; | |
19014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19015 | { | |
19016 | arg3 = &temp3; | |
19017 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19018 | } | |
19019 | { | |
19020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19021 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
19022 | ||
19023 | wxPyEndAllowThreads(__tstate); | |
19024 | if (PyErr_Occurred()) SWIG_fail; | |
19025 | } | |
19026 | resultobj = PyInt_FromLong((long)result); | |
19027 | return resultobj; | |
19028 | fail: | |
19029 | return NULL; | |
19030 | } | |
19031 | ||
19032 | ||
19033 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19034 | PyObject *resultobj; | |
19035 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19036 | wxPoint *arg2 = 0 ; | |
19037 | int *arg3 = 0 ; | |
19038 | long result; | |
19039 | wxPoint temp2 ; | |
19040 | int temp3 ; | |
19041 | PyObject * obj0 = 0 ; | |
19042 | PyObject * obj1 = 0 ; | |
19043 | char *kwnames[] = { | |
19044 | (char *) "self",(char *) "point", NULL | |
19045 | }; | |
19046 | ||
19047 | arg3 = &temp3; | |
19048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
19049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19050 | { | |
19051 | arg2 = &temp2; | |
19052 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19053 | } | |
19054 | { | |
19055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19056 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
19057 | ||
19058 | wxPyEndAllowThreads(__tstate); | |
19059 | if (PyErr_Occurred()) SWIG_fail; | |
19060 | } | |
19061 | resultobj = PyInt_FromLong((long)result); | |
19062 | { | |
19063 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
19064 | resultobj = t_output_helper(resultobj,o); | |
19065 | } | |
19066 | return resultobj; | |
19067 | fail: | |
19068 | return NULL; | |
19069 | } | |
19070 | ||
19071 | ||
19072 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19073 | PyObject *resultobj; | |
19074 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19075 | wxListItem *arg2 = 0 ; | |
19076 | long result; | |
19077 | PyObject * obj0 = 0 ; | |
19078 | PyObject * obj1 = 0 ; | |
19079 | char *kwnames[] = { | |
19080 | (char *) "self",(char *) "info", NULL | |
19081 | }; | |
19082 | ||
19083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
19084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19085 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19086 | if (arg2 == NULL) { | |
19087 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19088 | } | |
19089 | { | |
19090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19091 | result = (long)(arg1)->InsertItem(*arg2); | |
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_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19104 | PyObject *resultobj; | |
19105 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19106 | long arg2 ; | |
19107 | wxString *arg3 = 0 ; | |
19108 | long result; | |
423f194a | 19109 | bool temp3 = False ; |
d14a1e28 RD |
19110 | PyObject * obj0 = 0 ; |
19111 | PyObject * obj2 = 0 ; | |
19112 | char *kwnames[] = { | |
19113 | (char *) "self",(char *) "index",(char *) "label", NULL | |
19114 | }; | |
19115 | ||
19116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_InsertStringItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19118 | { | |
19119 | arg3 = wxString_in_helper(obj2); | |
19120 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 19121 | temp3 = True; |
d14a1e28 RD |
19122 | } |
19123 | { | |
19124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19125 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
19126 | ||
19127 | wxPyEndAllowThreads(__tstate); | |
19128 | if (PyErr_Occurred()) SWIG_fail; | |
19129 | } | |
19130 | resultobj = PyInt_FromLong((long)result); | |
19131 | { | |
19132 | if (temp3) | |
19133 | delete arg3; | |
19134 | } | |
19135 | return resultobj; | |
19136 | fail: | |
19137 | { | |
19138 | if (temp3) | |
19139 | delete arg3; | |
19140 | } | |
19141 | return NULL; | |
19142 | } | |
19143 | ||
19144 | ||
19145 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19146 | PyObject *resultobj; | |
19147 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19148 | long arg2 ; | |
19149 | int arg3 ; | |
19150 | long result; | |
19151 | PyObject * obj0 = 0 ; | |
19152 | char *kwnames[] = { | |
19153 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
19154 | }; | |
19155 | ||
19156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oli:ListCtrl_InsertImageItem",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19158 | { | |
19159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19160 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
19161 | ||
19162 | wxPyEndAllowThreads(__tstate); | |
19163 | if (PyErr_Occurred()) SWIG_fail; | |
19164 | } | |
19165 | resultobj = PyInt_FromLong((long)result); | |
19166 | return resultobj; | |
19167 | fail: | |
19168 | return NULL; | |
19169 | } | |
19170 | ||
19171 | ||
19172 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19173 | PyObject *resultobj; | |
19174 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19175 | long arg2 ; | |
19176 | wxString *arg3 = 0 ; | |
19177 | int arg4 ; | |
19178 | long result; | |
423f194a | 19179 | bool temp3 = False ; |
d14a1e28 RD |
19180 | PyObject * obj0 = 0 ; |
19181 | PyObject * obj2 = 0 ; | |
19182 | char *kwnames[] = { | |
19183 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
19184 | }; | |
19185 | ||
19186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlOi:ListCtrl_InsertImageStringItem",kwnames,&obj0,&arg2,&obj2,&arg4)) goto fail; | |
19187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19188 | { | |
19189 | arg3 = wxString_in_helper(obj2); | |
19190 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 19191 | temp3 = True; |
d14a1e28 RD |
19192 | } |
19193 | { | |
19194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19195 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
19196 | ||
19197 | wxPyEndAllowThreads(__tstate); | |
19198 | if (PyErr_Occurred()) SWIG_fail; | |
19199 | } | |
19200 | resultobj = PyInt_FromLong((long)result); | |
19201 | { | |
19202 | if (temp3) | |
19203 | delete arg3; | |
19204 | } | |
19205 | return resultobj; | |
19206 | fail: | |
19207 | { | |
19208 | if (temp3) | |
19209 | delete arg3; | |
19210 | } | |
19211 | return NULL; | |
19212 | } | |
19213 | ||
19214 | ||
19215 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19216 | PyObject *resultobj; | |
19217 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19218 | long arg2 ; | |
19219 | wxListItem *arg3 = 0 ; | |
19220 | long result; | |
19221 | PyObject * obj0 = 0 ; | |
19222 | PyObject * obj2 = 0 ; | |
19223 | char *kwnames[] = { | |
19224 | (char *) "self",(char *) "col",(char *) "info", NULL | |
19225 | }; | |
19226 | ||
19227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19229 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19230 | if (arg3 == NULL) { | |
19231 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19232 | } | |
19233 | { | |
19234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19235 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
19236 | ||
19237 | wxPyEndAllowThreads(__tstate); | |
19238 | if (PyErr_Occurred()) SWIG_fail; | |
19239 | } | |
19240 | resultobj = PyInt_FromLong((long)result); | |
19241 | return resultobj; | |
19242 | fail: | |
19243 | return NULL; | |
19244 | } | |
19245 | ||
19246 | ||
19247 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19248 | PyObject *resultobj; | |
19249 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19250 | long arg2 ; | |
19251 | wxString *arg3 = 0 ; | |
19252 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
19253 | int arg5 = (int) -1 ; | |
19254 | long result; | |
423f194a | 19255 | bool temp3 = False ; |
d14a1e28 RD |
19256 | PyObject * obj0 = 0 ; |
19257 | PyObject * obj2 = 0 ; | |
19258 | char *kwnames[] = { | |
19259 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
19260 | }; | |
19261 | ||
19262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO|ii:ListCtrl_InsertColumn",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5)) goto fail; | |
19263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19264 | { | |
19265 | arg3 = wxString_in_helper(obj2); | |
19266 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 19267 | temp3 = True; |
d14a1e28 RD |
19268 | } |
19269 | { | |
19270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19271 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
19272 | ||
19273 | wxPyEndAllowThreads(__tstate); | |
19274 | if (PyErr_Occurred()) SWIG_fail; | |
19275 | } | |
19276 | resultobj = PyInt_FromLong((long)result); | |
19277 | { | |
19278 | if (temp3) | |
19279 | delete arg3; | |
19280 | } | |
19281 | return resultobj; | |
19282 | fail: | |
19283 | { | |
19284 | if (temp3) | |
19285 | delete arg3; | |
19286 | } | |
19287 | return NULL; | |
19288 | } | |
19289 | ||
19290 | ||
19291 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19292 | PyObject *resultobj; | |
19293 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19294 | long arg2 ; | |
19295 | PyObject * obj0 = 0 ; | |
19296 | char *kwnames[] = { | |
19297 | (char *) "self",(char *) "count", NULL | |
19298 | }; | |
19299 | ||
19300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_SetItemCount",kwnames,&obj0,&arg2)) goto fail; | |
19301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19302 | { | |
19303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19304 | (arg1)->SetItemCount(arg2); | |
19305 | ||
19306 | wxPyEndAllowThreads(__tstate); | |
19307 | if (PyErr_Occurred()) SWIG_fail; | |
19308 | } | |
19309 | Py_INCREF(Py_None); resultobj = Py_None; | |
19310 | return resultobj; | |
19311 | fail: | |
19312 | return NULL; | |
19313 | } | |
19314 | ||
19315 | ||
19316 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19317 | PyObject *resultobj; | |
19318 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19319 | int arg2 ; | |
19320 | int arg3 ; | |
19321 | bool result; | |
19322 | PyObject * obj0 = 0 ; | |
19323 | char *kwnames[] = { | |
19324 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
19325 | }; | |
19326 | ||
19327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListCtrl_ScrollList",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19329 | { | |
19330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19331 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
19332 | ||
19333 | wxPyEndAllowThreads(__tstate); | |
19334 | if (PyErr_Occurred()) SWIG_fail; | |
19335 | } | |
19336 | resultobj = PyInt_FromLong((long)result); | |
19337 | return resultobj; | |
19338 | fail: | |
19339 | return NULL; | |
19340 | } | |
19341 | ||
19342 | ||
19343 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19344 | PyObject *resultobj; | |
19345 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19346 | long arg2 ; | |
19347 | wxColour *arg3 = 0 ; | |
19348 | wxColour temp3 ; | |
19349 | PyObject * obj0 = 0 ; | |
19350 | PyObject * obj2 = 0 ; | |
19351 | char *kwnames[] = { | |
19352 | (char *) "self",(char *) "item",(char *) "col", NULL | |
19353 | }; | |
19354 | ||
19355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemTextColour",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19357 | { | |
19358 | arg3 = &temp3; | |
19359 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19360 | } | |
19361 | { | |
19362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19363 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
19364 | ||
19365 | wxPyEndAllowThreads(__tstate); | |
19366 | if (PyErr_Occurred()) SWIG_fail; | |
19367 | } | |
19368 | Py_INCREF(Py_None); resultobj = Py_None; | |
19369 | return resultobj; | |
19370 | fail: | |
19371 | return NULL; | |
19372 | } | |
19373 | ||
19374 | ||
19375 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19376 | PyObject *resultobj; | |
19377 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19378 | long arg2 ; | |
19379 | wxColour result; | |
19380 | PyObject * obj0 = 0 ; | |
19381 | char *kwnames[] = { | |
19382 | (char *) "self",(char *) "item", NULL | |
19383 | }; | |
19384 | ||
19385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemTextColour",kwnames,&obj0,&arg2)) goto fail; | |
19386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19387 | { | |
19388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19389 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
19390 | ||
19391 | wxPyEndAllowThreads(__tstate); | |
19392 | if (PyErr_Occurred()) SWIG_fail; | |
19393 | } | |
19394 | { | |
19395 | wxColour * resultptr; | |
19396 | resultptr = new wxColour((wxColour &) result); | |
19397 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
19398 | } | |
19399 | return resultobj; | |
19400 | fail: | |
19401 | return NULL; | |
19402 | } | |
19403 | ||
19404 | ||
19405 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19406 | PyObject *resultobj; | |
19407 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19408 | long arg2 ; | |
19409 | wxColour *arg3 = 0 ; | |
19410 | wxColour temp3 ; | |
19411 | PyObject * obj0 = 0 ; | |
19412 | PyObject * obj2 = 0 ; | |
19413 | char *kwnames[] = { | |
19414 | (char *) "self",(char *) "item",(char *) "col", NULL | |
19415 | }; | |
19416 | ||
19417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19419 | { | |
19420 | arg3 = &temp3; | |
19421 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19422 | } | |
19423 | { | |
19424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19425 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
19426 | ||
19427 | wxPyEndAllowThreads(__tstate); | |
19428 | if (PyErr_Occurred()) SWIG_fail; | |
19429 | } | |
19430 | Py_INCREF(Py_None); resultobj = Py_None; | |
19431 | return resultobj; | |
19432 | fail: | |
19433 | return NULL; | |
19434 | } | |
19435 | ||
19436 | ||
19437 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19438 | PyObject *resultobj; | |
19439 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19440 | long arg2 ; | |
19441 | wxColour result; | |
19442 | PyObject * obj0 = 0 ; | |
19443 | char *kwnames[] = { | |
19444 | (char *) "self",(char *) "item", NULL | |
19445 | }; | |
19446 | ||
19447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&arg2)) goto fail; | |
19448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19449 | { | |
19450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19451 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
19452 | ||
19453 | wxPyEndAllowThreads(__tstate); | |
19454 | if (PyErr_Occurred()) SWIG_fail; | |
19455 | } | |
19456 | { | |
19457 | wxColour * resultptr; | |
19458 | resultptr = new wxColour((wxColour &) result); | |
19459 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
19460 | } | |
19461 | return resultobj; | |
19462 | fail: | |
19463 | return NULL; | |
19464 | } | |
19465 | ||
19466 | ||
19467 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19468 | PyObject *resultobj; | |
19469 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19470 | PyObject *arg2 = (PyObject *) 0 ; | |
19471 | bool result; | |
19472 | PyObject * obj0 = 0 ; | |
19473 | PyObject * obj1 = 0 ; | |
19474 | char *kwnames[] = { | |
19475 | (char *) "self",(char *) "func", NULL | |
19476 | }; | |
19477 | ||
19478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
19479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19480 | arg2 = obj1; | |
19481 | { | |
19482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19483 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
19484 | ||
19485 | wxPyEndAllowThreads(__tstate); | |
19486 | if (PyErr_Occurred()) SWIG_fail; | |
19487 | } | |
19488 | resultobj = PyInt_FromLong((long)result); | |
19489 | return resultobj; | |
19490 | fail: | |
19491 | return NULL; | |
19492 | } | |
19493 | ||
19494 | ||
19495 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19496 | PyObject *resultobj; | |
19497 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19498 | wxWindow *result; | |
19499 | PyObject * obj0 = 0 ; | |
19500 | char *kwnames[] = { | |
19501 | (char *) "self", NULL | |
19502 | }; | |
19503 | ||
19504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
19505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19506 | { | |
19507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19508 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
19509 | ||
19510 | wxPyEndAllowThreads(__tstate); | |
19511 | if (PyErr_Occurred()) SWIG_fail; | |
19512 | } | |
19513 | { | |
19514 | resultobj = wxPyMake_wxObject(result); | |
19515 | } | |
19516 | return resultobj; | |
19517 | fail: | |
19518 | return NULL; | |
19519 | } | |
19520 | ||
19521 | ||
19522 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
19523 | PyObject *obj; | |
19524 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19525 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
19526 | Py_INCREF(obj); | |
19527 | return Py_BuildValue((char *)""); | |
19528 | } | |
19529 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19530 | PyObject *resultobj; | |
19531 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19532 | int arg2 = (int) -1 ; |
d14a1e28 RD |
19533 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19534 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19535 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19536 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19537 | long arg5 = (long) wxLC_REPORT ; | |
19538 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
19539 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
19540 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
19541 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19542 | wxListView *result; | |
19543 | wxPoint temp3 ; | |
19544 | wxSize temp4 ; | |
423f194a | 19545 | bool temp7 = False ; |
d14a1e28 RD |
19546 | PyObject * obj0 = 0 ; |
19547 | PyObject * obj2 = 0 ; | |
19548 | PyObject * obj3 = 0 ; | |
19549 | PyObject * obj5 = 0 ; | |
19550 | PyObject * obj6 = 0 ; | |
19551 | char *kwnames[] = { | |
19552 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19553 | }; | |
19554 | ||
19555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ListView",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
19556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19557 | if (obj2) { | |
19558 | { | |
19559 | arg3 = &temp3; | |
19560 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19561 | } | |
19562 | } | |
19563 | if (obj3) { | |
19564 | { | |
19565 | arg4 = &temp4; | |
19566 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19567 | } | |
19568 | } | |
19569 | if (obj5) { | |
19570 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19571 | if (arg6 == NULL) { | |
19572 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19573 | } | |
19574 | } | |
19575 | if (obj6) { | |
19576 | { | |
19577 | arg7 = wxString_in_helper(obj6); | |
19578 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 19579 | temp7 = True; |
d14a1e28 RD |
19580 | } |
19581 | } | |
19582 | { | |
19583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19584 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
19585 | ||
19586 | wxPyEndAllowThreads(__tstate); | |
19587 | if (PyErr_Occurred()) SWIG_fail; | |
19588 | } | |
19589 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
19590 | { | |
19591 | if (temp7) | |
19592 | delete arg7; | |
19593 | } | |
19594 | return resultobj; | |
19595 | fail: | |
19596 | { | |
19597 | if (temp7) | |
19598 | delete arg7; | |
19599 | } | |
19600 | return NULL; | |
19601 | } | |
19602 | ||
19603 | ||
19604 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19605 | PyObject *resultobj; | |
19606 | wxListView *result; | |
19607 | char *kwnames[] = { | |
19608 | NULL | |
19609 | }; | |
19610 | ||
19611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
19612 | { | |
19613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19614 | result = (wxListView *)new wxListView(); | |
19615 | ||
19616 | wxPyEndAllowThreads(__tstate); | |
19617 | if (PyErr_Occurred()) SWIG_fail; | |
19618 | } | |
19619 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
19620 | return resultobj; | |
19621 | fail: | |
19622 | return NULL; | |
19623 | } | |
19624 | ||
19625 | ||
19626 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19627 | PyObject *resultobj; | |
19628 | wxListView *arg1 = (wxListView *) 0 ; | |
19629 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 19630 | int arg3 = (int) -1 ; |
d14a1e28 RD |
19631 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19632 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19633 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19634 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19635 | long arg6 = (long) wxLC_REPORT ; | |
19636 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
19637 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
19638 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
19639 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19640 | bool result; | |
19641 | wxPoint temp4 ; | |
19642 | wxSize temp5 ; | |
423f194a | 19643 | bool temp8 = False ; |
d14a1e28 RD |
19644 | PyObject * obj0 = 0 ; |
19645 | PyObject * obj1 = 0 ; | |
19646 | PyObject * obj3 = 0 ; | |
19647 | PyObject * obj4 = 0 ; | |
19648 | PyObject * obj6 = 0 ; | |
19649 | PyObject * obj7 = 0 ; | |
19650 | char *kwnames[] = { | |
19651 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19652 | }; | |
19653 | ||
19654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ListView_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
19655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19656 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19657 | if (obj3) { | |
19658 | { | |
19659 | arg4 = &temp4; | |
19660 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19661 | } | |
19662 | } | |
19663 | if (obj4) { | |
19664 | { | |
19665 | arg5 = &temp5; | |
19666 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19667 | } | |
19668 | } | |
19669 | if (obj6) { | |
19670 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19671 | if (arg7 == NULL) { | |
19672 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19673 | } | |
19674 | } | |
19675 | if (obj7) { | |
19676 | { | |
19677 | arg8 = wxString_in_helper(obj7); | |
19678 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 19679 | temp8 = True; |
d14a1e28 RD |
19680 | } |
19681 | } | |
19682 | { | |
19683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19684 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
19685 | ||
19686 | wxPyEndAllowThreads(__tstate); | |
19687 | if (PyErr_Occurred()) SWIG_fail; | |
19688 | } | |
19689 | resultobj = PyInt_FromLong((long)result); | |
19690 | { | |
19691 | if (temp8) | |
19692 | delete arg8; | |
19693 | } | |
19694 | return resultobj; | |
19695 | fail: | |
19696 | { | |
19697 | if (temp8) | |
19698 | delete arg8; | |
19699 | } | |
19700 | return NULL; | |
19701 | } | |
19702 | ||
19703 | ||
19704 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19705 | PyObject *resultobj; | |
19706 | wxListView *arg1 = (wxListView *) 0 ; | |
19707 | long arg2 ; | |
423f194a | 19708 | bool arg3 = (bool) True ; |
d14a1e28 RD |
19709 | PyObject * obj0 = 0 ; |
19710 | PyObject * obj2 = 0 ; | |
19711 | char *kwnames[] = { | |
19712 | (char *) "self",(char *) "n",(char *) "on", NULL | |
19713 | }; | |
19714 | ||
19715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|O:ListView_Select",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19717 | if (obj2) { | |
19718 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
19719 | if (PyErr_Occurred()) SWIG_fail; | |
19720 | } | |
19721 | { | |
19722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19723 | (arg1)->Select(arg2,arg3); | |
19724 | ||
19725 | wxPyEndAllowThreads(__tstate); | |
19726 | if (PyErr_Occurred()) SWIG_fail; | |
19727 | } | |
19728 | Py_INCREF(Py_None); resultobj = Py_None; | |
19729 | return resultobj; | |
19730 | fail: | |
19731 | return NULL; | |
19732 | } | |
19733 | ||
19734 | ||
19735 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19736 | PyObject *resultobj; | |
19737 | wxListView *arg1 = (wxListView *) 0 ; | |
19738 | long arg2 ; | |
19739 | PyObject * obj0 = 0 ; | |
19740 | char *kwnames[] = { | |
19741 | (char *) "self",(char *) "index", NULL | |
19742 | }; | |
19743 | ||
19744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_Focus",kwnames,&obj0,&arg2)) goto fail; | |
19745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19746 | { | |
19747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19748 | (arg1)->Focus(arg2); | |
19749 | ||
19750 | wxPyEndAllowThreads(__tstate); | |
19751 | if (PyErr_Occurred()) SWIG_fail; | |
19752 | } | |
19753 | Py_INCREF(Py_None); resultobj = Py_None; | |
19754 | return resultobj; | |
19755 | fail: | |
19756 | return NULL; | |
19757 | } | |
19758 | ||
19759 | ||
19760 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19761 | PyObject *resultobj; | |
19762 | wxListView *arg1 = (wxListView *) 0 ; | |
19763 | long result; | |
19764 | PyObject * obj0 = 0 ; | |
19765 | char *kwnames[] = { | |
19766 | (char *) "self", NULL | |
19767 | }; | |
19768 | ||
19769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
19770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19771 | { | |
19772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19773 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
19774 | ||
19775 | wxPyEndAllowThreads(__tstate); | |
19776 | if (PyErr_Occurred()) SWIG_fail; | |
19777 | } | |
19778 | resultobj = PyInt_FromLong((long)result); | |
19779 | return resultobj; | |
19780 | fail: | |
19781 | return NULL; | |
19782 | } | |
19783 | ||
19784 | ||
19785 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19786 | PyObject *resultobj; | |
19787 | wxListView *arg1 = (wxListView *) 0 ; | |
19788 | long arg2 ; | |
19789 | long result; | |
19790 | PyObject * obj0 = 0 ; | |
19791 | char *kwnames[] = { | |
19792 | (char *) "self",(char *) "item", NULL | |
19793 | }; | |
19794 | ||
19795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_GetNextSelected",kwnames,&obj0,&arg2)) goto fail; | |
19796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19797 | { | |
19798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19799 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
19800 | ||
19801 | wxPyEndAllowThreads(__tstate); | |
19802 | if (PyErr_Occurred()) SWIG_fail; | |
19803 | } | |
19804 | resultobj = PyInt_FromLong((long)result); | |
19805 | return resultobj; | |
19806 | fail: | |
19807 | return NULL; | |
19808 | } | |
19809 | ||
19810 | ||
19811 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19812 | PyObject *resultobj; | |
19813 | wxListView *arg1 = (wxListView *) 0 ; | |
19814 | long result; | |
19815 | PyObject * obj0 = 0 ; | |
19816 | char *kwnames[] = { | |
19817 | (char *) "self", NULL | |
19818 | }; | |
19819 | ||
19820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
19821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19822 | { | |
19823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19824 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
19825 | ||
19826 | wxPyEndAllowThreads(__tstate); | |
19827 | if (PyErr_Occurred()) SWIG_fail; | |
19828 | } | |
19829 | resultobj = PyInt_FromLong((long)result); | |
19830 | return resultobj; | |
19831 | fail: | |
19832 | return NULL; | |
19833 | } | |
19834 | ||
19835 | ||
19836 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19837 | PyObject *resultobj; | |
19838 | wxListView *arg1 = (wxListView *) 0 ; | |
19839 | long arg2 ; | |
19840 | bool result; | |
19841 | PyObject * obj0 = 0 ; | |
19842 | char *kwnames[] = { | |
19843 | (char *) "self",(char *) "index", NULL | |
19844 | }; | |
19845 | ||
19846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_IsSelected",kwnames,&obj0,&arg2)) goto fail; | |
19847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19848 | { | |
19849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19850 | result = (bool)(arg1)->IsSelected(arg2); | |
19851 | ||
19852 | wxPyEndAllowThreads(__tstate); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
19855 | resultobj = PyInt_FromLong((long)result); | |
19856 | return resultobj; | |
19857 | fail: | |
19858 | return NULL; | |
19859 | } | |
19860 | ||
19861 | ||
19862 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19863 | PyObject *resultobj; | |
19864 | wxListView *arg1 = (wxListView *) 0 ; | |
19865 | int arg2 ; | |
19866 | int arg3 ; | |
19867 | PyObject * obj0 = 0 ; | |
19868 | char *kwnames[] = { | |
19869 | (char *) "self",(char *) "col",(char *) "image", NULL | |
19870 | }; | |
19871 | ||
19872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListView_SetColumnImage",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19874 | { | |
19875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19876 | (arg1)->SetColumnImage(arg2,arg3); | |
19877 | ||
19878 | wxPyEndAllowThreads(__tstate); | |
19879 | if (PyErr_Occurred()) SWIG_fail; | |
19880 | } | |
19881 | Py_INCREF(Py_None); resultobj = Py_None; | |
19882 | return resultobj; | |
19883 | fail: | |
19884 | return NULL; | |
19885 | } | |
19886 | ||
19887 | ||
19888 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19889 | PyObject *resultobj; | |
19890 | wxListView *arg1 = (wxListView *) 0 ; | |
19891 | int arg2 ; | |
19892 | PyObject * obj0 = 0 ; | |
19893 | char *kwnames[] = { | |
19894 | (char *) "self",(char *) "col", NULL | |
19895 | }; | |
19896 | ||
19897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListView_ClearColumnImage",kwnames,&obj0,&arg2)) goto fail; | |
19898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19899 | { | |
19900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19901 | (arg1)->ClearColumnImage(arg2); | |
19902 | ||
19903 | wxPyEndAllowThreads(__tstate); | |
19904 | if (PyErr_Occurred()) SWIG_fail; | |
19905 | } | |
19906 | Py_INCREF(Py_None); resultobj = Py_None; | |
19907 | return resultobj; | |
19908 | fail: | |
19909 | return NULL; | |
19910 | } | |
19911 | ||
19912 | ||
19913 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
19914 | PyObject *obj; | |
19915 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19916 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
19917 | Py_INCREF(obj); | |
19918 | return Py_BuildValue((char *)""); | |
19919 | } | |
cbd72d4f RD |
19920 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { |
19921 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
19922 | return 1; | |
19923 | } | |
19924 | ||
19925 | ||
19926 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
19927 | PyObject *pyobj; | |
19928 | ||
19929 | { | |
19930 | #if wxUSE_UNICODE | |
19931 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
19932 | #else | |
19933 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
19934 | #endif | |
19935 | } | |
19936 | return pyobj; | |
19937 | } | |
19938 | ||
19939 | ||
d14a1e28 RD |
19940 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
19941 | PyObject *resultobj; | |
19942 | wxTreeItemId *result; | |
19943 | char *kwnames[] = { | |
19944 | NULL | |
19945 | }; | |
19946 | ||
19947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
19948 | { | |
19949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19950 | result = (wxTreeItemId *)new wxTreeItemId(); | |
19951 | ||
19952 | wxPyEndAllowThreads(__tstate); | |
19953 | if (PyErr_Occurred()) SWIG_fail; | |
19954 | } | |
19955 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
19956 | return resultobj; | |
19957 | fail: | |
19958 | return NULL; | |
19959 | } | |
19960 | ||
19961 | ||
19962 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19963 | PyObject *resultobj; | |
19964 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19965 | PyObject * obj0 = 0 ; | |
19966 | char *kwnames[] = { | |
19967 | (char *) "self", NULL | |
19968 | }; | |
19969 | ||
19970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
19971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19972 | { | |
19973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19974 | delete arg1; | |
19975 | ||
19976 | wxPyEndAllowThreads(__tstate); | |
19977 | if (PyErr_Occurred()) SWIG_fail; | |
19978 | } | |
19979 | Py_INCREF(Py_None); resultobj = Py_None; | |
19980 | return resultobj; | |
19981 | fail: | |
19982 | return NULL; | |
19983 | } | |
19984 | ||
19985 | ||
19986 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19987 | PyObject *resultobj; | |
19988 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
19989 | bool result; | |
19990 | PyObject * obj0 = 0 ; | |
19991 | char *kwnames[] = { | |
19992 | (char *) "self", NULL | |
19993 | }; | |
19994 | ||
19995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
19996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19997 | { | |
19998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19999 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
20000 | ||
20001 | wxPyEndAllowThreads(__tstate); | |
20002 | if (PyErr_Occurred()) SWIG_fail; | |
20003 | } | |
20004 | resultobj = PyInt_FromLong((long)result); | |
20005 | return resultobj; | |
20006 | fail: | |
20007 | return NULL; | |
20008 | } | |
20009 | ||
20010 | ||
20011 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20012 | PyObject *resultobj; | |
20013 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20014 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
20015 | bool result; | |
20016 | PyObject * obj0 = 0 ; | |
20017 | PyObject * obj1 = 0 ; | |
20018 | char *kwnames[] = { | |
20019 | (char *) "self",(char *) "other", NULL | |
20020 | }; | |
20021 | ||
20022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
20023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20024 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20025 | { | |
20026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20027 | result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2); | |
20028 | ||
20029 | wxPyEndAllowThreads(__tstate); | |
20030 | if (PyErr_Occurred()) SWIG_fail; | |
20031 | } | |
20032 | resultobj = PyInt_FromLong((long)result); | |
20033 | return resultobj; | |
20034 | fail: | |
20035 | return NULL; | |
20036 | } | |
20037 | ||
20038 | ||
20039 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20040 | PyObject *resultobj; | |
20041 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20042 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
20043 | bool result; | |
20044 | PyObject * obj0 = 0 ; | |
20045 | PyObject * obj1 = 0 ; | |
20046 | char *kwnames[] = { | |
20047 | (char *) "self",(char *) "other", NULL | |
20048 | }; | |
20049 | ||
20050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
20051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20052 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20053 | { | |
20054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20055 | result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2); | |
20056 | ||
20057 | wxPyEndAllowThreads(__tstate); | |
20058 | if (PyErr_Occurred()) SWIG_fail; | |
20059 | } | |
20060 | resultobj = PyInt_FromLong((long)result); | |
20061 | return resultobj; | |
20062 | fail: | |
20063 | return NULL; | |
20064 | } | |
20065 | ||
20066 | ||
20067 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20068 | PyObject *resultobj; | |
20069 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20070 | wxTreeItemIdValue arg2 = (wxTreeItemIdValue) 0 ; | |
20071 | PyObject * obj0 = 0 ; | |
20072 | PyObject * obj1 = 0 ; | |
20073 | char *kwnames[] = { | |
20074 | (char *) "self",(char *) "m_pItem", NULL | |
20075 | }; | |
20076 | ||
20077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
20078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20079 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
20080 | if (arg1) (arg1)->m_pItem = arg2; | |
20081 | ||
20082 | Py_INCREF(Py_None); resultobj = Py_None; | |
20083 | return resultobj; | |
20084 | fail: | |
20085 | return NULL; | |
20086 | } | |
20087 | ||
20088 | ||
20089 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20090 | PyObject *resultobj; | |
20091 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20092 | wxTreeItemIdValue result; | |
20093 | PyObject * obj0 = 0 ; | |
20094 | char *kwnames[] = { | |
20095 | (char *) "self", NULL | |
20096 | }; | |
20097 | ||
20098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
20099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20100 | result = (wxTreeItemIdValue) ((arg1)->m_pItem); | |
20101 | ||
20102 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_wxTreeItemIdValue, 0); | |
20103 | return resultobj; | |
20104 | fail: | |
20105 | return NULL; | |
20106 | } | |
20107 | ||
20108 | ||
20109 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
20110 | PyObject *obj; | |
20111 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20112 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
20113 | Py_INCREF(obj); | |
20114 | return Py_BuildValue((char *)""); | |
20115 | } | |
20116 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20117 | PyObject *resultobj; | |
20118 | PyObject *arg1 = (PyObject *) NULL ; | |
20119 | wxPyTreeItemData *result; | |
20120 | PyObject * obj0 = 0 ; | |
20121 | char *kwnames[] = { | |
20122 | (char *) "obj", NULL | |
20123 | }; | |
20124 | ||
20125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
20126 | if (obj0) { | |
20127 | arg1 = obj0; | |
20128 | } | |
20129 | { | |
20130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20131 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
20132 | ||
20133 | wxPyEndAllowThreads(__tstate); | |
20134 | if (PyErr_Occurred()) SWIG_fail; | |
20135 | } | |
20136 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
20137 | return resultobj; | |
20138 | fail: | |
20139 | return NULL; | |
20140 | } | |
20141 | ||
20142 | ||
20143 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20144 | PyObject *resultobj; | |
20145 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20146 | PyObject *result; | |
20147 | PyObject * obj0 = 0 ; | |
20148 | char *kwnames[] = { | |
20149 | (char *) "self", NULL | |
20150 | }; | |
20151 | ||
20152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
20153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20154 | { | |
20155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20156 | result = (PyObject *)(arg1)->GetData(); | |
20157 | ||
20158 | wxPyEndAllowThreads(__tstate); | |
20159 | if (PyErr_Occurred()) SWIG_fail; | |
20160 | } | |
20161 | resultobj = result; | |
20162 | return resultobj; | |
20163 | fail: | |
20164 | return NULL; | |
20165 | } | |
20166 | ||
20167 | ||
20168 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20169 | PyObject *resultobj; | |
20170 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20171 | PyObject *arg2 = (PyObject *) 0 ; | |
20172 | PyObject * obj0 = 0 ; | |
20173 | PyObject * obj1 = 0 ; | |
20174 | char *kwnames[] = { | |
20175 | (char *) "self",(char *) "obj", NULL | |
20176 | }; | |
20177 | ||
20178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
20179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20180 | arg2 = obj1; | |
20181 | { | |
20182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20183 | (arg1)->SetData(arg2); | |
20184 | ||
20185 | wxPyEndAllowThreads(__tstate); | |
20186 | if (PyErr_Occurred()) SWIG_fail; | |
20187 | } | |
20188 | Py_INCREF(Py_None); resultobj = Py_None; | |
20189 | return resultobj; | |
20190 | fail: | |
20191 | return NULL; | |
20192 | } | |
20193 | ||
20194 | ||
20195 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20196 | PyObject *resultobj; | |
20197 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20198 | wxTreeItemId *result; | |
20199 | PyObject * obj0 = 0 ; | |
20200 | char *kwnames[] = { | |
20201 | (char *) "self", NULL | |
20202 | }; | |
20203 | ||
20204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
20205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20206 | { | |
20207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20208 | { | |
20209 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
20210 | result = (wxTreeItemId *) &_result_ref; | |
20211 | } | |
20212 | ||
20213 | wxPyEndAllowThreads(__tstate); | |
20214 | if (PyErr_Occurred()) SWIG_fail; | |
20215 | } | |
20216 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
20217 | return resultobj; | |
20218 | fail: | |
20219 | return NULL; | |
20220 | } | |
20221 | ||
20222 | ||
20223 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20224 | PyObject *resultobj; | |
20225 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20226 | wxTreeItemId *arg2 = 0 ; | |
20227 | PyObject * obj0 = 0 ; | |
20228 | PyObject * obj1 = 0 ; | |
20229 | char *kwnames[] = { | |
20230 | (char *) "self",(char *) "id", NULL | |
20231 | }; | |
20232 | ||
20233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
20234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20235 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20236 | if (arg2 == NULL) { | |
20237 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20238 | } | |
20239 | { | |
20240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20241 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
20242 | ||
20243 | wxPyEndAllowThreads(__tstate); | |
20244 | if (PyErr_Occurred()) SWIG_fail; | |
20245 | } | |
20246 | Py_INCREF(Py_None); resultobj = Py_None; | |
20247 | return resultobj; | |
20248 | fail: | |
20249 | return NULL; | |
20250 | } | |
20251 | ||
20252 | ||
20253 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20254 | PyObject *resultobj; | |
20255 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20256 | PyObject * obj0 = 0 ; | |
20257 | char *kwnames[] = { | |
20258 | (char *) "self", NULL | |
20259 | }; | |
20260 | ||
20261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
20262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20263 | { | |
20264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20265 | wxPyTreeItemData_Destroy(arg1); | |
20266 | ||
20267 | wxPyEndAllowThreads(__tstate); | |
20268 | if (PyErr_Occurred()) SWIG_fail; | |
20269 | } | |
20270 | Py_INCREF(Py_None); resultobj = Py_None; | |
20271 | return resultobj; | |
20272 | fail: | |
20273 | return NULL; | |
20274 | } | |
20275 | ||
20276 | ||
20277 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
20278 | PyObject *obj; | |
20279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20280 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
20281 | Py_INCREF(obj); | |
20282 | return Py_BuildValue((char *)""); | |
20283 | } | |
20284 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20285 | PyObject *resultobj; | |
20286 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20287 | int arg2 = (int) 0 ; | |
20288 | wxTreeEvent *result; | |
20289 | char *kwnames[] = { | |
20290 | (char *) "commandType",(char *) "id", NULL | |
20291 | }; | |
20292 | ||
20293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TreeEvent",kwnames,&arg1,&arg2)) goto fail; | |
20294 | { | |
20295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20296 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
20297 | ||
20298 | wxPyEndAllowThreads(__tstate); | |
20299 | if (PyErr_Occurred()) SWIG_fail; | |
20300 | } | |
20301 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
20302 | return resultobj; | |
20303 | fail: | |
20304 | return NULL; | |
20305 | } | |
20306 | ||
20307 | ||
20308 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20309 | PyObject *resultobj; | |
20310 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20311 | wxTreeItemId result; | |
20312 | PyObject * obj0 = 0 ; | |
20313 | char *kwnames[] = { | |
20314 | (char *) "self", NULL | |
20315 | }; | |
20316 | ||
20317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
20318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20319 | { | |
20320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20321 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
20322 | ||
20323 | wxPyEndAllowThreads(__tstate); | |
20324 | if (PyErr_Occurred()) SWIG_fail; | |
20325 | } | |
20326 | { | |
20327 | wxTreeItemId * resultptr; | |
20328 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
20329 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
20330 | } | |
20331 | return resultobj; | |
20332 | fail: | |
20333 | return NULL; | |
20334 | } | |
20335 | ||
20336 | ||
20337 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20338 | PyObject *resultobj; | |
20339 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20340 | wxTreeItemId *arg2 = 0 ; | |
20341 | PyObject * obj0 = 0 ; | |
20342 | PyObject * obj1 = 0 ; | |
20343 | char *kwnames[] = { | |
20344 | (char *) "self",(char *) "item", NULL | |
20345 | }; | |
20346 | ||
20347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20349 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20350 | if (arg2 == NULL) { | |
20351 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20352 | } | |
20353 | { | |
20354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20355 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
20356 | ||
20357 | wxPyEndAllowThreads(__tstate); | |
20358 | if (PyErr_Occurred()) SWIG_fail; | |
20359 | } | |
20360 | Py_INCREF(Py_None); resultobj = Py_None; | |
20361 | return resultobj; | |
20362 | fail: | |
20363 | return NULL; | |
20364 | } | |
20365 | ||
20366 | ||
20367 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20368 | PyObject *resultobj; | |
20369 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20370 | wxTreeItemId result; | |
20371 | PyObject * obj0 = 0 ; | |
20372 | char *kwnames[] = { | |
20373 | (char *) "self", NULL | |
20374 | }; | |
20375 | ||
20376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
20377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20378 | { | |
20379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20380 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
20381 | ||
20382 | wxPyEndAllowThreads(__tstate); | |
20383 | if (PyErr_Occurred()) SWIG_fail; | |
20384 | } | |
20385 | { | |
20386 | wxTreeItemId * resultptr; | |
20387 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
20388 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
20389 | } | |
20390 | return resultobj; | |
20391 | fail: | |
20392 | return NULL; | |
20393 | } | |
20394 | ||
20395 | ||
20396 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20397 | PyObject *resultobj; | |
20398 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20399 | wxTreeItemId *arg2 = 0 ; | |
20400 | PyObject * obj0 = 0 ; | |
20401 | PyObject * obj1 = 0 ; | |
20402 | char *kwnames[] = { | |
20403 | (char *) "self",(char *) "item", NULL | |
20404 | }; | |
20405 | ||
20406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
20407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20408 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20409 | if (arg2 == NULL) { | |
20410 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20411 | } | |
20412 | { | |
20413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20414 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
20415 | ||
20416 | wxPyEndAllowThreads(__tstate); | |
20417 | if (PyErr_Occurred()) SWIG_fail; | |
20418 | } | |
20419 | Py_INCREF(Py_None); resultobj = Py_None; | |
20420 | return resultobj; | |
20421 | fail: | |
20422 | return NULL; | |
20423 | } | |
20424 | ||
20425 | ||
20426 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20427 | PyObject *resultobj; | |
20428 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20429 | wxPoint result; | |
20430 | PyObject * obj0 = 0 ; | |
20431 | char *kwnames[] = { | |
20432 | (char *) "self", NULL | |
20433 | }; | |
20434 | ||
20435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
20436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20437 | { | |
20438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20439 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
20440 | ||
20441 | wxPyEndAllowThreads(__tstate); | |
20442 | if (PyErr_Occurred()) SWIG_fail; | |
20443 | } | |
20444 | { | |
20445 | wxPoint * resultptr; | |
20446 | resultptr = new wxPoint((wxPoint &) result); | |
20447 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20448 | } | |
20449 | return resultobj; | |
20450 | fail: | |
20451 | return NULL; | |
20452 | } | |
20453 | ||
20454 | ||
20455 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20456 | PyObject *resultobj; | |
20457 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20458 | wxPoint *arg2 = 0 ; | |
20459 | wxPoint temp2 ; | |
20460 | PyObject * obj0 = 0 ; | |
20461 | PyObject * obj1 = 0 ; | |
20462 | char *kwnames[] = { | |
20463 | (char *) "self",(char *) "pt", NULL | |
20464 | }; | |
20465 | ||
20466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
20467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20468 | { | |
20469 | arg2 = &temp2; | |
20470 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20471 | } | |
20472 | { | |
20473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20474 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
20475 | ||
20476 | wxPyEndAllowThreads(__tstate); | |
20477 | if (PyErr_Occurred()) SWIG_fail; | |
20478 | } | |
20479 | Py_INCREF(Py_None); resultobj = Py_None; | |
20480 | return resultobj; | |
20481 | fail: | |
20482 | return NULL; | |
20483 | } | |
20484 | ||
20485 | ||
20486 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20487 | PyObject *resultobj; | |
20488 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20489 | wxKeyEvent *result; | |
20490 | PyObject * obj0 = 0 ; | |
20491 | char *kwnames[] = { | |
20492 | (char *) "self", NULL | |
20493 | }; | |
20494 | ||
20495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
20496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20497 | { | |
20498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20499 | { | |
20500 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
20501 | result = (wxKeyEvent *) &_result_ref; | |
20502 | } | |
20503 | ||
20504 | wxPyEndAllowThreads(__tstate); | |
20505 | if (PyErr_Occurred()) SWIG_fail; | |
20506 | } | |
20507 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
20508 | return resultobj; | |
20509 | fail: | |
20510 | return NULL; | |
20511 | } | |
20512 | ||
20513 | ||
20514 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20515 | PyObject *resultobj; | |
20516 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20517 | int result; | |
20518 | PyObject * obj0 = 0 ; | |
20519 | char *kwnames[] = { | |
20520 | (char *) "self", NULL | |
20521 | }; | |
20522 | ||
20523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
20524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20525 | { | |
20526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20527 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
20528 | ||
20529 | wxPyEndAllowThreads(__tstate); | |
20530 | if (PyErr_Occurred()) SWIG_fail; | |
20531 | } | |
20532 | resultobj = PyInt_FromLong((long)result); | |
20533 | return resultobj; | |
20534 | fail: | |
20535 | return NULL; | |
20536 | } | |
20537 | ||
20538 | ||
20539 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20540 | PyObject *resultobj; | |
20541 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20542 | wxKeyEvent *arg2 = 0 ; | |
20543 | PyObject * obj0 = 0 ; | |
20544 | PyObject * obj1 = 0 ; | |
20545 | char *kwnames[] = { | |
20546 | (char *) "self",(char *) "evt", NULL | |
20547 | }; | |
20548 | ||
20549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
20550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20551 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20552 | if (arg2 == NULL) { | |
20553 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20554 | } | |
20555 | { | |
20556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20557 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
20558 | ||
20559 | wxPyEndAllowThreads(__tstate); | |
20560 | if (PyErr_Occurred()) SWIG_fail; | |
20561 | } | |
20562 | Py_INCREF(Py_None); resultobj = Py_None; | |
20563 | return resultobj; | |
20564 | fail: | |
20565 | return NULL; | |
20566 | } | |
20567 | ||
20568 | ||
20569 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20570 | PyObject *resultobj; | |
20571 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20572 | wxString *result; | |
20573 | PyObject * obj0 = 0 ; | |
20574 | char *kwnames[] = { | |
20575 | (char *) "self", NULL | |
20576 | }; | |
20577 | ||
20578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
20579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20580 | { | |
20581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20582 | { | |
20583 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
20584 | result = (wxString *) &_result_ref; | |
20585 | } | |
20586 | ||
20587 | wxPyEndAllowThreads(__tstate); | |
20588 | if (PyErr_Occurred()) SWIG_fail; | |
20589 | } | |
0f774bef RD |
20590 | { |
20591 | #if wxUSE_UNICODE | |
20592 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20593 | #else | |
20594 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20595 | #endif | |
20596 | } | |
d14a1e28 RD |
20597 | return resultobj; |
20598 | fail: | |
20599 | return NULL; | |
20600 | } | |
20601 | ||
20602 | ||
20603 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20604 | PyObject *resultobj; | |
20605 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20606 | wxString *arg2 = 0 ; | |
423f194a | 20607 | bool temp2 = False ; |
d14a1e28 RD |
20608 | PyObject * obj0 = 0 ; |
20609 | PyObject * obj1 = 0 ; | |
20610 | char *kwnames[] = { | |
20611 | (char *) "self",(char *) "label", NULL | |
20612 | }; | |
20613 | ||
20614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
20615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20616 | { | |
20617 | arg2 = wxString_in_helper(obj1); | |
20618 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20619 | temp2 = True; |
d14a1e28 RD |
20620 | } |
20621 | { | |
20622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20623 | (arg1)->SetLabel((wxString const &)*arg2); | |
20624 | ||
20625 | wxPyEndAllowThreads(__tstate); | |
20626 | if (PyErr_Occurred()) SWIG_fail; | |
20627 | } | |
20628 | Py_INCREF(Py_None); resultobj = Py_None; | |
20629 | { | |
20630 | if (temp2) | |
20631 | delete arg2; | |
20632 | } | |
20633 | return resultobj; | |
20634 | fail: | |
20635 | { | |
20636 | if (temp2) | |
20637 | delete arg2; | |
20638 | } | |
20639 | return NULL; | |
20640 | } | |
20641 | ||
20642 | ||
20643 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20644 | PyObject *resultobj; | |
20645 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20646 | bool result; | |
20647 | PyObject * obj0 = 0 ; | |
20648 | char *kwnames[] = { | |
20649 | (char *) "self", NULL | |
20650 | }; | |
20651 | ||
20652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
20653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20654 | { | |
20655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20656 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
20657 | ||
20658 | wxPyEndAllowThreads(__tstate); | |
20659 | if (PyErr_Occurred()) SWIG_fail; | |
20660 | } | |
20661 | resultobj = PyInt_FromLong((long)result); | |
20662 | return resultobj; | |
20663 | fail: | |
20664 | return NULL; | |
20665 | } | |
20666 | ||
20667 | ||
20668 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20669 | PyObject *resultobj; | |
20670 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20671 | bool arg2 ; | |
20672 | PyObject * obj0 = 0 ; | |
20673 | PyObject * obj1 = 0 ; | |
20674 | char *kwnames[] = { | |
20675 | (char *) "self",(char *) "editCancelled", NULL | |
20676 | }; | |
20677 | ||
20678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
20679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20680 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
20681 | if (PyErr_Occurred()) SWIG_fail; | |
20682 | { | |
20683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20684 | (arg1)->SetEditCanceled(arg2); | |
20685 | ||
20686 | wxPyEndAllowThreads(__tstate); | |
20687 | if (PyErr_Occurred()) SWIG_fail; | |
20688 | } | |
20689 | Py_INCREF(Py_None); resultobj = Py_None; | |
20690 | return resultobj; | |
20691 | fail: | |
20692 | return NULL; | |
20693 | } | |
20694 | ||
20695 | ||
9fd4be55 RD |
20696 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
20697 | PyObject *resultobj; | |
20698 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20699 | wxString *arg2 = 0 ; | |
20700 | bool temp2 = False ; | |
20701 | PyObject * obj0 = 0 ; | |
20702 | PyObject * obj1 = 0 ; | |
20703 | char *kwnames[] = { | |
20704 | (char *) "self",(char *) "toolTip", NULL | |
20705 | }; | |
20706 | ||
20707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
20708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20709 | { | |
20710 | arg2 = wxString_in_helper(obj1); | |
20711 | if (arg2 == NULL) SWIG_fail; | |
20712 | temp2 = True; | |
20713 | } | |
20714 | { | |
20715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20716 | (arg1)->SetToolTip((wxString const &)*arg2); | |
20717 | ||
20718 | wxPyEndAllowThreads(__tstate); | |
20719 | if (PyErr_Occurred()) SWIG_fail; | |
20720 | } | |
20721 | Py_INCREF(Py_None); resultobj = Py_None; | |
20722 | { | |
20723 | if (temp2) | |
20724 | delete arg2; | |
20725 | } | |
20726 | return resultobj; | |
20727 | fail: | |
20728 | { | |
20729 | if (temp2) | |
20730 | delete arg2; | |
20731 | } | |
20732 | return NULL; | |
20733 | } | |
20734 | ||
20735 | ||
d14a1e28 RD |
20736 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
20737 | PyObject *obj; | |
20738 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20739 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
20740 | Py_INCREF(obj); | |
20741 | return Py_BuildValue((char *)""); | |
20742 | } | |
20743 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20744 | PyObject *resultobj; | |
20745 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20746 | int arg2 = (int) -1 ; |
d14a1e28 RD |
20747 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20748 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20749 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20750 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20751 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
20752 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
20753 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
cbd72d4f | 20754 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
20755 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
20756 | wxPyTreeCtrl *result; | |
20757 | wxPoint temp3 ; | |
20758 | wxSize temp4 ; | |
423f194a | 20759 | bool temp7 = False ; |
d14a1e28 RD |
20760 | PyObject * obj0 = 0 ; |
20761 | PyObject * obj2 = 0 ; | |
20762 | PyObject * obj3 = 0 ; | |
20763 | PyObject * obj5 = 0 ; | |
20764 | PyObject * obj6 = 0 ; | |
20765 | char *kwnames[] = { | |
20766 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20767 | }; | |
20768 | ||
20769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_TreeCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
20770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20771 | if (obj2) { | |
20772 | { | |
20773 | arg3 = &temp3; | |
20774 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20775 | } | |
20776 | } | |
20777 | if (obj3) { | |
20778 | { | |
20779 | arg4 = &temp4; | |
20780 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20781 | } | |
20782 | } | |
20783 | if (obj5) { | |
20784 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20785 | if (arg6 == NULL) { | |
20786 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20787 | } | |
20788 | } | |
20789 | if (obj6) { | |
20790 | { | |
20791 | arg7 = wxString_in_helper(obj6); | |
20792 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 20793 | temp7 = True; |
d14a1e28 RD |
20794 | } |
20795 | } | |
20796 | { | |
20797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20798 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20799 | ||
20800 | wxPyEndAllowThreads(__tstate); | |
20801 | if (PyErr_Occurred()) SWIG_fail; | |
20802 | } | |
cbd72d4f RD |
20803 | { |
20804 | resultobj = wxPyMake_wxObject(result); | |
20805 | } | |
d14a1e28 RD |
20806 | { |
20807 | if (temp7) | |
20808 | delete arg7; | |
20809 | } | |
20810 | return resultobj; | |
20811 | fail: | |
20812 | { | |
20813 | if (temp7) | |
20814 | delete arg7; | |
20815 | } | |
20816 | return NULL; | |
20817 | } | |
20818 | ||
20819 | ||
20820 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20821 | PyObject *resultobj; | |
20822 | wxPyTreeCtrl *result; | |
20823 | char *kwnames[] = { | |
20824 | NULL | |
20825 | }; | |
20826 | ||
20827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
20828 | { | |
20829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20830 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
20831 | ||
20832 | wxPyEndAllowThreads(__tstate); | |
20833 | if (PyErr_Occurred()) SWIG_fail; | |
20834 | } | |
cbd72d4f RD |
20835 | { |
20836 | resultobj = wxPyMake_wxObject(result); | |
20837 | } | |
d14a1e28 RD |
20838 | return resultobj; |
20839 | fail: | |
20840 | return NULL; | |
20841 | } | |
20842 | ||
20843 | ||
20844 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20845 | PyObject *resultobj; | |
20846 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20847 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 20848 | int arg3 = (int) -1 ; |
d14a1e28 RD |
20849 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20850 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20851 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20852 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20853 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
20854 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
20855 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
cbd72d4f | 20856 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
20857 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
20858 | bool result; | |
20859 | wxPoint temp4 ; | |
20860 | wxSize temp5 ; | |
423f194a | 20861 | bool temp8 = False ; |
d14a1e28 RD |
20862 | PyObject * obj0 = 0 ; |
20863 | PyObject * obj1 = 0 ; | |
20864 | PyObject * obj3 = 0 ; | |
20865 | PyObject * obj4 = 0 ; | |
20866 | PyObject * obj6 = 0 ; | |
20867 | PyObject * obj7 = 0 ; | |
20868 | char *kwnames[] = { | |
20869 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20870 | }; | |
20871 | ||
20872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
20873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20874 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20875 | if (obj3) { | |
20876 | { | |
20877 | arg4 = &temp4; | |
20878 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20879 | } | |
20880 | } | |
20881 | if (obj4) { | |
20882 | { | |
20883 | arg5 = &temp5; | |
20884 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20885 | } | |
20886 | } | |
20887 | if (obj6) { | |
20888 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20889 | if (arg7 == NULL) { | |
20890 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20891 | } | |
20892 | } | |
20893 | if (obj7) { | |
20894 | { | |
20895 | arg8 = wxString_in_helper(obj7); | |
20896 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 20897 | temp8 = True; |
d14a1e28 RD |
20898 | } |
20899 | } | |
20900 | { | |
20901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20902 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20903 | ||
20904 | wxPyEndAllowThreads(__tstate); | |
20905 | if (PyErr_Occurred()) SWIG_fail; | |
20906 | } | |
20907 | resultobj = PyInt_FromLong((long)result); | |
20908 | { | |
20909 | if (temp8) | |
20910 | delete arg8; | |
20911 | } | |
20912 | return resultobj; | |
20913 | fail: | |
20914 | { | |
20915 | if (temp8) | |
20916 | delete arg8; | |
20917 | } | |
20918 | return NULL; | |
20919 | } | |
20920 | ||
20921 | ||
20922 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20923 | PyObject *resultobj; | |
20924 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20925 | PyObject *arg2 = (PyObject *) 0 ; | |
20926 | PyObject *arg3 = (PyObject *) 0 ; | |
20927 | PyObject * obj0 = 0 ; | |
20928 | PyObject * obj1 = 0 ; | |
20929 | PyObject * obj2 = 0 ; | |
20930 | char *kwnames[] = { | |
20931 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20932 | }; | |
20933 | ||
20934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20936 | arg2 = obj1; | |
20937 | arg3 = obj2; | |
20938 | { | |
20939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20940 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20941 | ||
20942 | wxPyEndAllowThreads(__tstate); | |
20943 | if (PyErr_Occurred()) SWIG_fail; | |
20944 | } | |
20945 | Py_INCREF(Py_None); resultobj = Py_None; | |
20946 | return resultobj; | |
20947 | fail: | |
20948 | return NULL; | |
20949 | } | |
20950 | ||
20951 | ||
20952 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20953 | PyObject *resultobj; | |
20954 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20955 | size_t result; | |
20956 | PyObject * obj0 = 0 ; | |
20957 | char *kwnames[] = { | |
20958 | (char *) "self", NULL | |
20959 | }; | |
20960 | ||
20961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
20962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20963 | { | |
20964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20965 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
20966 | ||
20967 | wxPyEndAllowThreads(__tstate); | |
20968 | if (PyErr_Occurred()) SWIG_fail; | |
20969 | } | |
20970 | resultobj = PyInt_FromLong((long)result); | |
20971 | return resultobj; | |
20972 | fail: | |
20973 | return NULL; | |
20974 | } | |
20975 | ||
20976 | ||
20977 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20978 | PyObject *resultobj; | |
20979 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20980 | unsigned int result; | |
20981 | PyObject * obj0 = 0 ; | |
20982 | char *kwnames[] = { | |
20983 | (char *) "self", NULL | |
20984 | }; | |
20985 | ||
20986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
20987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20988 | { | |
20989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20990 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
20991 | ||
20992 | wxPyEndAllowThreads(__tstate); | |
20993 | if (PyErr_Occurred()) SWIG_fail; | |
20994 | } | |
20995 | resultobj = PyInt_FromLong((long)result); | |
20996 | return resultobj; | |
20997 | fail: | |
20998 | return NULL; | |
20999 | } | |
21000 | ||
21001 | ||
21002 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21003 | PyObject *resultobj; | |
21004 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21005 | unsigned int arg2 ; | |
21006 | PyObject * obj0 = 0 ; | |
21007 | PyObject * obj1 = 0 ; | |
21008 | char *kwnames[] = { | |
21009 | (char *) "self",(char *) "indent", NULL | |
21010 | }; | |
21011 | ||
21012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
21013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21014 | arg2 = (unsigned int) PyInt_AsLong(obj1); | |
21015 | if (PyErr_Occurred()) SWIG_fail; | |
21016 | { | |
21017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21018 | (arg1)->SetIndent(arg2); | |
21019 | ||
21020 | wxPyEndAllowThreads(__tstate); | |
21021 | if (PyErr_Occurred()) SWIG_fail; | |
21022 | } | |
21023 | Py_INCREF(Py_None); resultobj = Py_None; | |
21024 | return resultobj; | |
21025 | fail: | |
21026 | return NULL; | |
21027 | } | |
21028 | ||
21029 | ||
21030 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21031 | PyObject *resultobj; | |
21032 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21033 | unsigned int result; | |
21034 | PyObject * obj0 = 0 ; | |
21035 | char *kwnames[] = { | |
21036 | (char *) "self", NULL | |
21037 | }; | |
21038 | ||
21039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
21040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21041 | { | |
21042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21043 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
21044 | ||
21045 | wxPyEndAllowThreads(__tstate); | |
21046 | if (PyErr_Occurred()) SWIG_fail; | |
21047 | } | |
21048 | resultobj = PyInt_FromLong((long)result); | |
21049 | return resultobj; | |
21050 | fail: | |
21051 | return NULL; | |
21052 | } | |
21053 | ||
21054 | ||
21055 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21056 | PyObject *resultobj; | |
21057 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21058 | unsigned int arg2 ; | |
21059 | PyObject * obj0 = 0 ; | |
21060 | PyObject * obj1 = 0 ; | |
21061 | char *kwnames[] = { | |
21062 | (char *) "self",(char *) "spacing", NULL | |
21063 | }; | |
21064 | ||
21065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
21066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21067 | arg2 = (unsigned int) PyInt_AsLong(obj1); | |
21068 | if (PyErr_Occurred()) SWIG_fail; | |
21069 | { | |
21070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21071 | (arg1)->SetSpacing(arg2); | |
21072 | ||
21073 | wxPyEndAllowThreads(__tstate); | |
21074 | if (PyErr_Occurred()) SWIG_fail; | |
21075 | } | |
21076 | Py_INCREF(Py_None); resultobj = Py_None; | |
21077 | return resultobj; | |
21078 | fail: | |
21079 | return NULL; | |
21080 | } | |
21081 | ||
21082 | ||
21083 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21084 | PyObject *resultobj; | |
21085 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21086 | wxImageList *result; | |
21087 | PyObject * obj0 = 0 ; | |
21088 | char *kwnames[] = { | |
21089 | (char *) "self", NULL | |
21090 | }; | |
21091 | ||
21092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
21093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21094 | { | |
21095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21096 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
21097 | ||
21098 | wxPyEndAllowThreads(__tstate); | |
21099 | if (PyErr_Occurred()) SWIG_fail; | |
21100 | } | |
21101 | { | |
21102 | resultobj = wxPyMake_wxObject(result); | |
21103 | } | |
21104 | return resultobj; | |
21105 | fail: | |
21106 | return NULL; | |
21107 | } | |
21108 | ||
21109 | ||
21110 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21111 | PyObject *resultobj; | |
21112 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21113 | wxImageList *result; | |
21114 | PyObject * obj0 = 0 ; | |
21115 | char *kwnames[] = { | |
21116 | (char *) "self", NULL | |
21117 | }; | |
21118 | ||
21119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
21120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21121 | { | |
21122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21123 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
21124 | ||
21125 | wxPyEndAllowThreads(__tstate); | |
21126 | if (PyErr_Occurred()) SWIG_fail; | |
21127 | } | |
21128 | { | |
21129 | resultobj = wxPyMake_wxObject(result); | |
21130 | } | |
21131 | return resultobj; | |
21132 | fail: | |
21133 | return NULL; | |
21134 | } | |
21135 | ||
21136 | ||
21137 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21138 | PyObject *resultobj; | |
21139 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21140 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21141 | PyObject * obj0 = 0 ; | |
21142 | PyObject * obj1 = 0 ; | |
21143 | char *kwnames[] = { | |
21144 | (char *) "self",(char *) "imageList", NULL | |
21145 | }; | |
21146 | ||
21147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",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_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21150 | { | |
21151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21152 | (arg1)->SetImageList(arg2); | |
21153 | ||
21154 | wxPyEndAllowThreads(__tstate); | |
21155 | if (PyErr_Occurred()) SWIG_fail; | |
21156 | } | |
21157 | Py_INCREF(Py_None); resultobj = Py_None; | |
21158 | return resultobj; | |
21159 | fail: | |
21160 | return NULL; | |
21161 | } | |
21162 | ||
21163 | ||
21164 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21165 | PyObject *resultobj; | |
21166 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21167 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21168 | PyObject * obj0 = 0 ; | |
21169 | PyObject * obj1 = 0 ; | |
21170 | char *kwnames[] = { | |
21171 | (char *) "self",(char *) "imageList", NULL | |
21172 | }; | |
21173 | ||
21174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
21175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21176 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21177 | { | |
21178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21179 | (arg1)->SetStateImageList(arg2); | |
21180 | ||
21181 | wxPyEndAllowThreads(__tstate); | |
21182 | if (PyErr_Occurred()) SWIG_fail; | |
21183 | } | |
21184 | Py_INCREF(Py_None); resultobj = Py_None; | |
21185 | return resultobj; | |
21186 | fail: | |
21187 | return NULL; | |
21188 | } | |
21189 | ||
21190 | ||
21191 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21192 | PyObject *resultobj; | |
21193 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21194 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21195 | PyObject * obj0 = 0 ; | |
21196 | PyObject * obj1 = 0 ; | |
21197 | char *kwnames[] = { | |
21198 | (char *) "self",(char *) "imageList", NULL | |
21199 | }; | |
21200 | ||
21201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
21202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21203 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21204 | { | |
21205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21206 | (arg1)->AssignImageList(arg2); | |
21207 | ||
21208 | wxPyEndAllowThreads(__tstate); | |
21209 | if (PyErr_Occurred()) SWIG_fail; | |
21210 | } | |
21211 | Py_INCREF(Py_None); resultobj = Py_None; | |
21212 | return resultobj; | |
21213 | fail: | |
21214 | return NULL; | |
21215 | } | |
21216 | ||
21217 | ||
21218 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21219 | PyObject *resultobj; | |
21220 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21221 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21222 | PyObject * obj0 = 0 ; | |
21223 | PyObject * obj1 = 0 ; | |
21224 | char *kwnames[] = { | |
21225 | (char *) "self",(char *) "imageList", NULL | |
21226 | }; | |
21227 | ||
21228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
21229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21230 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21231 | { | |
21232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21233 | (arg1)->AssignStateImageList(arg2); | |
21234 | ||
21235 | wxPyEndAllowThreads(__tstate); | |
21236 | if (PyErr_Occurred()) SWIG_fail; | |
21237 | } | |
21238 | Py_INCREF(Py_None); resultobj = Py_None; | |
21239 | return resultobj; | |
21240 | fail: | |
21241 | return NULL; | |
21242 | } | |
21243 | ||
21244 | ||
21245 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21246 | PyObject *resultobj; | |
21247 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21248 | wxTreeItemId *arg2 = 0 ; | |
21249 | wxString result; | |
21250 | PyObject * obj0 = 0 ; | |
21251 | PyObject * obj1 = 0 ; | |
21252 | char *kwnames[] = { | |
21253 | (char *) "self",(char *) "item", NULL | |
21254 | }; | |
21255 | ||
21256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
21257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21258 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21259 | if (arg2 == NULL) { | |
21260 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21261 | } | |
21262 | { | |
21263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21264 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
21265 | ||
21266 | wxPyEndAllowThreads(__tstate); | |
21267 | if (PyErr_Occurred()) SWIG_fail; | |
21268 | } | |
21269 | { | |
21270 | #if wxUSE_UNICODE | |
21271 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21272 | #else | |
21273 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21274 | #endif | |
21275 | } | |
21276 | return resultobj; | |
21277 | fail: | |
21278 | return NULL; | |
21279 | } | |
21280 | ||
21281 | ||
21282 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21283 | PyObject *resultobj; | |
21284 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21285 | wxTreeItemId *arg2 = 0 ; | |
21286 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
21287 | int result; | |
21288 | PyObject * obj0 = 0 ; | |
21289 | PyObject * obj1 = 0 ; | |
21290 | char *kwnames[] = { | |
21291 | (char *) "self",(char *) "item",(char *) "which", NULL | |
21292 | }; | |
21293 | ||
21294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&arg3)) 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 | { | |
21301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21302 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
21303 | ||
21304 | wxPyEndAllowThreads(__tstate); | |
21305 | if (PyErr_Occurred()) SWIG_fail; | |
21306 | } | |
21307 | resultobj = PyInt_FromLong((long)result); | |
21308 | return resultobj; | |
21309 | fail: | |
21310 | return NULL; | |
21311 | } | |
21312 | ||
21313 | ||
21314 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21315 | PyObject *resultobj; | |
21316 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21317 | wxTreeItemId *arg2 = 0 ; | |
21318 | wxPyTreeItemData *result; | |
21319 | PyObject * obj0 = 0 ; | |
21320 | PyObject * obj1 = 0 ; | |
21321 | char *kwnames[] = { | |
21322 | (char *) "self",(char *) "item", NULL | |
21323 | }; | |
21324 | ||
21325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
21326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21327 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21328 | if (arg2 == NULL) { | |
21329 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21330 | } | |
21331 | { | |
21332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21333 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
21334 | ||
21335 | wxPyEndAllowThreads(__tstate); | |
21336 | if (PyErr_Occurred()) SWIG_fail; | |
21337 | } | |
21338 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
21339 | return resultobj; | |
21340 | fail: | |
21341 | return NULL; | |
21342 | } | |
21343 | ||
21344 | ||
21345 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21346 | PyObject *resultobj; | |
21347 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21348 | wxTreeItemId *arg2 = 0 ; | |
21349 | PyObject *result; | |
21350 | PyObject * obj0 = 0 ; | |
21351 | PyObject * obj1 = 0 ; | |
21352 | char *kwnames[] = { | |
21353 | (char *) "self",(char *) "item", NULL | |
21354 | }; | |
21355 | ||
21356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
21357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21358 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21359 | if (arg2 == NULL) { | |
21360 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21361 | } | |
21362 | { | |
21363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21364 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
21365 | ||
21366 | wxPyEndAllowThreads(__tstate); | |
21367 | if (PyErr_Occurred()) SWIG_fail; | |
21368 | } | |
21369 | resultobj = result; | |
21370 | return resultobj; | |
21371 | fail: | |
21372 | return NULL; | |
21373 | } | |
21374 | ||
21375 | ||
21376 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21377 | PyObject *resultobj; | |
21378 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21379 | wxTreeItemId *arg2 = 0 ; | |
21380 | wxColour result; | |
21381 | PyObject * obj0 = 0 ; | |
21382 | PyObject * obj1 = 0 ; | |
21383 | char *kwnames[] = { | |
21384 | (char *) "self",(char *) "item", NULL | |
21385 | }; | |
21386 | ||
21387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
21388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21389 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21390 | if (arg2 == NULL) { | |
21391 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21392 | } | |
21393 | { | |
21394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21395 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
21396 | ||
21397 | wxPyEndAllowThreads(__tstate); | |
21398 | if (PyErr_Occurred()) SWIG_fail; | |
21399 | } | |
21400 | { | |
21401 | wxColour * resultptr; | |
21402 | resultptr = new wxColour((wxColour &) result); | |
21403 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21404 | } | |
21405 | return resultobj; | |
21406 | fail: | |
21407 | return NULL; | |
21408 | } | |
21409 | ||
21410 | ||
21411 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21412 | PyObject *resultobj; | |
21413 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21414 | wxTreeItemId *arg2 = 0 ; | |
21415 | wxColour result; | |
21416 | PyObject * obj0 = 0 ; | |
21417 | PyObject * obj1 = 0 ; | |
21418 | char *kwnames[] = { | |
21419 | (char *) "self",(char *) "item", NULL | |
21420 | }; | |
21421 | ||
21422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21424 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21425 | if (arg2 == NULL) { | |
21426 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21427 | } | |
21428 | { | |
21429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21430 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
21431 | ||
21432 | wxPyEndAllowThreads(__tstate); | |
21433 | if (PyErr_Occurred()) SWIG_fail; | |
21434 | } | |
21435 | { | |
21436 | wxColour * resultptr; | |
21437 | resultptr = new wxColour((wxColour &) result); | |
21438 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21439 | } | |
21440 | return resultobj; | |
21441 | fail: | |
21442 | return NULL; | |
21443 | } | |
21444 | ||
21445 | ||
21446 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21447 | PyObject *resultobj; | |
21448 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21449 | wxTreeItemId *arg2 = 0 ; | |
21450 | wxFont result; | |
21451 | PyObject * obj0 = 0 ; | |
21452 | PyObject * obj1 = 0 ; | |
21453 | char *kwnames[] = { | |
21454 | (char *) "self",(char *) "item", NULL | |
21455 | }; | |
21456 | ||
21457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
21458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21459 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21460 | if (arg2 == NULL) { | |
21461 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21462 | } | |
21463 | { | |
21464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21465 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
21466 | ||
21467 | wxPyEndAllowThreads(__tstate); | |
21468 | if (PyErr_Occurred()) SWIG_fail; | |
21469 | } | |
21470 | { | |
21471 | wxFont * resultptr; | |
21472 | resultptr = new wxFont((wxFont &) result); | |
21473 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
21474 | } | |
21475 | return resultobj; | |
21476 | fail: | |
21477 | return NULL; | |
21478 | } | |
21479 | ||
21480 | ||
21481 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21482 | PyObject *resultobj; | |
21483 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21484 | wxTreeItemId *arg2 = 0 ; | |
21485 | wxString *arg3 = 0 ; | |
423f194a | 21486 | bool temp3 = False ; |
d14a1e28 RD |
21487 | PyObject * obj0 = 0 ; |
21488 | PyObject * obj1 = 0 ; | |
21489 | PyObject * obj2 = 0 ; | |
21490 | char *kwnames[] = { | |
21491 | (char *) "self",(char *) "item",(char *) "text", NULL | |
21492 | }; | |
21493 | ||
21494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21496 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21497 | if (arg2 == NULL) { | |
21498 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21499 | } | |
21500 | { | |
21501 | arg3 = wxString_in_helper(obj2); | |
21502 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21503 | temp3 = True; |
d14a1e28 RD |
21504 | } |
21505 | { | |
21506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21507 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
21508 | ||
21509 | wxPyEndAllowThreads(__tstate); | |
21510 | if (PyErr_Occurred()) SWIG_fail; | |
21511 | } | |
21512 | Py_INCREF(Py_None); resultobj = Py_None; | |
21513 | { | |
21514 | if (temp3) | |
21515 | delete arg3; | |
21516 | } | |
21517 | return resultobj; | |
21518 | fail: | |
21519 | { | |
21520 | if (temp3) | |
21521 | delete arg3; | |
21522 | } | |
21523 | return NULL; | |
21524 | } | |
21525 | ||
21526 | ||
21527 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21528 | PyObject *resultobj; | |
21529 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21530 | wxTreeItemId *arg2 = 0 ; | |
21531 | int arg3 ; | |
21532 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
21533 | PyObject * obj0 = 0 ; | |
21534 | PyObject * obj1 = 0 ; | |
21535 | char *kwnames[] = { | |
21536 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
21537 | }; | |
21538 | ||
21539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|i:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&arg3,&arg4)) 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 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
21548 | ||
21549 | wxPyEndAllowThreads(__tstate); | |
21550 | if (PyErr_Occurred()) SWIG_fail; | |
21551 | } | |
21552 | Py_INCREF(Py_None); resultobj = Py_None; | |
21553 | return resultobj; | |
21554 | fail: | |
21555 | return NULL; | |
21556 | } | |
21557 | ||
21558 | ||
21559 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21560 | PyObject *resultobj; | |
21561 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21562 | wxTreeItemId *arg2 = 0 ; | |
21563 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
21564 | PyObject * obj0 = 0 ; | |
21565 | PyObject * obj1 = 0 ; | |
21566 | PyObject * obj2 = 0 ; | |
21567 | char *kwnames[] = { | |
21568 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21569 | }; | |
21570 | ||
21571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21573 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21574 | if (arg2 == NULL) { | |
21575 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21576 | } | |
21577 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21578 | { | |
21579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21580 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
21581 | ||
21582 | wxPyEndAllowThreads(__tstate); | |
21583 | if (PyErr_Occurred()) SWIG_fail; | |
21584 | } | |
21585 | Py_INCREF(Py_None); resultobj = Py_None; | |
21586 | return resultobj; | |
21587 | fail: | |
21588 | return NULL; | |
21589 | } | |
21590 | ||
21591 | ||
21592 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21593 | PyObject *resultobj; | |
21594 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21595 | wxTreeItemId *arg2 = 0 ; | |
21596 | PyObject *arg3 = (PyObject *) 0 ; | |
21597 | PyObject * obj0 = 0 ; | |
21598 | PyObject * obj1 = 0 ; | |
21599 | PyObject * obj2 = 0 ; | |
21600 | char *kwnames[] = { | |
21601 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
21602 | }; | |
21603 | ||
21604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21606 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21607 | if (arg2 == NULL) { | |
21608 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21609 | } | |
21610 | arg3 = obj2; | |
21611 | { | |
21612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21613 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
21614 | ||
21615 | wxPyEndAllowThreads(__tstate); | |
21616 | if (PyErr_Occurred()) SWIG_fail; | |
21617 | } | |
21618 | Py_INCREF(Py_None); resultobj = Py_None; | |
21619 | return resultobj; | |
21620 | fail: | |
21621 | return NULL; | |
21622 | } | |
21623 | ||
21624 | ||
21625 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21626 | PyObject *resultobj; | |
21627 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21628 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 21629 | bool arg3 = (bool) True ; |
d14a1e28 RD |
21630 | PyObject * obj0 = 0 ; |
21631 | PyObject * obj1 = 0 ; | |
21632 | PyObject * obj2 = 0 ; | |
21633 | char *kwnames[] = { | |
21634 | (char *) "self",(char *) "item",(char *) "has", NULL | |
21635 | }; | |
21636 | ||
21637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21639 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21640 | if (arg2 == NULL) { | |
21641 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21642 | } | |
21643 | if (obj2) { | |
21644 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
21645 | if (PyErr_Occurred()) SWIG_fail; | |
21646 | } | |
21647 | { | |
21648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21649 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
21650 | ||
21651 | wxPyEndAllowThreads(__tstate); | |
21652 | if (PyErr_Occurred()) SWIG_fail; | |
21653 | } | |
21654 | Py_INCREF(Py_None); resultobj = Py_None; | |
21655 | return resultobj; | |
21656 | fail: | |
21657 | return NULL; | |
21658 | } | |
21659 | ||
21660 | ||
21661 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21662 | PyObject *resultobj; | |
21663 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21664 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 21665 | bool arg3 = (bool) True ; |
d14a1e28 RD |
21666 | PyObject * obj0 = 0 ; |
21667 | PyObject * obj1 = 0 ; | |
21668 | PyObject * obj2 = 0 ; | |
21669 | char *kwnames[] = { | |
21670 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
21671 | }; | |
21672 | ||
21673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21675 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21676 | if (arg2 == NULL) { | |
21677 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21678 | } | |
21679 | if (obj2) { | |
21680 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
21681 | if (PyErr_Occurred()) SWIG_fail; | |
21682 | } | |
21683 | { | |
21684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21685 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
21686 | ||
21687 | wxPyEndAllowThreads(__tstate); | |
21688 | if (PyErr_Occurred()) SWIG_fail; | |
21689 | } | |
21690 | Py_INCREF(Py_None); resultobj = Py_None; | |
21691 | return resultobj; | |
21692 | fail: | |
21693 | return NULL; | |
21694 | } | |
21695 | ||
21696 | ||
21697 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21698 | PyObject *resultobj; | |
21699 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21700 | wxTreeItemId *arg2 = 0 ; | |
21701 | wxColour *arg3 = 0 ; | |
21702 | wxColour temp3 ; | |
21703 | PyObject * obj0 = 0 ; | |
21704 | PyObject * obj1 = 0 ; | |
21705 | PyObject * obj2 = 0 ; | |
21706 | char *kwnames[] = { | |
21707 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21708 | }; | |
21709 | ||
21710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21712 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21713 | if (arg2 == NULL) { | |
21714 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21715 | } | |
21716 | { | |
21717 | arg3 = &temp3; | |
21718 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21719 | } | |
21720 | { | |
21721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21722 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
21723 | ||
21724 | wxPyEndAllowThreads(__tstate); | |
21725 | if (PyErr_Occurred()) SWIG_fail; | |
21726 | } | |
21727 | Py_INCREF(Py_None); resultobj = Py_None; | |
21728 | return resultobj; | |
21729 | fail: | |
21730 | return NULL; | |
21731 | } | |
21732 | ||
21733 | ||
21734 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21735 | PyObject *resultobj; | |
21736 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21737 | wxTreeItemId *arg2 = 0 ; | |
21738 | wxColour *arg3 = 0 ; | |
21739 | wxColour temp3 ; | |
21740 | PyObject * obj0 = 0 ; | |
21741 | PyObject * obj1 = 0 ; | |
21742 | PyObject * obj2 = 0 ; | |
21743 | char *kwnames[] = { | |
21744 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21745 | }; | |
21746 | ||
21747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21749 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21750 | if (arg2 == NULL) { | |
21751 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21752 | } | |
21753 | { | |
21754 | arg3 = &temp3; | |
21755 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21756 | } | |
21757 | { | |
21758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21759 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
21760 | ||
21761 | wxPyEndAllowThreads(__tstate); | |
21762 | if (PyErr_Occurred()) SWIG_fail; | |
21763 | } | |
21764 | Py_INCREF(Py_None); resultobj = Py_None; | |
21765 | return resultobj; | |
21766 | fail: | |
21767 | return NULL; | |
21768 | } | |
21769 | ||
21770 | ||
21771 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21772 | PyObject *resultobj; | |
21773 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21774 | wxTreeItemId *arg2 = 0 ; | |
21775 | wxFont *arg3 = 0 ; | |
21776 | PyObject * obj0 = 0 ; | |
21777 | PyObject * obj1 = 0 ; | |
21778 | PyObject * obj2 = 0 ; | |
21779 | char *kwnames[] = { | |
21780 | (char *) "self",(char *) "item",(char *) "font", NULL | |
21781 | }; | |
21782 | ||
21783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) 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 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21790 | if (arg3 == NULL) { | |
21791 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21792 | } | |
21793 | { | |
21794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21795 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
21796 | ||
21797 | wxPyEndAllowThreads(__tstate); | |
21798 | if (PyErr_Occurred()) SWIG_fail; | |
21799 | } | |
21800 | Py_INCREF(Py_None); resultobj = Py_None; | |
21801 | return resultobj; | |
21802 | fail: | |
21803 | return NULL; | |
21804 | } | |
21805 | ||
21806 | ||
21807 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21808 | PyObject *resultobj; | |
21809 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21810 | wxTreeItemId *arg2 = 0 ; | |
21811 | bool 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_IsVisible",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 = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
21827 | ||
21828 | wxPyEndAllowThreads(__tstate); | |
21829 | if (PyErr_Occurred()) SWIG_fail; | |
21830 | } | |
21831 | resultobj = PyInt_FromLong((long)result); | |
21832 | return resultobj; | |
21833 | fail: | |
21834 | return NULL; | |
21835 | } | |
21836 | ||
21837 | ||
21838 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21839 | PyObject *resultobj; | |
21840 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21841 | wxTreeItemId *arg2 = 0 ; | |
21842 | bool result; | |
21843 | PyObject * obj0 = 0 ; | |
21844 | PyObject * obj1 = 0 ; | |
21845 | char *kwnames[] = { | |
21846 | (char *) "self",(char *) "item", NULL | |
21847 | }; | |
21848 | ||
21849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
21850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21851 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21852 | if (arg2 == NULL) { | |
21853 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21854 | } | |
21855 | { | |
21856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21857 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
21858 | ||
21859 | wxPyEndAllowThreads(__tstate); | |
21860 | if (PyErr_Occurred()) SWIG_fail; | |
21861 | } | |
21862 | resultobj = PyInt_FromLong((long)result); | |
21863 | return resultobj; | |
21864 | fail: | |
21865 | return NULL; | |
21866 | } | |
21867 | ||
21868 | ||
21869 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21870 | PyObject *resultobj; | |
21871 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21872 | wxTreeItemId *arg2 = 0 ; | |
21873 | bool result; | |
21874 | PyObject * obj0 = 0 ; | |
21875 | PyObject * obj1 = 0 ; | |
21876 | char *kwnames[] = { | |
21877 | (char *) "self",(char *) "item", NULL | |
21878 | }; | |
21879 | ||
21880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
21881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21882 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21883 | if (arg2 == NULL) { | |
21884 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21885 | } | |
21886 | { | |
21887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21888 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
21889 | ||
21890 | wxPyEndAllowThreads(__tstate); | |
21891 | if (PyErr_Occurred()) SWIG_fail; | |
21892 | } | |
21893 | resultobj = PyInt_FromLong((long)result); | |
21894 | return resultobj; | |
21895 | fail: | |
21896 | return NULL; | |
21897 | } | |
21898 | ||
21899 | ||
21900 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21901 | PyObject *resultobj; | |
21902 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21903 | wxTreeItemId *arg2 = 0 ; | |
21904 | bool result; | |
21905 | PyObject * obj0 = 0 ; | |
21906 | PyObject * obj1 = 0 ; | |
21907 | char *kwnames[] = { | |
21908 | (char *) "self",(char *) "item", NULL | |
21909 | }; | |
21910 | ||
21911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
21912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21913 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21914 | if (arg2 == NULL) { | |
21915 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21916 | } | |
21917 | { | |
21918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21919 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
21920 | ||
21921 | wxPyEndAllowThreads(__tstate); | |
21922 | if (PyErr_Occurred()) SWIG_fail; | |
21923 | } | |
21924 | resultobj = PyInt_FromLong((long)result); | |
21925 | return resultobj; | |
21926 | fail: | |
21927 | return NULL; | |
21928 | } | |
21929 | ||
21930 | ||
21931 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21932 | PyObject *resultobj; | |
21933 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21934 | wxTreeItemId *arg2 = 0 ; | |
21935 | bool result; | |
21936 | PyObject * obj0 = 0 ; | |
21937 | PyObject * obj1 = 0 ; | |
21938 | char *kwnames[] = { | |
21939 | (char *) "self",(char *) "item", NULL | |
21940 | }; | |
21941 | ||
21942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
21943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21944 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21945 | if (arg2 == NULL) { | |
21946 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21947 | } | |
21948 | { | |
21949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21950 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
21951 | ||
21952 | wxPyEndAllowThreads(__tstate); | |
21953 | if (PyErr_Occurred()) SWIG_fail; | |
21954 | } | |
21955 | resultobj = PyInt_FromLong((long)result); | |
21956 | return resultobj; | |
21957 | fail: | |
21958 | return NULL; | |
21959 | } | |
21960 | ||
21961 | ||
21962 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21963 | PyObject *resultobj; | |
21964 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21965 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 21966 | bool arg3 = (bool) True ; |
d14a1e28 RD |
21967 | size_t result; |
21968 | PyObject * obj0 = 0 ; | |
21969 | PyObject * obj1 = 0 ; | |
21970 | PyObject * obj2 = 0 ; | |
21971 | char *kwnames[] = { | |
21972 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
21973 | }; | |
21974 | ||
21975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21977 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21978 | if (arg2 == NULL) { | |
21979 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21980 | } | |
21981 | if (obj2) { | |
21982 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
21983 | if (PyErr_Occurred()) SWIG_fail; | |
21984 | } | |
21985 | { | |
21986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21987 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
21988 | ||
21989 | wxPyEndAllowThreads(__tstate); | |
21990 | if (PyErr_Occurred()) SWIG_fail; | |
21991 | } | |
21992 | resultobj = PyInt_FromLong((long)result); | |
21993 | return resultobj; | |
21994 | fail: | |
21995 | return NULL; | |
21996 | } | |
21997 | ||
21998 | ||
21999 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22000 | PyObject *resultobj; | |
22001 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22002 | wxTreeItemId result; | |
22003 | PyObject * obj0 = 0 ; | |
22004 | char *kwnames[] = { | |
22005 | (char *) "self", NULL | |
22006 | }; | |
22007 | ||
22008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
22009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22010 | { | |
22011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22012 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
22013 | ||
22014 | wxPyEndAllowThreads(__tstate); | |
22015 | if (PyErr_Occurred()) SWIG_fail; | |
22016 | } | |
22017 | { | |
22018 | wxTreeItemId * resultptr; | |
22019 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22020 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22021 | } | |
22022 | return resultobj; | |
22023 | fail: | |
22024 | return NULL; | |
22025 | } | |
22026 | ||
22027 | ||
22028 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22029 | PyObject *resultobj; | |
22030 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22031 | wxTreeItemId result; | |
22032 | PyObject * obj0 = 0 ; | |
22033 | char *kwnames[] = { | |
22034 | (char *) "self", NULL | |
22035 | }; | |
22036 | ||
22037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
22038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22039 | { | |
22040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22041 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
22042 | ||
22043 | wxPyEndAllowThreads(__tstate); | |
22044 | if (PyErr_Occurred()) SWIG_fail; | |
22045 | } | |
22046 | { | |
22047 | wxTreeItemId * resultptr; | |
22048 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22049 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22050 | } | |
22051 | return resultobj; | |
22052 | fail: | |
22053 | return NULL; | |
22054 | } | |
22055 | ||
22056 | ||
22057 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22058 | PyObject *resultobj; | |
22059 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22060 | PyObject *result; | |
22061 | PyObject * obj0 = 0 ; | |
22062 | char *kwnames[] = { | |
22063 | (char *) "self", NULL | |
22064 | }; | |
22065 | ||
22066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
22067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22068 | { | |
22069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22070 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
22071 | ||
22072 | wxPyEndAllowThreads(__tstate); | |
22073 | if (PyErr_Occurred()) SWIG_fail; | |
22074 | } | |
22075 | resultobj = result; | |
22076 | return resultobj; | |
22077 | fail: | |
22078 | return NULL; | |
22079 | } | |
22080 | ||
22081 | ||
22082 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22083 | PyObject *resultobj; | |
22084 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22085 | wxTreeItemId *arg2 = 0 ; | |
22086 | wxTreeItemId result; | |
22087 | PyObject * obj0 = 0 ; | |
22088 | PyObject * obj1 = 0 ; | |
22089 | char *kwnames[] = { | |
22090 | (char *) "self",(char *) "item", NULL | |
22091 | }; | |
22092 | ||
22093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
22094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22095 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22096 | if (arg2 == NULL) { | |
22097 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22098 | } | |
22099 | { | |
22100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22101 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
22102 | ||
22103 | wxPyEndAllowThreads(__tstate); | |
22104 | if (PyErr_Occurred()) SWIG_fail; | |
22105 | } | |
22106 | { | |
22107 | wxTreeItemId * resultptr; | |
22108 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22109 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22110 | } | |
22111 | return resultobj; | |
22112 | fail: | |
22113 | return NULL; | |
22114 | } | |
22115 | ||
22116 | ||
22117 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22118 | PyObject *resultobj; | |
22119 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22120 | wxTreeItemId *arg2 = 0 ; | |
22121 | PyObject *result; | |
22122 | PyObject * obj0 = 0 ; | |
22123 | PyObject * obj1 = 0 ; | |
22124 | char *kwnames[] = { | |
22125 | (char *) "self",(char *) "item", NULL | |
22126 | }; | |
22127 | ||
22128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
22129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22130 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22131 | if (arg2 == NULL) { | |
22132 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22133 | } | |
22134 | { | |
22135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22136 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
22137 | ||
22138 | wxPyEndAllowThreads(__tstate); | |
22139 | if (PyErr_Occurred()) SWIG_fail; | |
22140 | } | |
22141 | resultobj = result; | |
22142 | return resultobj; | |
22143 | fail: | |
22144 | return NULL; | |
22145 | } | |
22146 | ||
22147 | ||
22148 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22149 | PyObject *resultobj; | |
22150 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22151 | wxTreeItemId *arg2 = 0 ; | |
22152 | wxTreeItemIdValue *arg3 = 0 ; | |
22153 | PyObject *result; | |
22154 | PyObject * obj0 = 0 ; | |
22155 | PyObject * obj1 = 0 ; | |
22156 | PyObject * obj2 = 0 ; | |
22157 | char *kwnames[] = { | |
22158 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
22159 | }; | |
22160 | ||
22161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22163 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22164 | if (arg2 == NULL) { | |
22165 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22166 | } | |
22167 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemIdValue,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22168 | if (arg3 == NULL) { | |
22169 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22170 | } | |
22171 | { | |
22172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22173 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,*arg3); | |
22174 | ||
22175 | wxPyEndAllowThreads(__tstate); | |
22176 | if (PyErr_Occurred()) SWIG_fail; | |
22177 | } | |
22178 | resultobj = result; | |
22179 | return resultobj; | |
22180 | fail: | |
22181 | return NULL; | |
22182 | } | |
22183 | ||
22184 | ||
22185 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22186 | PyObject *resultobj; | |
22187 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22188 | wxTreeItemId *arg2 = 0 ; | |
22189 | wxTreeItemId result; | |
22190 | PyObject * obj0 = 0 ; | |
22191 | PyObject * obj1 = 0 ; | |
22192 | char *kwnames[] = { | |
22193 | (char *) "self",(char *) "item", NULL | |
22194 | }; | |
22195 | ||
22196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
22197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22198 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22199 | if (arg2 == NULL) { | |
22200 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22201 | } | |
22202 | { | |
22203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22204 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
22205 | ||
22206 | wxPyEndAllowThreads(__tstate); | |
22207 | if (PyErr_Occurred()) SWIG_fail; | |
22208 | } | |
22209 | { | |
22210 | wxTreeItemId * resultptr; | |
22211 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22212 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22213 | } | |
22214 | return resultobj; | |
22215 | fail: | |
22216 | return NULL; | |
22217 | } | |
22218 | ||
22219 | ||
22220 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22221 | PyObject *resultobj; | |
22222 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22223 | wxTreeItemId *arg2 = 0 ; | |
22224 | wxTreeItemId result; | |
22225 | PyObject * obj0 = 0 ; | |
22226 | PyObject * obj1 = 0 ; | |
22227 | char *kwnames[] = { | |
22228 | (char *) "self",(char *) "item", NULL | |
22229 | }; | |
22230 | ||
22231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
22232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22233 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22234 | if (arg2 == NULL) { | |
22235 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22236 | } | |
22237 | { | |
22238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22239 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
22240 | ||
22241 | wxPyEndAllowThreads(__tstate); | |
22242 | if (PyErr_Occurred()) SWIG_fail; | |
22243 | } | |
22244 | { | |
22245 | wxTreeItemId * resultptr; | |
22246 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22247 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22248 | } | |
22249 | return resultobj; | |
22250 | fail: | |
22251 | return NULL; | |
22252 | } | |
22253 | ||
22254 | ||
22255 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22256 | PyObject *resultobj; | |
22257 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22258 | wxTreeItemId *arg2 = 0 ; | |
22259 | wxTreeItemId result; | |
22260 | PyObject * obj0 = 0 ; | |
22261 | PyObject * obj1 = 0 ; | |
22262 | char *kwnames[] = { | |
22263 | (char *) "self",(char *) "item", NULL | |
22264 | }; | |
22265 | ||
22266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
22267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22268 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22269 | if (arg2 == NULL) { | |
22270 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22271 | } | |
22272 | { | |
22273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22274 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
22275 | ||
22276 | wxPyEndAllowThreads(__tstate); | |
22277 | if (PyErr_Occurred()) SWIG_fail; | |
22278 | } | |
22279 | { | |
22280 | wxTreeItemId * resultptr; | |
22281 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22282 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22283 | } | |
22284 | return resultobj; | |
22285 | fail: | |
22286 | return NULL; | |
22287 | } | |
22288 | ||
22289 | ||
22290 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22291 | PyObject *resultobj; | |
22292 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22293 | wxTreeItemId result; | |
22294 | PyObject * obj0 = 0 ; | |
22295 | char *kwnames[] = { | |
22296 | (char *) "self", NULL | |
22297 | }; | |
22298 | ||
22299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
22300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22301 | { | |
22302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22303 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
22304 | ||
22305 | wxPyEndAllowThreads(__tstate); | |
22306 | if (PyErr_Occurred()) SWIG_fail; | |
22307 | } | |
22308 | { | |
22309 | wxTreeItemId * resultptr; | |
22310 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22311 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22312 | } | |
22313 | return resultobj; | |
22314 | fail: | |
22315 | return NULL; | |
22316 | } | |
22317 | ||
22318 | ||
22319 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22320 | PyObject *resultobj; | |
22321 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22322 | wxTreeItemId *arg2 = 0 ; | |
22323 | wxTreeItemId result; | |
22324 | PyObject * obj0 = 0 ; | |
22325 | PyObject * obj1 = 0 ; | |
22326 | char *kwnames[] = { | |
22327 | (char *) "self",(char *) "item", NULL | |
22328 | }; | |
22329 | ||
22330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
22331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22332 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22333 | if (arg2 == NULL) { | |
22334 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22335 | } | |
22336 | { | |
22337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22338 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
22339 | ||
22340 | wxPyEndAllowThreads(__tstate); | |
22341 | if (PyErr_Occurred()) SWIG_fail; | |
22342 | } | |
22343 | { | |
22344 | wxTreeItemId * resultptr; | |
22345 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22346 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22347 | } | |
22348 | return resultobj; | |
22349 | fail: | |
22350 | return NULL; | |
22351 | } | |
22352 | ||
22353 | ||
22354 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22355 | PyObject *resultobj; | |
22356 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22357 | wxTreeItemId *arg2 = 0 ; | |
22358 | wxTreeItemId result; | |
22359 | PyObject * obj0 = 0 ; | |
22360 | PyObject * obj1 = 0 ; | |
22361 | char *kwnames[] = { | |
22362 | (char *) "self",(char *) "item", NULL | |
22363 | }; | |
22364 | ||
22365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
22366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22367 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22368 | if (arg2 == NULL) { | |
22369 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22370 | } | |
22371 | { | |
22372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22373 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
22374 | ||
22375 | wxPyEndAllowThreads(__tstate); | |
22376 | if (PyErr_Occurred()) SWIG_fail; | |
22377 | } | |
22378 | { | |
22379 | wxTreeItemId * resultptr; | |
22380 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22381 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22382 | } | |
22383 | return resultobj; | |
22384 | fail: | |
22385 | return NULL; | |
22386 | } | |
22387 | ||
22388 | ||
22389 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22390 | PyObject *resultobj; | |
22391 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22392 | wxString *arg2 = 0 ; | |
22393 | int arg3 = (int) -1 ; | |
22394 | int arg4 = (int) -1 ; | |
22395 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
22396 | wxTreeItemId result; | |
423f194a | 22397 | bool temp2 = False ; |
d14a1e28 RD |
22398 | PyObject * obj0 = 0 ; |
22399 | PyObject * obj1 = 0 ; | |
22400 | PyObject * obj4 = 0 ; | |
22401 | char *kwnames[] = { | |
22402 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22403 | }; | |
22404 | ||
22405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail; | |
22406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22407 | { | |
22408 | arg2 = wxString_in_helper(obj1); | |
22409 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 22410 | temp2 = True; |
d14a1e28 RD |
22411 | } |
22412 | if (obj4) { | |
22413 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22414 | } | |
22415 | { | |
22416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22417 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
22418 | ||
22419 | wxPyEndAllowThreads(__tstate); | |
22420 | if (PyErr_Occurred()) SWIG_fail; | |
22421 | } | |
22422 | { | |
22423 | wxTreeItemId * resultptr; | |
22424 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22425 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22426 | } | |
22427 | { | |
22428 | if (temp2) | |
22429 | delete arg2; | |
22430 | } | |
22431 | return resultobj; | |
22432 | fail: | |
22433 | { | |
22434 | if (temp2) | |
22435 | delete arg2; | |
22436 | } | |
22437 | return NULL; | |
22438 | } | |
22439 | ||
22440 | ||
22441 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22442 | PyObject *resultobj; | |
22443 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22444 | wxTreeItemId *arg2 = 0 ; | |
22445 | wxString *arg3 = 0 ; | |
22446 | int arg4 = (int) -1 ; | |
22447 | int arg5 = (int) -1 ; | |
22448 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
22449 | wxTreeItemId result; | |
423f194a | 22450 | bool temp3 = False ; |
d14a1e28 RD |
22451 | PyObject * obj0 = 0 ; |
22452 | PyObject * obj1 = 0 ; | |
22453 | PyObject * obj2 = 0 ; | |
22454 | PyObject * obj5 = 0 ; | |
22455 | char *kwnames[] = { | |
22456 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22457 | }; | |
22458 | ||
22459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|iiO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
22460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22461 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22462 | if (arg2 == NULL) { | |
22463 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22464 | } | |
22465 | { | |
22466 | arg3 = wxString_in_helper(obj2); | |
22467 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22468 | temp3 = True; |
d14a1e28 RD |
22469 | } |
22470 | if (obj5) { | |
22471 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22472 | } | |
22473 | { | |
22474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22475 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
22476 | ||
22477 | wxPyEndAllowThreads(__tstate); | |
22478 | if (PyErr_Occurred()) SWIG_fail; | |
22479 | } | |
22480 | { | |
22481 | wxTreeItemId * resultptr; | |
22482 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22483 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22484 | } | |
22485 | { | |
22486 | if (temp3) | |
22487 | delete arg3; | |
22488 | } | |
22489 | return resultobj; | |
22490 | fail: | |
22491 | { | |
22492 | if (temp3) | |
22493 | delete arg3; | |
22494 | } | |
22495 | return NULL; | |
22496 | } | |
22497 | ||
22498 | ||
22499 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22500 | PyObject *resultobj; | |
22501 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22502 | wxTreeItemId *arg2 = 0 ; | |
22503 | wxTreeItemId *arg3 = 0 ; | |
22504 | wxString *arg4 = 0 ; | |
22505 | int arg5 = (int) -1 ; | |
22506 | int arg6 = (int) -1 ; | |
22507 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
22508 | wxTreeItemId result; | |
423f194a | 22509 | bool temp4 = False ; |
d14a1e28 RD |
22510 | PyObject * obj0 = 0 ; |
22511 | PyObject * obj1 = 0 ; | |
22512 | PyObject * obj2 = 0 ; | |
22513 | PyObject * obj3 = 0 ; | |
22514 | PyObject * obj6 = 0 ; | |
22515 | char *kwnames[] = { | |
22516 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22517 | }; | |
22518 | ||
22519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iiO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
22520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22521 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22522 | if (arg2 == NULL) { | |
22523 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22524 | } | |
22525 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22526 | if (arg3 == NULL) { | |
22527 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22528 | } | |
22529 | { | |
22530 | arg4 = wxString_in_helper(obj3); | |
22531 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 22532 | temp4 = True; |
d14a1e28 RD |
22533 | } |
22534 | if (obj6) { | |
22535 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22536 | } | |
22537 | { | |
22538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22539 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
22540 | ||
22541 | wxPyEndAllowThreads(__tstate); | |
22542 | if (PyErr_Occurred()) SWIG_fail; | |
22543 | } | |
22544 | { | |
22545 | wxTreeItemId * resultptr; | |
22546 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22547 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22548 | } | |
22549 | { | |
22550 | if (temp4) | |
22551 | delete arg4; | |
22552 | } | |
22553 | return resultobj; | |
22554 | fail: | |
22555 | { | |
22556 | if (temp4) | |
22557 | delete arg4; | |
22558 | } | |
22559 | return NULL; | |
22560 | } | |
22561 | ||
22562 | ||
22563 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22564 | PyObject *resultobj; | |
22565 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22566 | wxTreeItemId *arg2 = 0 ; | |
22567 | size_t arg3 ; | |
22568 | wxString *arg4 = 0 ; | |
22569 | int arg5 = (int) -1 ; | |
22570 | int arg6 = (int) -1 ; | |
22571 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
22572 | wxTreeItemId result; | |
423f194a | 22573 | bool temp4 = False ; |
d14a1e28 RD |
22574 | PyObject * obj0 = 0 ; |
22575 | PyObject * obj1 = 0 ; | |
22576 | PyObject * obj2 = 0 ; | |
22577 | PyObject * obj3 = 0 ; | |
22578 | PyObject * obj6 = 0 ; | |
22579 | char *kwnames[] = { | |
22580 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22581 | }; | |
22582 | ||
22583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iiO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
22584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22585 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22586 | if (arg2 == NULL) { | |
22587 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22588 | } | |
22589 | arg3 = (size_t) PyInt_AsLong(obj2); | |
22590 | if (PyErr_Occurred()) SWIG_fail; | |
22591 | { | |
22592 | arg4 = wxString_in_helper(obj3); | |
22593 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 22594 | temp4 = True; |
d14a1e28 RD |
22595 | } |
22596 | if (obj6) { | |
22597 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22598 | } | |
22599 | { | |
22600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22601 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
22602 | ||
22603 | wxPyEndAllowThreads(__tstate); | |
22604 | if (PyErr_Occurred()) SWIG_fail; | |
22605 | } | |
22606 | { | |
22607 | wxTreeItemId * resultptr; | |
22608 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22609 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22610 | } | |
22611 | { | |
22612 | if (temp4) | |
22613 | delete arg4; | |
22614 | } | |
22615 | return resultobj; | |
22616 | fail: | |
22617 | { | |
22618 | if (temp4) | |
22619 | delete arg4; | |
22620 | } | |
22621 | return NULL; | |
22622 | } | |
22623 | ||
22624 | ||
22625 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22626 | PyObject *resultobj; | |
22627 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22628 | wxTreeItemId *arg2 = 0 ; | |
22629 | wxString *arg3 = 0 ; | |
22630 | int arg4 = (int) -1 ; | |
22631 | int arg5 = (int) -1 ; | |
22632 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
22633 | wxTreeItemId result; | |
423f194a | 22634 | bool temp3 = False ; |
d14a1e28 RD |
22635 | PyObject * obj0 = 0 ; |
22636 | PyObject * obj1 = 0 ; | |
22637 | PyObject * obj2 = 0 ; | |
22638 | PyObject * obj5 = 0 ; | |
22639 | char *kwnames[] = { | |
22640 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22641 | }; | |
22642 | ||
22643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|iiO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
22644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22645 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22646 | if (arg2 == NULL) { | |
22647 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22648 | } | |
22649 | { | |
22650 | arg3 = wxString_in_helper(obj2); | |
22651 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22652 | temp3 = True; |
d14a1e28 RD |
22653 | } |
22654 | if (obj5) { | |
22655 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22656 | } | |
22657 | { | |
22658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22659 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
22660 | ||
22661 | wxPyEndAllowThreads(__tstate); | |
22662 | if (PyErr_Occurred()) SWIG_fail; | |
22663 | } | |
22664 | { | |
22665 | wxTreeItemId * resultptr; | |
22666 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22667 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22668 | } | |
22669 | { | |
22670 | if (temp3) | |
22671 | delete arg3; | |
22672 | } | |
22673 | return resultobj; | |
22674 | fail: | |
22675 | { | |
22676 | if (temp3) | |
22677 | delete arg3; | |
22678 | } | |
22679 | return NULL; | |
22680 | } | |
22681 | ||
22682 | ||
22683 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22684 | PyObject *resultobj; | |
22685 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22686 | wxTreeItemId *arg2 = 0 ; | |
22687 | PyObject * obj0 = 0 ; | |
22688 | PyObject * obj1 = 0 ; | |
22689 | char *kwnames[] = { | |
22690 | (char *) "self",(char *) "item", NULL | |
22691 | }; | |
22692 | ||
22693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
22694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22695 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22696 | if (arg2 == NULL) { | |
22697 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22698 | } | |
22699 | { | |
22700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22701 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
22702 | ||
22703 | wxPyEndAllowThreads(__tstate); | |
22704 | if (PyErr_Occurred()) SWIG_fail; | |
22705 | } | |
22706 | Py_INCREF(Py_None); resultobj = Py_None; | |
22707 | return resultobj; | |
22708 | fail: | |
22709 | return NULL; | |
22710 | } | |
22711 | ||
22712 | ||
22713 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22714 | PyObject *resultobj; | |
22715 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22716 | wxTreeItemId *arg2 = 0 ; | |
22717 | PyObject * obj0 = 0 ; | |
22718 | PyObject * obj1 = 0 ; | |
22719 | char *kwnames[] = { | |
22720 | (char *) "self",(char *) "item", NULL | |
22721 | }; | |
22722 | ||
22723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
22724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22725 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22726 | if (arg2 == NULL) { | |
22727 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22728 | } | |
22729 | { | |
22730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22731 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
22732 | ||
22733 | wxPyEndAllowThreads(__tstate); | |
22734 | if (PyErr_Occurred()) SWIG_fail; | |
22735 | } | |
22736 | Py_INCREF(Py_None); resultobj = Py_None; | |
22737 | return resultobj; | |
22738 | fail: | |
22739 | return NULL; | |
22740 | } | |
22741 | ||
22742 | ||
22743 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22744 | PyObject *resultobj; | |
22745 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22746 | PyObject * obj0 = 0 ; | |
22747 | char *kwnames[] = { | |
22748 | (char *) "self", NULL | |
22749 | }; | |
22750 | ||
22751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
22752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22753 | { | |
22754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22755 | (arg1)->DeleteAllItems(); | |
22756 | ||
22757 | wxPyEndAllowThreads(__tstate); | |
22758 | if (PyErr_Occurred()) SWIG_fail; | |
22759 | } | |
22760 | Py_INCREF(Py_None); resultobj = Py_None; | |
22761 | return resultobj; | |
22762 | fail: | |
22763 | return NULL; | |
22764 | } | |
22765 | ||
22766 | ||
22767 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22768 | PyObject *resultobj; | |
22769 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22770 | wxTreeItemId *arg2 = 0 ; | |
22771 | PyObject * obj0 = 0 ; | |
22772 | PyObject * obj1 = 0 ; | |
22773 | char *kwnames[] = { | |
22774 | (char *) "self",(char *) "item", NULL | |
22775 | }; | |
22776 | ||
22777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
22778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22779 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22780 | if (arg2 == NULL) { | |
22781 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22782 | } | |
22783 | { | |
22784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22785 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
22786 | ||
22787 | wxPyEndAllowThreads(__tstate); | |
22788 | if (PyErr_Occurred()) SWIG_fail; | |
22789 | } | |
22790 | Py_INCREF(Py_None); resultobj = Py_None; | |
22791 | return resultobj; | |
22792 | fail: | |
22793 | return NULL; | |
22794 | } | |
22795 | ||
22796 | ||
22797 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22798 | PyObject *resultobj; | |
22799 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22800 | wxTreeItemId *arg2 = 0 ; | |
22801 | PyObject * obj0 = 0 ; | |
22802 | PyObject * obj1 = 0 ; | |
22803 | char *kwnames[] = { | |
22804 | (char *) "self",(char *) "item", NULL | |
22805 | }; | |
22806 | ||
22807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
22808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22809 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22810 | if (arg2 == NULL) { | |
22811 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22812 | } | |
22813 | { | |
22814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22815 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
22816 | ||
22817 | wxPyEndAllowThreads(__tstate); | |
22818 | if (PyErr_Occurred()) SWIG_fail; | |
22819 | } | |
22820 | Py_INCREF(Py_None); resultobj = Py_None; | |
22821 | return resultobj; | |
22822 | fail: | |
22823 | return NULL; | |
22824 | } | |
22825 | ||
22826 | ||
22827 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22828 | PyObject *resultobj; | |
22829 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22830 | wxTreeItemId *arg2 = 0 ; | |
22831 | PyObject * obj0 = 0 ; | |
22832 | PyObject * obj1 = 0 ; | |
22833 | char *kwnames[] = { | |
22834 | (char *) "self",(char *) "item", NULL | |
22835 | }; | |
22836 | ||
22837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
22838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22839 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22840 | if (arg2 == NULL) { | |
22841 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22842 | } | |
22843 | { | |
22844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22845 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
22846 | ||
22847 | wxPyEndAllowThreads(__tstate); | |
22848 | if (PyErr_Occurred()) SWIG_fail; | |
22849 | } | |
22850 | Py_INCREF(Py_None); resultobj = Py_None; | |
22851 | return resultobj; | |
22852 | fail: | |
22853 | return NULL; | |
22854 | } | |
22855 | ||
22856 | ||
22857 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22858 | PyObject *resultobj; | |
22859 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22860 | wxTreeItemId *arg2 = 0 ; | |
22861 | PyObject * obj0 = 0 ; | |
22862 | PyObject * obj1 = 0 ; | |
22863 | char *kwnames[] = { | |
22864 | (char *) "self",(char *) "item", NULL | |
22865 | }; | |
22866 | ||
22867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
22868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22869 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22870 | if (arg2 == NULL) { | |
22871 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22872 | } | |
22873 | { | |
22874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22875 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
22876 | ||
22877 | wxPyEndAllowThreads(__tstate); | |
22878 | if (PyErr_Occurred()) SWIG_fail; | |
22879 | } | |
22880 | Py_INCREF(Py_None); resultobj = Py_None; | |
22881 | return resultobj; | |
22882 | fail: | |
22883 | return NULL; | |
22884 | } | |
22885 | ||
22886 | ||
22887 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22888 | PyObject *resultobj; | |
22889 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22890 | PyObject * obj0 = 0 ; | |
22891 | char *kwnames[] = { | |
22892 | (char *) "self", NULL | |
22893 | }; | |
22894 | ||
22895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
22896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22897 | { | |
22898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22899 | (arg1)->Unselect(); | |
22900 | ||
22901 | wxPyEndAllowThreads(__tstate); | |
22902 | if (PyErr_Occurred()) SWIG_fail; | |
22903 | } | |
22904 | Py_INCREF(Py_None); resultobj = Py_None; | |
22905 | return resultobj; | |
22906 | fail: | |
22907 | return NULL; | |
22908 | } | |
22909 | ||
22910 | ||
22911 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22912 | PyObject *resultobj; | |
22913 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22914 | PyObject * obj0 = 0 ; | |
22915 | char *kwnames[] = { | |
22916 | (char *) "self", NULL | |
22917 | }; | |
22918 | ||
22919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
22920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22921 | { | |
22922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22923 | (arg1)->UnselectAll(); | |
22924 | ||
22925 | wxPyEndAllowThreads(__tstate); | |
22926 | if (PyErr_Occurred()) SWIG_fail; | |
22927 | } | |
22928 | Py_INCREF(Py_None); resultobj = Py_None; | |
22929 | return resultobj; | |
22930 | fail: | |
22931 | return NULL; | |
22932 | } | |
22933 | ||
22934 | ||
22935 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22936 | PyObject *resultobj; | |
22937 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22938 | wxTreeItemId *arg2 = 0 ; | |
22939 | PyObject * obj0 = 0 ; | |
22940 | PyObject * obj1 = 0 ; | |
22941 | char *kwnames[] = { | |
22942 | (char *) "self",(char *) "item", NULL | |
22943 | }; | |
22944 | ||
22945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SelectItem",kwnames,&obj0,&obj1)) goto fail; | |
22946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22947 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22948 | if (arg2 == NULL) { | |
22949 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22950 | } | |
22951 | { | |
22952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22953 | (arg1)->SelectItem((wxTreeItemId const &)*arg2); | |
22954 | ||
22955 | wxPyEndAllowThreads(__tstate); | |
22956 | if (PyErr_Occurred()) SWIG_fail; | |
22957 | } | |
22958 | Py_INCREF(Py_None); resultobj = Py_None; | |
22959 | return resultobj; | |
22960 | fail: | |
22961 | return NULL; | |
22962 | } | |
22963 | ||
22964 | ||
22965 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22966 | PyObject *resultobj; | |
22967 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22968 | wxTreeItemId *arg2 = 0 ; | |
22969 | PyObject * obj0 = 0 ; | |
22970 | PyObject * obj1 = 0 ; | |
22971 | char *kwnames[] = { | |
22972 | (char *) "self",(char *) "item", NULL | |
22973 | }; | |
22974 | ||
22975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
22976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22977 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22978 | if (arg2 == NULL) { | |
22979 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22980 | } | |
22981 | { | |
22982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22983 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
22984 | ||
22985 | wxPyEndAllowThreads(__tstate); | |
22986 | if (PyErr_Occurred()) SWIG_fail; | |
22987 | } | |
22988 | Py_INCREF(Py_None); resultobj = Py_None; | |
22989 | return resultobj; | |
22990 | fail: | |
22991 | return NULL; | |
22992 | } | |
22993 | ||
22994 | ||
22995 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22996 | PyObject *resultobj; | |
22997 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22998 | wxTreeItemId *arg2 = 0 ; | |
22999 | PyObject * obj0 = 0 ; | |
23000 | PyObject * obj1 = 0 ; | |
23001 | char *kwnames[] = { | |
23002 | (char *) "self",(char *) "item", NULL | |
23003 | }; | |
23004 | ||
23005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
23006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23007 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23008 | if (arg2 == NULL) { | |
23009 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23010 | } | |
23011 | { | |
23012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23013 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
23014 | ||
23015 | wxPyEndAllowThreads(__tstate); | |
23016 | if (PyErr_Occurred()) SWIG_fail; | |
23017 | } | |
23018 | Py_INCREF(Py_None); resultobj = Py_None; | |
23019 | return resultobj; | |
23020 | fail: | |
23021 | return NULL; | |
23022 | } | |
23023 | ||
23024 | ||
23025 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23026 | PyObject *resultobj; | |
23027 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23028 | wxTreeItemId *arg2 = 0 ; | |
23029 | PyObject * obj0 = 0 ; | |
23030 | PyObject * obj1 = 0 ; | |
23031 | char *kwnames[] = { | |
23032 | (char *) "self",(char *) "item", NULL | |
23033 | }; | |
23034 | ||
23035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
23036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23037 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23038 | if (arg2 == NULL) { | |
23039 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23040 | } | |
23041 | { | |
23042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23043 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
23044 | ||
23045 | wxPyEndAllowThreads(__tstate); | |
23046 | if (PyErr_Occurred()) SWIG_fail; | |
23047 | } | |
23048 | Py_INCREF(Py_None); resultobj = Py_None; | |
23049 | return resultobj; | |
23050 | fail: | |
23051 | return NULL; | |
23052 | } | |
23053 | ||
23054 | ||
23055 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23056 | PyObject *resultobj; | |
23057 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23058 | wxTextCtrl *result; | |
23059 | PyObject * obj0 = 0 ; | |
23060 | char *kwnames[] = { | |
23061 | (char *) "self", NULL | |
23062 | }; | |
23063 | ||
23064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
23065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23066 | { | |
23067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23068 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
23069 | ||
23070 | wxPyEndAllowThreads(__tstate); | |
23071 | if (PyErr_Occurred()) SWIG_fail; | |
23072 | } | |
23073 | { | |
23074 | resultobj = wxPyMake_wxObject(result); | |
23075 | } | |
23076 | return resultobj; | |
23077 | fail: | |
23078 | return NULL; | |
23079 | } | |
23080 | ||
23081 | ||
23082 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23083 | PyObject *resultobj; | |
23084 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23085 | wxTreeItemId *arg2 = 0 ; | |
23086 | PyObject * obj0 = 0 ; | |
23087 | PyObject * obj1 = 0 ; | |
23088 | char *kwnames[] = { | |
23089 | (char *) "self",(char *) "item", NULL | |
23090 | }; | |
23091 | ||
23092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
23093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23094 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23095 | if (arg2 == NULL) { | |
23096 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23097 | } | |
23098 | { | |
23099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23100 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
23101 | ||
23102 | wxPyEndAllowThreads(__tstate); | |
23103 | if (PyErr_Occurred()) SWIG_fail; | |
23104 | } | |
23105 | Py_INCREF(Py_None); resultobj = Py_None; | |
23106 | return resultobj; | |
23107 | fail: | |
23108 | return NULL; | |
23109 | } | |
23110 | ||
23111 | ||
23112 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23113 | PyObject *resultobj; | |
23114 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23115 | wxPoint *arg2 = 0 ; | |
23116 | int *arg3 = 0 ; | |
23117 | wxTreeItemId result; | |
23118 | wxPoint temp2 ; | |
23119 | int temp3 ; | |
23120 | PyObject * obj0 = 0 ; | |
23121 | PyObject * obj1 = 0 ; | |
23122 | char *kwnames[] = { | |
23123 | (char *) "self",(char *) "point", NULL | |
23124 | }; | |
23125 | ||
23126 | arg3 = &temp3; | |
23127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
23128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23129 | { | |
23130 | arg2 = &temp2; | |
23131 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23132 | } | |
23133 | { | |
23134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23135 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
23136 | ||
23137 | wxPyEndAllowThreads(__tstate); | |
23138 | if (PyErr_Occurred()) SWIG_fail; | |
23139 | } | |
23140 | { | |
23141 | wxTreeItemId * resultptr; | |
23142 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23143 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23144 | } | |
23145 | { | |
23146 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23147 | resultobj = t_output_helper(resultobj,o); | |
23148 | } | |
23149 | return resultobj; | |
23150 | fail: | |
23151 | return NULL; | |
23152 | } | |
23153 | ||
23154 | ||
23155 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23156 | PyObject *resultobj; | |
23157 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23158 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 23159 | bool arg3 = (bool) False ; |
d14a1e28 RD |
23160 | PyObject *result; |
23161 | PyObject * obj0 = 0 ; | |
23162 | PyObject * obj1 = 0 ; | |
23163 | PyObject * obj2 = 0 ; | |
23164 | char *kwnames[] = { | |
23165 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
23166 | }; | |
23167 | ||
23168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23170 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23171 | if (arg2 == NULL) { | |
23172 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23173 | } | |
23174 | if (obj2) { | |
23175 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
23176 | if (PyErr_Occurred()) SWIG_fail; | |
23177 | } | |
23178 | { | |
23179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23180 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
23181 | ||
23182 | wxPyEndAllowThreads(__tstate); | |
23183 | if (PyErr_Occurred()) SWIG_fail; | |
23184 | } | |
23185 | resultobj = result; | |
23186 | return resultobj; | |
23187 | fail: | |
23188 | return NULL; | |
23189 | } | |
23190 | ||
23191 | ||
23192 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
23193 | PyObject *obj; | |
23194 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23195 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
23196 | Py_INCREF(obj); | |
23197 | return Py_BuildValue((char *)""); | |
23198 | } | |
cbd72d4f RD |
23199 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { |
23200 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
23201 | return 1; | |
23202 | } | |
23203 | ||
23204 | ||
23205 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
23206 | PyObject *pyobj; | |
23207 | ||
23208 | { | |
23209 | #if wxUSE_UNICODE | |
23210 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
23211 | #else | |
23212 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
23213 | #endif | |
23214 | } | |
23215 | return pyobj; | |
23216 | } | |
23217 | ||
23218 | ||
d14a1e28 RD |
23219 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
23220 | PyObject *resultobj; | |
23221 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23222 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
23223 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
23224 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
23225 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23226 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23227 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23228 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23229 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
23230 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
23231 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23232 | int arg8 = (int) 0 ; | |
cbd72d4f | 23233 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23234 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
23235 | wxGenericDirCtrl *result; | |
423f194a | 23236 | bool temp3 = False ; |
d14a1e28 RD |
23237 | wxPoint temp4 ; |
23238 | wxSize temp5 ; | |
423f194a RD |
23239 | bool temp7 = False ; |
23240 | bool temp9 = False ; | |
d14a1e28 RD |
23241 | PyObject * obj0 = 0 ; |
23242 | PyObject * obj2 = 0 ; | |
23243 | PyObject * obj3 = 0 ; | |
23244 | PyObject * obj4 = 0 ; | |
23245 | PyObject * obj6 = 0 ; | |
23246 | PyObject * obj8 = 0 ; | |
23247 | char *kwnames[] = { | |
23248 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
23249 | }; | |
23250 | ||
23251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOOlOiO:new_GenericDirCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&obj8)) goto fail; | |
23252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23253 | if (obj2) { | |
23254 | { | |
23255 | arg3 = wxString_in_helper(obj2); | |
23256 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 23257 | temp3 = True; |
d14a1e28 RD |
23258 | } |
23259 | } | |
23260 | if (obj3) { | |
23261 | { | |
23262 | arg4 = &temp4; | |
23263 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23264 | } | |
23265 | } | |
23266 | if (obj4) { | |
23267 | { | |
23268 | arg5 = &temp5; | |
23269 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23270 | } | |
23271 | } | |
23272 | if (obj6) { | |
23273 | { | |
23274 | arg7 = wxString_in_helper(obj6); | |
23275 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 23276 | temp7 = True; |
d14a1e28 RD |
23277 | } |
23278 | } | |
23279 | if (obj8) { | |
23280 | { | |
23281 | arg9 = wxString_in_helper(obj8); | |
23282 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 23283 | temp9 = True; |
d14a1e28 RD |
23284 | } |
23285 | } | |
23286 | { | |
23287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23288 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
23289 | ||
23290 | wxPyEndAllowThreads(__tstate); | |
23291 | if (PyErr_Occurred()) SWIG_fail; | |
23292 | } | |
23293 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
23294 | { | |
23295 | if (temp3) | |
23296 | delete arg3; | |
23297 | } | |
23298 | { | |
23299 | if (temp7) | |
23300 | delete arg7; | |
23301 | } | |
23302 | { | |
23303 | if (temp9) | |
23304 | delete arg9; | |
23305 | } | |
23306 | return resultobj; | |
23307 | fail: | |
23308 | { | |
23309 | if (temp3) | |
23310 | delete arg3; | |
23311 | } | |
23312 | { | |
23313 | if (temp7) | |
23314 | delete arg7; | |
23315 | } | |
23316 | { | |
23317 | if (temp9) | |
23318 | delete arg9; | |
23319 | } | |
23320 | return NULL; | |
23321 | } | |
23322 | ||
23323 | ||
23324 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23325 | PyObject *resultobj; | |
23326 | wxGenericDirCtrl *result; | |
23327 | char *kwnames[] = { | |
23328 | NULL | |
23329 | }; | |
23330 | ||
23331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
23332 | { | |
23333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23334 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
23335 | ||
23336 | wxPyEndAllowThreads(__tstate); | |
23337 | if (PyErr_Occurred()) SWIG_fail; | |
23338 | } | |
23339 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
23340 | return resultobj; | |
23341 | fail: | |
23342 | return NULL; | |
23343 | } | |
23344 | ||
23345 | ||
23346 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23347 | PyObject *resultobj; | |
23348 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23349 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 23350 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
23351 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
23352 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
23353 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
23354 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
23355 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
23356 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
23357 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
23358 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23359 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23360 | int arg9 = (int) 0 ; | |
cbd72d4f | 23361 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23362 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
23363 | bool result; | |
423f194a | 23364 | bool temp4 = False ; |
d14a1e28 RD |
23365 | wxPoint temp5 ; |
23366 | wxSize temp6 ; | |
423f194a RD |
23367 | bool temp8 = False ; |
23368 | bool temp10 = False ; | |
d14a1e28 RD |
23369 | PyObject * obj0 = 0 ; |
23370 | PyObject * obj1 = 0 ; | |
23371 | PyObject * obj3 = 0 ; | |
23372 | PyObject * obj4 = 0 ; | |
23373 | PyObject * obj5 = 0 ; | |
23374 | PyObject * obj7 = 0 ; | |
23375 | PyObject * obj9 = 0 ; | |
23376 | char *kwnames[] = { | |
23377 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
23378 | }; | |
23379 | ||
23380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOOlOiO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&arg9,&obj9)) goto fail; | |
23381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23382 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23383 | if (obj3) { | |
23384 | { | |
23385 | arg4 = wxString_in_helper(obj3); | |
23386 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 23387 | temp4 = True; |
d14a1e28 RD |
23388 | } |
23389 | } | |
23390 | if (obj4) { | |
23391 | { | |
23392 | arg5 = &temp5; | |
23393 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
23394 | } | |
23395 | } | |
23396 | if (obj5) { | |
23397 | { | |
23398 | arg6 = &temp6; | |
23399 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
23400 | } | |
23401 | } | |
23402 | if (obj7) { | |
23403 | { | |
23404 | arg8 = wxString_in_helper(obj7); | |
23405 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 23406 | temp8 = True; |
d14a1e28 RD |
23407 | } |
23408 | } | |
23409 | if (obj9) { | |
23410 | { | |
23411 | arg10 = wxString_in_helper(obj9); | |
23412 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 23413 | temp10 = True; |
d14a1e28 RD |
23414 | } |
23415 | } | |
23416 | { | |
23417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23418 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
23419 | ||
23420 | wxPyEndAllowThreads(__tstate); | |
23421 | if (PyErr_Occurred()) SWIG_fail; | |
23422 | } | |
23423 | resultobj = PyInt_FromLong((long)result); | |
23424 | { | |
23425 | if (temp4) | |
23426 | delete arg4; | |
23427 | } | |
23428 | { | |
23429 | if (temp8) | |
23430 | delete arg8; | |
23431 | } | |
23432 | { | |
23433 | if (temp10) | |
23434 | delete arg10; | |
23435 | } | |
23436 | return resultobj; | |
23437 | fail: | |
23438 | { | |
23439 | if (temp4) | |
23440 | delete arg4; | |
23441 | } | |
23442 | { | |
23443 | if (temp8) | |
23444 | delete arg8; | |
23445 | } | |
23446 | { | |
23447 | if (temp10) | |
23448 | delete arg10; | |
23449 | } | |
23450 | return NULL; | |
23451 | } | |
23452 | ||
23453 | ||
23454 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23455 | PyObject *resultobj; | |
23456 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23457 | wxString *arg2 = 0 ; | |
23458 | bool result; | |
423f194a | 23459 | bool temp2 = False ; |
d14a1e28 RD |
23460 | PyObject * obj0 = 0 ; |
23461 | PyObject * obj1 = 0 ; | |
23462 | char *kwnames[] = { | |
23463 | (char *) "self",(char *) "path", NULL | |
23464 | }; | |
23465 | ||
23466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
23467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23468 | { | |
23469 | arg2 = wxString_in_helper(obj1); | |
23470 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23471 | temp2 = True; |
d14a1e28 RD |
23472 | } |
23473 | { | |
23474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23475 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
23476 | ||
23477 | wxPyEndAllowThreads(__tstate); | |
23478 | if (PyErr_Occurred()) SWIG_fail; | |
23479 | } | |
23480 | resultobj = PyInt_FromLong((long)result); | |
23481 | { | |
23482 | if (temp2) | |
23483 | delete arg2; | |
23484 | } | |
23485 | return resultobj; | |
23486 | fail: | |
23487 | { | |
23488 | if (temp2) | |
23489 | delete arg2; | |
23490 | } | |
23491 | return NULL; | |
23492 | } | |
23493 | ||
23494 | ||
23495 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23496 | PyObject *resultobj; | |
23497 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23498 | wxString result; | |
23499 | PyObject * obj0 = 0 ; | |
23500 | char *kwnames[] = { | |
23501 | (char *) "self", NULL | |
23502 | }; | |
23503 | ||
23504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
23505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23506 | { | |
23507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23508 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
23509 | ||
23510 | wxPyEndAllowThreads(__tstate); | |
23511 | if (PyErr_Occurred()) SWIG_fail; | |
23512 | } | |
23513 | { | |
23514 | #if wxUSE_UNICODE | |
23515 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23516 | #else | |
23517 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23518 | #endif | |
23519 | } | |
23520 | return resultobj; | |
23521 | fail: | |
23522 | return NULL; | |
23523 | } | |
23524 | ||
23525 | ||
23526 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23527 | PyObject *resultobj; | |
23528 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23529 | wxString *arg2 = 0 ; | |
423f194a | 23530 | bool temp2 = False ; |
d14a1e28 RD |
23531 | PyObject * obj0 = 0 ; |
23532 | PyObject * obj1 = 0 ; | |
23533 | char *kwnames[] = { | |
23534 | (char *) "self",(char *) "path", NULL | |
23535 | }; | |
23536 | ||
23537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
23538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23539 | { | |
23540 | arg2 = wxString_in_helper(obj1); | |
23541 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23542 | temp2 = True; |
d14a1e28 RD |
23543 | } |
23544 | { | |
23545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23546 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
23547 | ||
23548 | wxPyEndAllowThreads(__tstate); | |
23549 | if (PyErr_Occurred()) SWIG_fail; | |
23550 | } | |
23551 | Py_INCREF(Py_None); resultobj = Py_None; | |
23552 | { | |
23553 | if (temp2) | |
23554 | delete arg2; | |
23555 | } | |
23556 | return resultobj; | |
23557 | fail: | |
23558 | { | |
23559 | if (temp2) | |
23560 | delete arg2; | |
23561 | } | |
23562 | return NULL; | |
23563 | } | |
23564 | ||
23565 | ||
23566 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23567 | PyObject *resultobj; | |
23568 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23569 | wxString result; | |
23570 | PyObject * obj0 = 0 ; | |
23571 | char *kwnames[] = { | |
23572 | (char *) "self", NULL | |
23573 | }; | |
23574 | ||
23575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
23576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23577 | { | |
23578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23579 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
23580 | ||
23581 | wxPyEndAllowThreads(__tstate); | |
23582 | if (PyErr_Occurred()) SWIG_fail; | |
23583 | } | |
23584 | { | |
23585 | #if wxUSE_UNICODE | |
23586 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23587 | #else | |
23588 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23589 | #endif | |
23590 | } | |
23591 | return resultobj; | |
23592 | fail: | |
23593 | return NULL; | |
23594 | } | |
23595 | ||
23596 | ||
23597 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23598 | PyObject *resultobj; | |
23599 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23600 | wxString result; | |
23601 | PyObject * obj0 = 0 ; | |
23602 | char *kwnames[] = { | |
23603 | (char *) "self", NULL | |
23604 | }; | |
23605 | ||
23606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
23607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23608 | { | |
23609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23610 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
23611 | ||
23612 | wxPyEndAllowThreads(__tstate); | |
23613 | if (PyErr_Occurred()) SWIG_fail; | |
23614 | } | |
23615 | { | |
23616 | #if wxUSE_UNICODE | |
23617 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23618 | #else | |
23619 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23620 | #endif | |
23621 | } | |
23622 | return resultobj; | |
23623 | fail: | |
23624 | return NULL; | |
23625 | } | |
23626 | ||
23627 | ||
23628 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23629 | PyObject *resultobj; | |
23630 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23631 | wxString *arg2 = 0 ; | |
423f194a | 23632 | bool temp2 = False ; |
d14a1e28 RD |
23633 | PyObject * obj0 = 0 ; |
23634 | PyObject * obj1 = 0 ; | |
23635 | char *kwnames[] = { | |
23636 | (char *) "self",(char *) "path", NULL | |
23637 | }; | |
23638 | ||
23639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
23640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23641 | { | |
23642 | arg2 = wxString_in_helper(obj1); | |
23643 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23644 | temp2 = True; |
d14a1e28 RD |
23645 | } |
23646 | { | |
23647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23648 | (arg1)->SetPath((wxString const &)*arg2); | |
23649 | ||
23650 | wxPyEndAllowThreads(__tstate); | |
23651 | if (PyErr_Occurred()) SWIG_fail; | |
23652 | } | |
23653 | Py_INCREF(Py_None); resultobj = Py_None; | |
23654 | { | |
23655 | if (temp2) | |
23656 | delete arg2; | |
23657 | } | |
23658 | return resultobj; | |
23659 | fail: | |
23660 | { | |
23661 | if (temp2) | |
23662 | delete arg2; | |
23663 | } | |
23664 | return NULL; | |
23665 | } | |
23666 | ||
23667 | ||
23668 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23669 | PyObject *resultobj; | |
23670 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23671 | bool arg2 ; | |
23672 | PyObject * obj0 = 0 ; | |
23673 | PyObject * obj1 = 0 ; | |
23674 | char *kwnames[] = { | |
23675 | (char *) "self",(char *) "show", NULL | |
23676 | }; | |
23677 | ||
23678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
23679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23680 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
23681 | if (PyErr_Occurred()) SWIG_fail; | |
23682 | { | |
23683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23684 | (arg1)->ShowHidden(arg2); | |
23685 | ||
23686 | wxPyEndAllowThreads(__tstate); | |
23687 | if (PyErr_Occurred()) SWIG_fail; | |
23688 | } | |
23689 | Py_INCREF(Py_None); resultobj = Py_None; | |
23690 | return resultobj; | |
23691 | fail: | |
23692 | return NULL; | |
23693 | } | |
23694 | ||
23695 | ||
23696 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23697 | PyObject *resultobj; | |
23698 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23699 | bool result; | |
23700 | PyObject * obj0 = 0 ; | |
23701 | char *kwnames[] = { | |
23702 | (char *) "self", NULL | |
23703 | }; | |
23704 | ||
23705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
23706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23707 | { | |
23708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23709 | result = (bool)(arg1)->GetShowHidden(); | |
23710 | ||
23711 | wxPyEndAllowThreads(__tstate); | |
23712 | if (PyErr_Occurred()) SWIG_fail; | |
23713 | } | |
23714 | resultobj = PyInt_FromLong((long)result); | |
23715 | return resultobj; | |
23716 | fail: | |
23717 | return NULL; | |
23718 | } | |
23719 | ||
23720 | ||
23721 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23722 | PyObject *resultobj; | |
23723 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23724 | wxString result; | |
23725 | PyObject * obj0 = 0 ; | |
23726 | char *kwnames[] = { | |
23727 | (char *) "self", NULL | |
23728 | }; | |
23729 | ||
23730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
23731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23732 | { | |
23733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23734 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
23735 | ||
23736 | wxPyEndAllowThreads(__tstate); | |
23737 | if (PyErr_Occurred()) SWIG_fail; | |
23738 | } | |
23739 | { | |
23740 | #if wxUSE_UNICODE | |
23741 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23742 | #else | |
23743 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23744 | #endif | |
23745 | } | |
23746 | return resultobj; | |
23747 | fail: | |
23748 | return NULL; | |
23749 | } | |
23750 | ||
23751 | ||
23752 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23753 | PyObject *resultobj; | |
23754 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23755 | wxString *arg2 = 0 ; | |
423f194a | 23756 | bool temp2 = False ; |
d14a1e28 RD |
23757 | PyObject * obj0 = 0 ; |
23758 | PyObject * obj1 = 0 ; | |
23759 | char *kwnames[] = { | |
23760 | (char *) "self",(char *) "filter", NULL | |
23761 | }; | |
23762 | ||
23763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
23764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23765 | { | |
23766 | arg2 = wxString_in_helper(obj1); | |
23767 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23768 | temp2 = True; |
d14a1e28 RD |
23769 | } |
23770 | { | |
23771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23772 | (arg1)->SetFilter((wxString const &)*arg2); | |
23773 | ||
23774 | wxPyEndAllowThreads(__tstate); | |
23775 | if (PyErr_Occurred()) SWIG_fail; | |
23776 | } | |
23777 | Py_INCREF(Py_None); resultobj = Py_None; | |
23778 | { | |
23779 | if (temp2) | |
23780 | delete arg2; | |
23781 | } | |
23782 | return resultobj; | |
23783 | fail: | |
23784 | { | |
23785 | if (temp2) | |
23786 | delete arg2; | |
23787 | } | |
23788 | return NULL; | |
23789 | } | |
23790 | ||
23791 | ||
23792 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23793 | PyObject *resultobj; | |
23794 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23795 | int result; | |
23796 | PyObject * obj0 = 0 ; | |
23797 | char *kwnames[] = { | |
23798 | (char *) "self", NULL | |
23799 | }; | |
23800 | ||
23801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
23802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23803 | { | |
23804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23805 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
23806 | ||
23807 | wxPyEndAllowThreads(__tstate); | |
23808 | if (PyErr_Occurred()) SWIG_fail; | |
23809 | } | |
23810 | resultobj = PyInt_FromLong((long)result); | |
23811 | return resultobj; | |
23812 | fail: | |
23813 | return NULL; | |
23814 | } | |
23815 | ||
23816 | ||
23817 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23818 | PyObject *resultobj; | |
23819 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23820 | int arg2 ; | |
23821 | PyObject * obj0 = 0 ; | |
23822 | char *kwnames[] = { | |
23823 | (char *) "self",(char *) "n", NULL | |
23824 | }; | |
23825 | ||
23826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&arg2)) goto fail; | |
23827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23828 | { | |
23829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23830 | (arg1)->SetFilterIndex(arg2); | |
23831 | ||
23832 | wxPyEndAllowThreads(__tstate); | |
23833 | if (PyErr_Occurred()) SWIG_fail; | |
23834 | } | |
23835 | Py_INCREF(Py_None); resultobj = Py_None; | |
23836 | return resultobj; | |
23837 | fail: | |
23838 | return NULL; | |
23839 | } | |
23840 | ||
23841 | ||
23842 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23843 | PyObject *resultobj; | |
23844 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23845 | wxTreeItemId result; | |
23846 | PyObject * obj0 = 0 ; | |
23847 | char *kwnames[] = { | |
23848 | (char *) "self", NULL | |
23849 | }; | |
23850 | ||
23851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
23852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23853 | { | |
23854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23855 | result = (arg1)->GetRootId(); | |
23856 | ||
23857 | wxPyEndAllowThreads(__tstate); | |
23858 | if (PyErr_Occurred()) SWIG_fail; | |
23859 | } | |
23860 | { | |
23861 | wxTreeItemId * resultptr; | |
23862 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23863 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23864 | } | |
23865 | return resultobj; | |
23866 | fail: | |
23867 | return NULL; | |
23868 | } | |
23869 | ||
23870 | ||
23871 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23872 | PyObject *resultobj; | |
23873 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
cbd72d4f | 23874 | wxPyTreeCtrl *result; |
d14a1e28 RD |
23875 | PyObject * obj0 = 0 ; |
23876 | char *kwnames[] = { | |
23877 | (char *) "self", NULL | |
23878 | }; | |
23879 | ||
23880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
23881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23882 | { | |
23883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cbd72d4f | 23884 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
23885 | |
23886 | wxPyEndAllowThreads(__tstate); | |
23887 | if (PyErr_Occurred()) SWIG_fail; | |
23888 | } | |
23889 | { | |
23890 | resultobj = wxPyMake_wxObject(result); | |
23891 | } | |
23892 | return resultobj; | |
23893 | fail: | |
23894 | return NULL; | |
23895 | } | |
23896 | ||
23897 | ||
23898 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23899 | PyObject *resultobj; | |
23900 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23901 | wxDirFilterListCtrl *result; | |
23902 | PyObject * obj0 = 0 ; | |
23903 | char *kwnames[] = { | |
23904 | (char *) "self", NULL | |
23905 | }; | |
23906 | ||
23907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
23908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23909 | { | |
23910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23911 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
23912 | ||
23913 | wxPyEndAllowThreads(__tstate); | |
23914 | if (PyErr_Occurred()) SWIG_fail; | |
23915 | } | |
23916 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
23917 | return resultobj; | |
23918 | fail: | |
23919 | return NULL; | |
23920 | } | |
23921 | ||
23922 | ||
23923 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23924 | PyObject *resultobj; | |
23925 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23926 | wxTreeItemId arg2 ; | |
23927 | wxString *arg3 = 0 ; | |
23928 | bool *arg4 = 0 ; | |
23929 | wxTreeItemId result; | |
23930 | wxTreeItemId *argp2 ; | |
423f194a | 23931 | bool temp3 = False ; |
d14a1e28 RD |
23932 | bool temp4 ; |
23933 | PyObject * obj0 = 0 ; | |
23934 | PyObject * obj1 = 0 ; | |
23935 | PyObject * obj2 = 0 ; | |
23936 | char *kwnames[] = { | |
23937 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
23938 | }; | |
23939 | ||
23940 | arg4 = &temp4; | |
23941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23943 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
23944 | arg2 = *argp2; | |
23945 | { | |
23946 | arg3 = wxString_in_helper(obj2); | |
23947 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 23948 | temp3 = True; |
d14a1e28 RD |
23949 | } |
23950 | { | |
23951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23952 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
23953 | ||
23954 | wxPyEndAllowThreads(__tstate); | |
23955 | if (PyErr_Occurred()) SWIG_fail; | |
23956 | } | |
23957 | { | |
23958 | wxTreeItemId * resultptr; | |
23959 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23960 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23961 | } | |
23962 | { | |
23963 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
23964 | resultobj = t_output_helper(resultobj,o); | |
23965 | } | |
23966 | { | |
23967 | if (temp3) | |
23968 | delete arg3; | |
23969 | } | |
23970 | return resultobj; | |
23971 | fail: | |
23972 | { | |
23973 | if (temp3) | |
23974 | delete arg3; | |
23975 | } | |
23976 | return NULL; | |
23977 | } | |
23978 | ||
23979 | ||
23980 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23981 | PyObject *resultobj; | |
23982 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23983 | PyObject * obj0 = 0 ; | |
23984 | char *kwnames[] = { | |
23985 | (char *) "self", NULL | |
23986 | }; | |
23987 | ||
23988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
23989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23990 | { | |
23991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23992 | (arg1)->DoResize(); | |
23993 | ||
23994 | wxPyEndAllowThreads(__tstate); | |
23995 | if (PyErr_Occurred()) SWIG_fail; | |
23996 | } | |
23997 | Py_INCREF(Py_None); resultobj = Py_None; | |
23998 | return resultobj; | |
23999 | fail: | |
24000 | return NULL; | |
24001 | } | |
24002 | ||
24003 | ||
24004 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24005 | PyObject *resultobj; | |
24006 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24007 | PyObject * obj0 = 0 ; | |
24008 | char *kwnames[] = { | |
24009 | (char *) "self", NULL | |
24010 | }; | |
24011 | ||
24012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
24013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24014 | { | |
24015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24016 | (arg1)->ReCreateTree(); | |
24017 | ||
24018 | wxPyEndAllowThreads(__tstate); | |
24019 | if (PyErr_Occurred()) SWIG_fail; | |
24020 | } | |
24021 | Py_INCREF(Py_None); resultobj = Py_None; | |
24022 | return resultobj; | |
24023 | fail: | |
24024 | return NULL; | |
24025 | } | |
24026 | ||
24027 | ||
24028 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
24029 | PyObject *obj; | |
24030 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24031 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
24032 | Py_INCREF(obj); | |
24033 | return Py_BuildValue((char *)""); | |
24034 | } | |
24035 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24036 | PyObject *resultobj; | |
24037 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 24038 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
24039 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24040 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24041 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24042 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24043 | long arg5 = (long) 0 ; | |
24044 | wxDirFilterListCtrl *result; | |
24045 | wxPoint temp3 ; | |
24046 | wxSize temp4 ; | |
24047 | PyObject * obj0 = 0 ; | |
24048 | PyObject * obj2 = 0 ; | |
24049 | PyObject * obj3 = 0 ; | |
24050 | char *kwnames[] = { | |
24051 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
24052 | }; | |
24053 | ||
24054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOl:new_DirFilterListCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
24055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24056 | if (obj2) { | |
24057 | { | |
24058 | arg3 = &temp3; | |
24059 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24060 | } | |
24061 | } | |
24062 | if (obj3) { | |
24063 | { | |
24064 | arg4 = &temp4; | |
24065 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24066 | } | |
24067 | } | |
24068 | { | |
24069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24070 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
24071 | ||
24072 | wxPyEndAllowThreads(__tstate); | |
24073 | if (PyErr_Occurred()) SWIG_fail; | |
24074 | } | |
24075 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
24076 | return resultobj; | |
24077 | fail: | |
24078 | return NULL; | |
24079 | } | |
24080 | ||
24081 | ||
24082 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24083 | PyObject *resultobj; | |
24084 | wxDirFilterListCtrl *result; | |
24085 | char *kwnames[] = { | |
24086 | NULL | |
24087 | }; | |
24088 | ||
24089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
24090 | { | |
24091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24092 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
24093 | ||
24094 | wxPyEndAllowThreads(__tstate); | |
24095 | if (PyErr_Occurred()) SWIG_fail; | |
24096 | } | |
24097 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
24098 | return resultobj; | |
24099 | fail: | |
24100 | return NULL; | |
24101 | } | |
24102 | ||
24103 | ||
24104 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24105 | PyObject *resultobj; | |
24106 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
24107 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 24108 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
24109 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
24110 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24111 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24112 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24113 | long arg6 = (long) 0 ; | |
24114 | bool result; | |
24115 | wxPoint temp4 ; | |
24116 | wxSize temp5 ; | |
24117 | PyObject * obj0 = 0 ; | |
24118 | PyObject * obj1 = 0 ; | |
24119 | PyObject * obj3 = 0 ; | |
24120 | PyObject * obj4 = 0 ; | |
24121 | char *kwnames[] = { | |
24122 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
24123 | }; | |
24124 | ||
24125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOl:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6)) goto fail; | |
24126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24127 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24128 | if (obj3) { | |
24129 | { | |
24130 | arg4 = &temp4; | |
24131 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24132 | } | |
24133 | } | |
24134 | if (obj4) { | |
24135 | { | |
24136 | arg5 = &temp5; | |
24137 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24138 | } | |
24139 | } | |
24140 | { | |
24141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24142 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
24143 | ||
24144 | wxPyEndAllowThreads(__tstate); | |
24145 | if (PyErr_Occurred()) SWIG_fail; | |
24146 | } | |
24147 | resultobj = PyInt_FromLong((long)result); | |
24148 | return resultobj; | |
24149 | fail: | |
24150 | return NULL; | |
24151 | } | |
24152 | ||
24153 | ||
24154 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24155 | PyObject *resultobj; | |
24156 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
24157 | wxString *arg2 = 0 ; | |
24158 | int arg3 ; | |
423f194a | 24159 | bool temp2 = False ; |
d14a1e28 RD |
24160 | PyObject * obj0 = 0 ; |
24161 | PyObject * obj1 = 0 ; | |
24162 | char *kwnames[] = { | |
24163 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
24164 | }; | |
24165 | ||
24166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
24167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24168 | { | |
24169 | arg2 = wxString_in_helper(obj1); | |
24170 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24171 | temp2 = True; |
d14a1e28 RD |
24172 | } |
24173 | { | |
24174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24175 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
24176 | ||
24177 | wxPyEndAllowThreads(__tstate); | |
24178 | if (PyErr_Occurred()) SWIG_fail; | |
24179 | } | |
24180 | Py_INCREF(Py_None); resultobj = Py_None; | |
24181 | { | |
24182 | if (temp2) | |
24183 | delete arg2; | |
24184 | } | |
24185 | return resultobj; | |
24186 | fail: | |
24187 | { | |
24188 | if (temp2) | |
24189 | delete arg2; | |
24190 | } | |
24191 | return NULL; | |
24192 | } | |
24193 | ||
24194 | ||
24195 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
24196 | PyObject *obj; | |
24197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24198 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
24199 | Py_INCREF(obj); | |
24200 | return Py_BuildValue((char *)""); | |
24201 | } | |
24202 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24203 | PyObject *resultobj; | |
24204 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24205 | int arg2 ; |
d14a1e28 RD |
24206 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24207 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24208 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24209 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24210 | long arg5 = (long) 0 ; | |
24211 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24212 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
24213 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
24214 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24215 | wxPyControl *result; | |
24216 | wxPoint temp3 ; | |
24217 | wxSize temp4 ; | |
423f194a | 24218 | bool temp7 = False ; |
d14a1e28 RD |
24219 | PyObject * obj0 = 0 ; |
24220 | PyObject * obj2 = 0 ; | |
24221 | PyObject * obj3 = 0 ; | |
24222 | PyObject * obj5 = 0 ; | |
24223 | PyObject * obj6 = 0 ; | |
24224 | char *kwnames[] = { | |
24225 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24226 | }; | |
24227 | ||
24228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlOO:new_PyControl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
24229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24230 | if (obj2) { | |
24231 | { | |
24232 | arg3 = &temp3; | |
24233 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24234 | } | |
24235 | } | |
24236 | if (obj3) { | |
24237 | { | |
24238 | arg4 = &temp4; | |
24239 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24240 | } | |
24241 | } | |
24242 | if (obj5) { | |
24243 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24244 | if (arg6 == NULL) { | |
24245 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24246 | } | |
24247 | } | |
24248 | if (obj6) { | |
24249 | { | |
24250 | arg7 = wxString_in_helper(obj6); | |
24251 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 24252 | temp7 = True; |
d14a1e28 RD |
24253 | } |
24254 | } | |
24255 | { | |
24256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24257 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24258 | ||
24259 | wxPyEndAllowThreads(__tstate); | |
24260 | if (PyErr_Occurred()) SWIG_fail; | |
24261 | } | |
24262 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
24263 | { | |
24264 | if (temp7) | |
24265 | delete arg7; | |
24266 | } | |
24267 | return resultobj; | |
24268 | fail: | |
24269 | { | |
24270 | if (temp7) | |
24271 | delete arg7; | |
24272 | } | |
24273 | return NULL; | |
24274 | } | |
24275 | ||
24276 | ||
24277 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24278 | PyObject *resultobj; | |
24279 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24280 | PyObject *arg2 = (PyObject *) 0 ; | |
24281 | PyObject *arg3 = (PyObject *) 0 ; | |
24282 | PyObject * obj0 = 0 ; | |
24283 | PyObject * obj1 = 0 ; | |
24284 | PyObject * obj2 = 0 ; | |
24285 | char *kwnames[] = { | |
24286 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24287 | }; | |
24288 | ||
24289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24291 | arg2 = obj1; | |
24292 | arg3 = obj2; | |
24293 | { | |
24294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24295 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24296 | ||
24297 | wxPyEndAllowThreads(__tstate); | |
24298 | if (PyErr_Occurred()) SWIG_fail; | |
24299 | } | |
24300 | Py_INCREF(Py_None); resultobj = Py_None; | |
24301 | return resultobj; | |
24302 | fail: | |
24303 | return NULL; | |
24304 | } | |
24305 | ||
24306 | ||
24307 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24308 | PyObject *resultobj; | |
24309 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24310 | int arg2 ; | |
24311 | int arg3 ; | |
24312 | int arg4 ; | |
24313 | int arg5 ; | |
24314 | PyObject * obj0 = 0 ; | |
24315 | char *kwnames[] = { | |
24316 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
24317 | }; | |
24318 | ||
24319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:PyControl_base_DoMoveWindow",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
24320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24321 | { | |
24322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24323 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
24324 | ||
24325 | wxPyEndAllowThreads(__tstate); | |
24326 | if (PyErr_Occurred()) SWIG_fail; | |
24327 | } | |
24328 | Py_INCREF(Py_None); resultobj = Py_None; | |
24329 | return resultobj; | |
24330 | fail: | |
24331 | return NULL; | |
24332 | } | |
24333 | ||
24334 | ||
24335 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24336 | PyObject *resultobj; | |
24337 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24338 | int arg2 ; | |
24339 | int arg3 ; | |
24340 | int arg4 ; | |
24341 | int arg5 ; | |
24342 | int arg6 = (int) wxSIZE_AUTO ; | |
24343 | PyObject * obj0 = 0 ; | |
24344 | char *kwnames[] = { | |
24345 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
24346 | }; | |
24347 | ||
24348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|i:PyControl_base_DoSetSize",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
24349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24350 | { | |
24351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24352 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
24353 | ||
24354 | wxPyEndAllowThreads(__tstate); | |
24355 | if (PyErr_Occurred()) SWIG_fail; | |
24356 | } | |
24357 | Py_INCREF(Py_None); resultobj = Py_None; | |
24358 | return resultobj; | |
24359 | fail: | |
24360 | return NULL; | |
24361 | } | |
24362 | ||
24363 | ||
24364 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24365 | PyObject *resultobj; | |
24366 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24367 | int arg2 ; | |
24368 | int arg3 ; | |
24369 | PyObject * obj0 = 0 ; | |
24370 | char *kwnames[] = { | |
24371 | (char *) "self",(char *) "width",(char *) "height", NULL | |
24372 | }; | |
24373 | ||
24374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyControl_base_DoSetClientSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24376 | { | |
24377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24378 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
24379 | ||
24380 | wxPyEndAllowThreads(__tstate); | |
24381 | if (PyErr_Occurred()) SWIG_fail; | |
24382 | } | |
24383 | Py_INCREF(Py_None); resultobj = Py_None; | |
24384 | return resultobj; | |
24385 | fail: | |
24386 | return NULL; | |
24387 | } | |
24388 | ||
24389 | ||
24390 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24391 | PyObject *resultobj; | |
24392 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24393 | int arg2 ; | |
24394 | int arg3 ; | |
24395 | PyObject * obj0 = 0 ; | |
24396 | char *kwnames[] = { | |
24397 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24398 | }; | |
24399 | ||
24400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24402 | { | |
24403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24404 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
24405 | ||
24406 | wxPyEndAllowThreads(__tstate); | |
24407 | if (PyErr_Occurred()) SWIG_fail; | |
24408 | } | |
24409 | Py_INCREF(Py_None); resultobj = Py_None; | |
24410 | return resultobj; | |
24411 | fail: | |
24412 | return NULL; | |
24413 | } | |
24414 | ||
24415 | ||
24416 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24417 | PyObject *resultobj; | |
24418 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24419 | int *arg2 = (int *) 0 ; | |
24420 | int *arg3 = (int *) 0 ; | |
24421 | int temp2 ; | |
24422 | int temp3 ; | |
24423 | PyObject * obj0 = 0 ; | |
24424 | char *kwnames[] = { | |
24425 | (char *) "self", NULL | |
24426 | }; | |
24427 | ||
24428 | arg2 = &temp2; | |
24429 | arg3 = &temp3; | |
24430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
24431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24432 | { | |
24433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24434 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
24435 | ||
24436 | wxPyEndAllowThreads(__tstate); | |
24437 | if (PyErr_Occurred()) SWIG_fail; | |
24438 | } | |
24439 | Py_INCREF(Py_None); resultobj = Py_None; | |
24440 | { | |
24441 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
24442 | resultobj = t_output_helper(resultobj,o); | |
24443 | } | |
24444 | { | |
24445 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24446 | resultobj = t_output_helper(resultobj,o); | |
24447 | } | |
24448 | return resultobj; | |
24449 | fail: | |
24450 | return NULL; | |
24451 | } | |
24452 | ||
24453 | ||
24454 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24455 | PyObject *resultobj; | |
24456 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24457 | int *arg2 = (int *) 0 ; | |
24458 | int *arg3 = (int *) 0 ; | |
24459 | int temp2 ; | |
24460 | int temp3 ; | |
24461 | PyObject * obj0 = 0 ; | |
24462 | char *kwnames[] = { | |
24463 | (char *) "self", NULL | |
24464 | }; | |
24465 | ||
24466 | arg2 = &temp2; | |
24467 | arg3 = &temp3; | |
24468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
24469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24470 | { | |
24471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24472 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
24473 | ||
24474 | wxPyEndAllowThreads(__tstate); | |
24475 | if (PyErr_Occurred()) SWIG_fail; | |
24476 | } | |
24477 | Py_INCREF(Py_None); resultobj = Py_None; | |
24478 | { | |
24479 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
24480 | resultobj = t_output_helper(resultobj,o); | |
24481 | } | |
24482 | { | |
24483 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24484 | resultobj = t_output_helper(resultobj,o); | |
24485 | } | |
24486 | return resultobj; | |
24487 | fail: | |
24488 | return NULL; | |
24489 | } | |
24490 | ||
24491 | ||
24492 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24493 | PyObject *resultobj; | |
24494 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24495 | int *arg2 = (int *) 0 ; | |
24496 | int *arg3 = (int *) 0 ; | |
24497 | int temp2 ; | |
24498 | int temp3 ; | |
24499 | PyObject * obj0 = 0 ; | |
24500 | char *kwnames[] = { | |
24501 | (char *) "self", NULL | |
24502 | }; | |
24503 | ||
24504 | arg2 = &temp2; | |
24505 | arg3 = &temp3; | |
24506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
24507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24508 | { | |
24509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24510 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
24511 | ||
24512 | wxPyEndAllowThreads(__tstate); | |
24513 | if (PyErr_Occurred()) SWIG_fail; | |
24514 | } | |
24515 | Py_INCREF(Py_None); resultobj = Py_None; | |
24516 | { | |
24517 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
24518 | resultobj = t_output_helper(resultobj,o); | |
24519 | } | |
24520 | { | |
24521 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24522 | resultobj = t_output_helper(resultobj,o); | |
24523 | } | |
24524 | return resultobj; | |
24525 | fail: | |
24526 | return NULL; | |
24527 | } | |
24528 | ||
24529 | ||
24530 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24531 | PyObject *resultobj; | |
24532 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24533 | wxSize result; | |
24534 | PyObject * obj0 = 0 ; | |
24535 | char *kwnames[] = { | |
24536 | (char *) "self", NULL | |
24537 | }; | |
24538 | ||
24539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
24540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24541 | { | |
24542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24543 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
24544 | ||
24545 | wxPyEndAllowThreads(__tstate); | |
24546 | if (PyErr_Occurred()) SWIG_fail; | |
24547 | } | |
24548 | { | |
24549 | wxSize * resultptr; | |
24550 | resultptr = new wxSize((wxSize &) result); | |
24551 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24552 | } | |
24553 | return resultobj; | |
24554 | fail: | |
24555 | return NULL; | |
24556 | } | |
24557 | ||
24558 | ||
24559 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24560 | PyObject *resultobj; | |
24561 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24562 | wxSize result; | |
24563 | PyObject * obj0 = 0 ; | |
24564 | char *kwnames[] = { | |
24565 | (char *) "self", NULL | |
24566 | }; | |
24567 | ||
24568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
24569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24570 | { | |
24571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24572 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
24573 | ||
24574 | wxPyEndAllowThreads(__tstate); | |
24575 | if (PyErr_Occurred()) SWIG_fail; | |
24576 | } | |
24577 | { | |
24578 | wxSize * resultptr; | |
24579 | resultptr = new wxSize((wxSize &) result); | |
24580 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24581 | } | |
24582 | return resultobj; | |
24583 | fail: | |
24584 | return NULL; | |
24585 | } | |
24586 | ||
24587 | ||
24588 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24589 | PyObject *resultobj; | |
24590 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24591 | PyObject * obj0 = 0 ; | |
24592 | char *kwnames[] = { | |
24593 | (char *) "self", NULL | |
24594 | }; | |
24595 | ||
24596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
24597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24598 | { | |
24599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24600 | (arg1)->base_InitDialog(); | |
24601 | ||
24602 | wxPyEndAllowThreads(__tstate); | |
24603 | if (PyErr_Occurred()) SWIG_fail; | |
24604 | } | |
24605 | Py_INCREF(Py_None); resultobj = Py_None; | |
24606 | return resultobj; | |
24607 | fail: | |
24608 | return NULL; | |
24609 | } | |
24610 | ||
24611 | ||
24612 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24613 | PyObject *resultobj; | |
24614 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24615 | bool result; | |
24616 | PyObject * obj0 = 0 ; | |
24617 | char *kwnames[] = { | |
24618 | (char *) "self", NULL | |
24619 | }; | |
24620 | ||
24621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
24622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24623 | { | |
24624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24625 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
24626 | ||
24627 | wxPyEndAllowThreads(__tstate); | |
24628 | if (PyErr_Occurred()) SWIG_fail; | |
24629 | } | |
24630 | resultobj = PyInt_FromLong((long)result); | |
24631 | return resultobj; | |
24632 | fail: | |
24633 | return NULL; | |
24634 | } | |
24635 | ||
24636 | ||
24637 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24638 | PyObject *resultobj; | |
24639 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24640 | bool result; | |
24641 | PyObject * obj0 = 0 ; | |
24642 | char *kwnames[] = { | |
24643 | (char *) "self", NULL | |
24644 | }; | |
24645 | ||
24646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
24647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24648 | { | |
24649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24650 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
24651 | ||
24652 | wxPyEndAllowThreads(__tstate); | |
24653 | if (PyErr_Occurred()) SWIG_fail; | |
24654 | } | |
24655 | resultobj = PyInt_FromLong((long)result); | |
24656 | return resultobj; | |
24657 | fail: | |
24658 | return NULL; | |
24659 | } | |
24660 | ||
24661 | ||
24662 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24663 | PyObject *resultobj; | |
24664 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24665 | bool result; | |
24666 | PyObject * obj0 = 0 ; | |
24667 | char *kwnames[] = { | |
24668 | (char *) "self", NULL | |
24669 | }; | |
24670 | ||
24671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
24672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24673 | { | |
24674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24675 | result = (bool)(arg1)->base_Validate(); | |
24676 | ||
24677 | wxPyEndAllowThreads(__tstate); | |
24678 | if (PyErr_Occurred()) SWIG_fail; | |
24679 | } | |
24680 | resultobj = PyInt_FromLong((long)result); | |
24681 | return resultobj; | |
24682 | fail: | |
24683 | return NULL; | |
24684 | } | |
24685 | ||
24686 | ||
24687 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24688 | PyObject *resultobj; | |
24689 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24690 | bool result; | |
24691 | PyObject * obj0 = 0 ; | |
24692 | char *kwnames[] = { | |
24693 | (char *) "self", NULL | |
24694 | }; | |
24695 | ||
24696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
24697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24698 | { | |
24699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24700 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
24701 | ||
24702 | wxPyEndAllowThreads(__tstate); | |
24703 | if (PyErr_Occurred()) SWIG_fail; | |
24704 | } | |
24705 | resultobj = PyInt_FromLong((long)result); | |
24706 | return resultobj; | |
24707 | fail: | |
24708 | return NULL; | |
24709 | } | |
24710 | ||
24711 | ||
24712 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24713 | PyObject *resultobj; | |
24714 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24715 | bool result; | |
24716 | PyObject * obj0 = 0 ; | |
24717 | char *kwnames[] = { | |
24718 | (char *) "self", NULL | |
24719 | }; | |
24720 | ||
24721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
24722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24723 | { | |
24724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24725 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
24726 | ||
24727 | wxPyEndAllowThreads(__tstate); | |
24728 | if (PyErr_Occurred()) SWIG_fail; | |
24729 | } | |
24730 | resultobj = PyInt_FromLong((long)result); | |
24731 | return resultobj; | |
24732 | fail: | |
24733 | return NULL; | |
24734 | } | |
24735 | ||
24736 | ||
24737 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24738 | PyObject *resultobj; | |
24739 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24740 | wxSize result; | |
24741 | PyObject * obj0 = 0 ; | |
24742 | char *kwnames[] = { | |
24743 | (char *) "self", NULL | |
24744 | }; | |
24745 | ||
24746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
24747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24748 | { | |
24749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24750 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
24751 | ||
24752 | wxPyEndAllowThreads(__tstate); | |
24753 | if (PyErr_Occurred()) SWIG_fail; | |
24754 | } | |
24755 | { | |
24756 | wxSize * resultptr; | |
24757 | resultptr = new wxSize((wxSize &) result); | |
24758 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24759 | } | |
24760 | return resultobj; | |
24761 | fail: | |
24762 | return NULL; | |
24763 | } | |
24764 | ||
24765 | ||
24766 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24767 | PyObject *resultobj; | |
24768 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24769 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24770 | PyObject * obj0 = 0 ; | |
24771 | PyObject * obj1 = 0 ; | |
24772 | char *kwnames[] = { | |
24773 | (char *) "self",(char *) "child", NULL | |
24774 | }; | |
24775 | ||
24776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
24777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24778 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24779 | { | |
24780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24781 | (arg1)->base_AddChild(arg2); | |
24782 | ||
24783 | wxPyEndAllowThreads(__tstate); | |
24784 | if (PyErr_Occurred()) SWIG_fail; | |
24785 | } | |
24786 | Py_INCREF(Py_None); resultobj = Py_None; | |
24787 | return resultobj; | |
24788 | fail: | |
24789 | return NULL; | |
24790 | } | |
24791 | ||
24792 | ||
24793 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24794 | PyObject *resultobj; | |
24795 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24796 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24797 | PyObject * obj0 = 0 ; | |
24798 | PyObject * obj1 = 0 ; | |
24799 | char *kwnames[] = { | |
24800 | (char *) "self",(char *) "child", NULL | |
24801 | }; | |
24802 | ||
24803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
24804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24805 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24806 | { | |
24807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24808 | (arg1)->base_RemoveChild(arg2); | |
24809 | ||
24810 | wxPyEndAllowThreads(__tstate); | |
24811 | if (PyErr_Occurred()) SWIG_fail; | |
24812 | } | |
24813 | Py_INCREF(Py_None); resultobj = Py_None; | |
24814 | return resultobj; | |
24815 | fail: | |
24816 | return NULL; | |
24817 | } | |
24818 | ||
24819 | ||
24820 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
24821 | PyObject *obj; | |
24822 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24823 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
24824 | Py_INCREF(obj); | |
24825 | return Py_BuildValue((char *)""); | |
24826 | } | |
24827 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24828 | PyObject *resultobj; | |
24829 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 24830 | int arg2 = (int) 0 ; |
d14a1e28 RD |
24831 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24832 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24833 | wxHelpEvent *result; | |
24834 | wxPoint temp3 ; | |
24835 | PyObject * obj2 = 0 ; | |
24836 | char *kwnames[] = { | |
24837 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
24838 | }; | |
24839 | ||
24840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_HelpEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
24841 | if (obj2) { | |
24842 | { | |
24843 | arg3 = &temp3; | |
24844 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24845 | } | |
24846 | } | |
24847 | { | |
24848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24849 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
24850 | ||
24851 | wxPyEndAllowThreads(__tstate); | |
24852 | if (PyErr_Occurred()) SWIG_fail; | |
24853 | } | |
24854 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
24855 | return resultobj; | |
24856 | fail: | |
24857 | return NULL; | |
24858 | } | |
24859 | ||
24860 | ||
24861 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24862 | PyObject *resultobj; | |
24863 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24864 | wxPoint *result; | |
24865 | PyObject * obj0 = 0 ; | |
24866 | char *kwnames[] = { | |
24867 | (char *) "self", NULL | |
24868 | }; | |
24869 | ||
24870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
24871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24872 | { | |
24873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24874 | { | |
24875 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
24876 | result = (wxPoint *) &_result_ref; | |
24877 | } | |
24878 | ||
24879 | wxPyEndAllowThreads(__tstate); | |
24880 | if (PyErr_Occurred()) SWIG_fail; | |
24881 | } | |
24882 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
24883 | return resultobj; | |
24884 | fail: | |
24885 | return NULL; | |
24886 | } | |
24887 | ||
24888 | ||
24889 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24890 | PyObject *resultobj; | |
24891 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24892 | wxPoint *arg2 = 0 ; | |
24893 | wxPoint temp2 ; | |
24894 | PyObject * obj0 = 0 ; | |
24895 | PyObject * obj1 = 0 ; | |
24896 | char *kwnames[] = { | |
24897 | (char *) "self",(char *) "pos", NULL | |
24898 | }; | |
24899 | ||
24900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
24901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24902 | { | |
24903 | arg2 = &temp2; | |
24904 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24905 | } | |
24906 | { | |
24907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24908 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
24909 | ||
24910 | wxPyEndAllowThreads(__tstate); | |
24911 | if (PyErr_Occurred()) SWIG_fail; | |
24912 | } | |
24913 | Py_INCREF(Py_None); resultobj = Py_None; | |
24914 | return resultobj; | |
24915 | fail: | |
24916 | return NULL; | |
24917 | } | |
24918 | ||
24919 | ||
24920 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24921 | PyObject *resultobj; | |
24922 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24923 | wxString *result; | |
24924 | PyObject * obj0 = 0 ; | |
24925 | char *kwnames[] = { | |
24926 | (char *) "self", NULL | |
24927 | }; | |
24928 | ||
24929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
24930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24931 | { | |
24932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24933 | { | |
24934 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
24935 | result = (wxString *) &_result_ref; | |
24936 | } | |
24937 | ||
24938 | wxPyEndAllowThreads(__tstate); | |
24939 | if (PyErr_Occurred()) SWIG_fail; | |
24940 | } | |
0f774bef RD |
24941 | { |
24942 | #if wxUSE_UNICODE | |
24943 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24944 | #else | |
24945 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24946 | #endif | |
24947 | } | |
d14a1e28 RD |
24948 | return resultobj; |
24949 | fail: | |
24950 | return NULL; | |
24951 | } | |
24952 | ||
24953 | ||
24954 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24955 | PyObject *resultobj; | |
24956 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24957 | wxString *arg2 = 0 ; | |
423f194a | 24958 | bool temp2 = False ; |
d14a1e28 RD |
24959 | PyObject * obj0 = 0 ; |
24960 | PyObject * obj1 = 0 ; | |
24961 | char *kwnames[] = { | |
24962 | (char *) "self",(char *) "link", NULL | |
24963 | }; | |
24964 | ||
24965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
24966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24967 | { | |
24968 | arg2 = wxString_in_helper(obj1); | |
24969 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24970 | temp2 = True; |
d14a1e28 RD |
24971 | } |
24972 | { | |
24973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24974 | (arg1)->SetLink((wxString const &)*arg2); | |
24975 | ||
24976 | wxPyEndAllowThreads(__tstate); | |
24977 | if (PyErr_Occurred()) SWIG_fail; | |
24978 | } | |
24979 | Py_INCREF(Py_None); resultobj = Py_None; | |
24980 | { | |
24981 | if (temp2) | |
24982 | delete arg2; | |
24983 | } | |
24984 | return resultobj; | |
24985 | fail: | |
24986 | { | |
24987 | if (temp2) | |
24988 | delete arg2; | |
24989 | } | |
24990 | return NULL; | |
24991 | } | |
24992 | ||
24993 | ||
24994 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24995 | PyObject *resultobj; | |
24996 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24997 | wxString *result; | |
24998 | PyObject * obj0 = 0 ; | |
24999 | char *kwnames[] = { | |
25000 | (char *) "self", NULL | |
25001 | }; | |
25002 | ||
25003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
25004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25005 | { | |
25006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25007 | { | |
25008 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
25009 | result = (wxString *) &_result_ref; | |
25010 | } | |
25011 | ||
25012 | wxPyEndAllowThreads(__tstate); | |
25013 | if (PyErr_Occurred()) SWIG_fail; | |
25014 | } | |
0f774bef RD |
25015 | { |
25016 | #if wxUSE_UNICODE | |
25017 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
25018 | #else | |
25019 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
25020 | #endif | |
25021 | } | |
d14a1e28 RD |
25022 | return resultobj; |
25023 | fail: | |
25024 | return NULL; | |
25025 | } | |
25026 | ||
25027 | ||
25028 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25029 | PyObject *resultobj; | |
25030 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
25031 | wxString *arg2 = 0 ; | |
423f194a | 25032 | bool temp2 = False ; |
d14a1e28 RD |
25033 | PyObject * obj0 = 0 ; |
25034 | PyObject * obj1 = 0 ; | |
25035 | char *kwnames[] = { | |
25036 | (char *) "self",(char *) "target", NULL | |
25037 | }; | |
25038 | ||
25039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
25040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25041 | { | |
25042 | arg2 = wxString_in_helper(obj1); | |
25043 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25044 | temp2 = True; |
d14a1e28 RD |
25045 | } |
25046 | { | |
25047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25048 | (arg1)->SetTarget((wxString const &)*arg2); | |
25049 | ||
25050 | wxPyEndAllowThreads(__tstate); | |
25051 | if (PyErr_Occurred()) SWIG_fail; | |
25052 | } | |
25053 | Py_INCREF(Py_None); resultobj = Py_None; | |
25054 | { | |
25055 | if (temp2) | |
25056 | delete arg2; | |
25057 | } | |
25058 | return resultobj; | |
25059 | fail: | |
25060 | { | |
25061 | if (temp2) | |
25062 | delete arg2; | |
25063 | } | |
25064 | return NULL; | |
25065 | } | |
25066 | ||
25067 | ||
25068 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
25069 | PyObject *obj; | |
25070 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25071 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
25072 | Py_INCREF(obj); | |
25073 | return Py_BuildValue((char *)""); | |
25074 | } | |
25075 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25076 | PyObject *resultobj; | |
25077 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 25078 | bool arg2 = (bool) True ; |
d14a1e28 RD |
25079 | wxContextHelp *result; |
25080 | PyObject * obj0 = 0 ; | |
25081 | PyObject * obj1 = 0 ; | |
25082 | char *kwnames[] = { | |
25083 | (char *) "window",(char *) "doNow", NULL | |
25084 | }; | |
25085 | ||
25086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
25087 | if (obj0) { | |
25088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25089 | } | |
25090 | if (obj1) { | |
25091 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
25092 | if (PyErr_Occurred()) SWIG_fail; | |
25093 | } | |
25094 | { | |
25095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25096 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
25097 | ||
25098 | wxPyEndAllowThreads(__tstate); | |
25099 | if (PyErr_Occurred()) SWIG_fail; | |
25100 | } | |
25101 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
25102 | return resultobj; | |
25103 | fail: | |
25104 | return NULL; | |
25105 | } | |
25106 | ||
25107 | ||
25108 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25109 | PyObject *resultobj; | |
25110 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
25111 | PyObject * obj0 = 0 ; | |
25112 | char *kwnames[] = { | |
25113 | (char *) "self", NULL | |
25114 | }; | |
25115 | ||
25116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
25117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25118 | { | |
25119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25120 | delete arg1; | |
25121 | ||
25122 | wxPyEndAllowThreads(__tstate); | |
25123 | if (PyErr_Occurred()) SWIG_fail; | |
25124 | } | |
25125 | Py_INCREF(Py_None); resultobj = Py_None; | |
25126 | return resultobj; | |
25127 | fail: | |
25128 | return NULL; | |
25129 | } | |
25130 | ||
25131 | ||
25132 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25133 | PyObject *resultobj; | |
25134 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
25135 | wxWindow *arg2 = (wxWindow *) NULL ; | |
25136 | bool result; | |
25137 | PyObject * obj0 = 0 ; | |
25138 | PyObject * obj1 = 0 ; | |
25139 | char *kwnames[] = { | |
25140 | (char *) "self",(char *) "window", NULL | |
25141 | }; | |
25142 | ||
25143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
25144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25145 | if (obj1) { | |
25146 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25147 | } | |
25148 | { | |
25149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25150 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
25151 | ||
25152 | wxPyEndAllowThreads(__tstate); | |
25153 | if (PyErr_Occurred()) SWIG_fail; | |
25154 | } | |
25155 | resultobj = PyInt_FromLong((long)result); | |
25156 | return resultobj; | |
25157 | fail: | |
25158 | return NULL; | |
25159 | } | |
25160 | ||
25161 | ||
25162 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25163 | PyObject *resultobj; | |
25164 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
25165 | bool result; | |
25166 | PyObject * obj0 = 0 ; | |
25167 | char *kwnames[] = { | |
25168 | (char *) "self", NULL | |
25169 | }; | |
25170 | ||
25171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
25172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25173 | { | |
25174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25175 | result = (bool)(arg1)->EndContextHelp(); | |
25176 | ||
25177 | wxPyEndAllowThreads(__tstate); | |
25178 | if (PyErr_Occurred()) SWIG_fail; | |
25179 | } | |
25180 | resultobj = PyInt_FromLong((long)result); | |
25181 | return resultobj; | |
25182 | fail: | |
25183 | return NULL; | |
25184 | } | |
25185 | ||
25186 | ||
25187 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
25188 | PyObject *obj; | |
25189 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25190 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
25191 | Py_INCREF(obj); | |
25192 | return Py_BuildValue((char *)""); | |
25193 | } | |
25194 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25195 | PyObject *resultobj; | |
25196 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 25197 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
25198 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
25199 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25200 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25201 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25202 | long arg5 = (long) wxBU_AUTODRAW ; | |
25203 | wxContextHelpButton *result; | |
25204 | wxPoint temp3 ; | |
25205 | wxSize temp4 ; | |
25206 | PyObject * obj0 = 0 ; | |
25207 | PyObject * obj2 = 0 ; | |
25208 | PyObject * obj3 = 0 ; | |
25209 | char *kwnames[] = { | |
25210 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
25211 | }; | |
25212 | ||
25213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOl:new_ContextHelpButton",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
25214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25215 | if (obj2) { | |
25216 | { | |
25217 | arg3 = &temp3; | |
25218 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25219 | } | |
25220 | } | |
25221 | if (obj3) { | |
25222 | { | |
25223 | arg4 = &temp4; | |
25224 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25225 | } | |
25226 | } | |
25227 | { | |
25228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25229 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
25230 | ||
25231 | wxPyEndAllowThreads(__tstate); | |
25232 | if (PyErr_Occurred()) SWIG_fail; | |
25233 | } | |
25234 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
25235 | return resultobj; | |
25236 | fail: | |
25237 | return NULL; | |
25238 | } | |
25239 | ||
25240 | ||
25241 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
25242 | PyObject *obj; | |
25243 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25244 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
25245 | Py_INCREF(obj); | |
25246 | return Py_BuildValue((char *)""); | |
25247 | } | |
25248 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25249 | PyObject *resultobj; | |
25250 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25251 | wxHelpProvider *result; | |
25252 | PyObject * obj0 = 0 ; | |
25253 | char *kwnames[] = { | |
25254 | (char *) "helpProvider", NULL | |
25255 | }; | |
25256 | ||
25257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
25258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25259 | { | |
25260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25261 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
25262 | ||
25263 | wxPyEndAllowThreads(__tstate); | |
25264 | if (PyErr_Occurred()) SWIG_fail; | |
25265 | } | |
25266 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
25267 | return resultobj; | |
25268 | fail: | |
25269 | return NULL; | |
25270 | } | |
25271 | ||
25272 | ||
25273 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25274 | PyObject *resultobj; | |
25275 | wxHelpProvider *result; | |
25276 | char *kwnames[] = { | |
25277 | NULL | |
25278 | }; | |
25279 | ||
25280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
25281 | { | |
25282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25283 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
25284 | ||
25285 | wxPyEndAllowThreads(__tstate); | |
25286 | if (PyErr_Occurred()) SWIG_fail; | |
25287 | } | |
25288 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
25289 | return resultobj; | |
25290 | fail: | |
25291 | return NULL; | |
25292 | } | |
25293 | ||
25294 | ||
25295 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25296 | PyObject *resultobj; | |
25297 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25298 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25299 | wxString result; | |
25300 | PyObject * obj0 = 0 ; | |
25301 | PyObject * obj1 = 0 ; | |
25302 | char *kwnames[] = { | |
25303 | (char *) "self",(char *) "window", NULL | |
25304 | }; | |
25305 | ||
25306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
25307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25308 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25309 | { | |
25310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25311 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
25312 | ||
25313 | wxPyEndAllowThreads(__tstate); | |
25314 | if (PyErr_Occurred()) SWIG_fail; | |
25315 | } | |
25316 | { | |
25317 | #if wxUSE_UNICODE | |
25318 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25319 | #else | |
25320 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25321 | #endif | |
25322 | } | |
25323 | return resultobj; | |
25324 | fail: | |
25325 | return NULL; | |
25326 | } | |
25327 | ||
25328 | ||
25329 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25330 | PyObject *resultobj; | |
25331 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25332 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25333 | bool result; | |
25334 | PyObject * obj0 = 0 ; | |
25335 | PyObject * obj1 = 0 ; | |
25336 | char *kwnames[] = { | |
25337 | (char *) "self",(char *) "window", NULL | |
25338 | }; | |
25339 | ||
25340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
25341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25342 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25343 | { | |
25344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25345 | result = (bool)(arg1)->ShowHelp(arg2); | |
25346 | ||
25347 | wxPyEndAllowThreads(__tstate); | |
25348 | if (PyErr_Occurred()) SWIG_fail; | |
25349 | } | |
25350 | resultobj = PyInt_FromLong((long)result); | |
25351 | return resultobj; | |
25352 | fail: | |
25353 | return NULL; | |
25354 | } | |
25355 | ||
25356 | ||
25357 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25358 | PyObject *resultobj; | |
25359 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25360 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25361 | wxString *arg3 = 0 ; | |
423f194a | 25362 | bool temp3 = False ; |
d14a1e28 RD |
25363 | PyObject * obj0 = 0 ; |
25364 | PyObject * obj1 = 0 ; | |
25365 | PyObject * obj2 = 0 ; | |
25366 | char *kwnames[] = { | |
25367 | (char *) "self",(char *) "window",(char *) "text", NULL | |
25368 | }; | |
25369 | ||
25370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25372 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25373 | { | |
25374 | arg3 = wxString_in_helper(obj2); | |
25375 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25376 | temp3 = True; |
d14a1e28 RD |
25377 | } |
25378 | { | |
25379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25380 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
25381 | ||
25382 | wxPyEndAllowThreads(__tstate); | |
25383 | if (PyErr_Occurred()) SWIG_fail; | |
25384 | } | |
25385 | Py_INCREF(Py_None); resultobj = Py_None; | |
25386 | { | |
25387 | if (temp3) | |
25388 | delete arg3; | |
25389 | } | |
25390 | return resultobj; | |
25391 | fail: | |
25392 | { | |
25393 | if (temp3) | |
25394 | delete arg3; | |
25395 | } | |
25396 | return NULL; | |
25397 | } | |
25398 | ||
25399 | ||
25400 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25401 | PyObject *resultobj; | |
25402 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
423f194a | 25403 | int arg2 ; |
d14a1e28 | 25404 | wxString *arg3 = 0 ; |
423f194a | 25405 | bool temp3 = False ; |
d14a1e28 RD |
25406 | PyObject * obj0 = 0 ; |
25407 | PyObject * obj2 = 0 ; | |
25408 | char *kwnames[] = { | |
25409 | (char *) "self",(char *) "id",(char *) "text", NULL | |
25410 | }; | |
25411 | ||
25412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:HelpProvider_AddHelpById",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
25413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25414 | { | |
25415 | arg3 = wxString_in_helper(obj2); | |
25416 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25417 | temp3 = True; |
d14a1e28 RD |
25418 | } |
25419 | { | |
25420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25421 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
25422 | ||
25423 | wxPyEndAllowThreads(__tstate); | |
25424 | if (PyErr_Occurred()) SWIG_fail; | |
25425 | } | |
25426 | Py_INCREF(Py_None); resultobj = Py_None; | |
25427 | { | |
25428 | if (temp3) | |
25429 | delete arg3; | |
25430 | } | |
25431 | return resultobj; | |
25432 | fail: | |
25433 | { | |
25434 | if (temp3) | |
25435 | delete arg3; | |
25436 | } | |
25437 | return NULL; | |
25438 | } | |
25439 | ||
25440 | ||
25441 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25442 | PyObject *resultobj; | |
25443 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25444 | PyObject * obj0 = 0 ; | |
25445 | char *kwnames[] = { | |
25446 | (char *) "self", NULL | |
25447 | }; | |
25448 | ||
25449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
25450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25451 | { | |
25452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25453 | wxHelpProvider_Destroy(arg1); | |
25454 | ||
25455 | wxPyEndAllowThreads(__tstate); | |
25456 | if (PyErr_Occurred()) SWIG_fail; | |
25457 | } | |
25458 | Py_INCREF(Py_None); resultobj = Py_None; | |
25459 | return resultobj; | |
25460 | fail: | |
25461 | return NULL; | |
25462 | } | |
25463 | ||
25464 | ||
25465 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
25466 | PyObject *obj; | |
25467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25468 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
25469 | Py_INCREF(obj); | |
25470 | return Py_BuildValue((char *)""); | |
25471 | } | |
25472 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25473 | PyObject *resultobj; | |
25474 | wxSimpleHelpProvider *result; | |
25475 | char *kwnames[] = { | |
25476 | NULL | |
25477 | }; | |
25478 | ||
25479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
25480 | { | |
25481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25482 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
25483 | ||
25484 | wxPyEndAllowThreads(__tstate); | |
25485 | if (PyErr_Occurred()) SWIG_fail; | |
25486 | } | |
25487 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
25488 | return resultobj; | |
25489 | fail: | |
25490 | return NULL; | |
25491 | } | |
25492 | ||
25493 | ||
25494 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
25495 | PyObject *obj; | |
25496 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25497 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
25498 | Py_INCREF(obj); | |
25499 | return Py_BuildValue((char *)""); | |
25500 | } | |
423f194a RD |
25501 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
25502 | PyObject *resultobj; | |
25503 | wxBitmap *arg1 = 0 ; | |
25504 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25505 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25506 | wxGenericDragImage *result; | |
25507 | PyObject * obj0 = 0 ; | |
25508 | PyObject * obj1 = 0 ; | |
25509 | char *kwnames[] = { | |
25510 | (char *) "image",(char *) "cursor", NULL | |
25511 | }; | |
25512 | ||
25513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
25514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25515 | if (arg1 == NULL) { | |
25516 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25517 | } | |
25518 | if (obj1) { | |
25519 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25520 | if (arg2 == NULL) { | |
25521 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25522 | } | |
25523 | } | |
25524 | { | |
25525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25526 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
25527 | ||
25528 | wxPyEndAllowThreads(__tstate); | |
25529 | if (PyErr_Occurred()) SWIG_fail; | |
25530 | } | |
25531 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25532 | return resultobj; | |
25533 | fail: | |
25534 | return NULL; | |
25535 | } | |
25536 | ||
25537 | ||
25538 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25539 | PyObject *resultobj; | |
25540 | wxIcon *arg1 = 0 ; | |
25541 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25542 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25543 | wxGenericDragImage *result; | |
25544 | PyObject * obj0 = 0 ; | |
25545 | PyObject * obj1 = 0 ; | |
25546 | char *kwnames[] = { | |
25547 | (char *) "image",(char *) "cursor", NULL | |
25548 | }; | |
25549 | ||
25550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
25551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25552 | if (arg1 == NULL) { | |
25553 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25554 | } | |
25555 | if (obj1) { | |
25556 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25557 | if (arg2 == NULL) { | |
25558 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25559 | } | |
25560 | } | |
25561 | { | |
25562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25563 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
25564 | ||
25565 | wxPyEndAllowThreads(__tstate); | |
25566 | if (PyErr_Occurred()) SWIG_fail; | |
25567 | } | |
25568 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25569 | return resultobj; | |
25570 | fail: | |
25571 | return NULL; | |
25572 | } | |
25573 | ||
25574 | ||
25575 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25576 | PyObject *resultobj; | |
25577 | wxString *arg1 = 0 ; | |
25578 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25579 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25580 | wxGenericDragImage *result; | |
25581 | bool temp1 = False ; | |
25582 | PyObject * obj0 = 0 ; | |
25583 | PyObject * obj1 = 0 ; | |
25584 | char *kwnames[] = { | |
25585 | (char *) "str",(char *) "cursor", NULL | |
25586 | }; | |
25587 | ||
25588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
25589 | { | |
25590 | arg1 = wxString_in_helper(obj0); | |
25591 | if (arg1 == NULL) SWIG_fail; | |
25592 | temp1 = True; | |
25593 | } | |
25594 | if (obj1) { | |
25595 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25596 | if (arg2 == NULL) { | |
25597 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25598 | } | |
25599 | } | |
25600 | { | |
25601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25602 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
25603 | ||
25604 | wxPyEndAllowThreads(__tstate); | |
25605 | if (PyErr_Occurred()) SWIG_fail; | |
25606 | } | |
25607 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25608 | { | |
25609 | if (temp1) | |
25610 | delete arg1; | |
25611 | } | |
25612 | return resultobj; | |
25613 | fail: | |
25614 | { | |
25615 | if (temp1) | |
25616 | delete arg1; | |
25617 | } | |
25618 | return NULL; | |
25619 | } | |
25620 | ||
25621 | ||
25622 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25623 | PyObject *resultobj; | |
25624 | wxPyTreeCtrl *arg1 = 0 ; | |
25625 | wxTreeItemId *arg2 = 0 ; | |
25626 | wxGenericDragImage *result; | |
25627 | PyObject * obj0 = 0 ; | |
25628 | PyObject * obj1 = 0 ; | |
25629 | char *kwnames[] = { | |
25630 | (char *) "treeCtrl",(char *) "id", NULL | |
25631 | }; | |
25632 | ||
25633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
25634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25635 | if (arg1 == NULL) { | |
25636 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25637 | } | |
25638 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25639 | if (arg2 == NULL) { | |
25640 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25641 | } | |
25642 | { | |
25643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25644 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
25645 | ||
25646 | wxPyEndAllowThreads(__tstate); | |
25647 | if (PyErr_Occurred()) SWIG_fail; | |
25648 | } | |
25649 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25650 | return resultobj; | |
25651 | fail: | |
25652 | return NULL; | |
25653 | } | |
25654 | ||
25655 | ||
25656 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25657 | PyObject *resultobj; | |
25658 | wxPyListCtrl *arg1 = 0 ; | |
25659 | long arg2 ; | |
25660 | wxGenericDragImage *result; | |
25661 | PyObject * obj0 = 0 ; | |
25662 | char *kwnames[] = { | |
25663 | (char *) "listCtrl",(char *) "id", NULL | |
25664 | }; | |
25665 | ||
25666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_DragListItem",kwnames,&obj0,&arg2)) goto fail; | |
25667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25668 | if (arg1 == NULL) { | |
25669 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25670 | } | |
25671 | { | |
25672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25673 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
25674 | ||
25675 | wxPyEndAllowThreads(__tstate); | |
25676 | if (PyErr_Occurred()) SWIG_fail; | |
25677 | } | |
25678 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25679 | return resultobj; | |
25680 | fail: | |
25681 | return NULL; | |
25682 | } | |
25683 | ||
25684 | ||
25685 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25686 | PyObject *resultobj; | |
25687 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25688 | PyObject * obj0 = 0 ; | |
25689 | char *kwnames[] = { | |
25690 | (char *) "self", NULL | |
25691 | }; | |
25692 | ||
25693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
25694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25695 | { | |
25696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25697 | delete arg1; | |
25698 | ||
25699 | wxPyEndAllowThreads(__tstate); | |
25700 | if (PyErr_Occurred()) SWIG_fail; | |
25701 | } | |
25702 | Py_INCREF(Py_None); resultobj = Py_None; | |
25703 | return resultobj; | |
25704 | fail: | |
25705 | return NULL; | |
25706 | } | |
25707 | ||
25708 | ||
25709 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25710 | PyObject *resultobj; | |
25711 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25712 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
25713 | PyObject * obj0 = 0 ; | |
25714 | PyObject * obj1 = 0 ; | |
25715 | char *kwnames[] = { | |
25716 | (char *) "self",(char *) "bitmap", NULL | |
25717 | }; | |
25718 | ||
25719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25721 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25722 | { | |
25723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25724 | (arg1)->SetBackingBitmap(arg2); | |
25725 | ||
25726 | wxPyEndAllowThreads(__tstate); | |
25727 | if (PyErr_Occurred()) SWIG_fail; | |
25728 | } | |
25729 | Py_INCREF(Py_None); resultobj = Py_None; | |
25730 | return resultobj; | |
25731 | fail: | |
25732 | return NULL; | |
25733 | } | |
25734 | ||
25735 | ||
25736 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25737 | PyObject *resultobj; | |
25738 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25739 | wxPoint *arg2 = 0 ; | |
25740 | wxWindow *arg3 = (wxWindow *) 0 ; | |
25741 | bool arg4 = (bool) False ; | |
25742 | wxRect *arg5 = (wxRect *) NULL ; | |
25743 | bool result; | |
25744 | wxPoint temp2 ; | |
25745 | PyObject * obj0 = 0 ; | |
25746 | PyObject * obj1 = 0 ; | |
25747 | PyObject * obj2 = 0 ; | |
25748 | PyObject * obj3 = 0 ; | |
25749 | PyObject * obj4 = 0 ; | |
25750 | char *kwnames[] = { | |
25751 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
25752 | }; | |
25753 | ||
25754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25756 | { | |
25757 | arg2 = &temp2; | |
25758 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25759 | } | |
25760 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25761 | if (obj3) { | |
25762 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
25763 | if (PyErr_Occurred()) SWIG_fail; | |
25764 | } | |
25765 | if (obj4) { | |
25766 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25767 | } | |
25768 | { | |
25769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25770 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
25771 | ||
25772 | wxPyEndAllowThreads(__tstate); | |
25773 | if (PyErr_Occurred()) SWIG_fail; | |
25774 | } | |
25775 | resultobj = PyInt_FromLong((long)result); | |
25776 | return resultobj; | |
25777 | fail: | |
25778 | return NULL; | |
25779 | } | |
25780 | ||
25781 | ||
25782 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25783 | PyObject *resultobj; | |
25784 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25785 | wxPoint *arg2 = 0 ; | |
25786 | wxWindow *arg3 = (wxWindow *) 0 ; | |
25787 | wxWindow *arg4 = (wxWindow *) 0 ; | |
25788 | bool result; | |
25789 | wxPoint temp2 ; | |
25790 | PyObject * obj0 = 0 ; | |
25791 | PyObject * obj1 = 0 ; | |
25792 | PyObject * obj2 = 0 ; | |
25793 | PyObject * obj3 = 0 ; | |
25794 | char *kwnames[] = { | |
25795 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
25796 | }; | |
25797 | ||
25798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25800 | { | |
25801 | arg2 = &temp2; | |
25802 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25803 | } | |
25804 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25805 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25806 | { | |
25807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25808 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
25809 | ||
25810 | wxPyEndAllowThreads(__tstate); | |
25811 | if (PyErr_Occurred()) SWIG_fail; | |
25812 | } | |
25813 | resultobj = PyInt_FromLong((long)result); | |
25814 | return resultobj; | |
25815 | fail: | |
25816 | return NULL; | |
25817 | } | |
25818 | ||
25819 | ||
25820 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25821 | PyObject *resultobj; | |
25822 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25823 | bool result; | |
25824 | PyObject * obj0 = 0 ; | |
25825 | char *kwnames[] = { | |
25826 | (char *) "self", NULL | |
25827 | }; | |
25828 | ||
25829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
25830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25831 | { | |
25832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25833 | result = (bool)(arg1)->EndDrag(); | |
25834 | ||
25835 | wxPyEndAllowThreads(__tstate); | |
25836 | if (PyErr_Occurred()) SWIG_fail; | |
25837 | } | |
25838 | resultobj = PyInt_FromLong((long)result); | |
25839 | return resultobj; | |
25840 | fail: | |
25841 | return NULL; | |
25842 | } | |
25843 | ||
25844 | ||
25845 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25846 | PyObject *resultobj; | |
25847 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25848 | wxPoint *arg2 = 0 ; | |
25849 | bool result; | |
25850 | wxPoint temp2 ; | |
25851 | PyObject * obj0 = 0 ; | |
25852 | PyObject * obj1 = 0 ; | |
25853 | char *kwnames[] = { | |
25854 | (char *) "self",(char *) "pt", NULL | |
25855 | }; | |
25856 | ||
25857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
25858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25859 | { | |
25860 | arg2 = &temp2; | |
25861 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25862 | } | |
25863 | { | |
25864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25865 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
25866 | ||
25867 | wxPyEndAllowThreads(__tstate); | |
25868 | if (PyErr_Occurred()) SWIG_fail; | |
25869 | } | |
25870 | resultobj = PyInt_FromLong((long)result); | |
25871 | return resultobj; | |
25872 | fail: | |
25873 | return NULL; | |
25874 | } | |
25875 | ||
25876 | ||
25877 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25878 | PyObject *resultobj; | |
25879 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25880 | bool result; | |
25881 | PyObject * obj0 = 0 ; | |
25882 | char *kwnames[] = { | |
25883 | (char *) "self", NULL | |
25884 | }; | |
25885 | ||
25886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
25887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25888 | { | |
25889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25890 | result = (bool)(arg1)->Show(); | |
25891 | ||
25892 | wxPyEndAllowThreads(__tstate); | |
25893 | if (PyErr_Occurred()) SWIG_fail; | |
25894 | } | |
25895 | resultobj = PyInt_FromLong((long)result); | |
25896 | return resultobj; | |
25897 | fail: | |
25898 | return NULL; | |
25899 | } | |
25900 | ||
25901 | ||
25902 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25903 | PyObject *resultobj; | |
25904 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25905 | bool result; | |
25906 | PyObject * obj0 = 0 ; | |
25907 | char *kwnames[] = { | |
25908 | (char *) "self", NULL | |
25909 | }; | |
25910 | ||
25911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
25912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25913 | { | |
25914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25915 | result = (bool)(arg1)->Hide(); | |
25916 | ||
25917 | wxPyEndAllowThreads(__tstate); | |
25918 | if (PyErr_Occurred()) SWIG_fail; | |
25919 | } | |
25920 | resultobj = PyInt_FromLong((long)result); | |
25921 | return resultobj; | |
25922 | fail: | |
25923 | return NULL; | |
25924 | } | |
25925 | ||
25926 | ||
25927 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25928 | PyObject *resultobj; | |
25929 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25930 | wxPoint *arg2 = 0 ; | |
25931 | wxRect result; | |
25932 | wxPoint temp2 ; | |
25933 | PyObject * obj0 = 0 ; | |
25934 | PyObject * obj1 = 0 ; | |
25935 | char *kwnames[] = { | |
25936 | (char *) "self",(char *) "pos", NULL | |
25937 | }; | |
25938 | ||
25939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
25940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25941 | { | |
25942 | arg2 = &temp2; | |
25943 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25944 | } | |
25945 | { | |
25946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25947 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
25948 | ||
25949 | wxPyEndAllowThreads(__tstate); | |
25950 | if (PyErr_Occurred()) SWIG_fail; | |
25951 | } | |
25952 | { | |
25953 | wxRect * resultptr; | |
25954 | resultptr = new wxRect((wxRect &) result); | |
25955 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
25956 | } | |
25957 | return resultobj; | |
25958 | fail: | |
25959 | return NULL; | |
25960 | } | |
25961 | ||
25962 | ||
25963 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25964 | PyObject *resultobj; | |
25965 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25966 | wxDC *arg2 = 0 ; | |
25967 | wxPoint *arg3 = 0 ; | |
25968 | bool result; | |
25969 | wxPoint temp3 ; | |
25970 | PyObject * obj0 = 0 ; | |
25971 | PyObject * obj1 = 0 ; | |
25972 | PyObject * obj2 = 0 ; | |
25973 | char *kwnames[] = { | |
25974 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
25975 | }; | |
25976 | ||
25977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25979 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25980 | if (arg2 == NULL) { | |
25981 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25982 | } | |
25983 | { | |
25984 | arg3 = &temp3; | |
25985 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25986 | } | |
25987 | { | |
25988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25989 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
25990 | ||
25991 | wxPyEndAllowThreads(__tstate); | |
25992 | if (PyErr_Occurred()) SWIG_fail; | |
25993 | } | |
25994 | resultobj = PyInt_FromLong((long)result); | |
25995 | return resultobj; | |
25996 | fail: | |
25997 | return NULL; | |
25998 | } | |
25999 | ||
26000 | ||
26001 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26002 | PyObject *resultobj; | |
26003 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26004 | wxDC *arg2 = 0 ; | |
26005 | wxMemoryDC *arg3 = 0 ; | |
26006 | wxRect *arg4 = 0 ; | |
26007 | wxRect *arg5 = 0 ; | |
26008 | bool result; | |
26009 | wxRect temp4 ; | |
26010 | wxRect temp5 ; | |
26011 | PyObject * obj0 = 0 ; | |
26012 | PyObject * obj1 = 0 ; | |
26013 | PyObject * obj2 = 0 ; | |
26014 | PyObject * obj3 = 0 ; | |
26015 | PyObject * obj4 = 0 ; | |
26016 | char *kwnames[] = { | |
26017 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
26018 | }; | |
26019 | ||
26020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26022 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26023 | if (arg2 == NULL) { | |
26024 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26025 | } | |
26026 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26027 | if (arg3 == NULL) { | |
26028 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26029 | } | |
26030 | { | |
26031 | arg4 = &temp4; | |
26032 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
26033 | } | |
26034 | { | |
26035 | arg5 = &temp5; | |
26036 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
26037 | } | |
26038 | { | |
26039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26040 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
26041 | ||
26042 | wxPyEndAllowThreads(__tstate); | |
26043 | if (PyErr_Occurred()) SWIG_fail; | |
26044 | } | |
26045 | resultobj = PyInt_FromLong((long)result); | |
26046 | return resultobj; | |
26047 | fail: | |
26048 | return NULL; | |
26049 | } | |
26050 | ||
26051 | ||
26052 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26053 | PyObject *resultobj; | |
26054 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26055 | wxPoint *arg2 = 0 ; | |
26056 | wxPoint *arg3 = 0 ; | |
26057 | bool arg4 ; | |
26058 | bool arg5 ; | |
26059 | bool result; | |
26060 | wxPoint temp2 ; | |
26061 | wxPoint temp3 ; | |
26062 | PyObject * obj0 = 0 ; | |
26063 | PyObject * obj1 = 0 ; | |
26064 | PyObject * obj2 = 0 ; | |
26065 | PyObject * obj3 = 0 ; | |
26066 | PyObject * obj4 = 0 ; | |
26067 | char *kwnames[] = { | |
26068 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
26069 | }; | |
26070 | ||
26071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26073 | { | |
26074 | arg2 = &temp2; | |
26075 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26076 | } | |
26077 | { | |
26078 | arg3 = &temp3; | |
26079 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26080 | } | |
26081 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
26082 | if (PyErr_Occurred()) SWIG_fail; | |
26083 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
26084 | if (PyErr_Occurred()) SWIG_fail; | |
26085 | { | |
26086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26087 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
26088 | ||
26089 | wxPyEndAllowThreads(__tstate); | |
26090 | if (PyErr_Occurred()) SWIG_fail; | |
26091 | } | |
26092 | resultobj = PyInt_FromLong((long)result); | |
26093 | return resultobj; | |
26094 | fail: | |
26095 | return NULL; | |
26096 | } | |
26097 | ||
26098 | ||
26099 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
26100 | PyObject *obj; | |
26101 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26102 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
26103 | Py_INCREF(obj); | |
26104 | return Py_BuildValue((char *)""); | |
26105 | } | |
26106 | static PyMethodDef SwigMethods[] = { | |
26107 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
26108 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
26109 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
26110 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
26111 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
26112 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
26113 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
26114 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
26115 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26116 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
26117 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
26118 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
26119 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
26120 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
26121 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
26122 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
26123 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
26124 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
26125 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
26126 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
26127 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
26128 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
26129 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
26130 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26131 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26132 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
26133 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26134 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
26135 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
26136 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
26137 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
26138 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
26139 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
26140 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
26141 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
26142 | { (char *)"Choice_GetColumns", (PyCFunction) _wrap_Choice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
26143 | { (char *)"Choice_SetColumns", (PyCFunction) _wrap_Choice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
26144 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26145 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26146 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
26147 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
26148 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
26149 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
26150 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26151 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26152 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26153 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
26154 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
26155 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
26156 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
26157 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
26158 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
26159 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
100c4552 | 26160 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
26161 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
26162 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
26163 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
26164 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
26165 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
26166 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
26167 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
26168 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
26169 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26170 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
26171 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26172 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26173 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26174 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
26175 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
26176 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
26177 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
26178 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
26179 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
26180 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
26181 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26182 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
26183 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
26184 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
26185 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
26186 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26187 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
26188 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
26189 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
26190 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
26191 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
26192 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
26193 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26194 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26195 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
26196 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26197 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26198 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
26199 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
26200 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
26201 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
26202 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26203 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
26204 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
26205 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
26206 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
26207 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26208 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
26209 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
26210 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
26211 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26212 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
26213 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
26214 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
26215 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26216 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26217 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
26218 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, | |
26219 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
26220 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
26221 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26222 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
26223 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
26224 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26225 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
26226 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
26227 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
26228 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, | |
26229 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26230 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26231 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26232 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
26233 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
26234 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
26235 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
26236 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
26237 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26238 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26239 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
26240 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
26241 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
26242 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
26243 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
26244 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
26245 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26246 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26247 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26248 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
26249 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
26250 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
26251 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
26252 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
26253 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
26254 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
26255 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
26256 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26257 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26258 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26259 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26260 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26261 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
26262 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
26263 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
26264 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
26265 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
26266 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
26267 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
26268 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
26269 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26270 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26271 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
26272 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
26273 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
26274 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
26275 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
26276 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
26277 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
26278 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
26279 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
26280 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
26281 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
26282 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
26283 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
26284 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
26285 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
26286 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
26287 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
26288 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
26289 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
26290 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
26291 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
26292 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
26293 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
26294 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
26295 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
26296 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
26297 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
26298 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
26299 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
26300 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
26301 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
26302 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
26303 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26304 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
26305 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
26306 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
26307 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
26308 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
26309 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
26310 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
26311 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
26312 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
26313 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
26314 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
26315 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
26316 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
26317 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
26318 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
26319 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26320 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
26321 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26322 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
26323 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
26324 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
26325 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
26326 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
26327 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26328 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26329 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
26330 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
26331 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26332 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
26333 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
26334 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26335 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26336 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
26337 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26338 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26339 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26340 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26341 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26342 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
26343 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26344 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
26345 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
26346 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26347 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
26348 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, | |
26349 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
26350 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26351 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26352 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26353 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26354 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26355 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
26356 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
26357 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
26358 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
26359 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
26360 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
26361 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
26362 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
26363 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
26364 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
26365 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
26366 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
26367 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26368 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26369 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26370 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
26371 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
26372 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
26373 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
26374 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26375 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26376 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26377 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
26378 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
26379 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
26380 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
26381 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
26382 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26383 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
26384 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26385 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
26386 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
26387 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
26388 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
26389 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
26390 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
26391 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
26392 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
26393 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
26394 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26395 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
26396 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
26397 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
26398 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
26399 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
26400 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
26401 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26402 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
26403 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
26404 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26405 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26406 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26407 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
26408 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
26409 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26410 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
26411 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
26412 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
26413 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
26414 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
26415 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
26416 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26417 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
26418 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
26419 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
26420 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26421 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26422 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
26423 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
26424 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
26425 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
26426 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
26427 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
26428 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
26429 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
26430 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
26431 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26432 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
26433 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
26434 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
26435 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
26436 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
26437 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
26438 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
26439 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26440 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
26441 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
26442 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
26443 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
26444 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
26445 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
26446 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
26447 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
26448 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
26449 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
26450 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
26451 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
26452 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
26453 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26454 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
26455 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
26456 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
26457 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
26458 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
26459 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
26460 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
26461 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
26462 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
26463 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
26464 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26465 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26466 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26467 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26468 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26469 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26470 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
26471 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
26472 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
26473 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26474 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26475 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26476 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26477 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26478 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
26479 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
26480 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
26481 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
26482 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
26483 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
26484 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
cbd72d4f RD |
26485 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
26486 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
26487 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
26488 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
26489 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
26490 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
26491 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
26492 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
26493 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
26494 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
26495 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
26496 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
26497 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
26498 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
26499 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
26500 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
26501 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
26502 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
26503 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
26504 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
26505 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26506 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26507 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26508 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26509 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
26510 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
26511 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
26512 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
26513 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
26514 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
26515 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
26516 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
26517 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
26518 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
26519 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
26520 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
26521 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
26522 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
26523 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
26524 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
cbd72d4f | 26525 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
26526 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
26527 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
26528 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
26529 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
26530 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
26531 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
26532 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
26533 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
26534 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26535 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26536 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26537 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26538 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26539 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
26540 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26541 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26542 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26543 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26544 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
26545 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
26546 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
26547 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
26548 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
26549 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
26550 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
26551 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26552 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
26553 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
26554 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
26555 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
26556 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
26557 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
26558 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
26559 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26560 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26561 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26562 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
26563 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26564 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26565 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
26566 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
26567 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
26568 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
26569 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
26570 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
26571 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
26572 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
26573 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26574 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26575 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26576 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
26577 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
26578 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
26579 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
26580 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
26581 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
26582 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
26583 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
26584 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
26585 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
26586 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
26587 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
26588 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
26589 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
26590 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
26591 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
26592 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
26593 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
26594 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
26595 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
26596 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
26597 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
26598 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
26599 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
26600 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
26601 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
26602 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
26603 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
26604 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
26605 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
26606 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
26607 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
26608 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
26609 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
26610 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
26611 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26612 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
26613 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26614 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
26615 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
26616 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
26617 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
26618 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
26619 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
26620 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
26621 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
26622 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
26623 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
26624 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26625 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26626 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26627 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26628 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26629 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26630 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26631 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26632 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
26633 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
26634 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
26635 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
26636 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
26637 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
26638 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
26639 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
26640 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
26641 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
26642 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26643 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26644 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26645 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26646 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
26647 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
26648 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
26649 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
26650 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
26651 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26652 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26653 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
26654 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26655 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26656 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
26657 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
26658 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
26659 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
26660 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26661 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26662 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26663 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
26664 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
26665 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
26666 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
26667 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
26668 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
26669 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
26670 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
26671 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
26672 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
26673 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26674 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
26675 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
26676 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
26677 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26678 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
26679 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
26680 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
26681 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
26682 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
26683 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
26684 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
26685 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
26686 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26687 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26688 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26689 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26690 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
26691 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
26692 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
26693 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
26694 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
26695 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
26696 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
26697 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
26698 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
26699 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
26700 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
26701 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
26702 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
26703 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
26704 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
26705 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
26706 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
26707 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
26708 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
26709 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
26710 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
26711 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
26712 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
26713 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
26714 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
26715 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
26716 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26717 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
26718 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26719 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
26720 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
26721 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
26722 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
26723 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
26724 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
26725 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
26726 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
26727 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
26728 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
26729 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
26730 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26731 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26732 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
26733 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 26734 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
26735 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
26736 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26737 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26738 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26739 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26740 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
26741 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
26742 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
26743 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26744 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26745 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26746 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
26747 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26748 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
26749 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26750 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
26751 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26752 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
26753 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26754 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
26755 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26756 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26757 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
26758 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26759 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
26760 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26761 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
26762 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
26763 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
26764 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26765 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26766 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
26767 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
26768 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
26769 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
26770 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
26771 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
26772 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
26773 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
26774 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26775 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
26776 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
26777 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
26778 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
26779 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
26780 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
26781 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
26782 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
26783 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
26784 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
26785 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
26786 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
26787 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
26788 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
26789 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
26790 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
26791 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
26792 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
26793 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
26794 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
26795 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
26796 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
26797 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
26798 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
26799 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
26800 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26801 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
26802 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
26803 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
26804 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
26805 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26806 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
26807 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
26808 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26809 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26810 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26811 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
26812 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
26813 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
26814 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
26815 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
26816 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
26817 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
26818 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
26819 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
26820 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
26821 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
26822 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
26823 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
26824 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26825 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26826 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
26827 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
26828 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
26829 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
26830 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26831 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26832 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26833 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
26834 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
26835 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
26836 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26837 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
26838 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
26839 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
26840 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
26841 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
26842 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
26843 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26844 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
26845 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
26846 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
26847 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
26848 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
26849 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
26850 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
26851 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
26852 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
26853 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
26854 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
26855 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
26856 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
26857 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26858 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26859 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
26860 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
26861 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
26862 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
26863 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
26864 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26865 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26866 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26867 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26868 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
26869 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
26870 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
26871 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
26872 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
26873 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
26874 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
26875 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
26876 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
26877 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26878 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
26879 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
26880 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
423f194a RD |
26881 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
26882 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
26883 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
26884 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
26885 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
26886 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
26887 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26888 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
26889 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
26890 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
26891 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
26892 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
26893 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
26894 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
26895 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
26896 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
26897 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
26898 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
26899 | { NULL, NULL } |
26900 | }; | |
26901 | ||
26902 | ||
26903 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
26904 | ||
26905 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
26906 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
26907 | } | |
26908 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
26909 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
26910 | } | |
26911 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
26912 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
26913 | } | |
26914 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
26915 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
26916 | } | |
26917 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
26918 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
26919 | } | |
26920 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
26921 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
26922 | } | |
26923 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
26924 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
26925 | } | |
26926 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
26927 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
26928 | } | |
26929 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
26930 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
26931 | } | |
26932 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
26933 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
26934 | } | |
26935 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
26936 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26937 | } | |
26938 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
26939 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
26940 | } | |
26941 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
26942 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
26943 | } | |
26944 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
26945 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
26946 | } | |
26947 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
26948 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
26949 | } | |
26950 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
26951 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
26952 | } | |
26953 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
26954 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
26955 | } | |
26956 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
26957 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
26958 | } | |
26959 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
26960 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
26961 | } | |
26962 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
26963 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
26964 | } | |
26965 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
26966 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
26967 | } | |
26968 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
26969 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
26970 | } | |
26971 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
26972 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26973 | } | |
26974 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
26975 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
26976 | } | |
26977 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
26978 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
26979 | } | |
26980 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
26981 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
26982 | } | |
26983 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
26984 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
26985 | } | |
26986 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
26987 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
26988 | } | |
26989 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
26990 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26991 | } | |
26992 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
26993 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
26994 | } | |
26995 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
26996 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
26997 | } | |
26998 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
26999 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
27000 | } | |
27001 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
27002 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
27003 | } | |
27004 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
27005 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
27006 | } | |
27007 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
27008 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
27009 | } | |
27010 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
27011 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
27012 | } | |
27013 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
27014 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
27015 | } | |
27016 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
27017 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27018 | } | |
27019 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
27020 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27021 | } | |
27022 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
27023 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27024 | } | |
27025 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
27026 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27027 | } | |
27028 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
27029 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27030 | } | |
27031 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
27032 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
27033 | } | |
27034 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
27035 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
27036 | } | |
27037 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
27038 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27039 | } | |
27040 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
27041 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
27042 | } | |
27043 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
27044 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
27045 | } | |
27046 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
27047 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27048 | } | |
27049 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
27050 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27051 | } | |
27052 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
27053 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27054 | } | |
27055 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
27056 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
27057 | } | |
27058 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
27059 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
27060 | } | |
27061 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
27062 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
27063 | } | |
27064 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
27065 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27066 | } | |
27067 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
27068 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
27069 | } | |
27070 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
27071 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
27072 | } | |
27073 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
27074 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
27075 | } | |
27076 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
27077 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27078 | } | |
27079 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
27080 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
27081 | } | |
27082 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
27083 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27084 | } | |
27085 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
27086 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
27087 | } | |
27088 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
27089 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
27090 | } | |
27091 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
27092 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
27093 | } | |
27094 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
27095 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
27096 | } | |
27097 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
27098 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
27099 | } | |
27100 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
27101 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
27102 | } | |
27103 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
27104 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
27105 | } | |
27106 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
27107 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
27108 | } | |
27109 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
27110 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
27111 | } | |
27112 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
27113 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27114 | } | |
27115 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
27116 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
27117 | } | |
27118 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
27119 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
27120 | } | |
27121 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
27122 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
27123 | } | |
27124 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
27125 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
27126 | } | |
27127 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
27128 | return (void *)((wxControl *) ((wxGauge *) x)); | |
27129 | } | |
27130 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
27131 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
27132 | } | |
27133 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
27134 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
27135 | } | |
27136 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
27137 | return (void *)((wxControl *) ((wxButton *) x)); | |
27138 | } | |
27139 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
27140 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
27141 | } | |
27142 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
27143 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27144 | } | |
27145 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
27146 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
27147 | } | |
27148 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
27149 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
27150 | } | |
27151 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
27152 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
27153 | } | |
27154 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
27155 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
27156 | } | |
27157 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
27158 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
27159 | } | |
27160 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
27161 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
27162 | } | |
27163 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
27164 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
27165 | } | |
27166 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
27167 | return (void *)((wxControl *) ((wxSlider *) x)); | |
27168 | } | |
27169 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
27170 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
27171 | } | |
27172 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
27173 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
27174 | } | |
27175 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
27176 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
27177 | } | |
27178 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
27179 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
27180 | } | |
27181 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
27182 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
27183 | } | |
27184 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
27185 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27186 | } | |
27187 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
27188 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27189 | } | |
27190 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
27191 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27192 | } | |
27193 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
27194 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
27195 | } | |
27196 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
27197 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27198 | } | |
27199 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
27200 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27201 | } | |
27202 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
27203 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
27204 | } | |
27205 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
27206 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
27207 | } | |
27208 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
27209 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
27210 | } | |
27211 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
27212 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
27213 | } | |
27214 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
27215 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
27216 | } | |
27217 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
27218 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
27219 | } | |
27220 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
27221 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
27222 | } | |
27223 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
27224 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
27225 | } | |
27226 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
27227 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
27228 | } | |
27229 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
27230 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
27231 | } | |
27232 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
27233 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
27234 | } | |
27235 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
27236 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
27237 | } | |
27238 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
27239 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
27240 | } | |
27241 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
27242 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27243 | } | |
27244 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
27245 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
27246 | } | |
27247 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
27248 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
27249 | } | |
27250 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
27251 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
27252 | } | |
27253 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
27254 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
27255 | } | |
27256 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
27257 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27258 | } | |
27259 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
27260 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
27261 | } | |
27262 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
27263 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
27264 | } | |
27265 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
27266 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
27267 | } | |
27268 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
27269 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
27270 | } | |
27271 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
27272 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
27273 | } | |
27274 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
27275 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
27276 | } | |
27277 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
27278 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27279 | } | |
27280 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
27281 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
27282 | } | |
27283 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
27284 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
27285 | } | |
27286 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
27287 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
27288 | } | |
27289 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
27290 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
27291 | } | |
27292 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
27293 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
27294 | } | |
27295 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
27296 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
27297 | } | |
27298 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
27299 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
27300 | } | |
27301 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
27302 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
27303 | } | |
27304 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
27305 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
27306 | } | |
27307 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
27308 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
27309 | } | |
27310 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
27311 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
27312 | } | |
27313 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
27314 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
27315 | } | |
27316 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
27317 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27318 | } | |
27319 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
27320 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
27321 | } | |
27322 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
27323 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
27324 | } | |
27325 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
27326 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
27327 | } | |
27328 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
27329 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
27330 | } | |
27331 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
27332 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
27333 | } | |
27334 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
27335 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27336 | } | |
27337 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
27338 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27339 | } | |
27340 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
27341 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
27342 | } | |
27343 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
27344 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
27345 | } | |
27346 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
27347 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
27348 | } | |
27349 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
27350 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
27351 | } | |
27352 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
27353 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
27354 | } | |
27355 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
27356 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
27357 | } | |
27358 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
27359 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
27360 | } | |
27361 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
27362 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27363 | } | |
27364 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
27365 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
27366 | } | |
27367 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
27368 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
27369 | } | |
27370 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
27371 | return (void *)((wxObject *) ((wxSizer *) x)); | |
27372 | } | |
27373 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
27374 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
27375 | } | |
27376 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
27377 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
27378 | } | |
27379 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
27380 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
27381 | } | |
27382 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
27383 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27384 | } | |
27385 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
27386 | return (void *)((wxObject *) ((wxEvent *) x)); | |
27387 | } | |
27388 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
27389 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
27390 | } | |
27391 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
27392 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
27393 | } | |
27394 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
27395 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
27396 | } | |
27397 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
27398 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
27399 | } | |
27400 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
27401 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
27402 | } | |
27403 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
27404 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27405 | } | |
27406 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
27407 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
27408 | } | |
27409 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
27410 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
27411 | } | |
27412 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
27413 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27414 | } | |
27415 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
27416 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27417 | } | |
27418 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
27419 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27420 | } | |
27421 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
27422 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27423 | } | |
27424 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
27425 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
27426 | } | |
27427 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
27428 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
27429 | } | |
27430 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
27431 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
27432 | } | |
27433 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
27434 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
27435 | } | |
27436 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
27437 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
27438 | } | |
27439 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
27440 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
27441 | } | |
27442 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
27443 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
27444 | } | |
27445 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
27446 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
27447 | } | |
27448 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
27449 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
27450 | } | |
27451 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
27452 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
27453 | } | |
27454 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
27455 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
27456 | } | |
27457 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
27458 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
27459 | } | |
27460 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
27461 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
27462 | } | |
27463 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
27464 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
27465 | } | |
27466 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
27467 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
27468 | } | |
27469 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
27470 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27471 | } | |
27472 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
27473 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
27474 | } | |
27475 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
27476 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
27477 | } | |
27478 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
27479 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
27480 | } | |
27481 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
27482 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
27483 | } | |
27484 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
27485 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
27486 | } | |
27487 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
27488 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
27489 | } | |
27490 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
27491 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27492 | } | |
27493 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
27494 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27495 | } | |
27496 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
27497 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
27498 | } | |
27499 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
27500 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
27501 | } | |
27502 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
27503 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
27504 | } | |
27505 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
27506 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
27507 | } | |
27508 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
27509 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
27510 | } | |
27511 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
27512 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
27513 | } | |
27514 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
27515 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
27516 | } | |
27517 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
27518 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
27519 | } | |
27520 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
27521 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
27522 | } | |
27523 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
27524 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
27525 | } | |
27526 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
27527 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
27528 | } | |
27529 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
27530 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
27531 | } | |
27532 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
27533 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
27534 | } | |
27535 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
27536 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
27537 | } | |
27538 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
27539 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
27540 | } | |
27541 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
27542 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
27543 | } | |
27544 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
27545 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
27546 | } | |
27547 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
27548 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
27549 | } | |
27550 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
27551 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
27552 | } | |
27553 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
27554 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
27555 | } | |
27556 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
27557 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
27558 | } | |
27559 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
27560 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
27561 | } | |
27562 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
27563 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27564 | } | |
27565 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
27566 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
27567 | } | |
d14a1e28 RD |
27568 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
27569 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
27570 | } | |
41f1cec7 RD |
27571 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
27572 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
27573 | } | |
d14a1e28 RD |
27574 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
27575 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
27576 | } | |
27577 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
27578 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27579 | } | |
41f1cec7 RD |
27580 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
27581 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
27582 | } | |
d14a1e28 RD |
27583 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
27584 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
27585 | } | |
27586 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
27587 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
27588 | } | |
27589 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
27590 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
27591 | } | |
27592 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
27593 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
27594 | } | |
27595 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
27596 | return (void *)((wxObject *) ((wxListItem *) x)); | |
27597 | } | |
27598 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
27599 | return (void *)((wxObject *) ((wxImage *) x)); | |
27600 | } | |
27601 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
27602 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
27603 | } | |
27604 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
27605 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
27606 | } | |
423f194a RD |
27607 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
27608 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
27609 | } | |
d14a1e28 RD |
27610 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
27611 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
27612 | } | |
27613 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
27614 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27615 | } | |
27616 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
27617 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27618 | } | |
27619 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
27620 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27621 | } | |
27622 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
27623 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27624 | } | |
27625 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
27626 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
27627 | } | |
27628 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
27629 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
27630 | } | |
27631 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
27632 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
27633 | } | |
27634 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
27635 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
27636 | } | |
27637 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
27638 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
27639 | } | |
27640 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
27641 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27642 | } | |
27643 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
27644 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
27645 | } | |
27646 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
27647 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
27648 | } | |
27649 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
27650 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
27651 | } | |
27652 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
27653 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
27654 | } | |
27655 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
27656 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
27657 | } | |
27658 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
27659 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27660 | } | |
27661 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
27662 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27663 | } | |
27664 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
27665 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
27666 | } | |
27667 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
27668 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
27669 | } | |
27670 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
27671 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
27672 | } | |
27673 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
27674 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
27675 | } | |
27676 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
27677 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27678 | } | |
27679 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
27680 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27681 | } | |
27682 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
27683 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
27684 | } | |
27685 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
27686 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
27687 | } | |
27688 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
27689 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
27690 | } | |
27691 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
27692 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
27693 | } | |
27694 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
27695 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
27696 | } | |
27697 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
27698 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
27699 | } | |
27700 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
27701 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
27702 | } | |
27703 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
27704 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
27705 | } | |
27706 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
27707 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
27708 | } | |
27709 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
27710 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
27711 | } | |
27712 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
27713 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
27714 | } | |
27715 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
27716 | return (void *)((wxWindow *) ((wxControl *) x)); | |
27717 | } | |
27718 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
27719 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
27720 | } | |
27721 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
27722 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27723 | } | |
27724 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
27725 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
27726 | } | |
27727 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
27728 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
27729 | } | |
27730 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
27731 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
27732 | } | |
27733 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
27734 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
27735 | } | |
27736 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
27737 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
27738 | } | |
27739 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
27740 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
27741 | } | |
27742 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
27743 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
27744 | } | |
27745 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
27746 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
27747 | } | |
27748 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
27749 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
27750 | } | |
27751 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
27752 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
27753 | } | |
27754 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
27755 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
27756 | } | |
27757 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
27758 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27759 | } | |
27760 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
27761 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
27762 | } | |
27763 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
27764 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
27765 | } | |
27766 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
27767 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
27768 | } | |
27769 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
27770 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
27771 | } | |
27772 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
27773 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
27774 | } | |
27775 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
27776 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
27777 | } | |
27778 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
27779 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
27780 | } | |
27781 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
27782 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
27783 | } | |
27784 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
27785 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
27786 | } | |
27787 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
27788 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
27789 | } | |
27790 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
27791 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
27792 | } | |
27793 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
27794 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
27795 | } | |
27796 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
27797 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27798 | } | |
27799 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
27800 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
27801 | } | |
27802 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
27803 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27804 | } | |
27805 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
27806 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27807 | } | |
27808 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
27809 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
27810 | } | |
27811 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
27812 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
27813 | } | |
27814 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
27815 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27816 | } | |
27817 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
27818 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27819 | } | |
27820 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
27821 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27822 | } | |
27823 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
27824 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27825 | } | |
27826 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
27827 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27828 | } | |
27829 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
27830 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
27831 | } | |
27832 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
27833 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27834 | } | |
27835 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
27836 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27837 | } | |
27838 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
27839 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
27840 | } | |
27841 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
27842 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27843 | } | |
27844 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
27845 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27846 | } | |
27847 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
27848 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27849 | } | |
27850 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
27851 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
27852 | } | |
27853 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
27854 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
27855 | } | |
27856 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
27857 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
27858 | } | |
27859 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
27860 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
27861 | } | |
27862 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
27863 | 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}}; | |
27864 | 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}}; | |
27865 | static swig_type_info _swigt__p_wxTreeItemIdValue[] = {{"_p_wxTreeItemIdValue", 0, "wxTreeItemIdValue *", 0},{"_p_wxTreeItemIdValue"},{0}}; | |
27866 | static swig_type_info _swigt__wxTreeItemIdValue[] = {{"_wxTreeItemIdValue", 0, "wxTreeItemIdValue", 0},{"_wxTreeItemIdValue"},{0}}; | |
27867 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; | |
27868 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
27869 | 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}}; | |
27870 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; | |
27871 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
27872 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
27873 | 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}}; | |
27874 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
27875 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
27876 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
27877 | 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}}; | |
27878 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
27879 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
27880 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
27881 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
27882 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
27883 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
27884 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}}; | |
423f194a | 27885 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; |
d14a1e28 RD |
27886 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; |
27887 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
27888 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
423f194a | 27889 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; |
d14a1e28 RD |
27890 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; |
27891 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
27892 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
27893 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
27894 | 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}}; | |
27895 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
27896 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
27897 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
27898 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
27899 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
27900 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
27901 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
27902 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
27903 | 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}}; | |
27904 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
27905 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
27906 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
27907 | 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}}; | |
27908 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
27909 | 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}}; | |
27910 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
27911 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
27912 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
27913 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
27914 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
27915 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; | |
27916 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
27917 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
27918 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
27919 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
423f194a | 27920 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; |
d14a1e28 RD |
27921 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; |
27922 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
27923 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
27924 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
27925 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
27926 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
27927 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
27928 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
41f1cec7 | 27929 | 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_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject},{"_p_wxListItem", _p_wxListItemTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{0}}; |
423f194a | 27930 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; |
d14a1e28 RD |
27931 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; |
27932 | 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}}; | |
27933 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
27934 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
27935 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
27936 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
27937 | 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}}; | |
27938 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; | |
27939 | 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}}; | |
27940 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
27941 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
27942 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
27943 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
27944 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
27945 | ||
27946 | static swig_type_info *swig_types_initial[] = { | |
27947 | _swigt__p_wxTextUrlEvent, | |
27948 | _swigt__p_wxBookCtrlEvent, | |
27949 | _swigt__p_wxSizer, | |
27950 | _swigt__p_wxTreeItemIdValue, | |
27951 | _swigt__wxTreeItemIdValue, | |
27952 | _swigt__p_wxCheckBox, | |
27953 | _swigt__p_wxPyTreeCtrl, | |
27954 | _swigt__p_wxEvent, | |
27955 | _swigt__p_wxGenericDirCtrl, | |
27956 | _swigt__p_bool, | |
27957 | _swigt__p_wxPyTreeItemData, | |
27958 | _swigt__p_wxItemContainer, | |
27959 | _swigt__p_wxDirFilterListCtrl, | |
27960 | _swigt__p_wxPyListCtrl, | |
27961 | _swigt__p_wxStaticLine, | |
27962 | _swigt__p_wxControl, | |
27963 | _swigt__p_wxPyControl, | |
27964 | _swigt__p_wxGauge, | |
27965 | _swigt__p_wxToolBarBase, | |
27966 | _swigt__p_wxFont, | |
27967 | _swigt__p_wxToggleButton, | |
27968 | _swigt__p_wxRadioButton, | |
27969 | _swigt__p_wxChoice, | |
423f194a | 27970 | _swigt__p_wxMemoryDC, |
d14a1e28 RD |
27971 | _swigt__p_wxListItemAttr, |
27972 | _swigt__p_int, | |
27973 | _swigt__p_wxSize, | |
423f194a | 27974 | _swigt__p_wxDC, |
d14a1e28 RD |
27975 | _swigt__p_wxListView, |
27976 | _swigt__p_wxIcon, | |
27977 | _swigt__p_wxTextCtrl, | |
27978 | _swigt__p_wxNotebook, | |
27979 | _swigt__p_wxNotifyEvent, | |
27980 | _swigt__p_wxArrayString, | |
27981 | _swigt__p_wxListbook, | |
27982 | _swigt__p_wxStaticBitmap, | |
27983 | _swigt__p_wxSlider, | |
27984 | _swigt__p_wxStaticBox, | |
27985 | _swigt__p_wxArrayInt, | |
27986 | _swigt__p_wxContextHelp, | |
27987 | _swigt__p_long, | |
27988 | _swigt__p_wxEvtHandler, | |
27989 | _swigt__p_wxListEvent, | |
27990 | _swigt__p_wxListBox, | |
27991 | _swigt__p_wxCheckListBox, | |
27992 | _swigt__p_wxBookCtrl, | |
27993 | _swigt__p_wxSpinButton, | |
27994 | _swigt__p_wxButton, | |
27995 | _swigt__p_wxBitmapButton, | |
27996 | _swigt__p_wxRect, | |
27997 | _swigt__p_wxContextHelpButton, | |
27998 | _swigt__p_wxRadioBox, | |
27999 | _swigt__p_wxScrollBar, | |
28000 | _swigt__p_wxTreeItemId, | |
28001 | _swigt__p_wxComboBox, | |
28002 | _swigt__p_wxHelpEvent, | |
28003 | _swigt__p_wxListItem, | |
28004 | _swigt__p_wxNotebookSizer, | |
423f194a | 28005 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
28006 | _swigt__p_wxSpinCtrl, |
28007 | _swigt__p_wxImageList, | |
28008 | _swigt__p_wxHelpProvider, | |
28009 | _swigt__p_wxTextAttr, | |
28010 | _swigt__p_wxSimpleHelpProvider, | |
28011 | _swigt__p_wxPoint, | |
28012 | _swigt__p_wxListbookEvent, | |
28013 | _swigt__p_wxNotebookEvent, | |
28014 | _swigt__p_wxObject, | |
423f194a | 28015 | _swigt__p_wxCursor, |
d14a1e28 RD |
28016 | _swigt__p_wxKeyEvent, |
28017 | _swigt__p_wxWindow, | |
28018 | _swigt__p_wxString, | |
28019 | _swigt__p_wxBitmap, | |
28020 | _swigt__p_wxTreeEvent, | |
28021 | _swigt__p_wxMouseEvent, | |
28022 | _swigt__p_wxCommandEvent, | |
28023 | _swigt__p_wxStaticText, | |
28024 | _swigt__p_wxControlWithItems, | |
28025 | _swigt__p_wxToolBarToolBase, | |
28026 | _swigt__p_wxColour, | |
28027 | _swigt__p_wxToolBar, | |
28028 | _swigt__p_wxBookCtrlSizer, | |
28029 | _swigt__p_wxValidator, | |
28030 | 0 | |
28031 | }; | |
28032 | ||
28033 | ||
28034 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
28035 | ||
28036 | static swig_const_info swig_const_table[] = { | |
28037 | { SWIG_PY_INT, (char *)"BU_LEFT", (long) wxBU_LEFT, 0, 0, 0}, | |
28038 | { SWIG_PY_INT, (char *)"BU_TOP", (long) wxBU_TOP, 0, 0, 0}, | |
28039 | { SWIG_PY_INT, (char *)"BU_RIGHT", (long) wxBU_RIGHT, 0, 0, 0}, | |
28040 | { SWIG_PY_INT, (char *)"BU_BOTTOM", (long) wxBU_BOTTOM, 0, 0, 0}, | |
28041 | { SWIG_PY_INT, (char *)"BU_EXACTFIT", (long) wxBU_EXACTFIT, 0, 0, 0}, | |
28042 | { SWIG_PY_INT, (char *)"BU_AUTODRAW", (long) wxBU_AUTODRAW, 0, 0, 0}, | |
28043 | { SWIG_PY_INT, (char *)"CHK_2STATE", (long) wxCHK_2STATE, 0, 0, 0}, | |
28044 | { SWIG_PY_INT, (char *)"CHK_3STATE", (long) wxCHK_3STATE, 0, 0, 0}, | |
28045 | { SWIG_PY_INT, (char *)"CHK_ALLOW_3RD_STATE_FOR_USER", (long) wxCHK_ALLOW_3RD_STATE_FOR_USER, 0, 0, 0}, | |
28046 | { SWIG_PY_INT, (char *)"CHK_UNCHECKED", (long) wxCHK_UNCHECKED, 0, 0, 0}, | |
28047 | { SWIG_PY_INT, (char *)"CHK_CHECKED", (long) wxCHK_CHECKED, 0, 0, 0}, | |
28048 | { SWIG_PY_INT, (char *)"CHK_UNDETERMINED", (long) wxCHK_UNDETERMINED, 0, 0, 0}, | |
28049 | { SWIG_PY_INT, (char *)"GA_HORIZONTAL", (long) wxGA_HORIZONTAL, 0, 0, 0}, | |
28050 | { SWIG_PY_INT, (char *)"GA_VERTICAL", (long) wxGA_VERTICAL, 0, 0, 0}, | |
28051 | { SWIG_PY_INT, (char *)"GA_SMOOTH", (long) wxGA_SMOOTH, 0, 0, 0}, | |
28052 | { SWIG_PY_INT, (char *)"GA_PROGRESSBAR", (long) wxGA_PROGRESSBAR, 0, 0, 0}, | |
28053 | { SWIG_PY_INT, (char *)"TE_NO_VSCROLL", (long) wxTE_NO_VSCROLL, 0, 0, 0}, | |
28054 | { SWIG_PY_INT, (char *)"TE_AUTO_SCROLL", (long) wxTE_AUTO_SCROLL, 0, 0, 0}, | |
28055 | { SWIG_PY_INT, (char *)"TE_READONLY", (long) wxTE_READONLY, 0, 0, 0}, | |
28056 | { SWIG_PY_INT, (char *)"TE_MULTILINE", (long) wxTE_MULTILINE, 0, 0, 0}, | |
28057 | { SWIG_PY_INT, (char *)"TE_PROCESS_TAB", (long) wxTE_PROCESS_TAB, 0, 0, 0}, | |
28058 | { SWIG_PY_INT, (char *)"TE_LEFT", (long) wxTE_LEFT, 0, 0, 0}, | |
28059 | { SWIG_PY_INT, (char *)"TE_CENTER", (long) wxTE_CENTER, 0, 0, 0}, | |
28060 | { SWIG_PY_INT, (char *)"TE_RIGHT", (long) wxTE_RIGHT, 0, 0, 0}, | |
28061 | { SWIG_PY_INT, (char *)"TE_CENTRE", (long) wxTE_CENTRE, 0, 0, 0}, | |
28062 | { SWIG_PY_INT, (char *)"TE_RICH", (long) wxTE_RICH, 0, 0, 0}, | |
28063 | { SWIG_PY_INT, (char *)"TE_PROCESS_ENTER", (long) wxTE_PROCESS_ENTER, 0, 0, 0}, | |
28064 | { SWIG_PY_INT, (char *)"TE_PASSWORD", (long) wxTE_PASSWORD, 0, 0, 0}, | |
28065 | { SWIG_PY_INT, (char *)"TE_AUTO_URL", (long) wxTE_AUTO_URL, 0, 0, 0}, | |
28066 | { SWIG_PY_INT, (char *)"TE_NOHIDESEL", (long) wxTE_NOHIDESEL, 0, 0, 0}, | |
28067 | { SWIG_PY_INT, (char *)"TE_DONTWRAP", (long) wxTE_DONTWRAP, 0, 0, 0}, | |
28068 | { SWIG_PY_INT, (char *)"TE_LINEWRAP", (long) wxTE_LINEWRAP, 0, 0, 0}, | |
28069 | { SWIG_PY_INT, (char *)"TE_WORDWRAP", (long) wxTE_WORDWRAP, 0, 0, 0}, | |
28070 | { SWIG_PY_INT, (char *)"TE_RICH2", (long) wxTE_RICH2, 0, 0, 0}, | |
28071 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_DEFAULT", (long) wxTEXT_ALIGNMENT_DEFAULT, 0, 0, 0}, | |
28072 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_LEFT", (long) wxTEXT_ALIGNMENT_LEFT, 0, 0, 0}, | |
28073 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_CENTRE", (long) wxTEXT_ALIGNMENT_CENTRE, 0, 0, 0}, | |
28074 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_CENTER", (long) wxTEXT_ALIGNMENT_CENTER, 0, 0, 0}, | |
28075 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_RIGHT", (long) wxTEXT_ALIGNMENT_RIGHT, 0, 0, 0}, | |
28076 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_JUSTIFIED", (long) wxTEXT_ALIGNMENT_JUSTIFIED, 0, 0, 0}, | |
28077 | { SWIG_PY_INT, (char *)"TEXT_ATTR_TEXT_COLOUR", (long) wxTEXT_ATTR_TEXT_COLOUR, 0, 0, 0}, | |
28078 | { SWIG_PY_INT, (char *)"TEXT_ATTR_BACKGROUND_COLOUR", (long) wxTEXT_ATTR_BACKGROUND_COLOUR, 0, 0, 0}, | |
28079 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_FACE", (long) wxTEXT_ATTR_FONT_FACE, 0, 0, 0}, | |
28080 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_SIZE", (long) wxTEXT_ATTR_FONT_SIZE, 0, 0, 0}, | |
28081 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_WEIGHT", (long) wxTEXT_ATTR_FONT_WEIGHT, 0, 0, 0}, | |
28082 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_ITALIC", (long) wxTEXT_ATTR_FONT_ITALIC, 0, 0, 0}, | |
28083 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_UNDERLINE", (long) wxTEXT_ATTR_FONT_UNDERLINE, 0, 0, 0}, | |
28084 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT", (long) wxTEXT_ATTR_FONT, 0, 0, 0}, | |
28085 | { SWIG_PY_INT, (char *)"TEXT_ATTR_ALIGNMENT", (long) wxTEXT_ATTR_ALIGNMENT, 0, 0, 0}, | |
28086 | { SWIG_PY_INT, (char *)"TEXT_ATTR_LEFT_INDENT", (long) wxTEXT_ATTR_LEFT_INDENT, 0, 0, 0}, | |
28087 | { SWIG_PY_INT, (char *)"TEXT_ATTR_RIGHT_INDENT", (long) wxTEXT_ATTR_RIGHT_INDENT, 0, 0, 0}, | |
28088 | { SWIG_PY_INT, (char *)"TEXT_ATTR_TABS", (long) wxTEXT_ATTR_TABS, 0, 0, 0}, | |
28089 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_UPDATED", (long) wxEVT_COMMAND_TEXT_UPDATED, 0, 0, 0}, | |
28090 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_ENTER", (long) wxEVT_COMMAND_TEXT_ENTER, 0, 0, 0}, | |
28091 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_URL", (long) wxEVT_COMMAND_TEXT_URL, 0, 0, 0}, | |
28092 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_MAXLEN", (long) wxEVT_COMMAND_TEXT_MAXLEN, 0, 0, 0}, | |
28093 | { SWIG_PY_INT, (char *)"SP_HORIZONTAL", (long) wxSP_HORIZONTAL, 0, 0, 0}, | |
28094 | { SWIG_PY_INT, (char *)"SP_VERTICAL", (long) wxSP_VERTICAL, 0, 0, 0}, | |
28095 | { SWIG_PY_INT, (char *)"SP_ARROW_KEYS", (long) wxSP_ARROW_KEYS, 0, 0, 0}, | |
28096 | { SWIG_PY_INT, (char *)"SP_WRAP", (long) wxSP_WRAP, 0, 0, 0}, | |
28097 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SPINCTRL_UPDATED", (long) wxEVT_COMMAND_SPINCTRL_UPDATED, 0, 0, 0}, | |
28098 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", (long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 0, 0, 0}, | |
28099 | { SWIG_PY_INT, (char *)"NB_FIXEDWIDTH", (long) wxNB_FIXEDWIDTH, 0, 0, 0}, | |
28100 | { SWIG_PY_INT, (char *)"NB_TOP", (long) wxNB_TOP, 0, 0, 0}, | |
28101 | { SWIG_PY_INT, (char *)"NB_LEFT", (long) wxNB_LEFT, 0, 0, 0}, | |
28102 | { SWIG_PY_INT, (char *)"NB_RIGHT", (long) wxNB_RIGHT, 0, 0, 0}, | |
28103 | { SWIG_PY_INT, (char *)"NB_BOTTOM", (long) wxNB_BOTTOM, 0, 0, 0}, | |
28104 | { SWIG_PY_INT, (char *)"NB_MULTILINE", (long) wxNB_MULTILINE, 0, 0, 0}, | |
28105 | { SWIG_PY_INT, (char *)"NB_HITTEST_NOWHERE", (long) wxNB_HITTEST_NOWHERE, 0, 0, 0}, | |
28106 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONICON", (long) wxNB_HITTEST_ONICON, 0, 0, 0}, | |
28107 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONLABEL", (long) wxNB_HITTEST_ONLABEL, 0, 0, 0}, | |
28108 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONITEM", (long) wxNB_HITTEST_ONITEM, 0, 0, 0}, | |
28109 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", (long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 0, 0, 0}, | |
28110 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", (long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 0, 0, 0}, | |
28111 | { SWIG_PY_INT, (char *)"LB_DEFAULT", (long) wxLB_DEFAULT, 0, 0, 0}, | |
28112 | { SWIG_PY_INT, (char *)"LB_TOP", (long) wxLB_TOP, 0, 0, 0}, | |
28113 | { SWIG_PY_INT, (char *)"LB_BOTTOM", (long) wxLB_BOTTOM, 0, 0, 0}, | |
28114 | { SWIG_PY_INT, (char *)"LB_LEFT", (long) wxLB_LEFT, 0, 0, 0}, | |
28115 | { SWIG_PY_INT, (char *)"LB_RIGHT", (long) wxLB_RIGHT, 0, 0, 0}, | |
28116 | { SWIG_PY_INT, (char *)"LB_ALIGN_MASK", (long) wxLB_ALIGN_MASK, 0, 0, 0}, | |
28117 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", (long) wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 0, 0, 0}, | |
28118 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", (long) wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 0, 0, 0}, | |
28119 | { SWIG_PY_INT, (char *)"TOOL_STYLE_BUTTON", (long) wxTOOL_STYLE_BUTTON, 0, 0, 0}, | |
28120 | { SWIG_PY_INT, (char *)"TOOL_STYLE_SEPARATOR", (long) wxTOOL_STYLE_SEPARATOR, 0, 0, 0}, | |
28121 | { SWIG_PY_INT, (char *)"TOOL_STYLE_CONTROL", (long) wxTOOL_STYLE_CONTROL, 0, 0, 0}, | |
28122 | { SWIG_PY_INT, (char *)"TB_HORIZONTAL", (long) wxTB_HORIZONTAL, 0, 0, 0}, | |
28123 | { SWIG_PY_INT, (char *)"TB_VERTICAL", (long) wxTB_VERTICAL, 0, 0, 0}, | |
28124 | { SWIG_PY_INT, (char *)"TB_3DBUTTONS", (long) wxTB_3DBUTTONS, 0, 0, 0}, | |
28125 | { SWIG_PY_INT, (char *)"TB_FLAT", (long) wxTB_FLAT, 0, 0, 0}, | |
28126 | { SWIG_PY_INT, (char *)"TB_DOCKABLE", (long) wxTB_DOCKABLE, 0, 0, 0}, | |
28127 | { SWIG_PY_INT, (char *)"TB_NOICONS", (long) wxTB_NOICONS, 0, 0, 0}, | |
28128 | { SWIG_PY_INT, (char *)"TB_TEXT", (long) wxTB_TEXT, 0, 0, 0}, | |
28129 | { SWIG_PY_INT, (char *)"TB_NODIVIDER", (long) wxTB_NODIVIDER, 0, 0, 0}, | |
28130 | { SWIG_PY_INT, (char *)"TB_NOALIGN", (long) wxTB_NOALIGN, 0, 0, 0}, | |
28131 | { SWIG_PY_INT, (char *)"TB_HORZ_LAYOUT", (long) wxTB_HORZ_LAYOUT, 0, 0, 0}, | |
28132 | { SWIG_PY_INT, (char *)"TB_HORZ_TEXT", (long) wxTB_HORZ_TEXT, 0, 0, 0}, | |
28133 | { SWIG_PY_INT, (char *)"LC_VRULES", (long) wxLC_VRULES, 0, 0, 0}, | |
28134 | { SWIG_PY_INT, (char *)"LC_HRULES", (long) wxLC_HRULES, 0, 0, 0}, | |
28135 | { SWIG_PY_INT, (char *)"LC_ICON", (long) wxLC_ICON, 0, 0, 0}, | |
28136 | { SWIG_PY_INT, (char *)"LC_SMALL_ICON", (long) wxLC_SMALL_ICON, 0, 0, 0}, | |
28137 | { SWIG_PY_INT, (char *)"LC_LIST", (long) wxLC_LIST, 0, 0, 0}, | |
28138 | { SWIG_PY_INT, (char *)"LC_REPORT", (long) wxLC_REPORT, 0, 0, 0}, | |
28139 | { SWIG_PY_INT, (char *)"LC_ALIGN_TOP", (long) wxLC_ALIGN_TOP, 0, 0, 0}, | |
28140 | { SWIG_PY_INT, (char *)"LC_ALIGN_LEFT", (long) wxLC_ALIGN_LEFT, 0, 0, 0}, | |
28141 | { SWIG_PY_INT, (char *)"LC_AUTOARRANGE", (long) wxLC_AUTOARRANGE, 0, 0, 0}, | |
28142 | { SWIG_PY_INT, (char *)"LC_VIRTUAL", (long) wxLC_VIRTUAL, 0, 0, 0}, | |
28143 | { SWIG_PY_INT, (char *)"LC_EDIT_LABELS", (long) wxLC_EDIT_LABELS, 0, 0, 0}, | |
28144 | { SWIG_PY_INT, (char *)"LC_NO_HEADER", (long) wxLC_NO_HEADER, 0, 0, 0}, | |
28145 | { SWIG_PY_INT, (char *)"LC_NO_SORT_HEADER", (long) wxLC_NO_SORT_HEADER, 0, 0, 0}, | |
28146 | { SWIG_PY_INT, (char *)"LC_SINGLE_SEL", (long) wxLC_SINGLE_SEL, 0, 0, 0}, | |
28147 | { SWIG_PY_INT, (char *)"LC_SORT_ASCENDING", (long) wxLC_SORT_ASCENDING, 0, 0, 0}, | |
28148 | { SWIG_PY_INT, (char *)"LC_SORT_DESCENDING", (long) wxLC_SORT_DESCENDING, 0, 0, 0}, | |
28149 | { SWIG_PY_INT, (char *)"LC_MASK_TYPE", (long) wxLC_MASK_TYPE, 0, 0, 0}, | |
28150 | { SWIG_PY_INT, (char *)"LC_MASK_ALIGN", (long) wxLC_MASK_ALIGN, 0, 0, 0}, | |
28151 | { SWIG_PY_INT, (char *)"LC_MASK_SORT", (long) wxLC_MASK_SORT, 0, 0, 0}, | |
28152 | { SWIG_PY_INT, (char *)"LIST_MASK_STATE", (long) wxLIST_MASK_STATE, 0, 0, 0}, | |
28153 | { SWIG_PY_INT, (char *)"LIST_MASK_TEXT", (long) wxLIST_MASK_TEXT, 0, 0, 0}, | |
28154 | { SWIG_PY_INT, (char *)"LIST_MASK_IMAGE", (long) wxLIST_MASK_IMAGE, 0, 0, 0}, | |
28155 | { SWIG_PY_INT, (char *)"LIST_MASK_DATA", (long) wxLIST_MASK_DATA, 0, 0, 0}, | |
28156 | { SWIG_PY_INT, (char *)"LIST_SET_ITEM", (long) wxLIST_SET_ITEM, 0, 0, 0}, | |
28157 | { SWIG_PY_INT, (char *)"LIST_MASK_WIDTH", (long) wxLIST_MASK_WIDTH, 0, 0, 0}, | |
28158 | { SWIG_PY_INT, (char *)"LIST_MASK_FORMAT", (long) wxLIST_MASK_FORMAT, 0, 0, 0}, | |
28159 | { SWIG_PY_INT, (char *)"LIST_STATE_DONTCARE", (long) wxLIST_STATE_DONTCARE, 0, 0, 0}, | |
28160 | { SWIG_PY_INT, (char *)"LIST_STATE_DROPHILITED", (long) wxLIST_STATE_DROPHILITED, 0, 0, 0}, | |
28161 | { SWIG_PY_INT, (char *)"LIST_STATE_FOCUSED", (long) wxLIST_STATE_FOCUSED, 0, 0, 0}, | |
28162 | { SWIG_PY_INT, (char *)"LIST_STATE_SELECTED", (long) wxLIST_STATE_SELECTED, 0, 0, 0}, | |
28163 | { SWIG_PY_INT, (char *)"LIST_STATE_CUT", (long) wxLIST_STATE_CUT, 0, 0, 0}, | |
28164 | { SWIG_PY_INT, (char *)"LIST_STATE_DISABLED", (long) wxLIST_STATE_DISABLED, 0, 0, 0}, | |
28165 | { SWIG_PY_INT, (char *)"LIST_STATE_FILTERED", (long) wxLIST_STATE_FILTERED, 0, 0, 0}, | |
28166 | { SWIG_PY_INT, (char *)"LIST_STATE_INUSE", (long) wxLIST_STATE_INUSE, 0, 0, 0}, | |
28167 | { SWIG_PY_INT, (char *)"LIST_STATE_PICKED", (long) wxLIST_STATE_PICKED, 0, 0, 0}, | |
28168 | { SWIG_PY_INT, (char *)"LIST_STATE_SOURCE", (long) wxLIST_STATE_SOURCE, 0, 0, 0}, | |
28169 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ABOVE", (long) wxLIST_HITTEST_ABOVE, 0, 0, 0}, | |
28170 | { SWIG_PY_INT, (char *)"LIST_HITTEST_BELOW", (long) wxLIST_HITTEST_BELOW, 0, 0, 0}, | |
28171 | { SWIG_PY_INT, (char *)"LIST_HITTEST_NOWHERE", (long) wxLIST_HITTEST_NOWHERE, 0, 0, 0}, | |
28172 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMICON", (long) wxLIST_HITTEST_ONITEMICON, 0, 0, 0}, | |
28173 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMLABEL", (long) wxLIST_HITTEST_ONITEMLABEL, 0, 0, 0}, | |
28174 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMRIGHT", (long) wxLIST_HITTEST_ONITEMRIGHT, 0, 0, 0}, | |
28175 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMSTATEICON", (long) wxLIST_HITTEST_ONITEMSTATEICON, 0, 0, 0}, | |
28176 | { SWIG_PY_INT, (char *)"LIST_HITTEST_TOLEFT", (long) wxLIST_HITTEST_TOLEFT, 0, 0, 0}, | |
28177 | { SWIG_PY_INT, (char *)"LIST_HITTEST_TORIGHT", (long) wxLIST_HITTEST_TORIGHT, 0, 0, 0}, | |
28178 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEM", (long) wxLIST_HITTEST_ONITEM, 0, 0, 0}, | |
28179 | { SWIG_PY_INT, (char *)"LIST_NEXT_ABOVE", (long) wxLIST_NEXT_ABOVE, 0, 0, 0}, | |
28180 | { SWIG_PY_INT, (char *)"LIST_NEXT_ALL", (long) wxLIST_NEXT_ALL, 0, 0, 0}, | |
28181 | { SWIG_PY_INT, (char *)"LIST_NEXT_BELOW", (long) wxLIST_NEXT_BELOW, 0, 0, 0}, | |
28182 | { SWIG_PY_INT, (char *)"LIST_NEXT_LEFT", (long) wxLIST_NEXT_LEFT, 0, 0, 0}, | |
28183 | { SWIG_PY_INT, (char *)"LIST_NEXT_RIGHT", (long) wxLIST_NEXT_RIGHT, 0, 0, 0}, | |
28184 | { SWIG_PY_INT, (char *)"LIST_ALIGN_DEFAULT", (long) wxLIST_ALIGN_DEFAULT, 0, 0, 0}, | |
28185 | { SWIG_PY_INT, (char *)"LIST_ALIGN_LEFT", (long) wxLIST_ALIGN_LEFT, 0, 0, 0}, | |
28186 | { SWIG_PY_INT, (char *)"LIST_ALIGN_TOP", (long) wxLIST_ALIGN_TOP, 0, 0, 0}, | |
28187 | { SWIG_PY_INT, (char *)"LIST_ALIGN_SNAP_TO_GRID", (long) wxLIST_ALIGN_SNAP_TO_GRID, 0, 0, 0}, | |
28188 | { SWIG_PY_INT, (char *)"LIST_FORMAT_LEFT", (long) wxLIST_FORMAT_LEFT, 0, 0, 0}, | |
28189 | { SWIG_PY_INT, (char *)"LIST_FORMAT_RIGHT", (long) wxLIST_FORMAT_RIGHT, 0, 0, 0}, | |
28190 | { SWIG_PY_INT, (char *)"LIST_FORMAT_CENTRE", (long) wxLIST_FORMAT_CENTRE, 0, 0, 0}, | |
28191 | { SWIG_PY_INT, (char *)"LIST_FORMAT_CENTER", (long) wxLIST_FORMAT_CENTER, 0, 0, 0}, | |
28192 | { SWIG_PY_INT, (char *)"LIST_AUTOSIZE", (long) wxLIST_AUTOSIZE, 0, 0, 0}, | |
28193 | { SWIG_PY_INT, (char *)"LIST_AUTOSIZE_USEHEADER", (long) wxLIST_AUTOSIZE_USEHEADER, 0, 0, 0}, | |
28194 | { SWIG_PY_INT, (char *)"LIST_RECT_BOUNDS", (long) wxLIST_RECT_BOUNDS, 0, 0, 0}, | |
28195 | { SWIG_PY_INT, (char *)"LIST_RECT_ICON", (long) wxLIST_RECT_ICON, 0, 0, 0}, | |
28196 | { SWIG_PY_INT, (char *)"LIST_RECT_LABEL", (long) wxLIST_RECT_LABEL, 0, 0, 0}, | |
28197 | { SWIG_PY_INT, (char *)"LIST_FIND_UP", (long) wxLIST_FIND_UP, 0, 0, 0}, | |
28198 | { SWIG_PY_INT, (char *)"LIST_FIND_DOWN", (long) wxLIST_FIND_DOWN, 0, 0, 0}, | |
28199 | { SWIG_PY_INT, (char *)"LIST_FIND_LEFT", (long) wxLIST_FIND_LEFT, 0, 0, 0}, | |
28200 | { SWIG_PY_INT, (char *)"LIST_FIND_RIGHT", (long) wxLIST_FIND_RIGHT, 0, 0, 0}, | |
28201 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_DRAG", (long) wxEVT_COMMAND_LIST_BEGIN_DRAG, 0, 0, 0}, | |
28202 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_RDRAG", (long) wxEVT_COMMAND_LIST_BEGIN_RDRAG, 0, 0, 0}, | |
28203 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", (long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, 0, 0, 0}, | |
28204 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_END_LABEL_EDIT", (long) wxEVT_COMMAND_LIST_END_LABEL_EDIT, 0, 0, 0}, | |
28205 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_DELETE_ITEM", (long) wxEVT_COMMAND_LIST_DELETE_ITEM, 0, 0, 0}, | |
28206 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", (long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, 0, 0, 0}, | |
28207 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_GET_INFO", (long) wxEVT_COMMAND_LIST_GET_INFO, 0, 0, 0}, | |
28208 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_SET_INFO", (long) wxEVT_COMMAND_LIST_SET_INFO, 0, 0, 0}, | |
28209 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_SELECTED", (long) wxEVT_COMMAND_LIST_ITEM_SELECTED, 0, 0, 0}, | |
28210 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_DESELECTED", (long) wxEVT_COMMAND_LIST_ITEM_DESELECTED, 0, 0, 0}, | |
28211 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_KEY_DOWN", (long) wxEVT_COMMAND_LIST_KEY_DOWN, 0, 0, 0}, | |
28212 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_INSERT_ITEM", (long) wxEVT_COMMAND_LIST_INSERT_ITEM, 0, 0, 0}, | |
28213 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_CLICK", (long) wxEVT_COMMAND_LIST_COL_CLICK, 0, 0, 0}, | |
28214 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", (long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, 0, 0, 0}, | |
28215 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", (long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 0, 0, 0}, | |
28216 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", (long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED, 0, 0, 0}, | |
28217 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_CACHE_HINT", (long) wxEVT_COMMAND_LIST_CACHE_HINT, 0, 0, 0}, | |
28218 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", (long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK, 0, 0, 0}, | |
28219 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", (long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, 0, 0, 0}, | |
28220 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_DRAGGING", (long) wxEVT_COMMAND_LIST_COL_DRAGGING, 0, 0, 0}, | |
28221 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_END_DRAG", (long) wxEVT_COMMAND_LIST_COL_END_DRAG, 0, 0, 0}, | |
28222 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_FOCUSED", (long) wxEVT_COMMAND_LIST_ITEM_FOCUSED, 0, 0, 0}, | |
28223 | { SWIG_PY_INT, (char *)"TR_NO_BUTTONS", (long) wxTR_NO_BUTTONS, 0, 0, 0}, | |
28224 | { SWIG_PY_INT, (char *)"TR_HAS_BUTTONS", (long) wxTR_HAS_BUTTONS, 0, 0, 0}, | |
28225 | { SWIG_PY_INT, (char *)"TR_NO_LINES", (long) wxTR_NO_LINES, 0, 0, 0}, | |
28226 | { SWIG_PY_INT, (char *)"TR_LINES_AT_ROOT", (long) wxTR_LINES_AT_ROOT, 0, 0, 0}, | |
28227 | { SWIG_PY_INT, (char *)"TR_SINGLE", (long) wxTR_SINGLE, 0, 0, 0}, | |
28228 | { SWIG_PY_INT, (char *)"TR_MULTIPLE", (long) wxTR_MULTIPLE, 0, 0, 0}, | |
28229 | { SWIG_PY_INT, (char *)"TR_EXTENDED", (long) wxTR_EXTENDED, 0, 0, 0}, | |
28230 | { SWIG_PY_INT, (char *)"TR_HAS_VARIABLE_ROW_HEIGHT", (long) wxTR_HAS_VARIABLE_ROW_HEIGHT, 0, 0, 0}, | |
28231 | { SWIG_PY_INT, (char *)"TR_EDIT_LABELS", (long) wxTR_EDIT_LABELS, 0, 0, 0}, | |
28232 | { SWIG_PY_INT, (char *)"TR_HIDE_ROOT", (long) wxTR_HIDE_ROOT, 0, 0, 0}, | |
28233 | { SWIG_PY_INT, (char *)"TR_ROW_LINES", (long) wxTR_ROW_LINES, 0, 0, 0}, | |
28234 | { SWIG_PY_INT, (char *)"TR_FULL_ROW_HIGHLIGHT", (long) wxTR_FULL_ROW_HIGHLIGHT, 0, 0, 0}, | |
28235 | { SWIG_PY_INT, (char *)"TR_DEFAULT_STYLE", (long) wxTR_DEFAULT_STYLE, 0, 0, 0}, | |
28236 | { SWIG_PY_INT, (char *)"TR_TWIST_BUTTONS", (long) wxTR_TWIST_BUTTONS, 0, 0, 0}, | |
28237 | { SWIG_PY_INT, (char *)"TR_MAC_BUTTONS", (long) wxTR_MAC_BUTTONS, 0, 0, 0}, | |
28238 | { SWIG_PY_INT, (char *)"TR_AQUA_BUTTONS", (long) wxTR_AQUA_BUTTONS, 0, 0, 0}, | |
28239 | { SWIG_PY_INT, (char *)"TreeItemIcon_Normal", (long) wxTreeItemIcon_Normal, 0, 0, 0}, | |
28240 | { SWIG_PY_INT, (char *)"TreeItemIcon_Selected", (long) wxTreeItemIcon_Selected, 0, 0, 0}, | |
28241 | { SWIG_PY_INT, (char *)"TreeItemIcon_Expanded", (long) wxTreeItemIcon_Expanded, 0, 0, 0}, | |
28242 | { SWIG_PY_INT, (char *)"TreeItemIcon_SelectedExpanded", (long) wxTreeItemIcon_SelectedExpanded, 0, 0, 0}, | |
28243 | { SWIG_PY_INT, (char *)"TreeItemIcon_Max", (long) wxTreeItemIcon_Max, 0, 0, 0}, | |
28244 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ABOVE", (long) wxTREE_HITTEST_ABOVE, 0, 0, 0}, | |
28245 | { SWIG_PY_INT, (char *)"TREE_HITTEST_BELOW", (long) wxTREE_HITTEST_BELOW, 0, 0, 0}, | |
28246 | { SWIG_PY_INT, (char *)"TREE_HITTEST_NOWHERE", (long) wxTREE_HITTEST_NOWHERE, 0, 0, 0}, | |
28247 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMBUTTON", (long) wxTREE_HITTEST_ONITEMBUTTON, 0, 0, 0}, | |
28248 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMICON", (long) wxTREE_HITTEST_ONITEMICON, 0, 0, 0}, | |
28249 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMINDENT", (long) wxTREE_HITTEST_ONITEMINDENT, 0, 0, 0}, | |
28250 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMLABEL", (long) wxTREE_HITTEST_ONITEMLABEL, 0, 0, 0}, | |
28251 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMRIGHT", (long) wxTREE_HITTEST_ONITEMRIGHT, 0, 0, 0}, | |
28252 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMSTATEICON", (long) wxTREE_HITTEST_ONITEMSTATEICON, 0, 0, 0}, | |
28253 | { SWIG_PY_INT, (char *)"TREE_HITTEST_TOLEFT", (long) wxTREE_HITTEST_TOLEFT, 0, 0, 0}, | |
28254 | { SWIG_PY_INT, (char *)"TREE_HITTEST_TORIGHT", (long) wxTREE_HITTEST_TORIGHT, 0, 0, 0}, | |
28255 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMUPPERPART", (long) wxTREE_HITTEST_ONITEMUPPERPART, 0, 0, 0}, | |
28256 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMLOWERPART", (long) wxTREE_HITTEST_ONITEMLOWERPART, 0, 0, 0}, | |
28257 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEM", (long) wxTREE_HITTEST_ONITEM, 0, 0, 0}, | |
28258 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_DRAG", (long) wxEVT_COMMAND_TREE_BEGIN_DRAG, 0, 0, 0}, | |
28259 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_RDRAG", (long) wxEVT_COMMAND_TREE_BEGIN_RDRAG, 0, 0, 0}, | |
28260 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", (long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, 0, 0, 0}, | |
28261 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_END_LABEL_EDIT", (long) wxEVT_COMMAND_TREE_END_LABEL_EDIT, 0, 0, 0}, | |
28262 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_DELETE_ITEM", (long) wxEVT_COMMAND_TREE_DELETE_ITEM, 0, 0, 0}, | |
28263 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_GET_INFO", (long) wxEVT_COMMAND_TREE_GET_INFO, 0, 0, 0}, | |
28264 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SET_INFO", (long) wxEVT_COMMAND_TREE_SET_INFO, 0, 0, 0}, | |
28265 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_EXPANDED", (long) wxEVT_COMMAND_TREE_ITEM_EXPANDED, 0, 0, 0}, | |
28266 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_EXPANDING", (long) wxEVT_COMMAND_TREE_ITEM_EXPANDING, 0, 0, 0}, | |
28267 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", (long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED, 0, 0, 0}, | |
28268 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", (long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING, 0, 0, 0}, | |
28269 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SEL_CHANGED", (long) wxEVT_COMMAND_TREE_SEL_CHANGED, 0, 0, 0}, | |
28270 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SEL_CHANGING", (long) wxEVT_COMMAND_TREE_SEL_CHANGING, 0, 0, 0}, | |
28271 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_KEY_DOWN", (long) wxEVT_COMMAND_TREE_KEY_DOWN, 0, 0, 0}, | |
28272 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", (long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED, 0, 0, 0}, | |
28273 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", (long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK, 0, 0, 0}, | |
28274 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", (long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 0, 0, 0}, | |
28275 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_END_DRAG", (long) wxEVT_COMMAND_TREE_END_DRAG, 0, 0, 0}, | |
28276 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", (long) wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 0, 0, 0}, | |
9fd4be55 | 28277 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", (long) wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 0, 0, 0}, |
d14a1e28 RD |
28278 | { SWIG_PY_INT, (char *)"DIRCTRL_DIR_ONLY", (long) wxDIRCTRL_DIR_ONLY, 0, 0, 0}, |
28279 | { SWIG_PY_INT, (char *)"DIRCTRL_SELECT_FIRST", (long) wxDIRCTRL_SELECT_FIRST, 0, 0, 0}, | |
28280 | { SWIG_PY_INT, (char *)"DIRCTRL_SHOW_FILTERS", (long) wxDIRCTRL_SHOW_FILTERS, 0, 0, 0}, | |
28281 | { SWIG_PY_INT, (char *)"DIRCTRL_3D_INTERNAL", (long) wxDIRCTRL_3D_INTERNAL, 0, 0, 0}, | |
28282 | { SWIG_PY_INT, (char *)"DIRCTRL_EDIT_LABELS", (long) wxDIRCTRL_EDIT_LABELS, 0, 0, 0}, | |
28283 | { SWIG_PY_INT, (char *)"FRAME_EX_CONTEXTHELP", (long) wxFRAME_EX_CONTEXTHELP, 0, 0, 0}, | |
28284 | { SWIG_PY_INT, (char *)"DIALOG_EX_CONTEXTHELP", (long) wxDIALOG_EX_CONTEXTHELP, 0, 0, 0}, | |
28285 | { SWIG_PY_INT, (char *)"wxEVT_HELP", (long) wxEVT_HELP, 0, 0, 0}, | |
28286 | { SWIG_PY_INT, (char *)"wxEVT_DETAILED_HELP", (long) wxEVT_DETAILED_HELP, 0, 0, 0}, | |
28287 | {0}}; | |
28288 | ||
28289 | #ifdef __cplusplus | |
28290 | } | |
28291 | #endif | |
28292 | ||
28293 | #ifdef __cplusplus | |
28294 | extern "C" | |
28295 | #endif | |
28296 | SWIGEXPORT(void) SWIG_init(void) { | |
28297 | static PyObject *SWIG_globals = 0; | |
28298 | static int typeinit = 0; | |
28299 | PyObject *m, *d; | |
28300 | int i; | |
28301 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
28302 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
28303 | d = PyModule_GetDict(m); | |
28304 | ||
28305 | if (!typeinit) { | |
28306 | for (i = 0; swig_types_initial[i]; i++) { | |
28307 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
28308 | } | |
28309 | typeinit = 1; | |
28310 | } | |
28311 | SWIG_InstallConstants(d,swig_const_table); | |
28312 | ||
cbd72d4f RD |
28313 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
28314 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
28315 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); | |
28316 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); | |
28317 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
28318 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
28319 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); | |
28320 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
28321 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
28322 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
28323 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
d14a1e28 RD |
28324 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
28325 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
28326 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
28327 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
cbd72d4f RD |
28328 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
28329 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
28330 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
d14a1e28 | 28331 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
cbd72d4f RD |
28332 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
28333 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
28334 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
28335 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 28336 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
cbd72d4f | 28337 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
d14a1e28 RD |
28338 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
28339 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
28340 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
28341 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
cbd72d4f | 28342 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
d14a1e28 RD |
28343 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
28344 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
28345 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
28346 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
28347 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
28348 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
28349 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
28350 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
28351 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
28352 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
28353 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
28354 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
28355 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
28356 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
28357 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
28358 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
28359 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
28360 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
28361 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
28362 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
28363 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
28364 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
28365 | ||
28366 | // Map renamed classes back to their common name for OOR | |
28367 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
28368 | ||
cbd72d4f | 28369 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
d14a1e28 RD |
28370 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
28371 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
28372 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
28373 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
28374 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
28375 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
28376 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
28377 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
28378 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
28379 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
28380 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
28381 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
28382 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
28383 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
28384 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
28385 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
28386 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
28387 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
28388 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
9fd4be55 | 28389 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
28390 | |
28391 | // Map renamed classes back to their common name for OOR | |
28392 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
28393 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
28394 | ||
cbd72d4f | 28395 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
d14a1e28 RD |
28396 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
28397 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
423f194a RD |
28398 | |
28399 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
28400 | ||
d14a1e28 RD |
28401 | } |
28402 |