]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
2dbef272 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
c370783e | 46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName |
d14a1e28 RD |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
9fd4be55 RD |
49 | #define SWIG_PackData SWIG_Python_PackData |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
d14a1e28 RD |
52 | |
53 | /*********************************************************************** | |
54 | * common.swg for wxPython | |
55 | * | |
56 | * Include only the function prototypes and such from SWIG's common.swg, | |
57 | * but not the runtime functions themselves. This helps keep the | |
58 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
59 | * anyway. | |
60 | * | |
61 | ************************************************************************/ | |
62 | ||
63 | #include <string.h> | |
64 | ||
0f774bef RD |
65 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
66 | # if defined(_MSC_VER) || defined(__GNUC__) | |
67 | # if defined(STATIC_LINKED) | |
68 | # define SWIGEXPORT(a) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # else | |
71 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
72 | # define SWIGIMPORT(a) extern a | |
73 | # endif | |
74 | # else | |
75 | # if defined(__BORLANDC__) | |
76 | # define SWIGEXPORT(a) a _export | |
77 | # define SWIGIMPORT(a) a _export | |
78 | # else | |
79 | # define SWIGEXPORT(a) a | |
80 | # define SWIGIMPORT(a) a | |
81 | # endif | |
82 | # endif | |
d14a1e28 | 83 | #else |
0f774bef RD |
84 | # define SWIGEXPORT(a) a |
85 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
86 | #endif |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
0f774bef | 89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 90 | #else |
0f774bef | 91 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
92 | #endif |
93 | ||
d14a1e28 RD |
94 | #ifdef __cplusplus |
95 | extern "C" { | |
96 | #endif | |
97 | ||
98 | typedef void *(*swig_converter_func)(void *); | |
99 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
100 | ||
101 | typedef struct swig_type_info { | |
0f774bef | 102 | const char *name; |
d14a1e28 RD |
103 | swig_converter_func converter; |
104 | const char *str; | |
0f774bef | 105 | void *clientdata; |
d14a1e28 RD |
106 | swig_dycast_func dcast; |
107 | struct swig_type_info *next; | |
108 | struct swig_type_info *prev; | |
109 | } swig_type_info; | |
110 | ||
111 | ||
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
114 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
116 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
c370783e | 117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); |
d14a1e28 RD |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
0f774bef RD |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
122 | |
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
c370783e | 128 | |
d14a1e28 RD |
129 | /*********************************************************************** |
130 | * pyrun.swg for wxPython | |
131 | * | |
132 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
133 | * but not the runtime functions themselves. This helps keep the | |
134 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
135 | * anyway. | |
136 | * | |
137 | ************************************************************************/ | |
138 | ||
d14a1e28 RD |
139 | #ifdef __cplusplus |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2dbef272 | 174 | |
d14a1e28 RD |
175 | /* Python-specific SWIG API */ |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
8edf1c75 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
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 | /* Contract support */ | |
200 | ||
423f194a | 201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 202 | |
d14a1e28 RD |
203 | #ifdef __cplusplus |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
c370783e | 208 | |
d14a1e28 RD |
209 | /* -------- TYPES TABLE (BEGIN) -------- */ |
210 | ||
211 | #define SWIGTYPE_p_wxGridCellAutoWrapStringRenderer swig_types[0] | |
212 | #define SWIGTYPE_p_wxGridCellEnumRenderer swig_types[1] | |
213 | #define SWIGTYPE_p_wxGridCellDateTimeRenderer swig_types[2] | |
214 | #define SWIGTYPE_p_wxGridCellBoolRenderer swig_types[3] | |
215 | #define SWIGTYPE_p_wxGridCellFloatRenderer swig_types[4] | |
216 | #define SWIGTYPE_p_wxGridCellNumberRenderer swig_types[5] | |
217 | #define SWIGTYPE_p_wxPyGridCellRenderer swig_types[6] | |
218 | #define SWIGTYPE_p_wxGridCellRenderer swig_types[7] | |
219 | #define SWIGTYPE_p_wxGridCellStringRenderer swig_types[8] | |
220 | #define SWIGTYPE_p_wxGridCellAttr swig_types[9] | |
221 | #define SWIGTYPE_p_wxColour swig_types[10] | |
222 | #define SWIGTYPE_p_wxDC swig_types[11] | |
223 | #define SWIGTYPE_p_wxGridTableMessage swig_types[12] | |
224 | #define SWIGTYPE_p_wxGrid swig_types[13] | |
f20a2e1f RD |
225 | #define SWIGTYPE_p_wxVisualAttributes swig_types[14] |
226 | #define SWIGTYPE_p_char swig_types[15] | |
227 | #define SWIGTYPE_p_wxPanel swig_types[16] | |
228 | #define SWIGTYPE_p_wxNotifyEvent swig_types[17] | |
229 | #define SWIGTYPE_p_wxGridRangeSelectEvent swig_types[18] | |
230 | #define SWIGTYPE_p_wxSize swig_types[19] | |
231 | #define SWIGTYPE_p_wxGridCellCoords swig_types[20] | |
232 | #define SWIGTYPE_p_wxScrolledWindow swig_types[21] | |
233 | #define SWIGTYPE_p_wxWindow swig_types[22] | |
234 | #define SWIGTYPE_p_wxFont swig_types[23] | |
235 | #define SWIGTYPE_p_wxControl swig_types[24] | |
236 | #define SWIGTYPE_p_wxEvent swig_types[25] | |
237 | #define SWIGTYPE_p_wxObject swig_types[26] | |
238 | #define SWIGTYPE_p_wxGridSizeEvent swig_types[27] | |
239 | #define SWIGTYPE_p_wxRect swig_types[28] | |
240 | #define SWIGTYPE_p_long swig_types[29] | |
241 | #define SWIGTYPE_p_wxString swig_types[30] | |
242 | #define SWIGTYPE_p_wxEvtHandler swig_types[31] | |
243 | #define SWIGTYPE_p_wxPoint swig_types[32] | |
244 | #define SWIGTYPE_p_wxGridEvent swig_types[33] | |
245 | #define SWIGTYPE_p_wxGridEditorCreatedEvent swig_types[34] | |
246 | #define SWIGTYPE_p_wxGridTableBase swig_types[35] | |
247 | #define SWIGTYPE_p_wxGridCellNumberEditor swig_types[36] | |
248 | #define SWIGTYPE_p_wxPyGridCellEditor swig_types[37] | |
249 | #define SWIGTYPE_p_wxGridCellEditor swig_types[38] | |
250 | #define SWIGTYPE_p_wxGridCellTextEditor swig_types[39] | |
251 | #define SWIGTYPE_p_wxGridCellFloatEditor swig_types[40] | |
252 | #define SWIGTYPE_p_wxGridCellBoolEditor swig_types[41] | |
253 | #define SWIGTYPE_p_wxPyGridTableBase swig_types[42] | |
254 | #define SWIGTYPE_p_wxGridStringTable swig_types[43] | |
255 | #define SWIGTYPE_p_wxArrayString swig_types[44] | |
256 | #define SWIGTYPE_p_wxCommandEvent swig_types[45] | |
257 | #define SWIGTYPE_p_wxGridCellAttrProvider swig_types[46] | |
258 | #define SWIGTYPE_p_wxKeyEvent swig_types[47] | |
259 | #define SWIGTYPE_p_wxGridCellChoiceEditor swig_types[48] | |
260 | #define SWIGTYPE_p_wxGridCellEnumEditor swig_types[49] | |
261 | #define SWIGTYPE_p_wxGridCellAutoWrapStringEditor swig_types[50] | |
262 | #define SWIGTYPE_p_int swig_types[51] | |
263 | #define SWIGTYPE_p_wxPyGridCellAttrProvider swig_types[52] | |
264 | static swig_type_info *swig_types[54]; | |
d14a1e28 RD |
265 | |
266 | /* -------- TYPES TABLE (END) -------- */ | |
267 | ||
268 | ||
269 | /*----------------------------------------------- | |
270 | @(target):= _grid.so | |
271 | ------------------------------------------------*/ | |
272 | #define SWIG_init init_grid | |
273 | ||
274 | #define SWIG_name "_grid" | |
275 | ||
c370783e RD |
276 | /* Auxiliar swig macros that appear in the header */ |
277 | ||
278 | #define SWIG_OLDOBJ 1 | |
279 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
280 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
8edf1c75 | 281 | |
8edf1c75 | 282 | #ifdef __cplusplus |
2f4c0a16 | 283 | #define SWIGSTATICINLINE(a) static inline a |
8edf1c75 | 284 | #define SWIGSTATIC(a) static a |
c370783e RD |
285 | #define swig_new_array(size,Type) (new Type[(size)]) |
286 | #define swig_delete(cptr) delete cptr | |
2f4c0a16 | 287 | #define swig_delete_array(cptr) delete[] cptr |
c370783e RD |
288 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
289 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
290 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
291 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
292 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
8edf1c75 | 293 | |
2f4c0a16 RD |
294 | #else /* C case */ |
295 | ||
296 | #define SWIGSTATICINLINE(a) static a | |
297 | #define SWIGSTATIC(a) static a | |
c370783e RD |
298 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
299 | #define swig_delete(cptr) free((char*)cptr) | |
2f4c0a16 | 300 | #define swig_delete_array(cptr) free((char*)cptr) |
c370783e RD |
301 | #define swig_const_cast(a,Type) (Type)(a) |
302 | #define swig_static_cast(a,Type) (Type)(a) | |
303 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
304 | #define swig_numeric_cast(a,Type) (Type)(a) | |
305 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
2f4c0a16 RD |
306 | |
307 | #endif /* __cplusplus */ | |
8edf1c75 RD |
308 | |
309 | ||
c370783e RD |
310 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
311 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
312 | /*@@*/ | |
313 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
314 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
315 | /*@@*/ | |
316 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
317 | #define SWIG_From_short PyInt_FromLong | |
318 | /*@@*/ | |
319 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
320 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
321 | /*@@*/ | |
322 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
323 | #define SWIG_From_int PyInt_FromLong | |
324 | /*@@*/ | |
325 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
326 | #define SWIG_From_long PyInt_FromLong | |
327 | /*@@*/ | |
328 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
329 | #define SWIG_From_float PyFloat_FromDouble | |
330 | /*@@*/ | |
331 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
332 | #define SWIG_From_double PyFloat_FromDouble | |
333 | /*@@*/ | |
8edf1c75 RD |
334 | |
335 | ||
d14a1e28 RD |
336 | #include "wx/wxPython/wxPython.h" |
337 | #include "wx/wxPython/pyclasses.h" | |
338 | #include "wx/wxPython/printfw.h" | |
339 | ||
340 | #include <wx/grid.h> | |
341 | #include <wx/generic/gridctrl.h> | |
342 | ||
d14a1e28 | 343 | |
cbd72d4f RD |
344 | static const wxString wxPyEmptyString(wxEmptyString); |
345 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
32958cea | 346 | static const wxString wxPyDateTimeFormatStr(wxT("%c")); |
d14a1e28 RD |
347 | |
348 | ||
349 | #define wxPyMake_TEMPLATE(TYPE) \ | |
412d302d | 350 | PyObject* wxPyMake_##TYPE(TYPE* source, bool setThisOwn) { \ |
d14a1e28 RD |
351 | PyObject* target = NULL; \ |
352 | if (source) { \ | |
353 | /* Check if there is already a pointer to a Python object in the \ | |
354 | OOR data that we can use. */ \ | |
355 | wxPyOORClientData* data = (wxPyOORClientData*)source->GetClientObject(); \ | |
356 | if (data) { \ | |
357 | target = data->m_obj; \ | |
b0f7404b RD |
358 | if (target) \ |
359 | Py_INCREF(target); \ | |
d14a1e28 RD |
360 | } \ |
361 | /* Otherwise make a new wrapper for it the old fashioned way and \ | |
362 | give it the OOR treatment */ \ | |
363 | if (! target) { \ | |
412d302d | 364 | target = wxPyConstructObject(source, wxT(#TYPE), setThisOwn); \ |
d14a1e28 RD |
365 | if (target) \ |
366 | source->SetClientObject(new wxPyOORClientData(target)); \ | |
367 | } \ | |
368 | } else { /* source was NULL so return None. */ \ | |
369 | Py_INCREF(Py_None); target = Py_None; \ | |
370 | } \ | |
371 | return target; \ | |
372 | } \ | |
373 | ||
374 | ||
375 | wxPyMake_TEMPLATE(wxGridCellRenderer) | |
376 | wxPyMake_TEMPLATE(wxGridCellEditor) | |
377 | wxPyMake_TEMPLATE(wxGridCellAttr) | |
378 | wxPyMake_TEMPLATE(wxGridCellAttrProvider) | |
379 | wxPyMake_TEMPLATE(wxGridTableBase) | |
380 | ||
381 | ||
382 | ||
383 | #define PYCALLBACK_GCA_INTINTKIND(PCLASS, CBNAME) \ | |
384 | wxGridCellAttr* CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \ | |
385 | wxGridCellAttr* rval = NULL; \ | |
386 | bool found; \ | |
fbc46b20 | 387 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
388 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
389 | PyObject* ro; \ | |
390 | wxGridCellAttr* ptr; \ | |
391 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iii)", a, b, c)); \ | |
392 | if (ro) { \ | |
393 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellAttr"))) \ | |
394 | rval = ptr; \ | |
395 | Py_DECREF(ro); \ | |
396 | } \ | |
397 | } \ | |
fbc46b20 | 398 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
399 | if (! found) \ |
400 | rval = PCLASS::CBNAME(a, b, c); \ | |
401 | return rval; \ | |
402 | } \ | |
403 | wxGridCellAttr *base_##CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \ | |
404 | return PCLASS::CBNAME(a, b, c); \ | |
405 | } | |
406 | ||
407 | ||
408 | ||
409 | #define PYCALLBACK__GCAINTINT(PCLASS, CBNAME) \ | |
410 | void CBNAME(wxGridCellAttr *attr, int a, int b) { \ | |
fbc46b20 | 411 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
412 | bool found; \ |
413 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
412d302d | 414 | PyObject* obj = wxPyMake_wxGridCellAttr(attr,false); \ |
d14a1e28 RD |
415 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oii)", obj, a, b)); \ |
416 | Py_DECREF(obj); \ | |
417 | } \ | |
fbc46b20 | 418 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
419 | if (! found) \ |
420 | PCLASS::CBNAME(attr, a, b); \ | |
421 | } \ | |
422 | void base_##CBNAME(wxGridCellAttr *attr, int a, int b) { \ | |
423 | PCLASS::CBNAME(attr, a, b); \ | |
424 | } | |
425 | ||
426 | ||
427 | ||
428 | #define PYCALLBACK__GCAINT(PCLASS, CBNAME) \ | |
429 | void CBNAME(wxGridCellAttr *attr, int val) { \ | |
fbc46b20 | 430 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
431 | bool found; \ |
432 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
412d302d | 433 | PyObject* obj = wxPyMake_wxGridCellAttr(attr,false); \ |
d14a1e28 RD |
434 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", obj, val)); \ |
435 | Py_DECREF(obj); \ | |
436 | } \ | |
fbc46b20 | 437 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
438 | if (! found) \ |
439 | PCLASS::CBNAME(attr, val); \ | |
440 | } \ | |
441 | void base_##CBNAME(wxGridCellAttr *attr, int val) { \ | |
442 | PCLASS::CBNAME(attr, val); \ | |
443 | } | |
444 | ||
445 | ||
446 | ||
447 | #define PYCALLBACK_INT__pure(CBNAME) \ | |
448 | int CBNAME() { \ | |
fbc46b20 | 449 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
450 | int rval = 0; \ |
451 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \ | |
452 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ | |
fbc46b20 | 453 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
454 | return rval; \ |
455 | } | |
456 | ||
457 | ||
458 | ||
459 | #define PYCALLBACK_BOOL_INTINT_pure(CBNAME) \ | |
460 | bool CBNAME(int a, int b) { \ | |
fbc46b20 | 461 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
462 | bool rval = 0; \ |
463 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \ | |
464 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
fbc46b20 | 465 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
466 | return rval; \ |
467 | } | |
468 | ||
469 | ||
470 | #define PYCALLBACK_STRING_INTINT_pure(CBNAME) \ | |
471 | wxString CBNAME(int a, int b) { \ | |
fbc46b20 | 472 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
473 | wxString rval; \ |
474 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \ | |
475 | PyObject* ro; \ | |
476 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
477 | if (ro) { \ | |
478 | rval = Py2wxString(ro); \ | |
479 | Py_DECREF(ro); \ | |
480 | } \ | |
481 | } \ | |
fbc46b20 | 482 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
483 | return rval; \ |
484 | } | |
485 | ||
486 | ||
487 | #define PYCALLBACK__INTINTSTRING_pure(CBNAME) \ | |
488 | void CBNAME(int a, int b, const wxString& c) { \ | |
fbc46b20 | 489 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
490 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \ |
491 | PyObject* s = wx2PyString(c); \ | |
492 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\ | |
493 | Py_DECREF(s); \ | |
494 | } \ | |
fbc46b20 | 495 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
496 | } |
497 | ||
498 | ||
499 | #define PYCALLBACK_STRING_INTINT(PCLASS, CBNAME) \ | |
500 | wxString CBNAME(int a, int b) { \ | |
501 | bool found; \ | |
fbc46b20 | 502 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
503 | wxString rval; \ |
504 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
505 | PyObject* ro; \ | |
506 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
507 | if (ro) { \ | |
508 | rval = Py2wxString(ro); \ | |
509 | Py_DECREF(ro); \ | |
510 | } \ | |
511 | } \ | |
fbc46b20 | 512 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
513 | if (! found) \ |
514 | rval = PCLASS::CBNAME(a, b); \ | |
515 | return rval; \ | |
516 | } \ | |
517 | wxString base_##CBNAME(int a, int b) { \ | |
518 | return PCLASS::CBNAME(a, b); \ | |
519 | } | |
520 | ||
521 | ||
522 | #define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME) \ | |
523 | bool CBNAME(int a, int b, const wxString& c) { \ | |
524 | bool rval = 0; \ | |
525 | bool found; \ | |
fbc46b20 | 526 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
527 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
528 | PyObject* s = wx2PyString(c); \ | |
529 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\ | |
530 | Py_DECREF(s); \ | |
531 | } \ | |
fbc46b20 | 532 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
533 | if (! found) \ |
534 | rval = PCLASS::CBNAME(a,b,c); \ | |
535 | return rval; \ | |
536 | } \ | |
537 | bool base_##CBNAME(int a, int b, const wxString& c) { \ | |
538 | return PCLASS::CBNAME(a,b,c); \ | |
539 | } | |
540 | ||
541 | ||
542 | ||
543 | ||
544 | #define PYCALLBACK_LONG_INTINT(PCLASS, CBNAME) \ | |
545 | long CBNAME(int a, int b) { \ | |
546 | long rval; \ | |
547 | bool found; \ | |
fbc46b20 | 548 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
549 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
550 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
fbc46b20 | 551 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
552 | if (! found) \ |
553 | rval = PCLASS::CBNAME(a,b); \ | |
554 | return rval; \ | |
555 | } \ | |
556 | long base_##CBNAME(int a, int b) { \ | |
557 | return PCLASS::CBNAME(a,b); \ | |
558 | } | |
559 | ||
560 | ||
561 | ||
562 | #define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME) \ | |
563 | bool CBNAME(int a, int b) { \ | |
564 | bool rval = 0; \ | |
565 | bool found; \ | |
fbc46b20 | 566 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
567 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
568 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
fbc46b20 | 569 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
570 | if (! found) \ |
571 | rval = PCLASS::CBNAME(a,b); \ | |
572 | return rval; \ | |
573 | } \ | |
574 | bool base_##CBNAME(int a, int b) { \ | |
575 | return PCLASS::CBNAME(a,b); \ | |
576 | } | |
577 | ||
578 | ||
579 | ||
580 | #define PYCALLBACK_DOUBLE_INTINT(PCLASS, CBNAME) \ | |
581 | double CBNAME(int a, int b) { \ | |
582 | bool found; \ | |
fbc46b20 | 583 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
584 | double rval; \ |
585 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
586 | PyObject* ro; \ | |
587 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
588 | if (ro) { \ | |
589 | PyObject* str = PyObject_Str(ro); \ | |
590 | rval = PyFloat_AsDouble(str); \ | |
591 | Py_DECREF(ro); Py_DECREF(str); \ | |
592 | } \ | |
593 | } \ | |
fbc46b20 | 594 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
595 | if (! found) \ |
596 | rval = PCLASS::CBNAME(a, b); \ | |
597 | return rval; \ | |
598 | } \ | |
599 | double base_##CBNAME(int a, int b) { \ | |
600 | return PCLASS::CBNAME(a, b); \ | |
601 | } | |
602 | ||
603 | ||
604 | ||
605 | #define PYCALLBACK__(PCLASS, CBNAME) \ | |
606 | void CBNAME() { \ | |
607 | bool found; \ | |
fbc46b20 | 608 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
609 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
610 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ | |
fbc46b20 | 611 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
612 | if (! found) \ |
613 | PCLASS::CBNAME(); \ | |
614 | } \ | |
615 | void base_##CBNAME() { \ | |
616 | PCLASS::CBNAME(); \ | |
617 | } | |
618 | ||
619 | ||
620 | ||
621 | ||
622 | #define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME) \ | |
623 | bool CBNAME(size_t a, size_t b) { \ | |
624 | bool rval = 0; \ | |
625 | bool found; \ | |
fbc46b20 | 626 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
627 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
628 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
fbc46b20 | 629 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
630 | if (! found) \ |
631 | rval = PCLASS::CBNAME(a,b); \ | |
632 | return rval; \ | |
633 | } \ | |
634 | bool base_##CBNAME(size_t a, size_t b) { \ | |
635 | return PCLASS::CBNAME(a,b); \ | |
636 | } | |
637 | ||
638 | ||
639 | ||
640 | #define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME) \ | |
641 | bool CBNAME(size_t a) { \ | |
642 | bool rval = 0; \ | |
643 | bool found; \ | |
fbc46b20 | 644 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
645 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
646 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(i)", a)); \ | |
fbc46b20 | 647 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
648 | if (! found) \ |
649 | rval = PCLASS::CBNAME(a); \ | |
650 | return rval; \ | |
651 | } \ | |
652 | bool base_##CBNAME(size_t a) { \ | |
653 | return PCLASS::CBNAME(a); \ | |
654 | } | |
655 | ||
656 | ||
657 | #define PYCALLBACK_STRING_INT(PCLASS, CBNAME) \ | |
658 | wxString CBNAME(int a) { \ | |
659 | bool found; \ | |
fbc46b20 | 660 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
661 | wxString rval; \ |
662 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
663 | PyObject* ro; \ | |
664 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(i)",a)); \ | |
665 | if (ro) { \ | |
666 | rval = Py2wxString(ro); \ | |
667 | Py_DECREF(ro); \ | |
668 | } \ | |
669 | } \ | |
fbc46b20 | 670 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
671 | if (! found) \ |
672 | rval = PCLASS::CBNAME(a); \ | |
673 | return rval; \ | |
674 | } \ | |
675 | wxString base_##CBNAME(int a) { \ | |
676 | return PCLASS::CBNAME(a); \ | |
677 | } | |
678 | ||
679 | ||
680 | #define PYCALLBACK__INTSTRING(PCLASS, CBNAME) \ | |
681 | void CBNAME(int a, const wxString& c) { \ | |
682 | bool found; \ | |
fbc46b20 | 683 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
684 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
685 | PyObject* s = wx2PyString(c); \ | |
686 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)",a,s)); \ | |
687 | Py_DECREF(s); \ | |
688 | } \ | |
fbc46b20 | 689 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
690 | if (! found) \ |
691 | PCLASS::CBNAME(a,c); \ | |
692 | } \ | |
693 | void base_##CBNAME(int a, const wxString& c) { \ | |
694 | PCLASS::CBNAME(a,c); \ | |
695 | } | |
696 | ||
697 | ||
698 | ||
699 | ||
700 | #define PYCALLBACK_BOOL_(PCLASS, CBNAME) \ | |
701 | bool CBNAME() { \ | |
702 | bool rval = 0; \ | |
703 | bool found; \ | |
fbc46b20 | 704 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
705 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
706 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ | |
fbc46b20 | 707 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
708 | if (! found) \ |
709 | rval = PCLASS::CBNAME(); \ | |
710 | return rval; \ | |
711 | } \ | |
712 | bool base_##CBNAME() { \ | |
713 | return PCLASS::CBNAME(); \ | |
714 | } | |
715 | ||
716 | ||
717 | ||
718 | #define PYCALLBACK__SIZETINT(PCLASS, CBNAME) \ | |
719 | void CBNAME(size_t a, int b) { \ | |
720 | bool found; \ | |
fbc46b20 | 721 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
722 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
723 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
fbc46b20 | 724 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
725 | if (! found) \ |
726 | PCLASS::CBNAME(a,b); \ | |
727 | } \ | |
728 | void base_##CBNAME(size_t a, int b) { \ | |
729 | PCLASS::CBNAME(a,b); \ | |
730 | } | |
731 | ||
732 | ||
733 | ||
734 | ||
735 | #define PYCALLBACK__INTINTLONG(PCLASS, CBNAME) \ | |
736 | void CBNAME(int a, int b, long c) { \ | |
737 | bool found; \ | |
fbc46b20 | 738 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
739 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
740 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \ | |
fbc46b20 | 741 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
742 | if (! found) \ |
743 | PCLASS::CBNAME(a,b,c); \ | |
744 | } \ | |
745 | void base_##CBNAME(int a, int b, long c) { \ | |
746 | PCLASS::CBNAME(a,b,c); \ | |
747 | } | |
748 | ||
749 | ||
750 | ||
751 | ||
752 | #define PYCALLBACK__INTINTDOUBLE(PCLASS, CBNAME) \ | |
753 | void CBNAME(int a, int b, double c) { \ | |
754 | bool found; \ | |
fbc46b20 | 755 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
756 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
757 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iif)", a,b,c)); \ | |
fbc46b20 | 758 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
759 | if (! found) \ |
760 | PCLASS::CBNAME(a,b,c); \ | |
761 | } \ | |
762 | void base_##CBNAME(int a, int b, double c) { \ | |
763 | PCLASS::CBNAME(a,b,c); \ | |
764 | } | |
765 | ||
766 | ||
767 | ||
768 | #define PYCALLBACK__INTINTBOOL(PCLASS, CBNAME) \ | |
769 | void CBNAME(int a, int b, bool c) { \ | |
770 | bool found; \ | |
fbc46b20 | 771 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
772 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
773 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \ | |
fbc46b20 | 774 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
775 | if (! found) \ |
776 | PCLASS::CBNAME(a,b,c); \ | |
777 | } \ | |
778 | void base_##CBNAME(int a, int b, bool c) { \ | |
779 | PCLASS::CBNAME(a,b,c); \ | |
780 | } | |
781 | ||
782 | ||
783 | ||
784 | ||
785 | ||
2f4c0a16 RD |
786 | |
787 | SWIGSTATICINLINE(PyObject *) | |
788 | SWIG_FromCharPtr(const char* cptr) | |
789 | { | |
2f4c0a16 | 790 | if (cptr) { |
c370783e | 791 | size_t size = strlen(cptr); |
2f4c0a16 | 792 | if (size > INT_MAX) { |
c370783e | 793 | return SWIG_NewPointerObj(swig_const_cast(cptr,char*), |
2f4c0a16 RD |
794 | SWIG_TypeQuery("char *"), 0); |
795 | } else { | |
c370783e RD |
796 | if (size != 0) { |
797 | return PyString_FromStringAndSize(cptr, size); | |
798 | } else { | |
799 | return PyString_FromString(cptr); | |
800 | } | |
2f4c0a16 | 801 | } |
2f4c0a16 | 802 | } |
c370783e RD |
803 | Py_INCREF(Py_None); |
804 | return Py_None; | |
2f4c0a16 RD |
805 | } |
806 | ||
b0f7404b RD |
807 | |
808 | #define wxGRID_DEFAULT_NUMBER_ROWS WXGRID_DEFAULT_NUMBER_ROWS | |
809 | #define wxGRID_DEFAULT_NUMBER_COLS WXGRID_DEFAULT_NUMBER_COLS | |
810 | #define wxGRID_DEFAULT_ROW_HEIGHT WXGRID_DEFAULT_ROW_HEIGHT | |
811 | #define wxGRID_DEFAULT_COL_WIDTH WXGRID_DEFAULT_COL_WIDTH | |
812 | #define wxGRID_DEFAULT_COL_LABEL_HEIGHT WXGRID_DEFAULT_COL_LABEL_HEIGHT | |
813 | #define wxGRID_DEFAULT_ROW_LABEL_WIDTH WXGRID_DEFAULT_ROW_LABEL_WIDTH | |
814 | #define wxGRID_LABEL_EDGE_ZONE WXGRID_LABEL_EDGE_ZONE | |
815 | #define wxGRID_MIN_ROW_HEIGHT WXGRID_MIN_ROW_HEIGHT | |
816 | #define wxGRID_MIN_COL_WIDTH WXGRID_MIN_COL_WIDTH | |
817 | #define wxGRID_DEFAULT_SCROLLBAR_WIDTH WXGRID_DEFAULT_SCROLLBAR_WIDTH | |
818 | ||
d14a1e28 | 819 | void wxGridCellRenderer__setOORInfo(wxGridCellRenderer *self,PyObject *_self){ |
b0f7404b RD |
820 | if (!self->GetClientObject()) |
821 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d14a1e28 RD |
822 | } |
823 | ||
2f4c0a16 RD |
824 | #include <limits.h> |
825 | ||
826 | ||
c370783e RD |
827 | SWIGSTATICINLINE(int) |
828 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
829 | const char *errmsg) | |
2f4c0a16 | 830 | { |
c370783e RD |
831 | if (value < min_value) { |
832 | if (errmsg) { | |
833 | PyErr_Format(PyExc_OverflowError, | |
834 | "value %ld is less than '%s' minimum %ld", | |
835 | value, errmsg, min_value); | |
836 | } | |
837 | return 0; | |
838 | } else if (value > max_value) { | |
839 | if (errmsg) { | |
840 | PyErr_Format(PyExc_OverflowError, | |
841 | "value %ld is greater than '%s' maximum %ld", | |
842 | value, errmsg, max_value); | |
2f4c0a16 | 843 | } |
c370783e | 844 | return 0; |
2f4c0a16 | 845 | } |
c370783e | 846 | return 1; |
2f4c0a16 RD |
847 | } |
848 | ||
849 | ||
c370783e RD |
850 | // See my_fragments.i |
851 | SWIGSTATICINLINE(int) | |
852 | SWIG_AsVal_long(PyObject* obj, long* val) | |
2f4c0a16 | 853 | { |
c370783e RD |
854 | if (PyNumber_Check(obj)) { |
855 | if (val) *val = PyInt_AsLong(obj); | |
856 | return 1; | |
857 | } | |
69223c70 RD |
858 | else { |
859 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
860 | obj->ob_type->tp_name); | |
861 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
862 | Py_DECREF(errmsg); | |
69223c70 | 863 | } |
c370783e | 864 | return 0; |
2f4c0a16 RD |
865 | } |
866 | ||
867 | ||
868 | #if INT_MAX != LONG_MAX | |
869 | SWIGSTATICINLINE(int) | |
c370783e | 870 | SWIG_AsVal_int(PyObject *obj, int *val) |
8edf1c75 | 871 | { |
c370783e RD |
872 | const char* errmsg = val ? "int" : 0; |
873 | long v; | |
874 | if (SWIG_AsVal_long(obj, &v)) { | |
875 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
876 | if (val) *val = swig_numeric_cast(v, int); | |
877 | return 1; | |
878 | } else { | |
879 | return 0; | |
880 | } | |
881 | } else { | |
882 | PyErr_Clear(); | |
883 | } | |
884 | if (val) { | |
885 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
886 | } | |
887 | return 0; | |
8edf1c75 | 888 | } |
2f4c0a16 | 889 | #else |
c370783e RD |
890 | SWIGSTATICINLINE(int) |
891 | SWIG_AsVal_int(PyObject *obj, int *val) | |
892 | { | |
893 | return SWIG_AsVal_long(obj,(long*)val); | |
894 | } | |
2f4c0a16 | 895 | #endif |
8edf1c75 RD |
896 | |
897 | ||
c370783e RD |
898 | SWIGSTATICINLINE(int) |
899 | SWIG_As_int(PyObject* obj) | |
8edf1c75 | 900 | { |
c370783e RD |
901 | int v; |
902 | if (!SWIG_AsVal_int(obj, &v)) { | |
903 | /* | |
904 | this is needed to make valgrind/purify happier. the other | |
905 | solution is throw an exception, but since this code should work | |
906 | with plain C .... | |
907 | */ | |
908 | memset((void*)&v, 0, sizeof(int)); | |
909 | } | |
910 | return v; | |
8edf1c75 RD |
911 | } |
912 | ||
913 | ||
2f4c0a16 | 914 | SWIGSTATICINLINE(int) |
c370783e | 915 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
2f4c0a16 | 916 | { |
c370783e RD |
917 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ |
918 | if (obj == Py_True) { | |
919 | if (val) *val = true; | |
920 | return 1; | |
921 | } | |
922 | if (obj == Py_False) { | |
923 | if (val) *val = false; | |
924 | return 1; | |
925 | } | |
926 | int res = 0; | |
927 | if (SWIG_AsVal_int(obj, &res)) { | |
928 | if (val) *val = (bool)res; | |
2f4c0a16 RD |
929 | return 1; |
930 | } | |
c370783e RD |
931 | if (val) { |
932 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
933 | } | |
934 | return 0; | |
2f4c0a16 RD |
935 | } |
936 | ||
937 | ||
c370783e RD |
938 | SWIGSTATICINLINE(bool) |
939 | SWIG_As_bool(PyObject* obj) | |
2f4c0a16 | 940 | { |
c370783e RD |
941 | bool v; |
942 | if (!SWIG_AsVal_bool(obj, &v)) { | |
943 | /* | |
944 | this is needed to make valgrind/purify happier. the other | |
945 | solution is throw an exception, but since this code should work | |
946 | with plain C .... | |
947 | */ | |
948 | memset((void*)&v, 0, sizeof(bool)); | |
2f4c0a16 | 949 | } |
c370783e RD |
950 | return v; |
951 | } | |
952 | ||
953 | ||
954 | SWIGSTATICINLINE(int) | |
955 | SWIG_Check_int(PyObject* obj) | |
956 | { | |
957 | return SWIG_AsVal_int(obj, (int*)0); | |
958 | } | |
959 | ||
960 | ||
961 | SWIGSTATICINLINE(int) | |
962 | SWIG_Check_bool(PyObject* obj) | |
963 | { | |
964 | return SWIG_AsVal_bool(obj, (bool*)0); | |
2f4c0a16 RD |
965 | } |
966 | ||
967 | ||
d14a1e28 RD |
968 | class wxPyGridCellRenderer : public wxGridCellRenderer |
969 | { | |
970 | public: | |
971 | wxPyGridCellRenderer() : wxGridCellRenderer() {}; | |
972 | ||
973 | // Implement Python callback aware virtual methods | |
974 | void Draw(wxGrid& grid, wxGridCellAttr& attr, | |
975 | wxDC& dc, const wxRect& rect, | |
976 | int row, int col, bool isSelected) { | |
fbc46b20 | 977 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 978 | if (wxPyCBH_findCallback(m_myInst, "Draw")) { |
412d302d RD |
979 | PyObject* go = wxPyMake_wxObject(&grid,false); |
980 | PyObject* dco = wxPyMake_wxObject(&dc,false); | |
981 | PyObject* ao = wxPyMake_wxGridCellAttr(&attr,false); | |
d14a1e28 RD |
982 | PyObject* ro = wxPyConstructObject((void*)&rect, wxT("wxRect"), 0); |
983 | ||
984 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOOOiii)", go, ao, dco, ro, | |
985 | row, col, isSelected)); | |
986 | Py_DECREF(go); | |
987 | Py_DECREF(ao); | |
988 | Py_DECREF(dco); | |
989 | Py_DECREF(ro); | |
990 | } | |
fbc46b20 | 991 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
992 | } |
993 | ||
994 | wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc, | |
995 | int row, int col) { | |
996 | wxSize rval; | |
fbc46b20 | 997 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
998 | if (wxPyCBH_findCallback(m_myInst, "GetBestSize")) { |
999 | PyObject* ro; | |
1000 | wxSize* ptr; | |
412d302d RD |
1001 | PyObject* go = wxPyMake_wxObject(&grid,false); |
1002 | PyObject* dco = wxPyMake_wxObject(&dc,false); | |
1003 | PyObject* ao = wxPyMake_wxGridCellAttr(&attr,false); | |
d14a1e28 RD |
1004 | |
1005 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOOii)", | |
1006 | go, ao, dco, | |
1007 | row, col)); | |
1008 | Py_DECREF(go); | |
1009 | Py_DECREF(ao); | |
1010 | Py_DECREF(dco); | |
1011 | ||
1012 | if (ro) { | |
1013 | const char* errmsg = "GetBestSize should return a 2-tuple of integers or a wxSize object."; | |
1014 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxSize"))) { | |
1015 | rval = *ptr; | |
1016 | } | |
1017 | else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) { | |
1018 | PyObject* o1 = PySequence_GetItem(ro, 0); | |
1019 | PyObject* o2 = PySequence_GetItem(ro, 1); | |
1020 | if (PyNumber_Check(o1) && PyNumber_Check(o2)) | |
1021 | rval = wxSize(PyInt_AsLong(o1), PyInt_AsLong(o2)); | |
1022 | else | |
1023 | PyErr_SetString(PyExc_TypeError, errmsg); | |
1024 | Py_DECREF(o1); | |
1025 | Py_DECREF(o2); | |
1026 | } | |
1027 | else { | |
1028 | PyErr_SetString(PyExc_TypeError, errmsg); | |
1029 | } | |
1030 | Py_DECREF(ro); | |
1031 | } | |
1032 | } | |
fbc46b20 | 1033 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1034 | return rval; |
1035 | } | |
1036 | ||
1037 | ||
1038 | wxGridCellRenderer *Clone() const { | |
1039 | wxGridCellRenderer* rval = NULL; | |
fbc46b20 | 1040 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1041 | if (wxPyCBH_findCallback(m_myInst, "Clone")) { |
1042 | PyObject* ro; | |
1043 | wxGridCellRenderer* ptr; | |
1044 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1045 | if (ro) { | |
1046 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellRenderer"))) | |
1047 | rval = ptr; | |
1048 | Py_DECREF(ro); | |
1049 | } | |
1050 | } | |
fbc46b20 | 1051 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1052 | return rval; |
1053 | } | |
1054 | ||
1055 | DEC_PYCALLBACK__STRING(SetParameters); | |
1056 | ||
1057 | PYPRIVATE; | |
1058 | }; | |
1059 | ||
1060 | IMP_PYCALLBACK__STRING( wxPyGridCellRenderer, wxGridCellRenderer, SetParameters); | |
1061 | ||
1062 | ||
1063 | void wxGridCellEditor__setOORInfo(wxGridCellEditor *self,PyObject *_self){ | |
b0f7404b RD |
1064 | if (!self->GetClientObject()) |
1065 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d14a1e28 RD |
1066 | } |
1067 | ||
1068 | class wxPyGridCellEditor : public wxGridCellEditor | |
1069 | { | |
1070 | public: | |
1071 | wxPyGridCellEditor() : wxGridCellEditor() {} | |
1072 | ||
1073 | void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler) { | |
fbc46b20 | 1074 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1075 | if (wxPyCBH_findCallback(m_myInst, "Create")) { |
412d302d RD |
1076 | PyObject* po = wxPyMake_wxObject(parent,false); |
1077 | PyObject* eo = wxPyMake_wxObject(evtHandler,false); | |
d14a1e28 RD |
1078 | |
1079 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OiO)", po, id, eo)); | |
1080 | Py_DECREF(po); | |
1081 | Py_DECREF(eo); | |
1082 | } | |
fbc46b20 | 1083 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1084 | } |
1085 | ||
1086 | ||
1087 | void BeginEdit(int row, int col, wxGrid* grid) { | |
fbc46b20 | 1088 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1089 | if (wxPyCBH_findCallback(m_myInst, "BeginEdit")) { |
412d302d | 1090 | PyObject* go = wxPyMake_wxObject(grid,false); |
d14a1e28 RD |
1091 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go)); |
1092 | Py_DECREF(go); | |
1093 | } | |
fbc46b20 | 1094 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1095 | } |
1096 | ||
1097 | ||
1098 | bool EndEdit(int row, int col, wxGrid* grid) { | |
b411df4a | 1099 | bool rv = false; |
fbc46b20 | 1100 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1101 | if (wxPyCBH_findCallback(m_myInst, "EndEdit")) { |
412d302d | 1102 | PyObject* go = wxPyMake_wxObject(grid,false); |
d14a1e28 RD |
1103 | rv = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go)); |
1104 | Py_DECREF(go); | |
1105 | } | |
fbc46b20 | 1106 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1107 | return rv; |
1108 | } | |
1109 | ||
1110 | ||
1111 | wxGridCellEditor* Clone() const { | |
1112 | wxGridCellEditor* rval = NULL; | |
fbc46b20 | 1113 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1114 | if (wxPyCBH_findCallback(m_myInst, "Clone")) { |
1115 | PyObject* ro; | |
1116 | wxGridCellEditor* ptr; | |
1117 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1118 | if (ro) { | |
1119 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellEditor"))) | |
1120 | rval = ptr; | |
1121 | Py_DECREF(ro); | |
1122 | } | |
1123 | } | |
fbc46b20 | 1124 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1125 | return rval; |
1126 | } | |
1127 | ||
1128 | ||
1129 | void Show(bool show, wxGridCellAttr *attr) { | |
1130 | bool found; | |
fbc46b20 | 1131 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1132 | if ((found = wxPyCBH_findCallback(m_myInst, "Show"))) { |
412d302d | 1133 | PyObject* ao = wxPyMake_wxGridCellAttr(attr,false); |
d14a1e28 RD |
1134 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", show, ao)); |
1135 | Py_DECREF(ao); | |
1136 | } | |
fbc46b20 | 1137 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1138 | if (! found) |
1139 | wxGridCellEditor::Show(show, attr); | |
1140 | } | |
1141 | void base_Show(bool show, wxGridCellAttr *attr) { | |
1142 | wxGridCellEditor::Show(show, attr); | |
1143 | } | |
1144 | ||
1145 | ||
1146 | void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) { | |
1147 | bool found; | |
fbc46b20 | 1148 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1149 | if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground)"))) { |
412d302d | 1150 | PyObject* ao = wxPyMake_wxGridCellAttr(attr,false); |
d14a1e28 RD |
1151 | PyObject* ro = wxPyConstructObject((void*)&rectCell, wxT("wxRect"), 0); |
1152 | ||
1153 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", ro, ao)); | |
1154 | ||
1155 | Py_DECREF(ro); | |
1156 | Py_DECREF(ao); | |
1157 | } | |
fbc46b20 | 1158 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1159 | if (! found) |
1160 | wxGridCellEditor::PaintBackground(rectCell, attr); | |
1161 | } | |
1162 | void base_PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) { | |
1163 | wxGridCellEditor::PaintBackground(rectCell, attr); | |
1164 | } | |
1165 | ||
1166 | ||
1167 | DEC_PYCALLBACK___pure(Reset); | |
1168 | DEC_PYCALLBACK__constany(SetSize, wxRect); | |
1169 | DEC_PYCALLBACK_bool_any(IsAcceptedKey, wxKeyEvent); | |
1170 | DEC_PYCALLBACK__any(StartingKey, wxKeyEvent); | |
1171 | DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent); | |
1172 | DEC_PYCALLBACK__(StartingClick); | |
1173 | DEC_PYCALLBACK__(Destroy); | |
1174 | DEC_PYCALLBACK__STRING(SetParameters); | |
1175 | DEC_PYCALLBACK_STRING__constpure(GetValue); | |
1176 | ||
1177 | PYPRIVATE; | |
1178 | }; | |
1179 | ||
1180 | ||
1181 | IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters); | |
1182 | IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset); | |
1183 | IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect); | |
1184 | IMP_PYCALLBACK_bool_any(wxPyGridCellEditor, wxGridCellEditor, IsAcceptedKey, wxKeyEvent); | |
1185 | IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent); | |
1186 | IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent); | |
1187 | IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick); | |
1188 | IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy); | |
1189 | IMP_PYCALLBACK_STRING__constpure(wxPyGridCellEditor, wxGridCellEditor, GetValue); | |
1190 | ||
1191 | ||
1192 | void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){ | |
b0f7404b RD |
1193 | if (!self->GetClientObject()) |
1194 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d14a1e28 RD |
1195 | } |
1196 | ||
c370783e | 1197 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d14a1e28 RD |
1198 | PyObject* o2; |
1199 | PyObject* o3; | |
c370783e | 1200 | |
d14a1e28 RD |
1201 | if (!target) { |
1202 | target = o; | |
1203 | } else if (target == Py_None) { | |
1204 | Py_DECREF(Py_None); | |
1205 | target = o; | |
629e65c2 RD |
1206 | } else { |
1207 | if (!PyTuple_Check(target)) { | |
1208 | o2 = target; | |
1209 | target = PyTuple_New(1); | |
1210 | PyTuple_SetItem(target, 0, o2); | |
1211 | } | |
d14a1e28 RD |
1212 | o3 = PyTuple_New(1); |
1213 | PyTuple_SetItem(o3, 0, o); | |
1214 | ||
1215 | o2 = target; | |
1216 | target = PySequence_Concat(o2, o3); | |
1217 | Py_DECREF(o2); | |
1218 | Py_DECREF(o3); | |
1219 | } | |
1220 | return target; | |
629e65c2 | 1221 | } |
d14a1e28 | 1222 | |
c370783e | 1223 | |
d14a1e28 | 1224 | void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){ |
b0f7404b RD |
1225 | if (!self->GetClientObject()) |
1226 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d14a1e28 RD |
1227 | } |
1228 | ||
c370783e RD |
1229 | // See my_fragments.i |
1230 | SWIGSTATICINLINE(int) | |
1231 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
2f4c0a16 | 1232 | { |
c370783e RD |
1233 | long v = 0; |
1234 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
1235 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
1236 | return 0; | |
2f4c0a16 | 1237 | } |
c370783e RD |
1238 | else if (val) |
1239 | *val = (unsigned long)v; | |
1240 | return 1; | |
2f4c0a16 RD |
1241 | } |
1242 | ||
1243 | ||
c370783e RD |
1244 | SWIGSTATICINLINE(unsigned long) |
1245 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
2f4c0a16 | 1246 | { |
c370783e RD |
1247 | unsigned long v; |
1248 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1249 | /* | |
1250 | this is needed to make valgrind/purify happier. the other | |
1251 | solution is throw an exception, but since this code should work | |
1252 | with plain C .... | |
1253 | */ | |
1254 | memset((void*)&v, 0, sizeof(unsigned long)); | |
2f4c0a16 | 1255 | } |
c370783e RD |
1256 | return v; |
1257 | } | |
1258 | ||
1259 | ||
1260 | SWIGSTATICINLINE(int) | |
1261 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
1262 | { | |
1263 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
2f4c0a16 RD |
1264 | } |
1265 | ||
1266 | ||
d14a1e28 RD |
1267 | class wxPyGridCellAttrProvider : public wxGridCellAttrProvider |
1268 | { | |
1269 | public: | |
1270 | wxPyGridCellAttrProvider() : wxGridCellAttrProvider() {}; | |
1271 | ||
1272 | PYCALLBACK_GCA_INTINTKIND(wxGridCellAttrProvider, GetAttr); | |
1273 | PYCALLBACK__GCAINTINT(wxGridCellAttrProvider, SetAttr); | |
1274 | PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetRowAttr); | |
1275 | PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetColAttr); | |
1276 | ||
1277 | PYPRIVATE; | |
1278 | }; | |
1279 | ||
1280 | void wxGridTableBase__setOORInfo(wxGridTableBase *self,PyObject *_self){ | |
b0f7404b RD |
1281 | if (!self->GetClientObject()) |
1282 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d14a1e28 RD |
1283 | } |
1284 | ||
c370783e RD |
1285 | SWIGSTATICINLINE(long) |
1286 | SWIG_As_long(PyObject* obj) | |
8edf1c75 | 1287 | { |
c370783e RD |
1288 | long v; |
1289 | if (!SWIG_AsVal_long(obj, &v)) { | |
1290 | /* | |
1291 | this is needed to make valgrind/purify happier. the other | |
1292 | solution is throw an exception, but since this code should work | |
1293 | with plain C .... | |
1294 | */ | |
1295 | memset((void*)&v, 0, sizeof(long)); | |
2f4c0a16 | 1296 | } |
c370783e | 1297 | return v; |
8edf1c75 RD |
1298 | } |
1299 | ||
c370783e RD |
1300 | |
1301 | SWIGSTATICINLINE(int) | |
1302 | SWIG_Check_long(PyObject* obj) | |
1303 | { | |
1304 | return SWIG_AsVal_long(obj, (long*)0); | |
1305 | } | |
8edf1c75 | 1306 | |
c370783e RD |
1307 | |
1308 | // See my_fragments.i | |
1309 | SWIGSTATICINLINE(int) | |
1310 | SWIG_AsVal_double(PyObject *obj, double* val) | |
8edf1c75 | 1311 | { |
c370783e RD |
1312 | if (PyNumber_Check(obj)) { |
1313 | if (val) *val = PyFloat_AsDouble(obj); | |
1314 | return 1; | |
1315 | } | |
69223c70 RD |
1316 | else { |
1317 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1318 | obj->ob_type->tp_name); | |
1319 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1320 | Py_DECREF(errmsg); | |
69223c70 | 1321 | } |
c370783e | 1322 | return 0; |
2f4c0a16 RD |
1323 | } |
1324 | ||
1325 | ||
c370783e RD |
1326 | SWIGSTATICINLINE(double) |
1327 | SWIG_As_double(PyObject* obj) | |
2f4c0a16 | 1328 | { |
c370783e RD |
1329 | double v; |
1330 | if (!SWIG_AsVal_double(obj, &v)) { | |
1331 | /* | |
1332 | this is needed to make valgrind/purify happier. the other | |
1333 | solution is throw an exception, but since this code should work | |
1334 | with plain C .... | |
1335 | */ | |
1336 | memset((void*)&v, 0, sizeof(double)); | |
2f4c0a16 | 1337 | } |
c370783e RD |
1338 | return v; |
1339 | } | |
1340 | ||
1341 | ||
1342 | SWIGSTATICINLINE(int) | |
1343 | SWIG_Check_double(PyObject* obj) | |
1344 | { | |
1345 | return SWIG_AsVal_double(obj, (double*)0); | |
8edf1c75 RD |
1346 | } |
1347 | ||
1348 | ||
d14a1e28 RD |
1349 | class wxPyGridTableBase : public wxGridTableBase |
1350 | { | |
1351 | public: | |
1352 | wxPyGridTableBase() : wxGridTableBase() {} | |
1353 | ||
1354 | PYCALLBACK_INT__pure(GetNumberRows); | |
1355 | PYCALLBACK_INT__pure(GetNumberCols); | |
1356 | PYCALLBACK_BOOL_INTINT_pure(IsEmptyCell); | |
1357 | PYCALLBACK_STRING_INTINT(wxGridTableBase, GetTypeName); | |
1358 | PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanGetValueAs); | |
1359 | PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanSetValueAs); | |
1360 | PYCALLBACK__(wxGridTableBase, Clear); | |
1361 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertRows); | |
1362 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteRows); | |
1363 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertCols); | |
1364 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteCols); | |
1365 | PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendRows); | |
1366 | PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendCols); | |
1367 | PYCALLBACK_STRING_INT(wxGridTableBase, GetRowLabelValue); | |
1368 | PYCALLBACK_STRING_INT(wxGridTableBase, GetColLabelValue); | |
1369 | PYCALLBACK__INTSTRING(wxGridTableBase, SetRowLabelValue); | |
1370 | PYCALLBACK__INTSTRING(wxGridTableBase, SetColLabelValue); | |
1371 | PYCALLBACK_BOOL_(wxGridTableBase, CanHaveAttributes); | |
1372 | PYCALLBACK_GCA_INTINTKIND(wxGridTableBase, GetAttr); | |
1373 | PYCALLBACK__GCAINTINT(wxGridTableBase, SetAttr); | |
1374 | PYCALLBACK__GCAINT(wxGridTableBase, SetRowAttr); | |
1375 | PYCALLBACK__GCAINT(wxGridTableBase, SetColAttr); | |
1376 | ||
1377 | ||
1378 | wxString GetValue(int row, int col) { | |
fbc46b20 | 1379 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1380 | wxString rval; |
1381 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { | |
1382 | PyObject* ro; | |
1383 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",row,col)); | |
1384 | if (ro) { | |
f8167d6e RD |
1385 | if (!PyString_Check(ro) && !PyUnicode_Check(ro)) { |
1386 | PyObject* old = ro; | |
1387 | ro = PyObject_Str(ro); | |
1388 | Py_DECREF(old); | |
1389 | } | |
d14a1e28 RD |
1390 | rval = Py2wxString(ro); |
1391 | Py_DECREF(ro); | |
1392 | } | |
1393 | } | |
fbc46b20 | 1394 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1395 | return rval; |
1396 | } | |
1397 | ||
1398 | void SetValue(int row, int col, const wxString& val) { | |
fbc46b20 | 1399 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1400 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { |
1401 | PyObject* s = wx2PyString(val); | |
1402 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",row,col,s)); | |
1403 | Py_DECREF(s); | |
1404 | } | |
fbc46b20 | 1405 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1406 | } |
1407 | ||
1408 | ||
1409 | // Map the Get/Set methods for the standard non-string types to | |
1410 | // the GetValue and SetValue python methods. | |
1411 | long GetValueAsLong( int row, int col ) { | |
1412 | long rval = 0; | |
fbc46b20 | 1413 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1414 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { |
1415 | PyObject* ro; | |
1416 | PyObject* num; | |
1417 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col)); | |
1418 | if (ro && PyNumber_Check(ro)) { | |
1419 | num = PyNumber_Int(ro); | |
1420 | if (num) { | |
1421 | rval = PyInt_AsLong(num); | |
1422 | Py_DECREF(num); | |
1423 | } | |
1424 | Py_DECREF(ro); | |
1425 | } | |
1426 | } | |
fbc46b20 | 1427 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1428 | return rval; |
1429 | } | |
1430 | ||
1431 | double GetValueAsDouble( int row, int col ) { | |
1432 | double rval = 0.0; | |
fbc46b20 | 1433 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1434 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { |
1435 | PyObject* ro; | |
1436 | PyObject* num; | |
1437 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col)); | |
1438 | if (ro && PyNumber_Check(ro)) { | |
1439 | num = PyNumber_Float(ro); | |
1440 | if (num) { | |
1441 | rval = PyFloat_AsDouble(num); | |
1442 | Py_DECREF(num); | |
1443 | } | |
1444 | Py_DECREF(ro); | |
1445 | } | |
1446 | } | |
fbc46b20 | 1447 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1448 | return rval; |
1449 | } | |
1450 | ||
1451 | bool GetValueAsBool( int row, int col ) { | |
1452 | return (bool)GetValueAsLong(row, col); | |
1453 | } | |
1454 | ||
1455 | void SetValueAsLong( int row, int col, long value ) { | |
fbc46b20 | 1456 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1457 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { |
1458 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", row, col, value)); | |
1459 | } | |
fbc46b20 | 1460 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1461 | } |
1462 | ||
1463 | void SetValueAsDouble( int row, int col, double value ) { | |
fbc46b20 | 1464 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1465 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { |
1466 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iid)", row, col, value)); | |
1467 | } | |
fbc46b20 | 1468 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1469 | } |
1470 | ||
1471 | void SetValueAsBool( int row, int col, bool value ) { | |
1472 | SetValueAsLong( row, col, (long)value ); | |
1473 | } | |
1474 | ||
1475 | ||
1476 | PYPRIVATE; | |
1477 | }; | |
1478 | ||
1479 | void wxPyGridTableBase_Destroy(wxPyGridTableBase *self){ delete self; } | |
d14a1e28 RD |
1480 | |
1481 | bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) { | |
1482 | ||
38f59159 RD |
1483 | if (source == Py_None) { |
1484 | **obj = wxGridCellCoords(-1,-1); | |
b411df4a | 1485 | return true; |
38f59159 RD |
1486 | } |
1487 | ||
d14a1e28 RD |
1488 | // If source is an object instance then it may already be the right type |
1489 | if (wxPySwigInstance_Check(source)) { | |
1490 | wxGridCellCoords* ptr; | |
1491 | if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) | |
1492 | goto error; | |
1493 | *obj = ptr; | |
b411df4a | 1494 | return true; |
d14a1e28 RD |
1495 | } |
1496 | // otherwise a 2-tuple of integers is expected | |
1497 | else if (PySequence_Check(source) && PyObject_Length(source) == 2) { | |
1498 | PyObject* o1 = PySequence_GetItem(source, 0); | |
1499 | PyObject* o2 = PySequence_GetItem(source, 1); | |
1500 | if (!PyNumber_Check(o1) || !PyNumber_Check(o2)) { | |
1501 | Py_DECREF(o1); | |
1502 | Py_DECREF(o2); | |
1503 | goto error; | |
1504 | } | |
1505 | **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2)); | |
1506 | Py_DECREF(o1); | |
1507 | Py_DECREF(o2); | |
b411df4a | 1508 | return true; |
d14a1e28 RD |
1509 | } |
1510 | ||
1511 | error: | |
1512 | PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object."); | |
b411df4a | 1513 | return false; |
d14a1e28 RD |
1514 | } |
1515 | ||
1516 | ||
1517 | bool wxGridCellCoords_typecheck(PyObject* source) { | |
1518 | void* ptr; | |
f8167d6e | 1519 | |
d14a1e28 RD |
1520 | if (wxPySwigInstance_Check(source) && |
1521 | wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) | |
b411df4a | 1522 | return true; |
d14a1e28 RD |
1523 | |
1524 | PyErr_Clear(); | |
1525 | if (PySequence_Check(source) && PySequence_Length(source) == 2) | |
b411df4a | 1526 | return true; |
f8167d6e | 1527 | |
b411df4a | 1528 | return false; |
d14a1e28 RD |
1529 | } |
1530 | ||
1531 | ||
1532 | PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source) | |
1533 | { | |
1534 | PyObject* list = PyList_New(0); | |
1535 | size_t idx; | |
1536 | for (idx = 0; idx < source.GetCount(); idx += 1) { | |
1537 | wxGridCellCoords& coord = source.Item(idx); | |
1538 | PyObject* tup = PyTuple_New(2); | |
1539 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(coord.GetRow())); | |
1540 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(coord.GetCol())); | |
1541 | PyList_Append(list, tup); | |
1542 | Py_DECREF(tup); | |
1543 | } | |
1544 | return list; | |
1545 | } | |
1546 | ||
15817c7e | 1547 | PyObject *wxGridCellCoords_Get(wxGridCellCoords *self){ |
38f59159 RD |
1548 | PyObject* tup = PyTuple_New(2); |
1549 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1550 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1551 | return tup; | |
1552 | } | |
d14a1e28 RD |
1553 | |
1554 | typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES; | |
1555 | ||
c370783e | 1556 | |
d14a1e28 RD |
1557 | wxGridCellCoords wxGrid_XYToCell(wxGrid *self,int x,int y){ |
1558 | wxGridCellCoords rv; | |
1559 | self->XYToCell(x, y, rv); | |
1560 | return rv; | |
1561 | } | |
1562 | #ifdef __cplusplus | |
1563 | extern "C" { | |
1564 | #endif | |
c370783e | 1565 | static int _wrap_DateTimeFormatStr_set(PyObject *) { |
cbd72d4f RD |
1566 | PyErr_SetString(PyExc_TypeError,"Variable DateTimeFormatStr is read-only."); |
1567 | return 1; | |
1568 | } | |
1569 | ||
1570 | ||
1571 | static PyObject *_wrap_DateTimeFormatStr_get() { | |
1572 | PyObject *pyobj; | |
1573 | ||
1574 | { | |
1575 | #if wxUSE_UNICODE | |
1576 | pyobj = PyUnicode_FromWideChar((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len()); | |
1577 | #else | |
1578 | pyobj = PyString_FromStringAndSize((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len()); | |
1579 | #endif | |
1580 | } | |
1581 | return pyobj; | |
1582 | } | |
1583 | ||
1584 | ||
c370783e | 1585 | static int _wrap_GridNoCellCoords_set(PyObject *) { |
d14a1e28 RD |
1586 | PyErr_SetString(PyExc_TypeError,"Variable GridNoCellCoords is read-only."); |
1587 | return 1; | |
1588 | } | |
1589 | ||
1590 | ||
1591 | static PyObject *_wrap_GridNoCellCoords_get() { | |
1592 | PyObject *pyobj; | |
1593 | ||
2f4c0a16 | 1594 | pyobj = SWIG_NewPointerObj((void *)(&wxGridNoCellCoords), SWIGTYPE_p_wxGridCellCoords, 0); |
d14a1e28 RD |
1595 | return pyobj; |
1596 | } | |
1597 | ||
1598 | ||
c370783e | 1599 | static int _wrap_GridNoCellRect_set(PyObject *) { |
d14a1e28 RD |
1600 | PyErr_SetString(PyExc_TypeError,"Variable GridNoCellRect is read-only."); |
1601 | return 1; | |
1602 | } | |
1603 | ||
1604 | ||
1605 | static PyObject *_wrap_GridNoCellRect_get() { | |
1606 | PyObject *pyobj; | |
1607 | ||
2f4c0a16 | 1608 | pyobj = SWIG_NewPointerObj((void *)(&wxGridNoCellRect), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
1609 | return pyobj; |
1610 | } | |
1611 | ||
1612 | ||
c370783e | 1613 | static PyObject *_wrap_GridCellRenderer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1614 | PyObject *resultobj; |
1615 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1616 | PyObject *arg2 = (PyObject *) 0 ; | |
1617 | PyObject * obj0 = 0 ; | |
1618 | PyObject * obj1 = 0 ; | |
1619 | char *kwnames[] = { | |
1620 | (char *) "self",(char *) "_self", NULL | |
1621 | }; | |
1622 | ||
1623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1626 | arg2 = obj1; |
1627 | { | |
1628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1629 | wxGridCellRenderer__setOORInfo(arg1,arg2); | |
1630 | ||
1631 | wxPyEndAllowThreads(__tstate); | |
1632 | if (PyErr_Occurred()) SWIG_fail; | |
1633 | } | |
1634 | Py_INCREF(Py_None); resultobj = Py_None; | |
1635 | return resultobj; | |
1636 | fail: | |
1637 | return NULL; | |
1638 | } | |
1639 | ||
1640 | ||
c370783e | 1641 | static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1642 | PyObject *resultobj; |
1643 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1644 | wxString *arg2 = 0 ; | |
b411df4a | 1645 | bool temp2 = false ; |
d14a1e28 RD |
1646 | PyObject * obj0 = 0 ; |
1647 | PyObject * obj1 = 0 ; | |
1648 | char *kwnames[] = { | |
1649 | (char *) "self",(char *) "params", NULL | |
1650 | }; | |
1651 | ||
1652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1655 | { |
1656 | arg2 = wxString_in_helper(obj1); | |
1657 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 1658 | temp2 = true; |
d14a1e28 RD |
1659 | } |
1660 | { | |
1661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1662 | (arg1)->SetParameters((wxString const &)*arg2); | |
1663 | ||
1664 | wxPyEndAllowThreads(__tstate); | |
1665 | if (PyErr_Occurred()) SWIG_fail; | |
1666 | } | |
1667 | Py_INCREF(Py_None); resultobj = Py_None; | |
1668 | { | |
1669 | if (temp2) | |
1670 | delete arg2; | |
1671 | } | |
1672 | return resultobj; | |
1673 | fail: | |
1674 | { | |
1675 | if (temp2) | |
1676 | delete arg2; | |
1677 | } | |
1678 | return NULL; | |
1679 | } | |
1680 | ||
1681 | ||
c370783e | 1682 | static PyObject *_wrap_GridCellRenderer_IncRef(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1683 | PyObject *resultobj; |
1684 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1685 | PyObject * obj0 = 0 ; | |
1686 | char *kwnames[] = { | |
1687 | (char *) "self", NULL | |
1688 | }; | |
1689 | ||
1690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_IncRef",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1693 | { |
1694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1695 | (arg1)->IncRef(); | |
1696 | ||
1697 | wxPyEndAllowThreads(__tstate); | |
1698 | if (PyErr_Occurred()) SWIG_fail; | |
1699 | } | |
1700 | Py_INCREF(Py_None); resultobj = Py_None; | |
1701 | return resultobj; | |
1702 | fail: | |
1703 | return NULL; | |
1704 | } | |
1705 | ||
1706 | ||
c370783e | 1707 | static PyObject *_wrap_GridCellRenderer_DecRef(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1708 | PyObject *resultobj; |
1709 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1710 | PyObject * obj0 = 0 ; | |
1711 | char *kwnames[] = { | |
1712 | (char *) "self", NULL | |
1713 | }; | |
1714 | ||
1715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_DecRef",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1718 | { |
1719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1720 | (arg1)->DecRef(); | |
1721 | ||
1722 | wxPyEndAllowThreads(__tstate); | |
1723 | if (PyErr_Occurred()) SWIG_fail; | |
1724 | } | |
1725 | Py_INCREF(Py_None); resultobj = Py_None; | |
1726 | return resultobj; | |
1727 | fail: | |
1728 | return NULL; | |
1729 | } | |
1730 | ||
1731 | ||
c370783e | 1732 | static PyObject *_wrap_GridCellRenderer_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1733 | PyObject *resultobj; |
1734 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1735 | wxGrid *arg2 = 0 ; | |
1736 | wxGridCellAttr *arg3 = 0 ; | |
1737 | wxDC *arg4 = 0 ; | |
1738 | wxRect *arg5 = 0 ; | |
1739 | int arg6 ; | |
1740 | int arg7 ; | |
1741 | bool arg8 ; | |
1742 | wxRect temp5 ; | |
1743 | PyObject * obj0 = 0 ; | |
1744 | PyObject * obj1 = 0 ; | |
1745 | PyObject * obj2 = 0 ; | |
1746 | PyObject * obj3 = 0 ; | |
1747 | PyObject * obj4 = 0 ; | |
8edf1c75 RD |
1748 | PyObject * obj5 = 0 ; |
1749 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
1750 | PyObject * obj7 = 0 ; |
1751 | char *kwnames[] = { | |
1752 | (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "rect",(char *) "row",(char *) "col",(char *) "isSelected", NULL | |
1753 | }; | |
1754 | ||
8edf1c75 | 1755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GridCellRenderer_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
1756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1758 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
1759 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1760 | SWIG_fail; | |
d14a1e28 | 1761 | if (arg2 == NULL) { |
2f4c0a16 RD |
1762 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1763 | SWIG_fail; | |
d14a1e28 | 1764 | } |
2f4c0a16 RD |
1765 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
1766 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1767 | SWIG_fail; | |
d14a1e28 | 1768 | if (arg3 == NULL) { |
2f4c0a16 RD |
1769 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1770 | SWIG_fail; | |
d14a1e28 | 1771 | } |
2f4c0a16 RD |
1772 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, |
1773 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1774 | SWIG_fail; | |
d14a1e28 | 1775 | if (arg4 == NULL) { |
2f4c0a16 RD |
1776 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1777 | SWIG_fail; | |
d14a1e28 RD |
1778 | } |
1779 | { | |
1780 | arg5 = &temp5; | |
1781 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
1782 | } | |
c370783e | 1783 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 1784 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 1785 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 1786 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 1787 | arg8 = (bool)SWIG_As_bool(obj7); |
2f4c0a16 | 1788 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1789 | { |
1790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1791 | (arg1)->Draw(*arg2,*arg3,*arg4,(wxRect const &)*arg5,arg6,arg7,arg8); | |
1792 | ||
1793 | wxPyEndAllowThreads(__tstate); | |
1794 | if (PyErr_Occurred()) SWIG_fail; | |
1795 | } | |
1796 | Py_INCREF(Py_None); resultobj = Py_None; | |
1797 | return resultobj; | |
1798 | fail: | |
1799 | return NULL; | |
1800 | } | |
1801 | ||
1802 | ||
c370783e | 1803 | static PyObject *_wrap_GridCellRenderer_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1804 | PyObject *resultobj; |
1805 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1806 | wxGrid *arg2 = 0 ; | |
1807 | wxGridCellAttr *arg3 = 0 ; | |
1808 | wxDC *arg4 = 0 ; | |
1809 | int arg5 ; | |
1810 | int arg6 ; | |
1811 | wxSize result; | |
1812 | PyObject * obj0 = 0 ; | |
1813 | PyObject * obj1 = 0 ; | |
1814 | PyObject * obj2 = 0 ; | |
1815 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
1816 | PyObject * obj4 = 0 ; |
1817 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
1818 | char *kwnames[] = { |
1819 | (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "row",(char *) "col", NULL | |
1820 | }; | |
1821 | ||
8edf1c75 | 1822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GridCellRenderer_GetBestSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
1823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1825 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
1826 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1827 | SWIG_fail; | |
d14a1e28 | 1828 | if (arg2 == NULL) { |
2f4c0a16 RD |
1829 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1830 | SWIG_fail; | |
d14a1e28 | 1831 | } |
2f4c0a16 RD |
1832 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
1833 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1834 | SWIG_fail; | |
d14a1e28 | 1835 | if (arg3 == NULL) { |
2f4c0a16 RD |
1836 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1837 | SWIG_fail; | |
d14a1e28 | 1838 | } |
2f4c0a16 RD |
1839 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, |
1840 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1841 | SWIG_fail; | |
d14a1e28 | 1842 | if (arg4 == NULL) { |
2f4c0a16 RD |
1843 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1844 | SWIG_fail; | |
8edf1c75 | 1845 | } |
c370783e | 1846 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 1847 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 1848 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 1849 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1850 | { |
1851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1852 | result = (arg1)->GetBestSize(*arg2,*arg3,*arg4,arg5,arg6); | |
1853 | ||
1854 | wxPyEndAllowThreads(__tstate); | |
1855 | if (PyErr_Occurred()) SWIG_fail; | |
1856 | } | |
1857 | { | |
1858 | wxSize * resultptr; | |
1859 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 1860 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1861 | } |
1862 | return resultobj; | |
1863 | fail: | |
1864 | return NULL; | |
1865 | } | |
1866 | ||
1867 | ||
c370783e | 1868 | static PyObject *_wrap_GridCellRenderer_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1869 | PyObject *resultobj; |
1870 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1871 | wxGridCellRenderer *result; | |
1872 | PyObject * obj0 = 0 ; | |
1873 | char *kwnames[] = { | |
1874 | (char *) "self", NULL | |
1875 | }; | |
1876 | ||
1877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1880 | { |
1881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1882 | result = (wxGridCellRenderer *)((wxGridCellRenderer const *)arg1)->Clone(); | |
1883 | ||
1884 | wxPyEndAllowThreads(__tstate); | |
1885 | if (PyErr_Occurred()) SWIG_fail; | |
1886 | } | |
1887 | { | |
412d302d | 1888 | resultobj = wxPyMake_wxGridCellRenderer(result, 0); |
d14a1e28 RD |
1889 | } |
1890 | return resultobj; | |
1891 | fail: | |
1892 | return NULL; | |
1893 | } | |
1894 | ||
1895 | ||
c370783e | 1896 | static PyObject * GridCellRenderer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1897 | PyObject *obj; |
1898 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1899 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellRenderer, obj); | |
1900 | Py_INCREF(obj); | |
1901 | return Py_BuildValue((char *)""); | |
1902 | } | |
c370783e | 1903 | static PyObject *_wrap_new_PyGridCellRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1904 | PyObject *resultobj; |
1905 | wxPyGridCellRenderer *result; | |
1906 | char *kwnames[] = { | |
1907 | NULL | |
1908 | }; | |
1909 | ||
1910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellRenderer",kwnames)) goto fail; | |
1911 | { | |
1912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1913 | result = (wxPyGridCellRenderer *)new wxPyGridCellRenderer(); | |
1914 | ||
1915 | wxPyEndAllowThreads(__tstate); | |
1916 | if (PyErr_Occurred()) SWIG_fail; | |
1917 | } | |
2f4c0a16 | 1918 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellRenderer, 1); |
d14a1e28 RD |
1919 | return resultobj; |
1920 | fail: | |
1921 | return NULL; | |
1922 | } | |
1923 | ||
1924 | ||
c370783e | 1925 | static PyObject *_wrap_PyGridCellRenderer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1926 | PyObject *resultobj; |
1927 | wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; | |
1928 | PyObject *arg2 = (PyObject *) 0 ; | |
1929 | PyObject *arg3 = (PyObject *) 0 ; | |
1930 | PyObject * obj0 = 0 ; | |
1931 | PyObject * obj1 = 0 ; | |
1932 | PyObject * obj2 = 0 ; | |
1933 | char *kwnames[] = { | |
1934 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
1935 | }; | |
1936 | ||
1937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellRenderer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
1938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellRenderer, |
1939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1940 | arg2 = obj1; |
1941 | arg3 = obj2; | |
1942 | { | |
1943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1944 | (arg1)->_setCallbackInfo(arg2,arg3); | |
1945 | ||
1946 | wxPyEndAllowThreads(__tstate); | |
1947 | if (PyErr_Occurred()) SWIG_fail; | |
1948 | } | |
1949 | Py_INCREF(Py_None); resultobj = Py_None; | |
1950 | return resultobj; | |
1951 | fail: | |
1952 | return NULL; | |
1953 | } | |
1954 | ||
1955 | ||
c370783e | 1956 | static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1957 | PyObject *resultobj; |
1958 | wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; | |
1959 | wxString *arg2 = 0 ; | |
b411df4a | 1960 | bool temp2 = false ; |
d14a1e28 RD |
1961 | PyObject * obj0 = 0 ; |
1962 | PyObject * obj1 = 0 ; | |
1963 | char *kwnames[] = { | |
1964 | (char *) "self",(char *) "params", NULL | |
1965 | }; | |
1966 | ||
1967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellRenderer_base_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellRenderer, |
1969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1970 | { |
1971 | arg2 = wxString_in_helper(obj1); | |
1972 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 1973 | temp2 = true; |
d14a1e28 RD |
1974 | } |
1975 | { | |
1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1977 | (arg1)->base_SetParameters((wxString const &)*arg2); | |
1978 | ||
1979 | wxPyEndAllowThreads(__tstate); | |
1980 | if (PyErr_Occurred()) SWIG_fail; | |
1981 | } | |
1982 | Py_INCREF(Py_None); resultobj = Py_None; | |
1983 | { | |
1984 | if (temp2) | |
1985 | delete arg2; | |
1986 | } | |
1987 | return resultobj; | |
1988 | fail: | |
1989 | { | |
1990 | if (temp2) | |
1991 | delete arg2; | |
1992 | } | |
1993 | return NULL; | |
1994 | } | |
1995 | ||
1996 | ||
c370783e | 1997 | static PyObject * PyGridCellRenderer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1998 | PyObject *obj; |
1999 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2000 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellRenderer, obj); | |
2001 | Py_INCREF(obj); | |
2002 | return Py_BuildValue((char *)""); | |
2003 | } | |
c370783e | 2004 | static PyObject *_wrap_new_GridCellStringRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2005 | PyObject *resultobj; |
2006 | wxGridCellStringRenderer *result; | |
2007 | char *kwnames[] = { | |
2008 | NULL | |
2009 | }; | |
2010 | ||
2011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellStringRenderer",kwnames)) goto fail; | |
2012 | { | |
2013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2014 | result = (wxGridCellStringRenderer *)new wxGridCellStringRenderer(); | |
2015 | ||
2016 | wxPyEndAllowThreads(__tstate); | |
2017 | if (PyErr_Occurred()) SWIG_fail; | |
2018 | } | |
2f4c0a16 | 2019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellStringRenderer, 1); |
d14a1e28 RD |
2020 | return resultobj; |
2021 | fail: | |
2022 | return NULL; | |
2023 | } | |
2024 | ||
2025 | ||
c370783e | 2026 | static PyObject * GridCellStringRenderer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2027 | PyObject *obj; |
2028 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2029 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellStringRenderer, obj); | |
2030 | Py_INCREF(obj); | |
2031 | return Py_BuildValue((char *)""); | |
2032 | } | |
c370783e | 2033 | static PyObject *_wrap_new_GridCellNumberRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2034 | PyObject *resultobj; |
2035 | wxGridCellNumberRenderer *result; | |
2036 | char *kwnames[] = { | |
2037 | NULL | |
2038 | }; | |
2039 | ||
2040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellNumberRenderer",kwnames)) goto fail; | |
2041 | { | |
2042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2043 | result = (wxGridCellNumberRenderer *)new wxGridCellNumberRenderer(); | |
2044 | ||
2045 | wxPyEndAllowThreads(__tstate); | |
2046 | if (PyErr_Occurred()) SWIG_fail; | |
2047 | } | |
2f4c0a16 | 2048 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellNumberRenderer, 1); |
d14a1e28 RD |
2049 | return resultobj; |
2050 | fail: | |
2051 | return NULL; | |
2052 | } | |
2053 | ||
2054 | ||
c370783e | 2055 | static PyObject * GridCellNumberRenderer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2056 | PyObject *obj; |
2057 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2058 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberRenderer, obj); | |
2059 | Py_INCREF(obj); | |
2060 | return Py_BuildValue((char *)""); | |
2061 | } | |
c370783e | 2062 | static PyObject *_wrap_new_GridCellFloatRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2063 | PyObject *resultobj; |
2064 | int arg1 = (int) -1 ; | |
2065 | int arg2 = (int) -1 ; | |
2066 | wxGridCellFloatRenderer *result; | |
8edf1c75 RD |
2067 | PyObject * obj0 = 0 ; |
2068 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2069 | char *kwnames[] = { |
2070 | (char *) "width",(char *) "precision", NULL | |
2071 | }; | |
2072 | ||
8edf1c75 RD |
2073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatRenderer",kwnames,&obj0,&obj1)) goto fail; |
2074 | if (obj0) { | |
c370783e | 2075 | arg1 = (int)SWIG_As_int(obj0); |
2f4c0a16 | 2076 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
2077 | } |
2078 | if (obj1) { | |
c370783e | 2079 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 2080 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 2081 | } |
d14a1e28 RD |
2082 | { |
2083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2084 | result = (wxGridCellFloatRenderer *)new wxGridCellFloatRenderer(arg1,arg2); | |
2085 | ||
2086 | wxPyEndAllowThreads(__tstate); | |
2087 | if (PyErr_Occurred()) SWIG_fail; | |
2088 | } | |
2f4c0a16 | 2089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellFloatRenderer, 1); |
d14a1e28 RD |
2090 | return resultobj; |
2091 | fail: | |
2092 | return NULL; | |
2093 | } | |
2094 | ||
2095 | ||
c370783e | 2096 | static PyObject *_wrap_GridCellFloatRenderer_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2097 | PyObject *resultobj; |
2098 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
2099 | int result; | |
2100 | PyObject * obj0 = 0 ; | |
2101 | char *kwnames[] = { | |
2102 | (char *) "self", NULL | |
2103 | }; | |
2104 | ||
2105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, |
2107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2108 | { |
2109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2110 | result = (int)((wxGridCellFloatRenderer const *)arg1)->GetWidth(); | |
2111 | ||
2112 | wxPyEndAllowThreads(__tstate); | |
2113 | if (PyErr_Occurred()) SWIG_fail; | |
2114 | } | |
c370783e | 2115 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2116 | return resultobj; |
2117 | fail: | |
2118 | return NULL; | |
2119 | } | |
2120 | ||
2121 | ||
c370783e | 2122 | static PyObject *_wrap_GridCellFloatRenderer_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2123 | PyObject *resultobj; |
2124 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
2125 | int arg2 ; | |
2126 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2127 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2128 | char *kwnames[] = { |
2129 | (char *) "self",(char *) "width", NULL | |
2130 | }; | |
2131 | ||
8edf1c75 | 2132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, |
2134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2135 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 2136 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2137 | { |
2138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2139 | (arg1)->SetWidth(arg2); | |
2140 | ||
2141 | wxPyEndAllowThreads(__tstate); | |
2142 | if (PyErr_Occurred()) SWIG_fail; | |
2143 | } | |
2144 | Py_INCREF(Py_None); resultobj = Py_None; | |
2145 | return resultobj; | |
2146 | fail: | |
2147 | return NULL; | |
2148 | } | |
2149 | ||
2150 | ||
c370783e | 2151 | static PyObject *_wrap_GridCellFloatRenderer_GetPrecision(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2152 | PyObject *resultobj; |
2153 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
2154 | int result; | |
2155 | PyObject * obj0 = 0 ; | |
2156 | char *kwnames[] = { | |
2157 | (char *) "self", NULL | |
2158 | }; | |
2159 | ||
2160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetPrecision",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, |
2162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2163 | { |
2164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2165 | result = (int)((wxGridCellFloatRenderer const *)arg1)->GetPrecision(); | |
2166 | ||
2167 | wxPyEndAllowThreads(__tstate); | |
2168 | if (PyErr_Occurred()) SWIG_fail; | |
2169 | } | |
c370783e | 2170 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
2171 | return resultobj; |
2172 | fail: | |
2173 | return NULL; | |
2174 | } | |
2175 | ||
2176 | ||
c370783e | 2177 | static PyObject *_wrap_GridCellFloatRenderer_SetPrecision(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2178 | PyObject *resultobj; |
2179 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
2180 | int arg2 ; | |
2181 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2182 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2183 | char *kwnames[] = { |
2184 | (char *) "self",(char *) "precision", NULL | |
2185 | }; | |
2186 | ||
8edf1c75 | 2187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetPrecision",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, |
2189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2190 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 2191 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2192 | { |
2193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2194 | (arg1)->SetPrecision(arg2); | |
2195 | ||
2196 | wxPyEndAllowThreads(__tstate); | |
2197 | if (PyErr_Occurred()) SWIG_fail; | |
2198 | } | |
2199 | Py_INCREF(Py_None); resultobj = Py_None; | |
2200 | return resultobj; | |
2201 | fail: | |
2202 | return NULL; | |
2203 | } | |
2204 | ||
2205 | ||
c370783e | 2206 | static PyObject * GridCellFloatRenderer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2207 | PyObject *obj; |
2208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2209 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatRenderer, obj); | |
2210 | Py_INCREF(obj); | |
2211 | return Py_BuildValue((char *)""); | |
2212 | } | |
c370783e | 2213 | static PyObject *_wrap_new_GridCellBoolRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2214 | PyObject *resultobj; |
2215 | wxGridCellBoolRenderer *result; | |
2216 | char *kwnames[] = { | |
2217 | NULL | |
2218 | }; | |
2219 | ||
2220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolRenderer",kwnames)) goto fail; | |
2221 | { | |
2222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2223 | result = (wxGridCellBoolRenderer *)new wxGridCellBoolRenderer(); | |
2224 | ||
2225 | wxPyEndAllowThreads(__tstate); | |
2226 | if (PyErr_Occurred()) SWIG_fail; | |
2227 | } | |
2f4c0a16 | 2228 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellBoolRenderer, 1); |
d14a1e28 RD |
2229 | return resultobj; |
2230 | fail: | |
2231 | return NULL; | |
2232 | } | |
2233 | ||
2234 | ||
c370783e | 2235 | static PyObject * GridCellBoolRenderer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2236 | PyObject *obj; |
2237 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2238 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolRenderer, obj); | |
2239 | Py_INCREF(obj); | |
2240 | return Py_BuildValue((char *)""); | |
2241 | } | |
c370783e | 2242 | static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2243 | PyObject *resultobj; |
2244 | wxString arg1 = (wxString) wxPyDateTimeFormatStr ; | |
2245 | wxString arg2 = (wxString) wxPyDateTimeFormatStr ; | |
2246 | wxGridCellDateTimeRenderer *result; | |
d14a1e28 RD |
2247 | PyObject * obj0 = 0 ; |
2248 | PyObject * obj1 = 0 ; | |
2249 | char *kwnames[] = { | |
2250 | (char *) "outformat",(char *) "informat", NULL | |
2251 | }; | |
2252 | ||
2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail; | |
2254 | if (obj0) { | |
423f194a RD |
2255 | { |
2256 | wxString* sptr = wxString_in_helper(obj0); | |
2257 | if (sptr == NULL) SWIG_fail; | |
2258 | arg1 = *sptr; | |
2259 | delete sptr; | |
2260 | } | |
d14a1e28 RD |
2261 | } |
2262 | if (obj1) { | |
423f194a RD |
2263 | { |
2264 | wxString* sptr = wxString_in_helper(obj1); | |
2265 | if (sptr == NULL) SWIG_fail; | |
2266 | arg2 = *sptr; | |
2267 | delete sptr; | |
2268 | } | |
d14a1e28 RD |
2269 | } |
2270 | { | |
2271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2272 | result = (wxGridCellDateTimeRenderer *)new wxGridCellDateTimeRenderer(arg1,arg2); | |
2273 | ||
2274 | wxPyEndAllowThreads(__tstate); | |
2275 | if (PyErr_Occurred()) SWIG_fail; | |
2276 | } | |
2f4c0a16 | 2277 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellDateTimeRenderer, 1); |
d14a1e28 RD |
2278 | return resultobj; |
2279 | fail: | |
2280 | return NULL; | |
2281 | } | |
2282 | ||
2283 | ||
c370783e | 2284 | static PyObject * GridCellDateTimeRenderer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2285 | PyObject *obj; |
2286 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2287 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellDateTimeRenderer, obj); | |
2288 | Py_INCREF(obj); | |
2289 | return Py_BuildValue((char *)""); | |
2290 | } | |
c370783e | 2291 | static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2292 | PyObject *resultobj; |
2293 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2294 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2295 | wxGridCellEnumRenderer *result; | |
b411df4a | 2296 | bool temp1 = false ; |
d14a1e28 RD |
2297 | PyObject * obj0 = 0 ; |
2298 | char *kwnames[] = { | |
2299 | (char *) "choices", NULL | |
2300 | }; | |
2301 | ||
2302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumRenderer",kwnames,&obj0)) goto fail; | |
2303 | if (obj0) { | |
2304 | { | |
2305 | arg1 = wxString_in_helper(obj0); | |
2306 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2307 | temp1 = true; |
d14a1e28 RD |
2308 | } |
2309 | } | |
2310 | { | |
2311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2312 | result = (wxGridCellEnumRenderer *)new wxGridCellEnumRenderer((wxString const &)*arg1); | |
2313 | ||
2314 | wxPyEndAllowThreads(__tstate); | |
2315 | if (PyErr_Occurred()) SWIG_fail; | |
2316 | } | |
2f4c0a16 | 2317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellEnumRenderer, 1); |
d14a1e28 RD |
2318 | { |
2319 | if (temp1) | |
2320 | delete arg1; | |
2321 | } | |
2322 | return resultobj; | |
2323 | fail: | |
2324 | { | |
2325 | if (temp1) | |
2326 | delete arg1; | |
2327 | } | |
2328 | return NULL; | |
2329 | } | |
2330 | ||
2331 | ||
c370783e | 2332 | static PyObject * GridCellEnumRenderer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2333 | PyObject *obj; |
2334 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2335 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumRenderer, obj); | |
2336 | Py_INCREF(obj); | |
2337 | return Py_BuildValue((char *)""); | |
2338 | } | |
c370783e | 2339 | static PyObject *_wrap_new_GridCellAutoWrapStringRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2340 | PyObject *resultobj; |
2341 | wxGridCellAutoWrapStringRenderer *result; | |
2342 | char *kwnames[] = { | |
2343 | NULL | |
2344 | }; | |
2345 | ||
2346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringRenderer",kwnames)) goto fail; | |
2347 | { | |
2348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2349 | result = (wxGridCellAutoWrapStringRenderer *)new wxGridCellAutoWrapStringRenderer(); | |
2350 | ||
2351 | wxPyEndAllowThreads(__tstate); | |
2352 | if (PyErr_Occurred()) SWIG_fail; | |
2353 | } | |
2f4c0a16 | 2354 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, 1); |
d14a1e28 RD |
2355 | return resultobj; |
2356 | fail: | |
2357 | return NULL; | |
2358 | } | |
2359 | ||
2360 | ||
c370783e | 2361 | static PyObject * GridCellAutoWrapStringRenderer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2362 | PyObject *obj; |
2363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2364 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, obj); | |
2365 | Py_INCREF(obj); | |
2366 | return Py_BuildValue((char *)""); | |
2367 | } | |
c370783e | 2368 | static PyObject *_wrap_GridCellEditor__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2369 | PyObject *resultobj; |
2370 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2371 | PyObject *arg2 = (PyObject *) 0 ; | |
2372 | PyObject * obj0 = 0 ; | |
2373 | PyObject * obj1 = 0 ; | |
2374 | char *kwnames[] = { | |
2375 | (char *) "self",(char *) "_self", NULL | |
2376 | }; | |
2377 | ||
2378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2381 | arg2 = obj1; |
2382 | { | |
2383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2384 | wxGridCellEditor__setOORInfo(arg1,arg2); | |
2385 | ||
2386 | wxPyEndAllowThreads(__tstate); | |
2387 | if (PyErr_Occurred()) SWIG_fail; | |
2388 | } | |
2389 | Py_INCREF(Py_None); resultobj = Py_None; | |
2390 | return resultobj; | |
2391 | fail: | |
2392 | return NULL; | |
2393 | } | |
2394 | ||
2395 | ||
c370783e | 2396 | static PyObject *_wrap_GridCellEditor_IsCreated(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2397 | PyObject *resultobj; |
2398 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2399 | bool result; | |
2400 | PyObject * obj0 = 0 ; | |
2401 | char *kwnames[] = { | |
2402 | (char *) "self", NULL | |
2403 | }; | |
2404 | ||
2405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IsCreated",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2408 | { |
2409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2410 | result = (bool)(arg1)->IsCreated(); | |
2411 | ||
2412 | wxPyEndAllowThreads(__tstate); | |
2413 | if (PyErr_Occurred()) SWIG_fail; | |
2414 | } | |
fbc46b20 RD |
2415 | { |
2416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2417 | } | |
d14a1e28 RD |
2418 | return resultobj; |
2419 | fail: | |
2420 | return NULL; | |
2421 | } | |
2422 | ||
2423 | ||
c370783e | 2424 | static PyObject *_wrap_GridCellEditor_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2425 | PyObject *resultobj; |
2426 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2427 | wxControl *result; | |
2428 | PyObject * obj0 = 0 ; | |
2429 | char *kwnames[] = { | |
2430 | (char *) "self", NULL | |
2431 | }; | |
2432 | ||
2433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2436 | { |
2437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2438 | result = (wxControl *)(arg1)->GetControl(); | |
2439 | ||
2440 | wxPyEndAllowThreads(__tstate); | |
2441 | if (PyErr_Occurred()) SWIG_fail; | |
2442 | } | |
2443 | { | |
412d302d | 2444 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
2445 | } |
2446 | return resultobj; | |
2447 | fail: | |
2448 | return NULL; | |
2449 | } | |
2450 | ||
2451 | ||
c370783e | 2452 | static PyObject *_wrap_GridCellEditor_SetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2453 | PyObject *resultobj; |
2454 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2455 | wxControl *arg2 = (wxControl *) 0 ; | |
2456 | PyObject * obj0 = 0 ; | |
2457 | PyObject * obj1 = 0 ; | |
2458 | char *kwnames[] = { | |
2459 | (char *) "self",(char *) "control", NULL | |
2460 | }; | |
2461 | ||
2462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetControl",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
2466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2467 | { |
2468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2469 | (arg1)->SetControl(arg2); | |
2470 | ||
2471 | wxPyEndAllowThreads(__tstate); | |
2472 | if (PyErr_Occurred()) SWIG_fail; | |
2473 | } | |
2474 | Py_INCREF(Py_None); resultobj = Py_None; | |
2475 | return resultobj; | |
2476 | fail: | |
2477 | return NULL; | |
2478 | } | |
2479 | ||
2480 | ||
c370783e | 2481 | static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2482 | PyObject *resultobj; |
2483 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2484 | wxGridCellAttr *result; | |
2485 | PyObject * obj0 = 0 ; | |
2486 | char *kwnames[] = { | |
2487 | (char *) "self", NULL | |
2488 | }; | |
2489 | ||
2490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetCellAttr",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2493 | { |
2494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2495 | result = (wxGridCellAttr *)(arg1)->GetCellAttr(); | |
2496 | ||
2497 | wxPyEndAllowThreads(__tstate); | |
2498 | if (PyErr_Occurred()) SWIG_fail; | |
2499 | } | |
2500 | { | |
412d302d | 2501 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
d14a1e28 RD |
2502 | } |
2503 | return resultobj; | |
2504 | fail: | |
2505 | return NULL; | |
2506 | } | |
2507 | ||
2508 | ||
c370783e | 2509 | static PyObject *_wrap_GridCellEditor_SetCellAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2510 | PyObject *resultobj; |
2511 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2512 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
2513 | PyObject * obj0 = 0 ; | |
2514 | PyObject * obj1 = 0 ; | |
2515 | char *kwnames[] = { | |
2516 | (char *) "self",(char *) "attr", NULL | |
2517 | }; | |
2518 | ||
2519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetCellAttr",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
2523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2524 | { |
2525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2526 | (arg1)->SetCellAttr(arg2); | |
2527 | ||
2528 | wxPyEndAllowThreads(__tstate); | |
2529 | if (PyErr_Occurred()) SWIG_fail; | |
2530 | } | |
2531 | Py_INCREF(Py_None); resultobj = Py_None; | |
2532 | return resultobj; | |
2533 | fail: | |
2534 | return NULL; | |
2535 | } | |
2536 | ||
2537 | ||
c370783e | 2538 | static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2539 | PyObject *resultobj; |
2540 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2541 | wxString *arg2 = 0 ; | |
b411df4a | 2542 | bool temp2 = false ; |
d14a1e28 RD |
2543 | PyObject * obj0 = 0 ; |
2544 | PyObject * obj1 = 0 ; | |
2545 | char *kwnames[] = { | |
2546 | (char *) "self",(char *) "params", NULL | |
2547 | }; | |
2548 | ||
2549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2552 | { |
2553 | arg2 = wxString_in_helper(obj1); | |
2554 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 2555 | temp2 = true; |
d14a1e28 RD |
2556 | } |
2557 | { | |
2558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2559 | (arg1)->SetParameters((wxString const &)*arg2); | |
2560 | ||
2561 | wxPyEndAllowThreads(__tstate); | |
2562 | if (PyErr_Occurred()) SWIG_fail; | |
2563 | } | |
2564 | Py_INCREF(Py_None); resultobj = Py_None; | |
2565 | { | |
2566 | if (temp2) | |
2567 | delete arg2; | |
2568 | } | |
2569 | return resultobj; | |
2570 | fail: | |
2571 | { | |
2572 | if (temp2) | |
2573 | delete arg2; | |
2574 | } | |
2575 | return NULL; | |
2576 | } | |
2577 | ||
2578 | ||
c370783e | 2579 | static PyObject *_wrap_GridCellEditor_IncRef(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2580 | PyObject *resultobj; |
2581 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2582 | PyObject * obj0 = 0 ; | |
2583 | char *kwnames[] = { | |
2584 | (char *) "self", NULL | |
2585 | }; | |
2586 | ||
2587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IncRef",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2590 | { |
2591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2592 | (arg1)->IncRef(); | |
2593 | ||
2594 | wxPyEndAllowThreads(__tstate); | |
2595 | if (PyErr_Occurred()) SWIG_fail; | |
2596 | } | |
2597 | Py_INCREF(Py_None); resultobj = Py_None; | |
2598 | return resultobj; | |
2599 | fail: | |
2600 | return NULL; | |
2601 | } | |
2602 | ||
2603 | ||
c370783e | 2604 | static PyObject *_wrap_GridCellEditor_DecRef(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2605 | PyObject *resultobj; |
2606 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2607 | PyObject * obj0 = 0 ; | |
2608 | char *kwnames[] = { | |
2609 | (char *) "self", NULL | |
2610 | }; | |
2611 | ||
2612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_DecRef",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2615 | { |
2616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2617 | (arg1)->DecRef(); | |
2618 | ||
2619 | wxPyEndAllowThreads(__tstate); | |
2620 | if (PyErr_Occurred()) SWIG_fail; | |
2621 | } | |
2622 | Py_INCREF(Py_None); resultobj = Py_None; | |
2623 | return resultobj; | |
2624 | fail: | |
2625 | return NULL; | |
2626 | } | |
2627 | ||
2628 | ||
c370783e | 2629 | static PyObject *_wrap_GridCellEditor_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2630 | PyObject *resultobj; |
2631 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2632 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2633 | int arg3 ; |
d14a1e28 RD |
2634 | wxEvtHandler *arg4 = (wxEvtHandler *) 0 ; |
2635 | PyObject * obj0 = 0 ; | |
2636 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2637 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2638 | PyObject * obj3 = 0 ; |
2639 | char *kwnames[] = { | |
2640 | (char *) "self",(char *) "parent",(char *) "id",(char *) "evtHandler", NULL | |
2641 | }; | |
2642 | ||
8edf1c75 | 2643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_Create",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
2644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2646 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2648 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 RD |
2649 | if (PyErr_Occurred()) SWIG_fail; |
2650 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxEvtHandler, | |
2651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2652 | { |
2653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2654 | (arg1)->Create(arg2,arg3,arg4); | |
2655 | ||
2656 | wxPyEndAllowThreads(__tstate); | |
2657 | if (PyErr_Occurred()) SWIG_fail; | |
2658 | } | |
2659 | Py_INCREF(Py_None); resultobj = Py_None; | |
2660 | return resultobj; | |
2661 | fail: | |
2662 | return NULL; | |
2663 | } | |
2664 | ||
2665 | ||
c370783e | 2666 | static PyObject *_wrap_GridCellEditor_BeginEdit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2667 | PyObject *resultobj; |
2668 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2669 | int arg2 ; | |
2670 | int arg3 ; | |
2671 | wxGrid *arg4 = (wxGrid *) 0 ; | |
2672 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2673 | PyObject * obj1 = 0 ; |
2674 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2675 | PyObject * obj3 = 0 ; |
2676 | char *kwnames[] = { | |
2677 | (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL | |
2678 | }; | |
2679 | ||
8edf1c75 | 2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_BeginEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
2681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2683 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 2684 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2685 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 RD |
2686 | if (PyErr_Occurred()) SWIG_fail; |
2687 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGrid, | |
2688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2689 | { |
2690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2691 | (arg1)->BeginEdit(arg2,arg3,arg4); | |
2692 | ||
2693 | wxPyEndAllowThreads(__tstate); | |
2694 | if (PyErr_Occurred()) SWIG_fail; | |
2695 | } | |
2696 | Py_INCREF(Py_None); resultobj = Py_None; | |
2697 | return resultobj; | |
2698 | fail: | |
2699 | return NULL; | |
2700 | } | |
2701 | ||
2702 | ||
c370783e | 2703 | static PyObject *_wrap_GridCellEditor_EndEdit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2704 | PyObject *resultobj; |
2705 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2706 | int arg2 ; | |
2707 | int arg3 ; | |
2708 | wxGrid *arg4 = (wxGrid *) 0 ; | |
2709 | bool result; | |
2710 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2711 | PyObject * obj1 = 0 ; |
2712 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2713 | PyObject * obj3 = 0 ; |
2714 | char *kwnames[] = { | |
2715 | (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL | |
2716 | }; | |
2717 | ||
8edf1c75 | 2718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_EndEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
2719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2721 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 2722 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2723 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 RD |
2724 | if (PyErr_Occurred()) SWIG_fail; |
2725 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGrid, | |
2726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2727 | { |
2728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2729 | result = (bool)(arg1)->EndEdit(arg2,arg3,arg4); | |
2730 | ||
2731 | wxPyEndAllowThreads(__tstate); | |
2732 | if (PyErr_Occurred()) SWIG_fail; | |
2733 | } | |
fbc46b20 RD |
2734 | { |
2735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2736 | } | |
d14a1e28 RD |
2737 | return resultobj; |
2738 | fail: | |
2739 | return NULL; | |
2740 | } | |
2741 | ||
2742 | ||
c370783e | 2743 | static PyObject *_wrap_GridCellEditor_Reset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2744 | PyObject *resultobj; |
2745 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2746 | PyObject * obj0 = 0 ; | |
2747 | char *kwnames[] = { | |
2748 | (char *) "self", NULL | |
2749 | }; | |
2750 | ||
2751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Reset",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2754 | { |
2755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2756 | (arg1)->Reset(); | |
2757 | ||
2758 | wxPyEndAllowThreads(__tstate); | |
2759 | if (PyErr_Occurred()) SWIG_fail; | |
2760 | } | |
2761 | Py_INCREF(Py_None); resultobj = Py_None; | |
2762 | return resultobj; | |
2763 | fail: | |
2764 | return NULL; | |
2765 | } | |
2766 | ||
2767 | ||
c370783e | 2768 | static PyObject *_wrap_GridCellEditor_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2769 | PyObject *resultobj; |
2770 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2771 | wxGridCellEditor *result; | |
2772 | PyObject * obj0 = 0 ; | |
2773 | char *kwnames[] = { | |
2774 | (char *) "self", NULL | |
2775 | }; | |
2776 | ||
2777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2780 | { |
2781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2782 | result = (wxGridCellEditor *)((wxGridCellEditor const *)arg1)->Clone(); | |
2783 | ||
2784 | wxPyEndAllowThreads(__tstate); | |
2785 | if (PyErr_Occurred()) SWIG_fail; | |
2786 | } | |
2787 | { | |
412d302d | 2788 | resultobj = wxPyMake_wxGridCellEditor(result, 0); |
d14a1e28 RD |
2789 | } |
2790 | return resultobj; | |
2791 | fail: | |
2792 | return NULL; | |
2793 | } | |
2794 | ||
2795 | ||
c370783e | 2796 | static PyObject *_wrap_GridCellEditor_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2797 | PyObject *resultobj; |
2798 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2799 | wxRect *arg2 = 0 ; | |
2800 | wxRect temp2 ; | |
2801 | PyObject * obj0 = 0 ; | |
2802 | PyObject * obj1 = 0 ; | |
2803 | char *kwnames[] = { | |
2804 | (char *) "self",(char *) "rect", NULL | |
2805 | }; | |
2806 | ||
2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2810 | { |
2811 | arg2 = &temp2; | |
2812 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2813 | } | |
2814 | { | |
2815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2816 | (arg1)->SetSize((wxRect const &)*arg2); | |
2817 | ||
2818 | wxPyEndAllowThreads(__tstate); | |
2819 | if (PyErr_Occurred()) SWIG_fail; | |
2820 | } | |
2821 | Py_INCREF(Py_None); resultobj = Py_None; | |
2822 | return resultobj; | |
2823 | fail: | |
2824 | return NULL; | |
2825 | } | |
2826 | ||
2827 | ||
c370783e | 2828 | static PyObject *_wrap_GridCellEditor_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2829 | PyObject *resultobj; |
2830 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2831 | bool arg2 ; | |
2832 | wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ; | |
2833 | PyObject * obj0 = 0 ; | |
2834 | PyObject * obj1 = 0 ; | |
2835 | PyObject * obj2 = 0 ; | |
2836 | char *kwnames[] = { | |
2837 | (char *) "self",(char *) "show",(char *) "attr", NULL | |
2838 | }; | |
2839 | ||
2840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridCellEditor_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
2841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2843 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 2844 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2845 | if (obj2) { |
2f4c0a16 RD |
2846 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
2847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2848 | } |
2849 | { | |
2850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2851 | (arg1)->Show(arg2,arg3); | |
2852 | ||
2853 | wxPyEndAllowThreads(__tstate); | |
2854 | if (PyErr_Occurred()) SWIG_fail; | |
2855 | } | |
2856 | Py_INCREF(Py_None); resultobj = Py_None; | |
2857 | return resultobj; | |
2858 | fail: | |
2859 | return NULL; | |
2860 | } | |
2861 | ||
2862 | ||
c370783e | 2863 | static PyObject *_wrap_GridCellEditor_PaintBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2864 | PyObject *resultobj; |
2865 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2866 | wxRect *arg2 = 0 ; | |
2867 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
2868 | wxRect temp2 ; | |
2869 | PyObject * obj0 = 0 ; | |
2870 | PyObject * obj1 = 0 ; | |
2871 | PyObject * obj2 = 0 ; | |
2872 | char *kwnames[] = { | |
2873 | (char *) "self",(char *) "rectCell",(char *) "attr", NULL | |
2874 | }; | |
2875 | ||
2876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellEditor_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
2877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2879 | { |
2880 | arg2 = &temp2; | |
2881 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2882 | } | |
2f4c0a16 RD |
2883 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
2884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2885 | { |
2886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2887 | (arg1)->PaintBackground((wxRect const &)*arg2,arg3); | |
2888 | ||
2889 | wxPyEndAllowThreads(__tstate); | |
2890 | if (PyErr_Occurred()) SWIG_fail; | |
2891 | } | |
2892 | Py_INCREF(Py_None); resultobj = Py_None; | |
2893 | return resultobj; | |
2894 | fail: | |
2895 | return NULL; | |
2896 | } | |
2897 | ||
2898 | ||
c370783e | 2899 | static PyObject *_wrap_GridCellEditor_IsAcceptedKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2900 | PyObject *resultobj; |
2901 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2902 | wxKeyEvent *arg2 = 0 ; | |
2903 | bool result; | |
2904 | PyObject * obj0 = 0 ; | |
2905 | PyObject * obj1 = 0 ; | |
2906 | char *kwnames[] = { | |
2907 | (char *) "self",(char *) "event", NULL | |
2908 | }; | |
2909 | ||
2910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2913 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
2914 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2915 | SWIG_fail; | |
d14a1e28 | 2916 | if (arg2 == NULL) { |
2f4c0a16 RD |
2917 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2918 | SWIG_fail; | |
d14a1e28 RD |
2919 | } |
2920 | { | |
2921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2922 | result = (bool)(arg1)->IsAcceptedKey(*arg2); | |
2923 | ||
2924 | wxPyEndAllowThreads(__tstate); | |
2925 | if (PyErr_Occurred()) SWIG_fail; | |
2926 | } | |
fbc46b20 RD |
2927 | { |
2928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2929 | } | |
d14a1e28 RD |
2930 | return resultobj; |
2931 | fail: | |
2932 | return NULL; | |
2933 | } | |
2934 | ||
2935 | ||
c370783e | 2936 | static PyObject *_wrap_GridCellEditor_StartingKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2937 | PyObject *resultobj; |
2938 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2939 | wxKeyEvent *arg2 = 0 ; | |
2940 | PyObject * obj0 = 0 ; | |
2941 | PyObject * obj1 = 0 ; | |
2942 | char *kwnames[] = { | |
2943 | (char *) "self",(char *) "event", NULL | |
2944 | }; | |
2945 | ||
2946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_StartingKey",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
2950 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2951 | SWIG_fail; | |
d14a1e28 | 2952 | if (arg2 == NULL) { |
2f4c0a16 RD |
2953 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2954 | SWIG_fail; | |
d14a1e28 RD |
2955 | } |
2956 | { | |
2957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2958 | (arg1)->StartingKey(*arg2); | |
2959 | ||
2960 | wxPyEndAllowThreads(__tstate); | |
2961 | if (PyErr_Occurred()) SWIG_fail; | |
2962 | } | |
2963 | Py_INCREF(Py_None); resultobj = Py_None; | |
2964 | return resultobj; | |
2965 | fail: | |
2966 | return NULL; | |
2967 | } | |
2968 | ||
2969 | ||
c370783e | 2970 | static PyObject *_wrap_GridCellEditor_StartingClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2971 | PyObject *resultobj; |
2972 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2973 | PyObject * obj0 = 0 ; | |
2974 | char *kwnames[] = { | |
2975 | (char *) "self", NULL | |
2976 | }; | |
2977 | ||
2978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_StartingClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2981 | { |
2982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2983 | (arg1)->StartingClick(); | |
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 | ||
c370783e | 2995 | static PyObject *_wrap_GridCellEditor_HandleReturn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2996 | PyObject *resultobj; |
2997 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2998 | wxKeyEvent *arg2 = 0 ; | |
2999 | PyObject * obj0 = 0 ; | |
3000 | PyObject * obj1 = 0 ; | |
3001 | char *kwnames[] = { | |
3002 | (char *) "self",(char *) "event", NULL | |
3003 | }; | |
3004 | ||
3005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_HandleReturn",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
3007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3008 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
3009 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3010 | SWIG_fail; | |
d14a1e28 | 3011 | if (arg2 == NULL) { |
2f4c0a16 RD |
3012 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3013 | SWIG_fail; | |
d14a1e28 RD |
3014 | } |
3015 | { | |
3016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3017 | (arg1)->HandleReturn(*arg2); | |
3018 | ||
3019 | wxPyEndAllowThreads(__tstate); | |
3020 | if (PyErr_Occurred()) SWIG_fail; | |
3021 | } | |
3022 | Py_INCREF(Py_None); resultobj = Py_None; | |
3023 | return resultobj; | |
3024 | fail: | |
3025 | return NULL; | |
3026 | } | |
3027 | ||
3028 | ||
c370783e | 3029 | static PyObject *_wrap_GridCellEditor_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3030 | PyObject *resultobj; |
3031 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
3032 | PyObject * obj0 = 0 ; | |
3033 | char *kwnames[] = { | |
3034 | (char *) "self", NULL | |
3035 | }; | |
3036 | ||
3037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
3039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3040 | { |
3041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3042 | (arg1)->Destroy(); | |
3043 | ||
3044 | wxPyEndAllowThreads(__tstate); | |
3045 | if (PyErr_Occurred()) SWIG_fail; | |
3046 | } | |
3047 | Py_INCREF(Py_None); resultobj = Py_None; | |
3048 | return resultobj; | |
3049 | fail: | |
3050 | return NULL; | |
3051 | } | |
3052 | ||
3053 | ||
c370783e | 3054 | static PyObject * GridCellEditor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3055 | PyObject *obj; |
3056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3057 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEditor, obj); | |
3058 | Py_INCREF(obj); | |
3059 | return Py_BuildValue((char *)""); | |
3060 | } | |
c370783e | 3061 | static PyObject *_wrap_new_PyGridCellEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3062 | PyObject *resultobj; |
3063 | wxPyGridCellEditor *result; | |
3064 | char *kwnames[] = { | |
3065 | NULL | |
3066 | }; | |
3067 | ||
3068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellEditor",kwnames)) goto fail; | |
3069 | { | |
3070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3071 | result = (wxPyGridCellEditor *)new wxPyGridCellEditor(); | |
3072 | ||
3073 | wxPyEndAllowThreads(__tstate); | |
3074 | if (PyErr_Occurred()) SWIG_fail; | |
3075 | } | |
2f4c0a16 | 3076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellEditor, 1); |
d14a1e28 RD |
3077 | return resultobj; |
3078 | fail: | |
3079 | return NULL; | |
3080 | } | |
3081 | ||
3082 | ||
c370783e | 3083 | static PyObject *_wrap_PyGridCellEditor__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3084 | PyObject *resultobj; |
3085 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3086 | PyObject *arg2 = (PyObject *) 0 ; | |
3087 | PyObject *arg3 = (PyObject *) 0 ; | |
3088 | PyObject * obj0 = 0 ; | |
3089 | PyObject * obj1 = 0 ; | |
3090 | PyObject * obj2 = 0 ; | |
3091 | char *kwnames[] = { | |
3092 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
3093 | }; | |
3094 | ||
3095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
3096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3098 | arg2 = obj1; |
3099 | arg3 = obj2; | |
3100 | { | |
3101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3102 | (arg1)->_setCallbackInfo(arg2,arg3); | |
3103 | ||
3104 | wxPyEndAllowThreads(__tstate); | |
3105 | if (PyErr_Occurred()) SWIG_fail; | |
3106 | } | |
3107 | Py_INCREF(Py_None); resultobj = Py_None; | |
3108 | return resultobj; | |
3109 | fail: | |
3110 | return NULL; | |
3111 | } | |
3112 | ||
3113 | ||
c370783e | 3114 | static PyObject *_wrap_PyGridCellEditor_base_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3115 | PyObject *resultobj; |
3116 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3117 | wxRect *arg2 = 0 ; | |
3118 | wxRect temp2 ; | |
3119 | PyObject * obj0 = 0 ; | |
3120 | PyObject * obj1 = 0 ; | |
3121 | char *kwnames[] = { | |
3122 | (char *) "self",(char *) "rect", NULL | |
3123 | }; | |
3124 | ||
3125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3128 | { |
3129 | arg2 = &temp2; | |
3130 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3131 | } | |
3132 | { | |
3133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3134 | (arg1)->base_SetSize((wxRect const &)*arg2); | |
3135 | ||
3136 | wxPyEndAllowThreads(__tstate); | |
3137 | if (PyErr_Occurred()) SWIG_fail; | |
3138 | } | |
3139 | Py_INCREF(Py_None); resultobj = Py_None; | |
3140 | return resultobj; | |
3141 | fail: | |
3142 | return NULL; | |
3143 | } | |
3144 | ||
3145 | ||
c370783e | 3146 | static PyObject *_wrap_PyGridCellEditor_base_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3147 | PyObject *resultobj; |
3148 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3149 | bool arg2 ; | |
3150 | wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ; | |
3151 | PyObject * obj0 = 0 ; | |
3152 | PyObject * obj1 = 0 ; | |
3153 | PyObject * obj2 = 0 ; | |
3154 | char *kwnames[] = { | |
3155 | (char *) "self",(char *) "show",(char *) "attr", NULL | |
3156 | }; | |
3157 | ||
3158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyGridCellEditor_base_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
3159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3161 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 3162 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3163 | if (obj2) { |
2f4c0a16 RD |
3164 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
3165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3166 | } |
3167 | { | |
3168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3169 | (arg1)->base_Show(arg2,arg3); | |
3170 | ||
3171 | wxPyEndAllowThreads(__tstate); | |
3172 | if (PyErr_Occurred()) SWIG_fail; | |
3173 | } | |
3174 | Py_INCREF(Py_None); resultobj = Py_None; | |
3175 | return resultobj; | |
3176 | fail: | |
3177 | return NULL; | |
3178 | } | |
3179 | ||
3180 | ||
c370783e | 3181 | static PyObject *_wrap_PyGridCellEditor_base_PaintBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3182 | PyObject *resultobj; |
3183 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3184 | wxRect *arg2 = 0 ; | |
3185 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
3186 | wxRect temp2 ; | |
3187 | PyObject * obj0 = 0 ; | |
3188 | PyObject * obj1 = 0 ; | |
3189 | PyObject * obj2 = 0 ; | |
3190 | char *kwnames[] = { | |
3191 | (char *) "self",(char *) "rectCell",(char *) "attr", NULL | |
3192 | }; | |
3193 | ||
3194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor_base_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
3195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3197 | { |
3198 | arg2 = &temp2; | |
3199 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3200 | } | |
2f4c0a16 RD |
3201 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
3202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3203 | { |
3204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3205 | (arg1)->base_PaintBackground((wxRect const &)*arg2,arg3); | |
3206 | ||
3207 | wxPyEndAllowThreads(__tstate); | |
3208 | if (PyErr_Occurred()) SWIG_fail; | |
3209 | } | |
3210 | Py_INCREF(Py_None); resultobj = Py_None; | |
3211 | return resultobj; | |
3212 | fail: | |
3213 | return NULL; | |
3214 | } | |
3215 | ||
3216 | ||
c370783e | 3217 | static PyObject *_wrap_PyGridCellEditor_base_IsAcceptedKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3218 | PyObject *resultobj; |
3219 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3220 | wxKeyEvent *arg2 = 0 ; | |
3221 | bool result; | |
3222 | PyObject * obj0 = 0 ; | |
3223 | PyObject * obj1 = 0 ; | |
3224 | char *kwnames[] = { | |
3225 | (char *) "self",(char *) "event", NULL | |
3226 | }; | |
3227 | ||
3228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
3232 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3233 | SWIG_fail; | |
d14a1e28 | 3234 | if (arg2 == NULL) { |
2f4c0a16 RD |
3235 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3236 | SWIG_fail; | |
d14a1e28 RD |
3237 | } |
3238 | { | |
3239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3240 | result = (bool)(arg1)->base_IsAcceptedKey(*arg2); | |
3241 | ||
3242 | wxPyEndAllowThreads(__tstate); | |
3243 | if (PyErr_Occurred()) SWIG_fail; | |
3244 | } | |
fbc46b20 RD |
3245 | { |
3246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3247 | } | |
d14a1e28 RD |
3248 | return resultobj; |
3249 | fail: | |
3250 | return NULL; | |
3251 | } | |
3252 | ||
3253 | ||
c370783e | 3254 | static PyObject *_wrap_PyGridCellEditor_base_StartingKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3255 | PyObject *resultobj; |
3256 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3257 | wxKeyEvent *arg2 = 0 ; | |
3258 | PyObject * obj0 = 0 ; | |
3259 | PyObject * obj1 = 0 ; | |
3260 | char *kwnames[] = { | |
3261 | (char *) "self",(char *) "event", NULL | |
3262 | }; | |
3263 | ||
3264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_StartingKey",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3267 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
3268 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3269 | SWIG_fail; | |
d14a1e28 | 3270 | if (arg2 == NULL) { |
2f4c0a16 RD |
3271 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3272 | SWIG_fail; | |
d14a1e28 RD |
3273 | } |
3274 | { | |
3275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3276 | (arg1)->base_StartingKey(*arg2); | |
3277 | ||
3278 | wxPyEndAllowThreads(__tstate); | |
3279 | if (PyErr_Occurred()) SWIG_fail; | |
3280 | } | |
3281 | Py_INCREF(Py_None); resultobj = Py_None; | |
3282 | return resultobj; | |
3283 | fail: | |
3284 | return NULL; | |
3285 | } | |
3286 | ||
3287 | ||
c370783e | 3288 | static PyObject *_wrap_PyGridCellEditor_base_StartingClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3289 | PyObject *resultobj; |
3290 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3291 | PyObject * obj0 = 0 ; | |
3292 | char *kwnames[] = { | |
3293 | (char *) "self", NULL | |
3294 | }; | |
3295 | ||
3296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_StartingClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3299 | { |
3300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3301 | (arg1)->base_StartingClick(); | |
3302 | ||
3303 | wxPyEndAllowThreads(__tstate); | |
3304 | if (PyErr_Occurred()) SWIG_fail; | |
3305 | } | |
3306 | Py_INCREF(Py_None); resultobj = Py_None; | |
3307 | return resultobj; | |
3308 | fail: | |
3309 | return NULL; | |
3310 | } | |
3311 | ||
3312 | ||
c370783e | 3313 | static PyObject *_wrap_PyGridCellEditor_base_HandleReturn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3314 | PyObject *resultobj; |
3315 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3316 | wxKeyEvent *arg2 = 0 ; | |
3317 | PyObject * obj0 = 0 ; | |
3318 | PyObject * obj1 = 0 ; | |
3319 | char *kwnames[] = { | |
3320 | (char *) "self",(char *) "event", NULL | |
3321 | }; | |
3322 | ||
3323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_HandleReturn",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3326 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
3327 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3328 | SWIG_fail; | |
d14a1e28 | 3329 | if (arg2 == NULL) { |
2f4c0a16 RD |
3330 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3331 | SWIG_fail; | |
d14a1e28 RD |
3332 | } |
3333 | { | |
3334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3335 | (arg1)->base_HandleReturn(*arg2); | |
3336 | ||
3337 | wxPyEndAllowThreads(__tstate); | |
3338 | if (PyErr_Occurred()) SWIG_fail; | |
3339 | } | |
3340 | Py_INCREF(Py_None); resultobj = Py_None; | |
3341 | return resultobj; | |
3342 | fail: | |
3343 | return NULL; | |
3344 | } | |
3345 | ||
3346 | ||
c370783e | 3347 | static PyObject *_wrap_PyGridCellEditor_base_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3348 | PyObject *resultobj; |
3349 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3350 | PyObject * obj0 = 0 ; | |
3351 | char *kwnames[] = { | |
3352 | (char *) "self", NULL | |
3353 | }; | |
3354 | ||
3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3358 | { |
3359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3360 | (arg1)->base_Destroy(); | |
3361 | ||
3362 | wxPyEndAllowThreads(__tstate); | |
3363 | if (PyErr_Occurred()) SWIG_fail; | |
3364 | } | |
3365 | Py_INCREF(Py_None); resultobj = Py_None; | |
3366 | return resultobj; | |
3367 | fail: | |
3368 | return NULL; | |
3369 | } | |
3370 | ||
3371 | ||
c370783e | 3372 | static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3373 | PyObject *resultobj; |
3374 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3375 | wxString *arg2 = 0 ; | |
b411df4a | 3376 | bool temp2 = false ; |
d14a1e28 RD |
3377 | PyObject * obj0 = 0 ; |
3378 | PyObject * obj1 = 0 ; | |
3379 | char *kwnames[] = { | |
3380 | (char *) "self",(char *) "params", NULL | |
3381 | }; | |
3382 | ||
3383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3386 | { |
3387 | arg2 = wxString_in_helper(obj1); | |
3388 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3389 | temp2 = true; |
d14a1e28 RD |
3390 | } |
3391 | { | |
3392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3393 | (arg1)->base_SetParameters((wxString const &)*arg2); | |
3394 | ||
3395 | wxPyEndAllowThreads(__tstate); | |
3396 | if (PyErr_Occurred()) SWIG_fail; | |
3397 | } | |
3398 | Py_INCREF(Py_None); resultobj = Py_None; | |
3399 | { | |
3400 | if (temp2) | |
3401 | delete arg2; | |
3402 | } | |
3403 | return resultobj; | |
3404 | fail: | |
3405 | { | |
3406 | if (temp2) | |
3407 | delete arg2; | |
3408 | } | |
3409 | return NULL; | |
3410 | } | |
3411 | ||
3412 | ||
c370783e | 3413 | static PyObject * PyGridCellEditor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3414 | PyObject *obj; |
3415 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3416 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellEditor, obj); | |
3417 | Py_INCREF(obj); | |
3418 | return Py_BuildValue((char *)""); | |
3419 | } | |
c370783e | 3420 | static PyObject *_wrap_new_GridCellTextEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3421 | PyObject *resultobj; |
3422 | wxGridCellTextEditor *result; | |
3423 | char *kwnames[] = { | |
3424 | NULL | |
3425 | }; | |
3426 | ||
3427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellTextEditor",kwnames)) goto fail; | |
3428 | { | |
3429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3430 | result = (wxGridCellTextEditor *)new wxGridCellTextEditor(); | |
3431 | ||
3432 | wxPyEndAllowThreads(__tstate); | |
3433 | if (PyErr_Occurred()) SWIG_fail; | |
3434 | } | |
2f4c0a16 | 3435 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellTextEditor, 1); |
d14a1e28 RD |
3436 | return resultobj; |
3437 | fail: | |
3438 | return NULL; | |
3439 | } | |
3440 | ||
3441 | ||
c370783e | 3442 | static PyObject *_wrap_GridCellTextEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3443 | PyObject *resultobj; |
3444 | wxGridCellTextEditor *arg1 = (wxGridCellTextEditor *) 0 ; | |
3445 | wxString result; | |
3446 | PyObject * obj0 = 0 ; | |
3447 | char *kwnames[] = { | |
3448 | (char *) "self", NULL | |
3449 | }; | |
3450 | ||
3451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellTextEditor_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellTextEditor, |
3453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3454 | { |
3455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3456 | result = (arg1)->GetValue(); | |
3457 | ||
3458 | wxPyEndAllowThreads(__tstate); | |
3459 | if (PyErr_Occurred()) SWIG_fail; | |
3460 | } | |
3461 | { | |
3462 | #if wxUSE_UNICODE | |
3463 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3464 | #else | |
3465 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3466 | #endif | |
3467 | } | |
3468 | return resultobj; | |
3469 | fail: | |
3470 | return NULL; | |
3471 | } | |
3472 | ||
3473 | ||
c370783e | 3474 | static PyObject * GridCellTextEditor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3475 | PyObject *obj; |
3476 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3477 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellTextEditor, obj); | |
3478 | Py_INCREF(obj); | |
3479 | return Py_BuildValue((char *)""); | |
3480 | } | |
c370783e | 3481 | static PyObject *_wrap_new_GridCellNumberEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3482 | PyObject *resultobj; |
3483 | int arg1 = (int) -1 ; | |
3484 | int arg2 = (int) -1 ; | |
3485 | wxGridCellNumberEditor *result; | |
8edf1c75 RD |
3486 | PyObject * obj0 = 0 ; |
3487 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
3488 | char *kwnames[] = { |
3489 | (char *) "min",(char *) "max", NULL | |
3490 | }; | |
3491 | ||
8edf1c75 RD |
3492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellNumberEditor",kwnames,&obj0,&obj1)) goto fail; |
3493 | if (obj0) { | |
c370783e | 3494 | arg1 = (int)SWIG_As_int(obj0); |
2f4c0a16 | 3495 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
3496 | } |
3497 | if (obj1) { | |
c370783e | 3498 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 3499 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 3500 | } |
d14a1e28 RD |
3501 | { |
3502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3503 | result = (wxGridCellNumberEditor *)new wxGridCellNumberEditor(arg1,arg2); | |
3504 | ||
3505 | wxPyEndAllowThreads(__tstate); | |
3506 | if (PyErr_Occurred()) SWIG_fail; | |
3507 | } | |
2f4c0a16 | 3508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellNumberEditor, 1); |
d14a1e28 RD |
3509 | return resultobj; |
3510 | fail: | |
3511 | return NULL; | |
3512 | } | |
3513 | ||
3514 | ||
c370783e | 3515 | static PyObject *_wrap_GridCellNumberEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3516 | PyObject *resultobj; |
3517 | wxGridCellNumberEditor *arg1 = (wxGridCellNumberEditor *) 0 ; | |
3518 | wxString result; | |
3519 | PyObject * obj0 = 0 ; | |
3520 | char *kwnames[] = { | |
3521 | (char *) "self", NULL | |
3522 | }; | |
3523 | ||
3524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellNumberEditor_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellNumberEditor, |
3526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3527 | { |
3528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3529 | result = (arg1)->GetValue(); | |
3530 | ||
3531 | wxPyEndAllowThreads(__tstate); | |
3532 | if (PyErr_Occurred()) SWIG_fail; | |
3533 | } | |
3534 | { | |
3535 | #if wxUSE_UNICODE | |
3536 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3537 | #else | |
3538 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3539 | #endif | |
3540 | } | |
3541 | return resultobj; | |
3542 | fail: | |
3543 | return NULL; | |
3544 | } | |
3545 | ||
3546 | ||
c370783e | 3547 | static PyObject * GridCellNumberEditor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3548 | PyObject *obj; |
3549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3550 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberEditor, obj); | |
3551 | Py_INCREF(obj); | |
3552 | return Py_BuildValue((char *)""); | |
3553 | } | |
c370783e | 3554 | static PyObject *_wrap_new_GridCellFloatEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 3555 | PyObject *resultobj; |
377d47bd RD |
3556 | int arg1 = (int) -1 ; |
3557 | int arg2 = (int) -1 ; | |
d14a1e28 | 3558 | wxGridCellFloatEditor *result; |
377d47bd RD |
3559 | PyObject * obj0 = 0 ; |
3560 | PyObject * obj1 = 0 ; | |
d14a1e28 | 3561 | char *kwnames[] = { |
377d47bd | 3562 | (char *) "width",(char *) "precision", NULL |
d14a1e28 RD |
3563 | }; |
3564 | ||
377d47bd RD |
3565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatEditor",kwnames,&obj0,&obj1)) goto fail; |
3566 | if (obj0) { | |
c370783e | 3567 | arg1 = (int)SWIG_As_int(obj0); |
377d47bd RD |
3568 | if (PyErr_Occurred()) SWIG_fail; |
3569 | } | |
3570 | if (obj1) { | |
c370783e | 3571 | arg2 = (int)SWIG_As_int(obj1); |
377d47bd RD |
3572 | if (PyErr_Occurred()) SWIG_fail; |
3573 | } | |
d14a1e28 RD |
3574 | { |
3575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
377d47bd | 3576 | result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor(arg1,arg2); |
d14a1e28 RD |
3577 | |
3578 | wxPyEndAllowThreads(__tstate); | |
3579 | if (PyErr_Occurred()) SWIG_fail; | |
3580 | } | |
2f4c0a16 | 3581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellFloatEditor, 1); |
d14a1e28 RD |
3582 | return resultobj; |
3583 | fail: | |
3584 | return NULL; | |
3585 | } | |
3586 | ||
3587 | ||
c370783e | 3588 | static PyObject *_wrap_GridCellFloatEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3589 | PyObject *resultobj; |
3590 | wxGridCellFloatEditor *arg1 = (wxGridCellFloatEditor *) 0 ; | |
3591 | wxString result; | |
3592 | PyObject * obj0 = 0 ; | |
3593 | char *kwnames[] = { | |
3594 | (char *) "self", NULL | |
3595 | }; | |
3596 | ||
3597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatEditor_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatEditor, |
3599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3600 | { |
3601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3602 | result = (arg1)->GetValue(); | |
3603 | ||
3604 | wxPyEndAllowThreads(__tstate); | |
3605 | if (PyErr_Occurred()) SWIG_fail; | |
3606 | } | |
3607 | { | |
3608 | #if wxUSE_UNICODE | |
3609 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3610 | #else | |
3611 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3612 | #endif | |
3613 | } | |
3614 | return resultobj; | |
3615 | fail: | |
3616 | return NULL; | |
3617 | } | |
3618 | ||
3619 | ||
c370783e | 3620 | static PyObject * GridCellFloatEditor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3621 | PyObject *obj; |
3622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3623 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatEditor, obj); | |
3624 | Py_INCREF(obj); | |
3625 | return Py_BuildValue((char *)""); | |
3626 | } | |
c370783e | 3627 | static PyObject *_wrap_new_GridCellBoolEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3628 | PyObject *resultobj; |
3629 | wxGridCellBoolEditor *result; | |
3630 | char *kwnames[] = { | |
3631 | NULL | |
3632 | }; | |
3633 | ||
3634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolEditor",kwnames)) goto fail; | |
3635 | { | |
3636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3637 | result = (wxGridCellBoolEditor *)new wxGridCellBoolEditor(); | |
3638 | ||
3639 | wxPyEndAllowThreads(__tstate); | |
3640 | if (PyErr_Occurred()) SWIG_fail; | |
3641 | } | |
2f4c0a16 | 3642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellBoolEditor, 1); |
d14a1e28 RD |
3643 | return resultobj; |
3644 | fail: | |
3645 | return NULL; | |
3646 | } | |
3647 | ||
3648 | ||
c370783e | 3649 | static PyObject *_wrap_GridCellBoolEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3650 | PyObject *resultobj; |
3651 | wxGridCellBoolEditor *arg1 = (wxGridCellBoolEditor *) 0 ; | |
3652 | wxString result; | |
3653 | PyObject * obj0 = 0 ; | |
3654 | char *kwnames[] = { | |
3655 | (char *) "self", NULL | |
3656 | }; | |
3657 | ||
3658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellBoolEditor_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellBoolEditor, |
3660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3661 | { |
3662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3663 | result = (arg1)->GetValue(); | |
3664 | ||
3665 | wxPyEndAllowThreads(__tstate); | |
3666 | if (PyErr_Occurred()) SWIG_fail; | |
3667 | } | |
3668 | { | |
3669 | #if wxUSE_UNICODE | |
3670 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3671 | #else | |
3672 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3673 | #endif | |
3674 | } | |
3675 | return resultobj; | |
3676 | fail: | |
3677 | return NULL; | |
3678 | } | |
3679 | ||
3680 | ||
c370783e | 3681 | static PyObject * GridCellBoolEditor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3682 | PyObject *obj; |
3683 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3684 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolEditor, obj); | |
3685 | Py_INCREF(obj); | |
3686 | return Py_BuildValue((char *)""); | |
3687 | } | |
c370783e | 3688 | static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3689 | PyObject *resultobj; |
3690 | int arg1 = (int) 0 ; | |
3691 | wxString *arg2 = (wxString *) NULL ; | |
b411df4a | 3692 | bool arg3 = (bool) false ; |
d14a1e28 | 3693 | wxGridCellChoiceEditor *result; |
44127b65 | 3694 | PyObject * obj0 = 0 ; |
d14a1e28 | 3695 | PyObject * obj1 = 0 ; |
d14a1e28 | 3696 | char *kwnames[] = { |
44127b65 | 3697 | (char *) "choices",(char *) "allowOthers", NULL |
d14a1e28 RD |
3698 | }; |
3699 | ||
44127b65 RD |
3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellChoiceEditor",kwnames,&obj0,&obj1)) goto fail; |
3701 | if (obj0) { | |
3702 | { | |
3703 | arg1 = PyList_Size(obj0); | |
3704 | arg2 = wxString_LIST_helper(obj0); | |
3705 | if (arg2 == NULL) SWIG_fail; | |
3706 | } | |
d14a1e28 | 3707 | } |
44127b65 | 3708 | if (obj1) { |
c370783e | 3709 | arg3 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 3710 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3711 | } |
3712 | { | |
3713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3714 | result = (wxGridCellChoiceEditor *)new wxGridCellChoiceEditor(arg1,(wxString const *)arg2,arg3); | |
3715 | ||
3716 | wxPyEndAllowThreads(__tstate); | |
3717 | if (PyErr_Occurred()) SWIG_fail; | |
3718 | } | |
2f4c0a16 | 3719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellChoiceEditor, 1); |
44127b65 RD |
3720 | { |
3721 | if (arg2) delete [] arg2; | |
3722 | } | |
d14a1e28 RD |
3723 | return resultobj; |
3724 | fail: | |
44127b65 RD |
3725 | { |
3726 | if (arg2) delete [] arg2; | |
3727 | } | |
d14a1e28 RD |
3728 | return NULL; |
3729 | } | |
3730 | ||
3731 | ||
c370783e | 3732 | static PyObject *_wrap_GridCellChoiceEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3733 | PyObject *resultobj; |
3734 | wxGridCellChoiceEditor *arg1 = (wxGridCellChoiceEditor *) 0 ; | |
3735 | wxString result; | |
3736 | PyObject * obj0 = 0 ; | |
3737 | char *kwnames[] = { | |
3738 | (char *) "self", NULL | |
3739 | }; | |
3740 | ||
3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellChoiceEditor_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellChoiceEditor, |
3743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3744 | { |
3745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3746 | result = (arg1)->GetValue(); | |
3747 | ||
3748 | wxPyEndAllowThreads(__tstate); | |
3749 | if (PyErr_Occurred()) SWIG_fail; | |
3750 | } | |
3751 | { | |
3752 | #if wxUSE_UNICODE | |
3753 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3754 | #else | |
3755 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3756 | #endif | |
3757 | } | |
3758 | return resultobj; | |
3759 | fail: | |
3760 | return NULL; | |
3761 | } | |
3762 | ||
3763 | ||
c370783e | 3764 | static PyObject * GridCellChoiceEditor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3765 | PyObject *obj; |
3766 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3767 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellChoiceEditor, obj); | |
3768 | Py_INCREF(obj); | |
3769 | return Py_BuildValue((char *)""); | |
3770 | } | |
c370783e | 3771 | static PyObject *_wrap_new_GridCellEnumEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3772 | PyObject *resultobj; |
3773 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
3774 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3775 | wxGridCellEnumEditor *result; | |
b411df4a | 3776 | bool temp1 = false ; |
d14a1e28 RD |
3777 | PyObject * obj0 = 0 ; |
3778 | char *kwnames[] = { | |
3779 | (char *) "choices", NULL | |
3780 | }; | |
3781 | ||
3782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumEditor",kwnames,&obj0)) goto fail; | |
3783 | if (obj0) { | |
3784 | { | |
3785 | arg1 = wxString_in_helper(obj0); | |
3786 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3787 | temp1 = true; |
d14a1e28 RD |
3788 | } |
3789 | } | |
3790 | { | |
3791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3792 | result = (wxGridCellEnumEditor *)new wxGridCellEnumEditor((wxString const &)*arg1); | |
3793 | ||
3794 | wxPyEndAllowThreads(__tstate); | |
3795 | if (PyErr_Occurred()) SWIG_fail; | |
3796 | } | |
2f4c0a16 | 3797 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellEnumEditor, 1); |
d14a1e28 RD |
3798 | { |
3799 | if (temp1) | |
3800 | delete arg1; | |
3801 | } | |
3802 | return resultobj; | |
3803 | fail: | |
3804 | { | |
3805 | if (temp1) | |
3806 | delete arg1; | |
3807 | } | |
3808 | return NULL; | |
3809 | } | |
3810 | ||
3811 | ||
c370783e | 3812 | static PyObject *_wrap_GridCellEnumEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3813 | PyObject *resultobj; |
3814 | wxGridCellEnumEditor *arg1 = (wxGridCellEnumEditor *) 0 ; | |
3815 | wxString result; | |
3816 | PyObject * obj0 = 0 ; | |
3817 | char *kwnames[] = { | |
3818 | (char *) "self", NULL | |
3819 | }; | |
3820 | ||
3821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEnumEditor_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEnumEditor, |
3823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3824 | { |
3825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3826 | result = (arg1)->GetValue(); | |
3827 | ||
3828 | wxPyEndAllowThreads(__tstate); | |
3829 | if (PyErr_Occurred()) SWIG_fail; | |
3830 | } | |
3831 | { | |
3832 | #if wxUSE_UNICODE | |
3833 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3834 | #else | |
3835 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3836 | #endif | |
3837 | } | |
3838 | return resultobj; | |
3839 | fail: | |
3840 | return NULL; | |
3841 | } | |
3842 | ||
3843 | ||
c370783e | 3844 | static PyObject * GridCellEnumEditor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3845 | PyObject *obj; |
3846 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3847 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumEditor, obj); | |
3848 | Py_INCREF(obj); | |
3849 | return Py_BuildValue((char *)""); | |
3850 | } | |
c370783e | 3851 | static PyObject *_wrap_new_GridCellAutoWrapStringEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3852 | PyObject *resultobj; |
3853 | wxGridCellAutoWrapStringEditor *result; | |
3854 | char *kwnames[] = { | |
3855 | NULL | |
3856 | }; | |
3857 | ||
3858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringEditor",kwnames)) goto fail; | |
3859 | { | |
3860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3861 | result = (wxGridCellAutoWrapStringEditor *)new wxGridCellAutoWrapStringEditor(); | |
3862 | ||
3863 | wxPyEndAllowThreads(__tstate); | |
3864 | if (PyErr_Occurred()) SWIG_fail; | |
3865 | } | |
2f4c0a16 | 3866 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellAutoWrapStringEditor, 1); |
d14a1e28 RD |
3867 | return resultobj; |
3868 | fail: | |
3869 | return NULL; | |
3870 | } | |
3871 | ||
3872 | ||
c370783e | 3873 | static PyObject *_wrap_GridCellAutoWrapStringEditor_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3874 | PyObject *resultobj; |
3875 | wxGridCellAutoWrapStringEditor *arg1 = (wxGridCellAutoWrapStringEditor *) 0 ; | |
3876 | wxString result; | |
3877 | PyObject * obj0 = 0 ; | |
3878 | char *kwnames[] = { | |
3879 | (char *) "self", NULL | |
3880 | }; | |
3881 | ||
3882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAutoWrapStringEditor_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAutoWrapStringEditor, |
3884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3885 | { |
3886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3887 | result = (arg1)->GetValue(); | |
3888 | ||
3889 | wxPyEndAllowThreads(__tstate); | |
3890 | if (PyErr_Occurred()) SWIG_fail; | |
3891 | } | |
3892 | { | |
3893 | #if wxUSE_UNICODE | |
3894 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3895 | #else | |
3896 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3897 | #endif | |
3898 | } | |
3899 | return resultobj; | |
3900 | fail: | |
3901 | return NULL; | |
3902 | } | |
3903 | ||
3904 | ||
c370783e | 3905 | static PyObject * GridCellAutoWrapStringEditor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3906 | PyObject *obj; |
3907 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3908 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringEditor, obj); | |
3909 | Py_INCREF(obj); | |
3910 | return Py_BuildValue((char *)""); | |
3911 | } | |
c370783e | 3912 | static PyObject *_wrap_GridCellAttr__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3913 | PyObject *resultobj; |
3914 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3915 | PyObject *arg2 = (PyObject *) 0 ; | |
3916 | PyObject * obj0 = 0 ; | |
3917 | PyObject * obj1 = 0 ; | |
3918 | char *kwnames[] = { | |
3919 | (char *) "self",(char *) "_self", NULL | |
3920 | }; | |
3921 | ||
3922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
3924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3925 | arg2 = obj1; |
3926 | { | |
3927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3928 | wxGridCellAttr__setOORInfo(arg1,arg2); | |
3929 | ||
3930 | wxPyEndAllowThreads(__tstate); | |
3931 | if (PyErr_Occurred()) SWIG_fail; | |
3932 | } | |
3933 | Py_INCREF(Py_None); resultobj = Py_None; | |
3934 | return resultobj; | |
3935 | fail: | |
3936 | return NULL; | |
3937 | } | |
3938 | ||
3939 | ||
c370783e | 3940 | static PyObject *_wrap_new_GridCellAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3941 | PyObject *resultobj; |
3942 | wxGridCellAttr *arg1 = (wxGridCellAttr *) NULL ; | |
3943 | wxGridCellAttr *result; | |
3944 | PyObject * obj0 = 0 ; | |
3945 | char *kwnames[] = { | |
3946 | (char *) "attrDefault", NULL | |
3947 | }; | |
3948 | ||
3949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellAttr",kwnames,&obj0)) goto fail; | |
3950 | if (obj0) { | |
2f4c0a16 RD |
3951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
3952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3953 | } |
3954 | { | |
3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3956 | result = (wxGridCellAttr *)new wxGridCellAttr(arg1); | |
3957 | ||
3958 | wxPyEndAllowThreads(__tstate); | |
3959 | if (PyErr_Occurred()) SWIG_fail; | |
3960 | } | |
3961 | { | |
412d302d | 3962 | resultobj = wxPyMake_wxGridCellAttr(result, 1); |
d14a1e28 RD |
3963 | } |
3964 | return resultobj; | |
3965 | fail: | |
3966 | return NULL; | |
3967 | } | |
3968 | ||
3969 | ||
c370783e | 3970 | static PyObject *_wrap_GridCellAttr_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3971 | PyObject *resultobj; |
3972 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3973 | wxGridCellAttr *result; | |
3974 | PyObject * obj0 = 0 ; | |
3975 | char *kwnames[] = { | |
3976 | (char *) "self", NULL | |
3977 | }; | |
3978 | ||
3979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
3981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3982 | { |
3983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3984 | result = (wxGridCellAttr *)((wxGridCellAttr const *)arg1)->Clone(); | |
3985 | ||
3986 | wxPyEndAllowThreads(__tstate); | |
3987 | if (PyErr_Occurred()) SWIG_fail; | |
3988 | } | |
3989 | { | |
412d302d | 3990 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
d14a1e28 RD |
3991 | } |
3992 | return resultobj; | |
3993 | fail: | |
3994 | return NULL; | |
3995 | } | |
3996 | ||
3997 | ||
c370783e | 3998 | static PyObject *_wrap_GridCellAttr_MergeWith(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3999 | PyObject *resultobj; |
4000 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4001 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4002 | PyObject * obj0 = 0 ; | |
4003 | PyObject * obj1 = 0 ; | |
4004 | char *kwnames[] = { | |
4005 | (char *) "self",(char *) "mergefrom", NULL | |
4006 | }; | |
4007 | ||
4008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_MergeWith",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4011 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
4012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4013 | { |
4014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4015 | (arg1)->MergeWith(arg2); | |
4016 | ||
4017 | wxPyEndAllowThreads(__tstate); | |
4018 | if (PyErr_Occurred()) SWIG_fail; | |
4019 | } | |
4020 | Py_INCREF(Py_None); resultobj = Py_None; | |
4021 | return resultobj; | |
4022 | fail: | |
4023 | return NULL; | |
4024 | } | |
4025 | ||
4026 | ||
c370783e | 4027 | static PyObject *_wrap_GridCellAttr_IncRef(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4028 | PyObject *resultobj; |
4029 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4030 | PyObject * obj0 = 0 ; | |
4031 | char *kwnames[] = { | |
4032 | (char *) "self", NULL | |
4033 | }; | |
4034 | ||
4035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IncRef",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4038 | { |
4039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4040 | (arg1)->IncRef(); | |
4041 | ||
4042 | wxPyEndAllowThreads(__tstate); | |
4043 | if (PyErr_Occurred()) SWIG_fail; | |
4044 | } | |
4045 | Py_INCREF(Py_None); resultobj = Py_None; | |
4046 | return resultobj; | |
4047 | fail: | |
4048 | return NULL; | |
4049 | } | |
4050 | ||
4051 | ||
c370783e | 4052 | static PyObject *_wrap_GridCellAttr_DecRef(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4053 | PyObject *resultobj; |
4054 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4055 | PyObject * obj0 = 0 ; | |
4056 | char *kwnames[] = { | |
4057 | (char *) "self", NULL | |
4058 | }; | |
4059 | ||
4060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_DecRef",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4063 | { |
4064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4065 | (arg1)->DecRef(); | |
4066 | ||
4067 | wxPyEndAllowThreads(__tstate); | |
4068 | if (PyErr_Occurred()) SWIG_fail; | |
4069 | } | |
4070 | Py_INCREF(Py_None); resultobj = Py_None; | |
4071 | return resultobj; | |
4072 | fail: | |
4073 | return NULL; | |
4074 | } | |
4075 | ||
4076 | ||
c370783e | 4077 | static PyObject *_wrap_GridCellAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4078 | PyObject *resultobj; |
4079 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4080 | wxColour *arg2 = 0 ; | |
4081 | wxColour temp2 ; | |
4082 | PyObject * obj0 = 0 ; | |
4083 | PyObject * obj1 = 0 ; | |
4084 | char *kwnames[] = { | |
4085 | (char *) "self",(char *) "colText", NULL | |
4086 | }; | |
4087 | ||
4088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4091 | { |
4092 | arg2 = &temp2; | |
4093 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4094 | } | |
4095 | { | |
4096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4097 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
4098 | ||
4099 | wxPyEndAllowThreads(__tstate); | |
4100 | if (PyErr_Occurred()) SWIG_fail; | |
4101 | } | |
4102 | Py_INCREF(Py_None); resultobj = Py_None; | |
4103 | return resultobj; | |
4104 | fail: | |
4105 | return NULL; | |
4106 | } | |
4107 | ||
4108 | ||
c370783e | 4109 | static PyObject *_wrap_GridCellAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4110 | PyObject *resultobj; |
4111 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4112 | wxColour *arg2 = 0 ; | |
4113 | wxColour temp2 ; | |
4114 | PyObject * obj0 = 0 ; | |
4115 | PyObject * obj1 = 0 ; | |
4116 | char *kwnames[] = { | |
4117 | (char *) "self",(char *) "colBack", NULL | |
4118 | }; | |
4119 | ||
4120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4123 | { |
4124 | arg2 = &temp2; | |
4125 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4126 | } | |
4127 | { | |
4128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4129 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
4130 | ||
4131 | wxPyEndAllowThreads(__tstate); | |
4132 | if (PyErr_Occurred()) SWIG_fail; | |
4133 | } | |
4134 | Py_INCREF(Py_None); resultobj = Py_None; | |
4135 | return resultobj; | |
4136 | fail: | |
4137 | return NULL; | |
4138 | } | |
4139 | ||
4140 | ||
c370783e | 4141 | static PyObject *_wrap_GridCellAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4142 | PyObject *resultobj; |
4143 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4144 | wxFont *arg2 = 0 ; | |
4145 | PyObject * obj0 = 0 ; | |
4146 | PyObject * obj1 = 0 ; | |
4147 | char *kwnames[] = { | |
4148 | (char *) "self",(char *) "font", NULL | |
4149 | }; | |
4150 | ||
4151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4154 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
4155 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4156 | SWIG_fail; | |
d14a1e28 | 4157 | if (arg2 == NULL) { |
2f4c0a16 RD |
4158 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4159 | SWIG_fail; | |
d14a1e28 RD |
4160 | } |
4161 | { | |
4162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4163 | (arg1)->SetFont((wxFont const &)*arg2); | |
4164 | ||
4165 | wxPyEndAllowThreads(__tstate); | |
4166 | if (PyErr_Occurred()) SWIG_fail; | |
4167 | } | |
4168 | Py_INCREF(Py_None); resultobj = Py_None; | |
4169 | return resultobj; | |
4170 | fail: | |
4171 | return NULL; | |
4172 | } | |
4173 | ||
4174 | ||
c370783e | 4175 | static PyObject *_wrap_GridCellAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4176 | PyObject *resultobj; |
4177 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4178 | int arg2 ; | |
4179 | int arg3 ; | |
4180 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4181 | PyObject * obj1 = 0 ; |
4182 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4183 | char *kwnames[] = { |
4184 | (char *) "self",(char *) "hAlign",(char *) "vAlign", NULL | |
4185 | }; | |
4186 | ||
8edf1c75 | 4187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4190 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 4191 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4192 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 4193 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4194 | { |
4195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4196 | (arg1)->SetAlignment(arg2,arg3); | |
4197 | ||
4198 | wxPyEndAllowThreads(__tstate); | |
4199 | if (PyErr_Occurred()) SWIG_fail; | |
4200 | } | |
4201 | Py_INCREF(Py_None); resultobj = Py_None; | |
4202 | return resultobj; | |
4203 | fail: | |
4204 | return NULL; | |
4205 | } | |
4206 | ||
4207 | ||
c370783e | 4208 | static PyObject *_wrap_GridCellAttr_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4209 | PyObject *resultobj; |
4210 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4211 | int arg2 ; | |
4212 | int arg3 ; | |
4213 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4214 | PyObject * obj1 = 0 ; |
4215 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4216 | char *kwnames[] = { |
4217 | (char *) "self",(char *) "num_rows",(char *) "num_cols", NULL | |
4218 | }; | |
4219 | ||
8edf1c75 | 4220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4223 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 4224 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4225 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 4226 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4227 | { |
4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4229 | (arg1)->SetSize(arg2,arg3); | |
4230 | ||
4231 | wxPyEndAllowThreads(__tstate); | |
4232 | if (PyErr_Occurred()) SWIG_fail; | |
4233 | } | |
4234 | Py_INCREF(Py_None); resultobj = Py_None; | |
4235 | return resultobj; | |
4236 | fail: | |
4237 | return NULL; | |
4238 | } | |
4239 | ||
4240 | ||
c370783e | 4241 | static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4242 | PyObject *resultobj; |
4243 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
b411df4a | 4244 | bool arg2 = (bool) true ; |
d14a1e28 RD |
4245 | PyObject * obj0 = 0 ; |
4246 | PyObject * obj1 = 0 ; | |
4247 | char *kwnames[] = { | |
4248 | (char *) "self",(char *) "allow", NULL | |
4249 | }; | |
4250 | ||
4251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetOverflow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 4254 | if (obj1) { |
c370783e | 4255 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 4256 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4257 | } |
4258 | { | |
4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4260 | (arg1)->SetOverflow(arg2); | |
4261 | ||
4262 | wxPyEndAllowThreads(__tstate); | |
4263 | if (PyErr_Occurred()) SWIG_fail; | |
4264 | } | |
4265 | Py_INCREF(Py_None); resultobj = Py_None; | |
4266 | return resultobj; | |
4267 | fail: | |
4268 | return NULL; | |
4269 | } | |
4270 | ||
4271 | ||
c370783e | 4272 | static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4273 | PyObject *resultobj; |
4274 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
b411df4a | 4275 | bool arg2 = (bool) true ; |
d14a1e28 RD |
4276 | PyObject * obj0 = 0 ; |
4277 | PyObject * obj1 = 0 ; | |
4278 | char *kwnames[] = { | |
4279 | (char *) "self",(char *) "isReadOnly", NULL | |
4280 | }; | |
4281 | ||
4282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetReadOnly",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 4285 | if (obj1) { |
c370783e | 4286 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 4287 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4288 | } |
4289 | { | |
4290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4291 | (arg1)->SetReadOnly(arg2); | |
4292 | ||
4293 | wxPyEndAllowThreads(__tstate); | |
4294 | if (PyErr_Occurred()) SWIG_fail; | |
4295 | } | |
4296 | Py_INCREF(Py_None); resultobj = Py_None; | |
4297 | return resultobj; | |
4298 | fail: | |
4299 | return NULL; | |
4300 | } | |
4301 | ||
4302 | ||
c370783e | 4303 | static PyObject *_wrap_GridCellAttr_SetRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4304 | PyObject *resultobj; |
4305 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4306 | wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ; | |
4307 | PyObject * obj0 = 0 ; | |
4308 | PyObject * obj1 = 0 ; | |
4309 | char *kwnames[] = { | |
4310 | (char *) "self",(char *) "renderer", NULL | |
4311 | }; | |
4312 | ||
4313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetRenderer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4316 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellRenderer, | |
4317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4318 | { |
4319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4320 | (arg1)->SetRenderer(arg2); | |
4321 | ||
4322 | wxPyEndAllowThreads(__tstate); | |
4323 | if (PyErr_Occurred()) SWIG_fail; | |
4324 | } | |
4325 | Py_INCREF(Py_None); resultobj = Py_None; | |
4326 | return resultobj; | |
4327 | fail: | |
4328 | return NULL; | |
4329 | } | |
4330 | ||
4331 | ||
c370783e | 4332 | static PyObject *_wrap_GridCellAttr_SetEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4333 | PyObject *resultobj; |
4334 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4335 | wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ; | |
4336 | PyObject * obj0 = 0 ; | |
4337 | PyObject * obj1 = 0 ; | |
4338 | char *kwnames[] = { | |
4339 | (char *) "self",(char *) "editor", NULL | |
4340 | }; | |
4341 | ||
4342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetEditor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellEditor, | |
4346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4347 | { |
4348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4349 | (arg1)->SetEditor(arg2); | |
4350 | ||
4351 | wxPyEndAllowThreads(__tstate); | |
4352 | if (PyErr_Occurred()) SWIG_fail; | |
4353 | } | |
4354 | Py_INCREF(Py_None); resultobj = Py_None; | |
4355 | return resultobj; | |
4356 | fail: | |
4357 | return NULL; | |
4358 | } | |
4359 | ||
4360 | ||
c370783e | 4361 | static PyObject *_wrap_GridCellAttr_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4362 | PyObject *resultobj; |
4363 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4364 | int arg2 ; | |
4365 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4366 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4367 | char *kwnames[] = { |
4368 | (char *) "self",(char *) "kind", NULL | |
4369 | }; | |
4370 | ||
8edf1c75 | 4371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetKind",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4374 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 4375 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4376 | { |
4377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4378 | (arg1)->SetKind((wxGridCellAttr::wxAttrKind )arg2); | |
4379 | ||
4380 | wxPyEndAllowThreads(__tstate); | |
4381 | if (PyErr_Occurred()) SWIG_fail; | |
4382 | } | |
4383 | Py_INCREF(Py_None); resultobj = Py_None; | |
4384 | return resultobj; | |
4385 | fail: | |
4386 | return NULL; | |
4387 | } | |
4388 | ||
4389 | ||
c370783e | 4390 | static PyObject *_wrap_GridCellAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4391 | PyObject *resultobj; |
4392 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4393 | bool result; | |
4394 | PyObject * obj0 = 0 ; | |
4395 | char *kwnames[] = { | |
4396 | (char *) "self", NULL | |
4397 | }; | |
4398 | ||
4399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4402 | { |
4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4404 | result = (bool)((wxGridCellAttr const *)arg1)->HasTextColour(); | |
4405 | ||
4406 | wxPyEndAllowThreads(__tstate); | |
4407 | if (PyErr_Occurred()) SWIG_fail; | |
4408 | } | |
fbc46b20 RD |
4409 | { |
4410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4411 | } | |
d14a1e28 RD |
4412 | return resultobj; |
4413 | fail: | |
4414 | return NULL; | |
4415 | } | |
4416 | ||
4417 | ||
c370783e | 4418 | static PyObject *_wrap_GridCellAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4419 | PyObject *resultobj; |
4420 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4421 | bool result; | |
4422 | PyObject * obj0 = 0 ; | |
4423 | char *kwnames[] = { | |
4424 | (char *) "self", NULL | |
4425 | }; | |
4426 | ||
4427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4430 | { |
4431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4432 | result = (bool)((wxGridCellAttr const *)arg1)->HasBackgroundColour(); | |
4433 | ||
4434 | wxPyEndAllowThreads(__tstate); | |
4435 | if (PyErr_Occurred()) SWIG_fail; | |
4436 | } | |
fbc46b20 RD |
4437 | { |
4438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4439 | } | |
d14a1e28 RD |
4440 | return resultobj; |
4441 | fail: | |
4442 | return NULL; | |
4443 | } | |
4444 | ||
4445 | ||
c370783e | 4446 | static PyObject *_wrap_GridCellAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4447 | PyObject *resultobj; |
4448 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4449 | bool result; | |
4450 | PyObject * obj0 = 0 ; | |
4451 | char *kwnames[] = { | |
4452 | (char *) "self", NULL | |
4453 | }; | |
4454 | ||
4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4458 | { |
4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4460 | result = (bool)((wxGridCellAttr const *)arg1)->HasFont(); | |
4461 | ||
4462 | wxPyEndAllowThreads(__tstate); | |
4463 | if (PyErr_Occurred()) SWIG_fail; | |
4464 | } | |
fbc46b20 RD |
4465 | { |
4466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4467 | } | |
d14a1e28 RD |
4468 | return resultobj; |
4469 | fail: | |
4470 | return NULL; | |
4471 | } | |
4472 | ||
4473 | ||
c370783e | 4474 | static PyObject *_wrap_GridCellAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4475 | PyObject *resultobj; |
4476 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4477 | bool result; | |
4478 | PyObject * obj0 = 0 ; | |
4479 | char *kwnames[] = { | |
4480 | (char *) "self", NULL | |
4481 | }; | |
4482 | ||
4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4486 | { |
4487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4488 | result = (bool)((wxGridCellAttr const *)arg1)->HasAlignment(); | |
4489 | ||
4490 | wxPyEndAllowThreads(__tstate); | |
4491 | if (PyErr_Occurred()) SWIG_fail; | |
4492 | } | |
fbc46b20 RD |
4493 | { |
4494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4495 | } | |
d14a1e28 RD |
4496 | return resultobj; |
4497 | fail: | |
4498 | return NULL; | |
4499 | } | |
4500 | ||
4501 | ||
c370783e | 4502 | static PyObject *_wrap_GridCellAttr_HasRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4503 | PyObject *resultobj; |
4504 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4505 | bool result; | |
4506 | PyObject * obj0 = 0 ; | |
4507 | char *kwnames[] = { | |
4508 | (char *) "self", NULL | |
4509 | }; | |
4510 | ||
4511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasRenderer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4514 | { |
4515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4516 | result = (bool)((wxGridCellAttr const *)arg1)->HasRenderer(); | |
4517 | ||
4518 | wxPyEndAllowThreads(__tstate); | |
4519 | if (PyErr_Occurred()) SWIG_fail; | |
4520 | } | |
fbc46b20 RD |
4521 | { |
4522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4523 | } | |
d14a1e28 RD |
4524 | return resultobj; |
4525 | fail: | |
4526 | return NULL; | |
4527 | } | |
4528 | ||
4529 | ||
c370783e | 4530 | static PyObject *_wrap_GridCellAttr_HasEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4531 | PyObject *resultobj; |
4532 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4533 | bool result; | |
4534 | PyObject * obj0 = 0 ; | |
4535 | char *kwnames[] = { | |
4536 | (char *) "self", NULL | |
4537 | }; | |
4538 | ||
4539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasEditor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4542 | { |
4543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4544 | result = (bool)((wxGridCellAttr const *)arg1)->HasEditor(); | |
4545 | ||
4546 | wxPyEndAllowThreads(__tstate); | |
4547 | if (PyErr_Occurred()) SWIG_fail; | |
4548 | } | |
fbc46b20 RD |
4549 | { |
4550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4551 | } | |
d14a1e28 RD |
4552 | return resultobj; |
4553 | fail: | |
4554 | return NULL; | |
4555 | } | |
4556 | ||
4557 | ||
c370783e | 4558 | static PyObject *_wrap_GridCellAttr_HasReadWriteMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4559 | PyObject *resultobj; |
4560 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4561 | bool result; | |
4562 | PyObject * obj0 = 0 ; | |
4563 | char *kwnames[] = { | |
4564 | (char *) "self", NULL | |
4565 | }; | |
4566 | ||
4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasReadWriteMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4570 | { |
4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4572 | result = (bool)((wxGridCellAttr const *)arg1)->HasReadWriteMode(); | |
4573 | ||
4574 | wxPyEndAllowThreads(__tstate); | |
4575 | if (PyErr_Occurred()) SWIG_fail; | |
4576 | } | |
fbc46b20 RD |
4577 | { |
4578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4579 | } | |
d14a1e28 RD |
4580 | return resultobj; |
4581 | fail: | |
4582 | return NULL; | |
4583 | } | |
4584 | ||
4585 | ||
c370783e | 4586 | static PyObject *_wrap_GridCellAttr_HasOverflowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4587 | PyObject *resultobj; |
4588 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4589 | bool result; | |
4590 | PyObject * obj0 = 0 ; | |
4591 | char *kwnames[] = { | |
4592 | (char *) "self", NULL | |
4593 | }; | |
4594 | ||
4595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasOverflowMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4598 | { |
4599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4600 | result = (bool)((wxGridCellAttr const *)arg1)->HasOverflowMode(); | |
4601 | ||
4602 | wxPyEndAllowThreads(__tstate); | |
4603 | if (PyErr_Occurred()) SWIG_fail; | |
4604 | } | |
fbc46b20 RD |
4605 | { |
4606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4607 | } | |
d14a1e28 RD |
4608 | return resultobj; |
4609 | fail: | |
4610 | return NULL; | |
4611 | } | |
4612 | ||
4613 | ||
c370783e | 4614 | static PyObject *_wrap_GridCellAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4615 | PyObject *resultobj; |
4616 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4617 | wxColour result; | |
4618 | PyObject * obj0 = 0 ; | |
4619 | char *kwnames[] = { | |
4620 | (char *) "self", NULL | |
4621 | }; | |
4622 | ||
4623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4626 | { |
4627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4628 | result = ((wxGridCellAttr const *)arg1)->GetTextColour(); | |
4629 | ||
4630 | wxPyEndAllowThreads(__tstate); | |
4631 | if (PyErr_Occurred()) SWIG_fail; | |
4632 | } | |
4633 | { | |
4634 | wxColour * resultptr; | |
4635 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 4636 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
4637 | } |
4638 | return resultobj; | |
4639 | fail: | |
4640 | return NULL; | |
4641 | } | |
4642 | ||
4643 | ||
c370783e | 4644 | static PyObject *_wrap_GridCellAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4645 | PyObject *resultobj; |
4646 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4647 | wxColour result; | |
4648 | PyObject * obj0 = 0 ; | |
4649 | char *kwnames[] = { | |
4650 | (char *) "self", NULL | |
4651 | }; | |
4652 | ||
4653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4656 | { |
4657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4658 | result = ((wxGridCellAttr const *)arg1)->GetBackgroundColour(); | |
4659 | ||
4660 | wxPyEndAllowThreads(__tstate); | |
4661 | if (PyErr_Occurred()) SWIG_fail; | |
4662 | } | |
4663 | { | |
4664 | wxColour * resultptr; | |
4665 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 4666 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
4667 | } |
4668 | return resultobj; | |
4669 | fail: | |
4670 | return NULL; | |
4671 | } | |
4672 | ||
4673 | ||
c370783e | 4674 | static PyObject *_wrap_GridCellAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4675 | PyObject *resultobj; |
4676 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4677 | wxFont result; | |
4678 | PyObject * obj0 = 0 ; | |
4679 | char *kwnames[] = { | |
4680 | (char *) "self", NULL | |
4681 | }; | |
4682 | ||
4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4686 | { |
4687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4688 | result = ((wxGridCellAttr const *)arg1)->GetFont(); | |
4689 | ||
4690 | wxPyEndAllowThreads(__tstate); | |
4691 | if (PyErr_Occurred()) SWIG_fail; | |
4692 | } | |
4693 | { | |
4694 | wxFont * resultptr; | |
4695 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 4696 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
4697 | } |
4698 | return resultobj; | |
4699 | fail: | |
4700 | return NULL; | |
4701 | } | |
4702 | ||
4703 | ||
c370783e | 4704 | static PyObject *_wrap_GridCellAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4705 | PyObject *resultobj; |
4706 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4707 | int *arg2 = (int *) 0 ; | |
4708 | int *arg3 = (int *) 0 ; | |
4709 | int temp2 ; | |
c370783e | 4710 | int res2 = 0 ; |
d14a1e28 | 4711 | int temp3 ; |
c370783e | 4712 | int res3 = 0 ; |
d14a1e28 RD |
4713 | PyObject * obj0 = 0 ; |
4714 | char *kwnames[] = { | |
4715 | (char *) "self", NULL | |
4716 | }; | |
4717 | ||
c370783e RD |
4718 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
4719 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetAlignment",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4723 | { |
4724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4725 | ((wxGridCellAttr const *)arg1)->GetAlignment(arg2,arg3); | |
4726 | ||
4727 | wxPyEndAllowThreads(__tstate); | |
4728 | if (PyErr_Occurred()) SWIG_fail; | |
4729 | } | |
4730 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
4731 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
4732 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
4733 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
4734 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
4735 | return resultobj; |
4736 | fail: | |
4737 | return NULL; | |
4738 | } | |
4739 | ||
4740 | ||
c370783e | 4741 | static PyObject *_wrap_GridCellAttr_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4742 | PyObject *resultobj; |
4743 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4744 | int *arg2 = (int *) 0 ; | |
4745 | int *arg3 = (int *) 0 ; | |
4746 | int temp2 ; | |
c370783e | 4747 | int res2 = 0 ; |
d14a1e28 | 4748 | int temp3 ; |
c370783e | 4749 | int res3 = 0 ; |
d14a1e28 RD |
4750 | PyObject * obj0 = 0 ; |
4751 | char *kwnames[] = { | |
4752 | (char *) "self", NULL | |
4753 | }; | |
4754 | ||
c370783e RD |
4755 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
4756 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 4757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetSize",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4760 | { |
4761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4762 | ((wxGridCellAttr const *)arg1)->GetSize(arg2,arg3); | |
4763 | ||
4764 | wxPyEndAllowThreads(__tstate); | |
4765 | if (PyErr_Occurred()) SWIG_fail; | |
4766 | } | |
4767 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
4768 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
4769 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
4770 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
4771 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
4772 | return resultobj; |
4773 | fail: | |
4774 | return NULL; | |
4775 | } | |
4776 | ||
4777 | ||
c370783e | 4778 | static PyObject *_wrap_GridCellAttr_GetOverflow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4779 | PyObject *resultobj; |
4780 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4781 | bool result; | |
4782 | PyObject * obj0 = 0 ; | |
4783 | char *kwnames[] = { | |
4784 | (char *) "self", NULL | |
4785 | }; | |
4786 | ||
4787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetOverflow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4790 | { |
4791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4792 | result = (bool)((wxGridCellAttr const *)arg1)->GetOverflow(); | |
4793 | ||
4794 | wxPyEndAllowThreads(__tstate); | |
4795 | if (PyErr_Occurred()) SWIG_fail; | |
4796 | } | |
fbc46b20 RD |
4797 | { |
4798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4799 | } | |
d14a1e28 RD |
4800 | return resultobj; |
4801 | fail: | |
4802 | return NULL; | |
4803 | } | |
4804 | ||
4805 | ||
c370783e | 4806 | static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4807 | PyObject *resultobj; |
4808 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4809 | wxGrid *arg2 = (wxGrid *) 0 ; | |
4810 | int arg3 ; | |
4811 | int arg4 ; | |
4812 | wxGridCellRenderer *result; | |
4813 | PyObject * obj0 = 0 ; | |
4814 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
4815 | PyObject * obj2 = 0 ; |
4816 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4817 | char *kwnames[] = { |
4818 | (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL | |
4819 | }; | |
4820 | ||
8edf1c75 | 4821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
4822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4824 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
4825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4826 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 4827 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4828 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 4829 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4830 | { |
4831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4832 | result = (wxGridCellRenderer *)((wxGridCellAttr const *)arg1)->GetRenderer(arg2,arg3,arg4); | |
4833 | ||
4834 | wxPyEndAllowThreads(__tstate); | |
4835 | if (PyErr_Occurred()) SWIG_fail; | |
4836 | } | |
4837 | { | |
412d302d | 4838 | resultobj = wxPyMake_wxGridCellRenderer(result, 0); |
d14a1e28 RD |
4839 | } |
4840 | return resultobj; | |
4841 | fail: | |
4842 | return NULL; | |
4843 | } | |
4844 | ||
4845 | ||
c370783e | 4846 | static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4847 | PyObject *resultobj; |
4848 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4849 | wxGrid *arg2 = (wxGrid *) 0 ; | |
4850 | int arg3 ; | |
4851 | int arg4 ; | |
4852 | wxGridCellEditor *result; | |
4853 | PyObject * obj0 = 0 ; | |
4854 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
4855 | PyObject * obj2 = 0 ; |
4856 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4857 | char *kwnames[] = { |
4858 | (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL | |
4859 | }; | |
4860 | ||
8edf1c75 | 4861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
4862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4864 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
4865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4866 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 4867 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4868 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 4869 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4870 | { |
4871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4872 | result = (wxGridCellEditor *)((wxGridCellAttr const *)arg1)->GetEditor(arg2,arg3,arg4); | |
4873 | ||
4874 | wxPyEndAllowThreads(__tstate); | |
4875 | if (PyErr_Occurred()) SWIG_fail; | |
4876 | } | |
4877 | { | |
412d302d | 4878 | resultobj = wxPyMake_wxGridCellEditor(result, 0); |
d14a1e28 RD |
4879 | } |
4880 | return resultobj; | |
4881 | fail: | |
4882 | return NULL; | |
4883 | } | |
4884 | ||
4885 | ||
c370783e | 4886 | static PyObject *_wrap_GridCellAttr_IsReadOnly(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4887 | PyObject *resultobj; |
4888 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4889 | bool result; | |
4890 | PyObject * obj0 = 0 ; | |
4891 | char *kwnames[] = { | |
4892 | (char *) "self", NULL | |
4893 | }; | |
4894 | ||
4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IsReadOnly",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4898 | { |
4899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4900 | result = (bool)((wxGridCellAttr const *)arg1)->IsReadOnly(); | |
4901 | ||
4902 | wxPyEndAllowThreads(__tstate); | |
4903 | if (PyErr_Occurred()) SWIG_fail; | |
4904 | } | |
fbc46b20 RD |
4905 | { |
4906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4907 | } | |
d14a1e28 RD |
4908 | return resultobj; |
4909 | fail: | |
4910 | return NULL; | |
4911 | } | |
4912 | ||
4913 | ||
c370783e | 4914 | static PyObject *_wrap_GridCellAttr_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
fd2dc343 RD |
4915 | PyObject *resultobj; |
4916 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4917 | int result; | |
4918 | PyObject * obj0 = 0 ; | |
4919 | char *kwnames[] = { | |
4920 | (char *) "self", NULL | |
4921 | }; | |
4922 | ||
4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetKind",kwnames,&obj0)) goto fail; | |
4924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, | |
4925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4926 | { | |
4927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4928 | result = (int)(arg1)->GetKind(); | |
4929 | ||
4930 | wxPyEndAllowThreads(__tstate); | |
4931 | if (PyErr_Occurred()) SWIG_fail; | |
4932 | } | |
c370783e | 4933 | resultobj = SWIG_From_int((int)result); |
fd2dc343 RD |
4934 | return resultobj; |
4935 | fail: | |
4936 | return NULL; | |
4937 | } | |
4938 | ||
4939 | ||
c370783e | 4940 | static PyObject *_wrap_GridCellAttr_SetDefAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4941 | PyObject *resultobj; |
4942 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4943 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4944 | PyObject * obj0 = 0 ; | |
4945 | PyObject * obj1 = 0 ; | |
4946 | char *kwnames[] = { | |
4947 | (char *) "self",(char *) "defAttr", NULL | |
4948 | }; | |
4949 | ||
4950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetDefAttr",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
4954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4955 | { |
4956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4957 | (arg1)->SetDefAttr(arg2); | |
4958 | ||
4959 | wxPyEndAllowThreads(__tstate); | |
4960 | if (PyErr_Occurred()) SWIG_fail; | |
4961 | } | |
4962 | Py_INCREF(Py_None); resultobj = Py_None; | |
4963 | return resultobj; | |
4964 | fail: | |
4965 | return NULL; | |
4966 | } | |
4967 | ||
4968 | ||
c370783e | 4969 | static PyObject * GridCellAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4970 | PyObject *obj; |
4971 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4972 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttr, obj); | |
4973 | Py_INCREF(obj); | |
4974 | return Py_BuildValue((char *)""); | |
4975 | } | |
c370783e | 4976 | static PyObject *_wrap_new_GridCellAttrProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4977 | PyObject *resultobj; |
4978 | wxGridCellAttrProvider *result; | |
4979 | char *kwnames[] = { | |
4980 | NULL | |
4981 | }; | |
4982 | ||
4983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAttrProvider",kwnames)) goto fail; | |
4984 | { | |
4985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4986 | result = (wxGridCellAttrProvider *)new wxGridCellAttrProvider(); | |
4987 | ||
4988 | wxPyEndAllowThreads(__tstate); | |
4989 | if (PyErr_Occurred()) SWIG_fail; | |
4990 | } | |
4991 | { | |
412d302d | 4992 | resultobj = wxPyMake_wxGridCellAttrProvider(result, 1); |
d14a1e28 RD |
4993 | } |
4994 | return resultobj; | |
4995 | fail: | |
4996 | return NULL; | |
4997 | } | |
4998 | ||
4999 | ||
c370783e | 5000 | static PyObject *_wrap_GridCellAttrProvider__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5001 | PyObject *resultobj; |
5002 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
5003 | PyObject *arg2 = (PyObject *) 0 ; | |
5004 | PyObject * obj0 = 0 ; | |
5005 | PyObject * obj1 = 0 ; | |
5006 | char *kwnames[] = { | |
5007 | (char *) "self",(char *) "_self", NULL | |
5008 | }; | |
5009 | ||
5010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttrProvider__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
5012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5013 | arg2 = obj1; |
5014 | { | |
5015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5016 | wxGridCellAttrProvider__setOORInfo(arg1,arg2); | |
5017 | ||
5018 | wxPyEndAllowThreads(__tstate); | |
5019 | if (PyErr_Occurred()) SWIG_fail; | |
5020 | } | |
5021 | Py_INCREF(Py_None); resultobj = Py_None; | |
5022 | return resultobj; | |
5023 | fail: | |
5024 | return NULL; | |
5025 | } | |
5026 | ||
5027 | ||
c370783e | 5028 | static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5029 | PyObject *resultobj; |
5030 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
5031 | int arg2 ; | |
5032 | int arg3 ; | |
5033 | int arg4 ; | |
5034 | wxGridCellAttr *result; | |
5035 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5036 | PyObject * obj1 = 0 ; |
5037 | PyObject * obj2 = 0 ; | |
5038 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5039 | char *kwnames[] = { |
5040 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
5041 | }; | |
5042 | ||
8edf1c75 | 5043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
5044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
5045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5046 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 5047 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5048 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5049 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5050 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 5051 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5052 | { |
5053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5054 | result = (wxGridCellAttr *)((wxGridCellAttrProvider const *)arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
5055 | ||
5056 | wxPyEndAllowThreads(__tstate); | |
5057 | if (PyErr_Occurred()) SWIG_fail; | |
5058 | } | |
5059 | { | |
412d302d | 5060 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
d14a1e28 RD |
5061 | } |
5062 | return resultobj; | |
5063 | fail: | |
5064 | return NULL; | |
5065 | } | |
5066 | ||
5067 | ||
c370783e | 5068 | static PyObject *_wrap_GridCellAttrProvider_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5069 | PyObject *resultobj; |
5070 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
5071 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5072 | int arg3 ; | |
5073 | int arg4 ; | |
5074 | PyObject * obj0 = 0 ; | |
5075 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
5076 | PyObject * obj2 = 0 ; |
5077 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5078 | char *kwnames[] = { |
5079 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
5080 | }; | |
5081 | ||
8edf1c75 | 5082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
5083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
5084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5085 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
5086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5087 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5088 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5089 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 5090 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5091 | { |
5092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5093 | (arg1)->SetAttr(arg2,arg3,arg4); | |
5094 | ||
5095 | wxPyEndAllowThreads(__tstate); | |
5096 | if (PyErr_Occurred()) SWIG_fail; | |
5097 | } | |
5098 | Py_INCREF(Py_None); resultobj = Py_None; | |
5099 | return resultobj; | |
5100 | fail: | |
5101 | return NULL; | |
5102 | } | |
5103 | ||
5104 | ||
c370783e | 5105 | static PyObject *_wrap_GridCellAttrProvider_SetRowAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5106 | PyObject *resultobj; |
5107 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
5108 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5109 | int arg3 ; | |
5110 | PyObject * obj0 = 0 ; | |
5111 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5112 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5113 | char *kwnames[] = { |
5114 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
5115 | }; | |
5116 | ||
8edf1c75 | 5117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
5119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5120 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
5121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5122 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5123 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5124 | { |
5125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5126 | (arg1)->SetRowAttr(arg2,arg3); | |
5127 | ||
5128 | wxPyEndAllowThreads(__tstate); | |
5129 | if (PyErr_Occurred()) SWIG_fail; | |
5130 | } | |
5131 | Py_INCREF(Py_None); resultobj = Py_None; | |
5132 | return resultobj; | |
5133 | fail: | |
5134 | return NULL; | |
5135 | } | |
5136 | ||
5137 | ||
c370783e | 5138 | static PyObject *_wrap_GridCellAttrProvider_SetColAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5139 | PyObject *resultobj; |
5140 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
5141 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5142 | int arg3 ; | |
5143 | PyObject * obj0 = 0 ; | |
5144 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5145 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5146 | char *kwnames[] = { |
5147 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
5148 | }; | |
5149 | ||
8edf1c75 | 5150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
5152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5153 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
5154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5155 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5156 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5157 | { |
5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5159 | (arg1)->SetColAttr(arg2,arg3); | |
5160 | ||
5161 | wxPyEndAllowThreads(__tstate); | |
5162 | if (PyErr_Occurred()) SWIG_fail; | |
5163 | } | |
5164 | Py_INCREF(Py_None); resultobj = Py_None; | |
5165 | return resultobj; | |
5166 | fail: | |
5167 | return NULL; | |
5168 | } | |
5169 | ||
5170 | ||
c370783e | 5171 | static PyObject *_wrap_GridCellAttrProvider_UpdateAttrRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5172 | PyObject *resultobj; |
5173 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
5174 | size_t arg2 ; | |
5175 | int arg3 ; | |
5176 | PyObject * obj0 = 0 ; | |
5177 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5178 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5179 | char *kwnames[] = { |
5180 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
5181 | }; | |
5182 | ||
8edf1c75 | 5183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrRows",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
5185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5186 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 5187 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5188 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5189 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5190 | { |
5191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5192 | (arg1)->UpdateAttrRows(arg2,arg3); | |
5193 | ||
5194 | wxPyEndAllowThreads(__tstate); | |
5195 | if (PyErr_Occurred()) SWIG_fail; | |
5196 | } | |
5197 | Py_INCREF(Py_None); resultobj = Py_None; | |
5198 | return resultobj; | |
5199 | fail: | |
5200 | return NULL; | |
5201 | } | |
5202 | ||
5203 | ||
c370783e | 5204 | static PyObject *_wrap_GridCellAttrProvider_UpdateAttrCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5205 | PyObject *resultobj; |
5206 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
5207 | size_t arg2 ; | |
5208 | int arg3 ; | |
5209 | PyObject * obj0 = 0 ; | |
5210 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5211 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5212 | char *kwnames[] = { |
5213 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
5214 | }; | |
5215 | ||
8edf1c75 | 5216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
5218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5219 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 5220 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5221 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5222 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5223 | { |
5224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5225 | (arg1)->UpdateAttrCols(arg2,arg3); | |
5226 | ||
5227 | wxPyEndAllowThreads(__tstate); | |
5228 | if (PyErr_Occurred()) SWIG_fail; | |
5229 | } | |
5230 | Py_INCREF(Py_None); resultobj = Py_None; | |
5231 | return resultobj; | |
5232 | fail: | |
5233 | return NULL; | |
5234 | } | |
5235 | ||
5236 | ||
c370783e | 5237 | static PyObject * GridCellAttrProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5238 | PyObject *obj; |
5239 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5240 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttrProvider, obj); | |
5241 | Py_INCREF(obj); | |
5242 | return Py_BuildValue((char *)""); | |
5243 | } | |
c370783e | 5244 | static PyObject *_wrap_new_PyGridCellAttrProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5245 | PyObject *resultobj; |
5246 | wxPyGridCellAttrProvider *result; | |
5247 | char *kwnames[] = { | |
5248 | NULL | |
5249 | }; | |
5250 | ||
5251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellAttrProvider",kwnames)) goto fail; | |
5252 | { | |
5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5254 | result = (wxPyGridCellAttrProvider *)new wxPyGridCellAttrProvider(); | |
5255 | ||
5256 | wxPyEndAllowThreads(__tstate); | |
5257 | if (PyErr_Occurred()) SWIG_fail; | |
5258 | } | |
2f4c0a16 | 5259 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellAttrProvider, 1); |
d14a1e28 RD |
5260 | return resultobj; |
5261 | fail: | |
5262 | return NULL; | |
5263 | } | |
5264 | ||
5265 | ||
c370783e | 5266 | static PyObject *_wrap_PyGridCellAttrProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5267 | PyObject *resultobj; |
5268 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5269 | PyObject *arg2 = (PyObject *) 0 ; | |
5270 | PyObject *arg3 = (PyObject *) 0 ; | |
5271 | PyObject * obj0 = 0 ; | |
5272 | PyObject * obj1 = 0 ; | |
5273 | PyObject * obj2 = 0 ; | |
5274 | char *kwnames[] = { | |
5275 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5276 | }; | |
5277 | ||
5278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
5280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5281 | arg2 = obj1; |
5282 | arg3 = obj2; | |
5283 | { | |
5284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5285 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5286 | ||
5287 | wxPyEndAllowThreads(__tstate); | |
5288 | if (PyErr_Occurred()) SWIG_fail; | |
5289 | } | |
5290 | Py_INCREF(Py_None); resultobj = Py_None; | |
5291 | return resultobj; | |
5292 | fail: | |
5293 | return NULL; | |
5294 | } | |
5295 | ||
5296 | ||
c370783e | 5297 | static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5298 | PyObject *resultobj; |
5299 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5300 | int arg2 ; | |
5301 | int arg3 ; | |
5302 | int arg4 ; | |
5303 | wxGridCellAttr *result; | |
5304 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5305 | PyObject * obj1 = 0 ; |
5306 | PyObject * obj2 = 0 ; | |
5307 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5308 | char *kwnames[] = { |
5309 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
5310 | }; | |
5311 | ||
8edf1c75 | 5312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
5313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
5314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5315 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 5316 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5317 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5318 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5319 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 5320 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5321 | { |
5322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5323 | result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
5324 | ||
5325 | wxPyEndAllowThreads(__tstate); | |
5326 | if (PyErr_Occurred()) SWIG_fail; | |
5327 | } | |
5328 | { | |
412d302d | 5329 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
d14a1e28 RD |
5330 | } |
5331 | return resultobj; | |
5332 | fail: | |
5333 | return NULL; | |
5334 | } | |
5335 | ||
5336 | ||
c370783e | 5337 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5338 | PyObject *resultobj; |
5339 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5340 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5341 | int arg3 ; | |
5342 | int arg4 ; | |
5343 | PyObject * obj0 = 0 ; | |
5344 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
5345 | PyObject * obj2 = 0 ; |
5346 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5347 | char *kwnames[] = { |
5348 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
5349 | }; | |
5350 | ||
8edf1c75 | 5351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
5352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
5353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
5355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5356 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5357 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5358 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 5359 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5360 | { |
5361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5362 | (arg1)->base_SetAttr(arg2,arg3,arg4); | |
5363 | ||
5364 | wxPyEndAllowThreads(__tstate); | |
5365 | if (PyErr_Occurred()) SWIG_fail; | |
5366 | } | |
5367 | Py_INCREF(Py_None); resultobj = Py_None; | |
5368 | return resultobj; | |
5369 | fail: | |
5370 | return NULL; | |
5371 | } | |
5372 | ||
5373 | ||
c370783e | 5374 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetRowAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5375 | PyObject *resultobj; |
5376 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5377 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5378 | int arg3 ; | |
5379 | PyObject * obj0 = 0 ; | |
5380 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5381 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5382 | char *kwnames[] = { |
5383 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
5384 | }; | |
5385 | ||
8edf1c75 | 5386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
5388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5389 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
5390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5391 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5392 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5393 | { |
5394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5395 | (arg1)->base_SetRowAttr(arg2,arg3); | |
5396 | ||
5397 | wxPyEndAllowThreads(__tstate); | |
5398 | if (PyErr_Occurred()) SWIG_fail; | |
5399 | } | |
5400 | Py_INCREF(Py_None); resultobj = Py_None; | |
5401 | return resultobj; | |
5402 | fail: | |
5403 | return NULL; | |
5404 | } | |
5405 | ||
5406 | ||
c370783e | 5407 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetColAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5408 | PyObject *resultobj; |
5409 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5410 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5411 | int arg3 ; | |
5412 | PyObject * obj0 = 0 ; | |
5413 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5414 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5415 | char *kwnames[] = { |
5416 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
5417 | }; | |
5418 | ||
8edf1c75 | 5419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
5421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5422 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
5423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5424 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5425 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5426 | { |
5427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5428 | (arg1)->base_SetColAttr(arg2,arg3); | |
5429 | ||
5430 | wxPyEndAllowThreads(__tstate); | |
5431 | if (PyErr_Occurred()) SWIG_fail; | |
5432 | } | |
5433 | Py_INCREF(Py_None); resultobj = Py_None; | |
5434 | return resultobj; | |
5435 | fail: | |
5436 | return NULL; | |
5437 | } | |
5438 | ||
5439 | ||
c370783e | 5440 | static PyObject * PyGridCellAttrProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5441 | PyObject *obj; |
5442 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5443 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellAttrProvider, obj); | |
5444 | Py_INCREF(obj); | |
5445 | return Py_BuildValue((char *)""); | |
5446 | } | |
c370783e | 5447 | static PyObject *_wrap_GridTableBase__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5448 | PyObject *resultobj; |
5449 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5450 | PyObject *arg2 = (PyObject *) 0 ; | |
5451 | PyObject * obj0 = 0 ; | |
5452 | PyObject * obj1 = 0 ; | |
5453 | char *kwnames[] = { | |
5454 | (char *) "self",(char *) "_self", NULL | |
5455 | }; | |
5456 | ||
5457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5460 | arg2 = obj1; |
5461 | { | |
5462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5463 | wxGridTableBase__setOORInfo(arg1,arg2); | |
5464 | ||
5465 | wxPyEndAllowThreads(__tstate); | |
5466 | if (PyErr_Occurred()) SWIG_fail; | |
5467 | } | |
5468 | Py_INCREF(Py_None); resultobj = Py_None; | |
5469 | return resultobj; | |
5470 | fail: | |
5471 | return NULL; | |
5472 | } | |
5473 | ||
5474 | ||
c370783e | 5475 | static PyObject *_wrap_GridTableBase_SetAttrProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5476 | PyObject *resultobj; |
5477 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5478 | wxGridCellAttrProvider *arg2 = (wxGridCellAttrProvider *) 0 ; | |
5479 | PyObject * obj0 = 0 ; | |
5480 | PyObject * obj1 = 0 ; | |
5481 | char *kwnames[] = { | |
5482 | (char *) "self",(char *) "attrProvider", NULL | |
5483 | }; | |
5484 | ||
5485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetAttrProvider",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5488 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttrProvider, | |
5489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5490 | { |
5491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5492 | (arg1)->SetAttrProvider(arg2); | |
5493 | ||
5494 | wxPyEndAllowThreads(__tstate); | |
5495 | if (PyErr_Occurred()) SWIG_fail; | |
5496 | } | |
5497 | Py_INCREF(Py_None); resultobj = Py_None; | |
5498 | return resultobj; | |
5499 | fail: | |
5500 | return NULL; | |
5501 | } | |
5502 | ||
5503 | ||
c370783e | 5504 | static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5505 | PyObject *resultobj; |
5506 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5507 | wxGridCellAttrProvider *result; | |
5508 | PyObject * obj0 = 0 ; | |
5509 | char *kwnames[] = { | |
5510 | (char *) "self", NULL | |
5511 | }; | |
5512 | ||
5513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetAttrProvider",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5516 | { |
5517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5518 | result = (wxGridCellAttrProvider *)((wxGridTableBase const *)arg1)->GetAttrProvider(); | |
5519 | ||
5520 | wxPyEndAllowThreads(__tstate); | |
5521 | if (PyErr_Occurred()) SWIG_fail; | |
5522 | } | |
5523 | { | |
412d302d | 5524 | resultobj = wxPyMake_wxGridCellAttrProvider(result, 0); |
d14a1e28 RD |
5525 | } |
5526 | return resultobj; | |
5527 | fail: | |
5528 | return NULL; | |
5529 | } | |
5530 | ||
5531 | ||
c370783e | 5532 | static PyObject *_wrap_GridTableBase_SetView(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5533 | PyObject *resultobj; |
5534 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5535 | wxGrid *arg2 = (wxGrid *) 0 ; | |
5536 | PyObject * obj0 = 0 ; | |
5537 | PyObject * obj1 = 0 ; | |
5538 | char *kwnames[] = { | |
5539 | (char *) "self",(char *) "grid", NULL | |
5540 | }; | |
5541 | ||
5542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetView",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5545 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
5546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5547 | { |
5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5549 | (arg1)->SetView(arg2); | |
5550 | ||
5551 | wxPyEndAllowThreads(__tstate); | |
5552 | if (PyErr_Occurred()) SWIG_fail; | |
5553 | } | |
5554 | Py_INCREF(Py_None); resultobj = Py_None; | |
5555 | return resultobj; | |
5556 | fail: | |
5557 | return NULL; | |
5558 | } | |
5559 | ||
5560 | ||
c370783e | 5561 | static PyObject *_wrap_GridTableBase_GetView(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5562 | PyObject *resultobj; |
5563 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5564 | wxGrid *result; | |
5565 | PyObject * obj0 = 0 ; | |
5566 | char *kwnames[] = { | |
5567 | (char *) "self", NULL | |
5568 | }; | |
5569 | ||
5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetView",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5573 | { |
5574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5575 | result = (wxGrid *)((wxGridTableBase const *)arg1)->GetView(); | |
5576 | ||
5577 | wxPyEndAllowThreads(__tstate); | |
5578 | if (PyErr_Occurred()) SWIG_fail; | |
5579 | } | |
5580 | { | |
412d302d | 5581 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
5582 | } |
5583 | return resultobj; | |
5584 | fail: | |
5585 | return NULL; | |
5586 | } | |
5587 | ||
5588 | ||
c370783e | 5589 | static PyObject *_wrap_GridTableBase_GetNumberRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5590 | PyObject *resultobj; |
5591 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5592 | int result; | |
5593 | PyObject * obj0 = 0 ; | |
5594 | char *kwnames[] = { | |
5595 | (char *) "self", NULL | |
5596 | }; | |
5597 | ||
5598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberRows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5601 | { |
5602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5603 | result = (int)(arg1)->GetNumberRows(); | |
5604 | ||
5605 | wxPyEndAllowThreads(__tstate); | |
5606 | if (PyErr_Occurred()) SWIG_fail; | |
5607 | } | |
c370783e | 5608 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5609 | return resultobj; |
5610 | fail: | |
5611 | return NULL; | |
5612 | } | |
5613 | ||
5614 | ||
c370783e | 5615 | static PyObject *_wrap_GridTableBase_GetNumberCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5616 | PyObject *resultobj; |
5617 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5618 | int result; | |
5619 | PyObject * obj0 = 0 ; | |
5620 | char *kwnames[] = { | |
5621 | (char *) "self", NULL | |
5622 | }; | |
5623 | ||
5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberCols",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5627 | { |
5628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5629 | result = (int)(arg1)->GetNumberCols(); | |
5630 | ||
5631 | wxPyEndAllowThreads(__tstate); | |
5632 | if (PyErr_Occurred()) SWIG_fail; | |
5633 | } | |
c370783e | 5634 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
5635 | return resultobj; |
5636 | fail: | |
5637 | return NULL; | |
5638 | } | |
5639 | ||
5640 | ||
c370783e | 5641 | static PyObject *_wrap_GridTableBase_IsEmptyCell(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5642 | PyObject *resultobj; |
5643 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5644 | int arg2 ; | |
5645 | int arg3 ; | |
5646 | bool result; | |
5647 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5648 | PyObject * obj1 = 0 ; |
5649 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5650 | char *kwnames[] = { |
5651 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5652 | }; | |
5653 | ||
8edf1c75 | 5654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_IsEmptyCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5657 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 5658 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5659 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5660 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5661 | { |
5662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5663 | result = (bool)(arg1)->IsEmptyCell(arg2,arg3); | |
5664 | ||
5665 | wxPyEndAllowThreads(__tstate); | |
5666 | if (PyErr_Occurred()) SWIG_fail; | |
5667 | } | |
fbc46b20 RD |
5668 | { |
5669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5670 | } | |
d14a1e28 RD |
5671 | return resultobj; |
5672 | fail: | |
5673 | return NULL; | |
5674 | } | |
5675 | ||
5676 | ||
c370783e | 5677 | static PyObject *_wrap_GridTableBase_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5678 | PyObject *resultobj; |
5679 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5680 | int arg2 ; | |
5681 | int arg3 ; | |
5682 | wxString result; | |
5683 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5684 | PyObject * obj1 = 0 ; |
5685 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5686 | char *kwnames[] = { |
5687 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5688 | }; | |
5689 | ||
8edf1c75 | 5690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5693 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 5694 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5695 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5696 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5697 | { |
5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5699 | result = (arg1)->GetValue(arg2,arg3); | |
5700 | ||
5701 | wxPyEndAllowThreads(__tstate); | |
5702 | if (PyErr_Occurred()) SWIG_fail; | |
5703 | } | |
5704 | { | |
5705 | #if wxUSE_UNICODE | |
5706 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5707 | #else | |
5708 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5709 | #endif | |
5710 | } | |
5711 | return resultobj; | |
5712 | fail: | |
5713 | return NULL; | |
5714 | } | |
5715 | ||
5716 | ||
c370783e | 5717 | static PyObject *_wrap_GridTableBase_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5718 | PyObject *resultobj; |
5719 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5720 | int arg2 ; | |
5721 | int arg3 ; | |
5722 | wxString *arg4 = 0 ; | |
b411df4a | 5723 | bool temp4 = false ; |
d14a1e28 | 5724 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
5725 | PyObject * obj1 = 0 ; |
5726 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5727 | PyObject * obj3 = 0 ; |
5728 | char *kwnames[] = { | |
5729 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5730 | }; | |
5731 | ||
8edf1c75 | 5732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
5733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5735 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 5736 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5737 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5738 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5739 | { |
5740 | arg4 = wxString_in_helper(obj3); | |
5741 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 5742 | temp4 = true; |
d14a1e28 RD |
5743 | } |
5744 | { | |
5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5746 | (arg1)->SetValue(arg2,arg3,(wxString const &)*arg4); | |
5747 | ||
5748 | wxPyEndAllowThreads(__tstate); | |
5749 | if (PyErr_Occurred()) SWIG_fail; | |
5750 | } | |
5751 | Py_INCREF(Py_None); resultobj = Py_None; | |
5752 | { | |
5753 | if (temp4) | |
5754 | delete arg4; | |
5755 | } | |
5756 | return resultobj; | |
5757 | fail: | |
5758 | { | |
5759 | if (temp4) | |
5760 | delete arg4; | |
5761 | } | |
5762 | return NULL; | |
5763 | } | |
5764 | ||
5765 | ||
c370783e | 5766 | static PyObject *_wrap_GridTableBase_GetTypeName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5767 | PyObject *resultobj; |
5768 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5769 | int arg2 ; | |
5770 | int arg3 ; | |
5771 | wxString result; | |
5772 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5773 | PyObject * obj1 = 0 ; |
5774 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5775 | char *kwnames[] = { |
5776 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5777 | }; | |
5778 | ||
8edf1c75 | 5779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5782 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 5783 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5784 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5785 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5786 | { |
5787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5788 | result = (arg1)->GetTypeName(arg2,arg3); | |
5789 | ||
5790 | wxPyEndAllowThreads(__tstate); | |
5791 | if (PyErr_Occurred()) SWIG_fail; | |
5792 | } | |
5793 | { | |
5794 | #if wxUSE_UNICODE | |
5795 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5796 | #else | |
5797 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5798 | #endif | |
5799 | } | |
5800 | return resultobj; | |
5801 | fail: | |
5802 | return NULL; | |
5803 | } | |
5804 | ||
5805 | ||
c370783e | 5806 | static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5807 | PyObject *resultobj; |
5808 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5809 | int arg2 ; | |
5810 | int arg3 ; | |
5811 | wxString *arg4 = 0 ; | |
5812 | bool result; | |
b411df4a | 5813 | bool temp4 = false ; |
d14a1e28 | 5814 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
5815 | PyObject * obj1 = 0 ; |
5816 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5817 | PyObject * obj3 = 0 ; |
5818 | char *kwnames[] = { | |
5819 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
5820 | }; | |
5821 | ||
8edf1c75 | 5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
5823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5825 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 5826 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5827 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5828 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5829 | { |
5830 | arg4 = wxString_in_helper(obj3); | |
5831 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 5832 | temp4 = true; |
d14a1e28 RD |
5833 | } |
5834 | { | |
5835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5836 | result = (bool)(arg1)->CanGetValueAs(arg2,arg3,(wxString const &)*arg4); | |
5837 | ||
5838 | wxPyEndAllowThreads(__tstate); | |
5839 | if (PyErr_Occurred()) SWIG_fail; | |
5840 | } | |
fbc46b20 RD |
5841 | { |
5842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5843 | } | |
d14a1e28 RD |
5844 | { |
5845 | if (temp4) | |
5846 | delete arg4; | |
5847 | } | |
5848 | return resultobj; | |
5849 | fail: | |
5850 | { | |
5851 | if (temp4) | |
5852 | delete arg4; | |
5853 | } | |
5854 | return NULL; | |
5855 | } | |
5856 | ||
5857 | ||
c370783e | 5858 | static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5859 | PyObject *resultobj; |
5860 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5861 | int arg2 ; | |
5862 | int arg3 ; | |
5863 | wxString *arg4 = 0 ; | |
5864 | bool result; | |
b411df4a | 5865 | bool temp4 = false ; |
d14a1e28 | 5866 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
5867 | PyObject * obj1 = 0 ; |
5868 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5869 | PyObject * obj3 = 0 ; |
5870 | char *kwnames[] = { | |
5871 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
5872 | }; | |
5873 | ||
8edf1c75 | 5874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
5875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5877 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 5878 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5879 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5880 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5881 | { |
5882 | arg4 = wxString_in_helper(obj3); | |
5883 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 5884 | temp4 = true; |
d14a1e28 RD |
5885 | } |
5886 | { | |
5887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5888 | result = (bool)(arg1)->CanSetValueAs(arg2,arg3,(wxString const &)*arg4); | |
5889 | ||
5890 | wxPyEndAllowThreads(__tstate); | |
5891 | if (PyErr_Occurred()) SWIG_fail; | |
5892 | } | |
fbc46b20 RD |
5893 | { |
5894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5895 | } | |
d14a1e28 RD |
5896 | { |
5897 | if (temp4) | |
5898 | delete arg4; | |
5899 | } | |
5900 | return resultobj; | |
5901 | fail: | |
5902 | { | |
5903 | if (temp4) | |
5904 | delete arg4; | |
5905 | } | |
5906 | return NULL; | |
5907 | } | |
5908 | ||
5909 | ||
c370783e | 5910 | static PyObject *_wrap_GridTableBase_GetValueAsLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5911 | PyObject *resultobj; |
5912 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5913 | int arg2 ; | |
5914 | int arg3 ; | |
5915 | long result; | |
5916 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5917 | PyObject * obj1 = 0 ; |
5918 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5919 | char *kwnames[] = { |
5920 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5921 | }; | |
5922 | ||
8edf1c75 | 5923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsLong",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5926 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 5927 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5928 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5929 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5930 | { |
5931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5932 | result = (long)(arg1)->GetValueAsLong(arg2,arg3); | |
5933 | ||
5934 | wxPyEndAllowThreads(__tstate); | |
5935 | if (PyErr_Occurred()) SWIG_fail; | |
5936 | } | |
c370783e | 5937 | resultobj = SWIG_From_long((long)result); |
d14a1e28 RD |
5938 | return resultobj; |
5939 | fail: | |
5940 | return NULL; | |
5941 | } | |
5942 | ||
5943 | ||
c370783e | 5944 | static PyObject *_wrap_GridTableBase_GetValueAsDouble(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5945 | PyObject *resultobj; |
5946 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5947 | int arg2 ; | |
5948 | int arg3 ; | |
5949 | double result; | |
5950 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5951 | PyObject * obj1 = 0 ; |
5952 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5953 | char *kwnames[] = { |
5954 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5955 | }; | |
5956 | ||
8edf1c75 | 5957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsDouble",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5960 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 5961 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5962 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5963 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5964 | { |
5965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5966 | result = (double)(arg1)->GetValueAsDouble(arg2,arg3); | |
5967 | ||
5968 | wxPyEndAllowThreads(__tstate); | |
5969 | if (PyErr_Occurred()) SWIG_fail; | |
5970 | } | |
c370783e | 5971 | resultobj = SWIG_From_double((double)result); |
d14a1e28 RD |
5972 | return resultobj; |
5973 | fail: | |
5974 | return NULL; | |
5975 | } | |
5976 | ||
5977 | ||
c370783e | 5978 | static PyObject *_wrap_GridTableBase_GetValueAsBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5979 | PyObject *resultobj; |
5980 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5981 | int arg2 ; | |
5982 | int arg3 ; | |
5983 | bool result; | |
5984 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5985 | PyObject * obj1 = 0 ; |
5986 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5987 | char *kwnames[] = { |
5988 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5989 | }; | |
5990 | ||
8edf1c75 | 5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsBool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5994 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 5995 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5996 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 5997 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5998 | { |
5999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6000 | result = (bool)(arg1)->GetValueAsBool(arg2,arg3); | |
6001 | ||
6002 | wxPyEndAllowThreads(__tstate); | |
6003 | if (PyErr_Occurred()) SWIG_fail; | |
6004 | } | |
fbc46b20 RD |
6005 | { |
6006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6007 | } | |
d14a1e28 RD |
6008 | return resultobj; |
6009 | fail: | |
6010 | return NULL; | |
6011 | } | |
6012 | ||
6013 | ||
c370783e | 6014 | static PyObject *_wrap_GridTableBase_SetValueAsLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6015 | PyObject *resultobj; |
6016 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6017 | int arg2 ; | |
6018 | int arg3 ; | |
6019 | long arg4 ; | |
6020 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6021 | PyObject * obj1 = 0 ; |
6022 | PyObject * obj2 = 0 ; | |
6023 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
6024 | char *kwnames[] = { |
6025 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
6026 | }; | |
6027 | ||
8edf1c75 | 6028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsLong",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
6029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6031 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6032 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6033 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6034 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6035 | arg4 = (long)SWIG_As_long(obj3); |
2f4c0a16 | 6036 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6037 | { |
6038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6039 | (arg1)->SetValueAsLong(arg2,arg3,arg4); | |
6040 | ||
6041 | wxPyEndAllowThreads(__tstate); | |
6042 | if (PyErr_Occurred()) SWIG_fail; | |
6043 | } | |
6044 | Py_INCREF(Py_None); resultobj = Py_None; | |
6045 | return resultobj; | |
6046 | fail: | |
6047 | return NULL; | |
6048 | } | |
6049 | ||
6050 | ||
c370783e | 6051 | static PyObject *_wrap_GridTableBase_SetValueAsDouble(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6052 | PyObject *resultobj; |
6053 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6054 | int arg2 ; | |
6055 | int arg3 ; | |
6056 | double arg4 ; | |
6057 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6058 | PyObject * obj1 = 0 ; |
6059 | PyObject * obj2 = 0 ; | |
6060 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
6061 | char *kwnames[] = { |
6062 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
6063 | }; | |
6064 | ||
8edf1c75 | 6065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsDouble",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
6066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6068 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6069 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6070 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6071 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6072 | arg4 = (double)SWIG_As_double(obj3); |
2f4c0a16 | 6073 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6074 | { |
6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6076 | (arg1)->SetValueAsDouble(arg2,arg3,arg4); | |
6077 | ||
6078 | wxPyEndAllowThreads(__tstate); | |
6079 | if (PyErr_Occurred()) SWIG_fail; | |
6080 | } | |
6081 | Py_INCREF(Py_None); resultobj = Py_None; | |
6082 | return resultobj; | |
6083 | fail: | |
6084 | return NULL; | |
6085 | } | |
6086 | ||
6087 | ||
c370783e | 6088 | static PyObject *_wrap_GridTableBase_SetValueAsBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6089 | PyObject *resultobj; |
6090 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6091 | int arg2 ; | |
6092 | int arg3 ; | |
6093 | bool arg4 ; | |
6094 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6095 | PyObject * obj1 = 0 ; |
6096 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6097 | PyObject * obj3 = 0 ; |
6098 | char *kwnames[] = { | |
6099 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
6100 | }; | |
6101 | ||
8edf1c75 | 6102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsBool",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
6103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6105 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6106 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6107 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6108 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6109 | arg4 = (bool)SWIG_As_bool(obj3); |
2f4c0a16 | 6110 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6111 | { |
6112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6113 | (arg1)->SetValueAsBool(arg2,arg3,arg4); | |
6114 | ||
6115 | wxPyEndAllowThreads(__tstate); | |
6116 | if (PyErr_Occurred()) SWIG_fail; | |
6117 | } | |
6118 | Py_INCREF(Py_None); resultobj = Py_None; | |
6119 | return resultobj; | |
6120 | fail: | |
6121 | return NULL; | |
6122 | } | |
6123 | ||
6124 | ||
c370783e | 6125 | static PyObject *_wrap_GridTableBase_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6126 | PyObject *resultobj; |
6127 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6128 | PyObject * obj0 = 0 ; | |
6129 | char *kwnames[] = { | |
6130 | (char *) "self", NULL | |
6131 | }; | |
6132 | ||
6133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6136 | { |
6137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6138 | (arg1)->Clear(); | |
6139 | ||
6140 | wxPyEndAllowThreads(__tstate); | |
6141 | if (PyErr_Occurred()) SWIG_fail; | |
6142 | } | |
6143 | Py_INCREF(Py_None); resultobj = Py_None; | |
6144 | return resultobj; | |
6145 | fail: | |
6146 | return NULL; | |
6147 | } | |
6148 | ||
6149 | ||
c370783e | 6150 | static PyObject *_wrap_GridTableBase_InsertRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6151 | PyObject *resultobj; |
6152 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6153 | size_t arg2 = (size_t) 0 ; | |
6154 | size_t arg3 = (size_t) 1 ; | |
6155 | bool result; | |
6156 | PyObject * obj0 = 0 ; | |
6157 | PyObject * obj1 = 0 ; | |
6158 | PyObject * obj2 = 0 ; | |
6159 | char *kwnames[] = { | |
6160 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6161 | }; | |
6162 | ||
6163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6166 | if (obj1) { |
c370783e | 6167 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 6168 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6169 | } |
6170 | if (obj2) { | |
c370783e | 6171 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
2f4c0a16 | 6172 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6173 | } |
6174 | { | |
6175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6176 | result = (bool)(arg1)->InsertRows(arg2,arg3); | |
6177 | ||
6178 | wxPyEndAllowThreads(__tstate); | |
6179 | if (PyErr_Occurred()) SWIG_fail; | |
6180 | } | |
fbc46b20 RD |
6181 | { |
6182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6183 | } | |
d14a1e28 RD |
6184 | return resultobj; |
6185 | fail: | |
6186 | return NULL; | |
6187 | } | |
6188 | ||
6189 | ||
c370783e | 6190 | static PyObject *_wrap_GridTableBase_AppendRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6191 | PyObject *resultobj; |
6192 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6193 | size_t arg2 = (size_t) 1 ; | |
6194 | bool result; | |
6195 | PyObject * obj0 = 0 ; | |
6196 | PyObject * obj1 = 0 ; | |
6197 | char *kwnames[] = { | |
6198 | (char *) "self",(char *) "numRows", NULL | |
6199 | }; | |
6200 | ||
6201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendRows",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6204 | if (obj1) { |
c370783e | 6205 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 6206 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6207 | } |
6208 | { | |
6209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6210 | result = (bool)(arg1)->AppendRows(arg2); | |
6211 | ||
6212 | wxPyEndAllowThreads(__tstate); | |
6213 | if (PyErr_Occurred()) SWIG_fail; | |
6214 | } | |
fbc46b20 RD |
6215 | { |
6216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6217 | } | |
d14a1e28 RD |
6218 | return resultobj; |
6219 | fail: | |
6220 | return NULL; | |
6221 | } | |
6222 | ||
6223 | ||
c370783e | 6224 | static PyObject *_wrap_GridTableBase_DeleteRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6225 | PyObject *resultobj; |
6226 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6227 | size_t arg2 = (size_t) 0 ; | |
6228 | size_t arg3 = (size_t) 1 ; | |
6229 | bool result; | |
6230 | PyObject * obj0 = 0 ; | |
6231 | PyObject * obj1 = 0 ; | |
6232 | PyObject * obj2 = 0 ; | |
6233 | char *kwnames[] = { | |
6234 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6235 | }; | |
6236 | ||
6237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6240 | if (obj1) { |
c370783e | 6241 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 6242 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6243 | } |
6244 | if (obj2) { | |
c370783e | 6245 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
2f4c0a16 | 6246 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6247 | } |
6248 | { | |
6249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6250 | result = (bool)(arg1)->DeleteRows(arg2,arg3); | |
6251 | ||
6252 | wxPyEndAllowThreads(__tstate); | |
6253 | if (PyErr_Occurred()) SWIG_fail; | |
6254 | } | |
fbc46b20 RD |
6255 | { |
6256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6257 | } | |
d14a1e28 RD |
6258 | return resultobj; |
6259 | fail: | |
6260 | return NULL; | |
6261 | } | |
6262 | ||
6263 | ||
c370783e | 6264 | static PyObject *_wrap_GridTableBase_InsertCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6265 | PyObject *resultobj; |
6266 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6267 | size_t arg2 = (size_t) 0 ; | |
6268 | size_t arg3 = (size_t) 1 ; | |
6269 | bool result; | |
6270 | PyObject * obj0 = 0 ; | |
6271 | PyObject * obj1 = 0 ; | |
6272 | PyObject * obj2 = 0 ; | |
6273 | char *kwnames[] = { | |
6274 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6275 | }; | |
6276 | ||
6277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6280 | if (obj1) { |
c370783e | 6281 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 6282 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6283 | } |
6284 | if (obj2) { | |
c370783e | 6285 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
2f4c0a16 | 6286 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6287 | } |
6288 | { | |
6289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6290 | result = (bool)(arg1)->InsertCols(arg2,arg3); | |
6291 | ||
6292 | wxPyEndAllowThreads(__tstate); | |
6293 | if (PyErr_Occurred()) SWIG_fail; | |
6294 | } | |
fbc46b20 RD |
6295 | { |
6296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6297 | } | |
d14a1e28 RD |
6298 | return resultobj; |
6299 | fail: | |
6300 | return NULL; | |
6301 | } | |
6302 | ||
6303 | ||
c370783e | 6304 | static PyObject *_wrap_GridTableBase_AppendCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6305 | PyObject *resultobj; |
6306 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6307 | size_t arg2 = (size_t) 1 ; | |
6308 | bool result; | |
6309 | PyObject * obj0 = 0 ; | |
6310 | PyObject * obj1 = 0 ; | |
6311 | char *kwnames[] = { | |
6312 | (char *) "self",(char *) "numCols", NULL | |
6313 | }; | |
6314 | ||
6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendCols",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6318 | if (obj1) { |
c370783e | 6319 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 6320 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6321 | } |
6322 | { | |
6323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6324 | result = (bool)(arg1)->AppendCols(arg2); | |
6325 | ||
6326 | wxPyEndAllowThreads(__tstate); | |
6327 | if (PyErr_Occurred()) SWIG_fail; | |
6328 | } | |
fbc46b20 RD |
6329 | { |
6330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6331 | } | |
d14a1e28 RD |
6332 | return resultobj; |
6333 | fail: | |
6334 | return NULL; | |
6335 | } | |
6336 | ||
6337 | ||
c370783e | 6338 | static PyObject *_wrap_GridTableBase_DeleteCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6339 | PyObject *resultobj; |
6340 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6341 | size_t arg2 = (size_t) 0 ; | |
6342 | size_t arg3 = (size_t) 1 ; | |
6343 | bool result; | |
6344 | PyObject * obj0 = 0 ; | |
6345 | PyObject * obj1 = 0 ; | |
6346 | PyObject * obj2 = 0 ; | |
6347 | char *kwnames[] = { | |
6348 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6349 | }; | |
6350 | ||
6351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6354 | if (obj1) { |
c370783e | 6355 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 6356 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6357 | } |
6358 | if (obj2) { | |
c370783e | 6359 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
2f4c0a16 | 6360 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6361 | } |
6362 | { | |
6363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6364 | result = (bool)(arg1)->DeleteCols(arg2,arg3); | |
6365 | ||
6366 | wxPyEndAllowThreads(__tstate); | |
6367 | if (PyErr_Occurred()) SWIG_fail; | |
6368 | } | |
fbc46b20 RD |
6369 | { |
6370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6371 | } | |
d14a1e28 RD |
6372 | return resultobj; |
6373 | fail: | |
6374 | return NULL; | |
6375 | } | |
6376 | ||
6377 | ||
c370783e | 6378 | static PyObject *_wrap_GridTableBase_GetRowLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6379 | PyObject *resultobj; |
6380 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6381 | int arg2 ; | |
6382 | wxString result; | |
6383 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6384 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6385 | char *kwnames[] = { |
6386 | (char *) "self",(char *) "row", NULL | |
6387 | }; | |
6388 | ||
8edf1c75 | 6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6392 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6393 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6394 | { |
6395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6396 | result = (arg1)->GetRowLabelValue(arg2); | |
6397 | ||
6398 | wxPyEndAllowThreads(__tstate); | |
6399 | if (PyErr_Occurred()) SWIG_fail; | |
6400 | } | |
6401 | { | |
6402 | #if wxUSE_UNICODE | |
6403 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6404 | #else | |
6405 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6406 | #endif | |
6407 | } | |
6408 | return resultobj; | |
6409 | fail: | |
6410 | return NULL; | |
6411 | } | |
6412 | ||
6413 | ||
c370783e | 6414 | static PyObject *_wrap_GridTableBase_GetColLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6415 | PyObject *resultobj; |
6416 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6417 | int arg2 ; | |
6418 | wxString result; | |
6419 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6420 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6421 | char *kwnames[] = { |
6422 | (char *) "self",(char *) "col", NULL | |
6423 | }; | |
6424 | ||
8edf1c75 | 6425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6428 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6429 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6430 | { |
6431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6432 | result = (arg1)->GetColLabelValue(arg2); | |
6433 | ||
6434 | wxPyEndAllowThreads(__tstate); | |
6435 | if (PyErr_Occurred()) SWIG_fail; | |
6436 | } | |
6437 | { | |
6438 | #if wxUSE_UNICODE | |
6439 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6440 | #else | |
6441 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6442 | #endif | |
6443 | } | |
6444 | return resultobj; | |
6445 | fail: | |
6446 | return NULL; | |
6447 | } | |
6448 | ||
6449 | ||
c370783e | 6450 | static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6451 | PyObject *resultobj; |
6452 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6453 | int arg2 ; | |
6454 | wxString *arg3 = 0 ; | |
b411df4a | 6455 | bool temp3 = false ; |
d14a1e28 | 6456 | PyObject * obj0 = 0 ; |
8edf1c75 | 6457 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6458 | PyObject * obj2 = 0 ; |
6459 | char *kwnames[] = { | |
6460 | (char *) "self",(char *) "row",(char *) "value", NULL | |
6461 | }; | |
6462 | ||
8edf1c75 | 6463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6466 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6467 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6468 | { |
6469 | arg3 = wxString_in_helper(obj2); | |
6470 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 6471 | temp3 = true; |
d14a1e28 RD |
6472 | } |
6473 | { | |
6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6475 | (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3); | |
6476 | ||
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) SWIG_fail; | |
6479 | } | |
6480 | Py_INCREF(Py_None); resultobj = Py_None; | |
6481 | { | |
6482 | if (temp3) | |
6483 | delete arg3; | |
6484 | } | |
6485 | return resultobj; | |
6486 | fail: | |
6487 | { | |
6488 | if (temp3) | |
6489 | delete arg3; | |
6490 | } | |
6491 | return NULL; | |
6492 | } | |
6493 | ||
6494 | ||
c370783e | 6495 | static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6496 | PyObject *resultobj; |
6497 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6498 | int arg2 ; | |
6499 | wxString *arg3 = 0 ; | |
b411df4a | 6500 | bool temp3 = false ; |
d14a1e28 | 6501 | PyObject * obj0 = 0 ; |
8edf1c75 | 6502 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6503 | PyObject * obj2 = 0 ; |
6504 | char *kwnames[] = { | |
6505 | (char *) "self",(char *) "col",(char *) "value", NULL | |
6506 | }; | |
6507 | ||
8edf1c75 | 6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6511 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6512 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6513 | { |
6514 | arg3 = wxString_in_helper(obj2); | |
6515 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 6516 | temp3 = true; |
d14a1e28 RD |
6517 | } |
6518 | { | |
6519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6520 | (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3); | |
6521 | ||
6522 | wxPyEndAllowThreads(__tstate); | |
6523 | if (PyErr_Occurred()) SWIG_fail; | |
6524 | } | |
6525 | Py_INCREF(Py_None); resultobj = Py_None; | |
6526 | { | |
6527 | if (temp3) | |
6528 | delete arg3; | |
6529 | } | |
6530 | return resultobj; | |
6531 | fail: | |
6532 | { | |
6533 | if (temp3) | |
6534 | delete arg3; | |
6535 | } | |
6536 | return NULL; | |
6537 | } | |
6538 | ||
6539 | ||
c370783e | 6540 | static PyObject *_wrap_GridTableBase_CanHaveAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6541 | PyObject *resultobj; |
6542 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6543 | bool result; | |
6544 | PyObject * obj0 = 0 ; | |
6545 | char *kwnames[] = { | |
6546 | (char *) "self", NULL | |
6547 | }; | |
6548 | ||
6549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_CanHaveAttributes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6552 | { |
6553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6554 | result = (bool)(arg1)->CanHaveAttributes(); | |
6555 | ||
6556 | wxPyEndAllowThreads(__tstate); | |
6557 | if (PyErr_Occurred()) SWIG_fail; | |
6558 | } | |
fbc46b20 RD |
6559 | { |
6560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6561 | } | |
d14a1e28 RD |
6562 | return resultobj; |
6563 | fail: | |
6564 | return NULL; | |
6565 | } | |
6566 | ||
6567 | ||
c370783e | 6568 | static PyObject *_wrap_GridTableBase_GetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6569 | PyObject *resultobj; |
6570 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6571 | int arg2 ; | |
6572 | int arg3 ; | |
6573 | int arg4 ; | |
6574 | wxGridCellAttr *result; | |
6575 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6576 | PyObject * obj1 = 0 ; |
6577 | PyObject * obj2 = 0 ; | |
6578 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
6579 | char *kwnames[] = { |
6580 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
6581 | }; | |
6582 | ||
8edf1c75 | 6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
6584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6586 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6587 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6588 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6589 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6590 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 6591 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6592 | { |
6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6594 | result = (wxGridCellAttr *)(arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
6595 | ||
6596 | wxPyEndAllowThreads(__tstate); | |
6597 | if (PyErr_Occurred()) SWIG_fail; | |
6598 | } | |
6599 | { | |
412d302d | 6600 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
d14a1e28 RD |
6601 | } |
6602 | return resultobj; | |
6603 | fail: | |
6604 | return NULL; | |
6605 | } | |
6606 | ||
6607 | ||
c370783e | 6608 | static PyObject *_wrap_GridTableBase_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6609 | PyObject *resultobj; |
6610 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6611 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6612 | int arg3 ; | |
6613 | int arg4 ; | |
6614 | PyObject * obj0 = 0 ; | |
6615 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
6616 | PyObject * obj2 = 0 ; |
6617 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
6618 | char *kwnames[] = { |
6619 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
6620 | }; | |
6621 | ||
8edf1c75 | 6622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
6623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
6626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6627 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6628 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6629 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 6630 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6631 | { |
6632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6633 | (arg1)->SetAttr(arg2,arg3,arg4); | |
6634 | ||
6635 | wxPyEndAllowThreads(__tstate); | |
6636 | if (PyErr_Occurred()) SWIG_fail; | |
6637 | } | |
6638 | Py_INCREF(Py_None); resultobj = Py_None; | |
6639 | return resultobj; | |
6640 | fail: | |
6641 | return NULL; | |
6642 | } | |
6643 | ||
6644 | ||
c370783e | 6645 | static PyObject *_wrap_GridTableBase_SetRowAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6646 | PyObject *resultobj; |
6647 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6648 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6649 | int arg3 ; | |
6650 | PyObject * obj0 = 0 ; | |
6651 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6652 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6653 | char *kwnames[] = { |
6654 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
6655 | }; | |
6656 | ||
8edf1c75 | 6657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
6661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6662 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6663 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6664 | { |
6665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6666 | (arg1)->SetRowAttr(arg2,arg3); | |
6667 | ||
6668 | wxPyEndAllowThreads(__tstate); | |
6669 | if (PyErr_Occurred()) SWIG_fail; | |
6670 | } | |
6671 | Py_INCREF(Py_None); resultobj = Py_None; | |
6672 | return resultobj; | |
6673 | fail: | |
6674 | return NULL; | |
6675 | } | |
6676 | ||
6677 | ||
c370783e | 6678 | static PyObject *_wrap_GridTableBase_SetColAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6679 | PyObject *resultobj; |
6680 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6681 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6682 | int arg3 ; | |
6683 | PyObject * obj0 = 0 ; | |
6684 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6685 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6686 | char *kwnames[] = { |
6687 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
6688 | }; | |
6689 | ||
8edf1c75 | 6690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6693 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
6694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6695 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6696 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6697 | { |
6698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6699 | (arg1)->SetColAttr(arg2,arg3); | |
6700 | ||
6701 | wxPyEndAllowThreads(__tstate); | |
6702 | if (PyErr_Occurred()) SWIG_fail; | |
6703 | } | |
6704 | Py_INCREF(Py_None); resultobj = Py_None; | |
6705 | return resultobj; | |
6706 | fail: | |
6707 | return NULL; | |
6708 | } | |
6709 | ||
6710 | ||
c370783e | 6711 | static PyObject * GridTableBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6712 | PyObject *obj; |
6713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6714 | SWIG_TypeClientData(SWIGTYPE_p_wxGridTableBase, obj); | |
6715 | Py_INCREF(obj); | |
6716 | return Py_BuildValue((char *)""); | |
6717 | } | |
c370783e | 6718 | static PyObject *_wrap_new_PyGridTableBase(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6719 | PyObject *resultobj; |
6720 | wxPyGridTableBase *result; | |
6721 | char *kwnames[] = { | |
6722 | NULL | |
6723 | }; | |
6724 | ||
6725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridTableBase",kwnames)) goto fail; | |
6726 | { | |
6727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6728 | result = (wxPyGridTableBase *)new wxPyGridTableBase(); | |
6729 | ||
6730 | wxPyEndAllowThreads(__tstate); | |
6731 | if (PyErr_Occurred()) SWIG_fail; | |
6732 | } | |
2f4c0a16 | 6733 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridTableBase, 1); |
d14a1e28 RD |
6734 | return resultobj; |
6735 | fail: | |
6736 | return NULL; | |
6737 | } | |
6738 | ||
6739 | ||
c370783e | 6740 | static PyObject *_wrap_PyGridTableBase__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6741 | PyObject *resultobj; |
6742 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6743 | PyObject *arg2 = (PyObject *) 0 ; | |
6744 | PyObject *arg3 = (PyObject *) 0 ; | |
6745 | PyObject * obj0 = 0 ; | |
6746 | PyObject * obj1 = 0 ; | |
6747 | PyObject * obj2 = 0 ; | |
6748 | char *kwnames[] = { | |
6749 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6750 | }; | |
6751 | ||
6752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6755 | arg2 = obj1; |
6756 | arg3 = obj2; | |
6757 | { | |
6758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6759 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6760 | ||
6761 | wxPyEndAllowThreads(__tstate); | |
6762 | if (PyErr_Occurred()) SWIG_fail; | |
6763 | } | |
6764 | Py_INCREF(Py_None); resultobj = Py_None; | |
6765 | return resultobj; | |
6766 | fail: | |
6767 | return NULL; | |
6768 | } | |
6769 | ||
6770 | ||
c370783e | 6771 | static PyObject *_wrap_PyGridTableBase_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6772 | PyObject *resultobj; |
6773 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6774 | PyObject * obj0 = 0 ; | |
6775 | char *kwnames[] = { | |
6776 | (char *) "self", NULL | |
6777 | }; | |
6778 | ||
6779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6782 | { |
6783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6784 | wxPyGridTableBase_Destroy(arg1); | |
6785 | ||
6786 | wxPyEndAllowThreads(__tstate); | |
6787 | if (PyErr_Occurred()) SWIG_fail; | |
6788 | } | |
6789 | Py_INCREF(Py_None); resultobj = Py_None; | |
6790 | return resultobj; | |
6791 | fail: | |
6792 | return NULL; | |
6793 | } | |
6794 | ||
6795 | ||
c370783e | 6796 | static PyObject *_wrap_PyGridTableBase_base_GetTypeName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6797 | PyObject *resultobj; |
6798 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6799 | int arg2 ; | |
6800 | int arg3 ; | |
6801 | wxString result; | |
6802 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6803 | PyObject * obj1 = 0 ; |
6804 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6805 | char *kwnames[] = { |
6806 | (char *) "self",(char *) "row",(char *) "col", NULL | |
6807 | }; | |
6808 | ||
8edf1c75 | 6809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6812 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6813 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6814 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6815 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6816 | { |
6817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6818 | result = (arg1)->base_GetTypeName(arg2,arg3); | |
6819 | ||
6820 | wxPyEndAllowThreads(__tstate); | |
6821 | if (PyErr_Occurred()) SWIG_fail; | |
6822 | } | |
6823 | { | |
6824 | #if wxUSE_UNICODE | |
6825 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6826 | #else | |
6827 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6828 | #endif | |
6829 | } | |
6830 | return resultobj; | |
6831 | fail: | |
6832 | return NULL; | |
6833 | } | |
6834 | ||
6835 | ||
c370783e | 6836 | static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6837 | PyObject *resultobj; |
6838 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6839 | int arg2 ; | |
6840 | int arg3 ; | |
6841 | wxString *arg4 = 0 ; | |
6842 | bool result; | |
b411df4a | 6843 | bool temp4 = false ; |
d14a1e28 | 6844 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6845 | PyObject * obj1 = 0 ; |
6846 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6847 | PyObject * obj3 = 0 ; |
6848 | char *kwnames[] = { | |
6849 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
6850 | }; | |
6851 | ||
8edf1c75 | 6852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
6853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6855 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6856 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6857 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6858 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6859 | { |
6860 | arg4 = wxString_in_helper(obj3); | |
6861 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 6862 | temp4 = true; |
d14a1e28 RD |
6863 | } |
6864 | { | |
6865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6866 | result = (bool)(arg1)->base_CanGetValueAs(arg2,arg3,(wxString const &)*arg4); | |
6867 | ||
6868 | wxPyEndAllowThreads(__tstate); | |
6869 | if (PyErr_Occurred()) SWIG_fail; | |
6870 | } | |
fbc46b20 RD |
6871 | { |
6872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6873 | } | |
d14a1e28 RD |
6874 | { |
6875 | if (temp4) | |
6876 | delete arg4; | |
6877 | } | |
6878 | return resultobj; | |
6879 | fail: | |
6880 | { | |
6881 | if (temp4) | |
6882 | delete arg4; | |
6883 | } | |
6884 | return NULL; | |
6885 | } | |
6886 | ||
6887 | ||
c370783e | 6888 | static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6889 | PyObject *resultobj; |
6890 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6891 | int arg2 ; | |
6892 | int arg3 ; | |
6893 | wxString *arg4 = 0 ; | |
6894 | bool result; | |
b411df4a | 6895 | bool temp4 = false ; |
d14a1e28 | 6896 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6897 | PyObject * obj1 = 0 ; |
6898 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6899 | PyObject * obj3 = 0 ; |
6900 | char *kwnames[] = { | |
6901 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
6902 | }; | |
6903 | ||
8edf1c75 | 6904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
6905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6907 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 6908 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 6909 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 6910 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6911 | { |
6912 | arg4 = wxString_in_helper(obj3); | |
6913 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 6914 | temp4 = true; |
d14a1e28 RD |
6915 | } |
6916 | { | |
6917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6918 | result = (bool)(arg1)->base_CanSetValueAs(arg2,arg3,(wxString const &)*arg4); | |
6919 | ||
6920 | wxPyEndAllowThreads(__tstate); | |
6921 | if (PyErr_Occurred()) SWIG_fail; | |
6922 | } | |
fbc46b20 RD |
6923 | { |
6924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6925 | } | |
d14a1e28 RD |
6926 | { |
6927 | if (temp4) | |
6928 | delete arg4; | |
6929 | } | |
6930 | return resultobj; | |
6931 | fail: | |
6932 | { | |
6933 | if (temp4) | |
6934 | delete arg4; | |
6935 | } | |
6936 | return NULL; | |
6937 | } | |
6938 | ||
6939 | ||
c370783e | 6940 | static PyObject *_wrap_PyGridTableBase_base_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6941 | PyObject *resultobj; |
6942 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6943 | PyObject * obj0 = 0 ; | |
6944 | char *kwnames[] = { | |
6945 | (char *) "self", NULL | |
6946 | }; | |
6947 | ||
6948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6951 | { |
6952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6953 | (arg1)->base_Clear(); | |
6954 | ||
6955 | wxPyEndAllowThreads(__tstate); | |
6956 | if (PyErr_Occurred()) SWIG_fail; | |
6957 | } | |
6958 | Py_INCREF(Py_None); resultobj = Py_None; | |
6959 | return resultobj; | |
6960 | fail: | |
6961 | return NULL; | |
6962 | } | |
6963 | ||
6964 | ||
c370783e | 6965 | static PyObject *_wrap_PyGridTableBase_base_InsertRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6966 | PyObject *resultobj; |
6967 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6968 | size_t arg2 = (size_t) 0 ; | |
6969 | size_t arg3 = (size_t) 1 ; | |
6970 | bool result; | |
6971 | PyObject * obj0 = 0 ; | |
6972 | PyObject * obj1 = 0 ; | |
6973 | PyObject * obj2 = 0 ; | |
6974 | char *kwnames[] = { | |
6975 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6976 | }; | |
6977 | ||
6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6981 | if (obj1) { |
c370783e | 6982 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 6983 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6984 | } |
6985 | if (obj2) { | |
c370783e | 6986 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
2f4c0a16 | 6987 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
6988 | } |
6989 | { | |
6990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6991 | result = (bool)(arg1)->base_InsertRows(arg2,arg3); | |
6992 | ||
6993 | wxPyEndAllowThreads(__tstate); | |
6994 | if (PyErr_Occurred()) SWIG_fail; | |
6995 | } | |
fbc46b20 RD |
6996 | { |
6997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6998 | } | |
d14a1e28 RD |
6999 | return resultobj; |
7000 | fail: | |
7001 | return NULL; | |
7002 | } | |
7003 | ||
7004 | ||
c370783e | 7005 | static PyObject *_wrap_PyGridTableBase_base_AppendRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7006 | PyObject *resultobj; |
7007 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7008 | size_t arg2 = (size_t) 1 ; | |
7009 | bool result; | |
7010 | PyObject * obj0 = 0 ; | |
7011 | PyObject * obj1 = 0 ; | |
7012 | char *kwnames[] = { | |
7013 | (char *) "self",(char *) "numRows", NULL | |
7014 | }; | |
7015 | ||
7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendRows",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 7019 | if (obj1) { |
c370783e | 7020 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 7021 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7022 | } |
7023 | { | |
7024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7025 | result = (bool)(arg1)->base_AppendRows(arg2); | |
7026 | ||
7027 | wxPyEndAllowThreads(__tstate); | |
7028 | if (PyErr_Occurred()) SWIG_fail; | |
7029 | } | |
fbc46b20 RD |
7030 | { |
7031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7032 | } | |
d14a1e28 RD |
7033 | return resultobj; |
7034 | fail: | |
7035 | return NULL; | |
7036 | } | |
7037 | ||
7038 | ||
c370783e | 7039 | static PyObject *_wrap_PyGridTableBase_base_DeleteRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7040 | PyObject *resultobj; |
7041 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7042 | size_t arg2 = (size_t) 0 ; | |
7043 | size_t arg3 = (size_t) 1 ; | |
7044 | bool result; | |
7045 | PyObject * obj0 = 0 ; | |
7046 | PyObject * obj1 = 0 ; | |
7047 | PyObject * obj2 = 0 ; | |
7048 | char *kwnames[] = { | |
7049 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
7050 | }; | |
7051 | ||
7052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 7055 | if (obj1) { |
c370783e | 7056 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 7057 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7058 | } |
7059 | if (obj2) { | |
c370783e | 7060 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
2f4c0a16 | 7061 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7062 | } |
7063 | { | |
7064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7065 | result = (bool)(arg1)->base_DeleteRows(arg2,arg3); | |
7066 | ||
7067 | wxPyEndAllowThreads(__tstate); | |
7068 | if (PyErr_Occurred()) SWIG_fail; | |
7069 | } | |
fbc46b20 RD |
7070 | { |
7071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7072 | } | |
d14a1e28 RD |
7073 | return resultobj; |
7074 | fail: | |
7075 | return NULL; | |
7076 | } | |
7077 | ||
7078 | ||
c370783e | 7079 | static PyObject *_wrap_PyGridTableBase_base_InsertCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7080 | PyObject *resultobj; |
7081 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7082 | size_t arg2 = (size_t) 0 ; | |
7083 | size_t arg3 = (size_t) 1 ; | |
7084 | bool result; | |
7085 | PyObject * obj0 = 0 ; | |
7086 | PyObject * obj1 = 0 ; | |
7087 | PyObject * obj2 = 0 ; | |
7088 | char *kwnames[] = { | |
7089 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
7090 | }; | |
7091 | ||
7092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 7095 | if (obj1) { |
c370783e | 7096 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 7097 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7098 | } |
7099 | if (obj2) { | |
c370783e | 7100 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
2f4c0a16 | 7101 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7102 | } |
7103 | { | |
7104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7105 | result = (bool)(arg1)->base_InsertCols(arg2,arg3); | |
7106 | ||
7107 | wxPyEndAllowThreads(__tstate); | |
7108 | if (PyErr_Occurred()) SWIG_fail; | |
7109 | } | |
fbc46b20 RD |
7110 | { |
7111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7112 | } | |
d14a1e28 RD |
7113 | return resultobj; |
7114 | fail: | |
7115 | return NULL; | |
7116 | } | |
7117 | ||
7118 | ||
c370783e | 7119 | static PyObject *_wrap_PyGridTableBase_base_AppendCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7120 | PyObject *resultobj; |
7121 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7122 | size_t arg2 = (size_t) 1 ; | |
7123 | bool result; | |
7124 | PyObject * obj0 = 0 ; | |
7125 | PyObject * obj1 = 0 ; | |
7126 | char *kwnames[] = { | |
7127 | (char *) "self",(char *) "numCols", NULL | |
7128 | }; | |
7129 | ||
7130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendCols",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 7133 | if (obj1) { |
c370783e | 7134 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 7135 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7136 | } |
7137 | { | |
7138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7139 | result = (bool)(arg1)->base_AppendCols(arg2); | |
7140 | ||
7141 | wxPyEndAllowThreads(__tstate); | |
7142 | if (PyErr_Occurred()) SWIG_fail; | |
7143 | } | |
fbc46b20 RD |
7144 | { |
7145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7146 | } | |
d14a1e28 RD |
7147 | return resultobj; |
7148 | fail: | |
7149 | return NULL; | |
7150 | } | |
7151 | ||
7152 | ||
c370783e | 7153 | static PyObject *_wrap_PyGridTableBase_base_DeleteCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7154 | PyObject *resultobj; |
7155 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7156 | size_t arg2 = (size_t) 0 ; | |
7157 | size_t arg3 = (size_t) 1 ; | |
7158 | bool result; | |
7159 | PyObject * obj0 = 0 ; | |
7160 | PyObject * obj1 = 0 ; | |
7161 | PyObject * obj2 = 0 ; | |
7162 | char *kwnames[] = { | |
7163 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
7164 | }; | |
7165 | ||
7166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 7169 | if (obj1) { |
c370783e | 7170 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
2f4c0a16 | 7171 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7172 | } |
7173 | if (obj2) { | |
c370783e | 7174 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
2f4c0a16 | 7175 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7176 | } |
7177 | { | |
7178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7179 | result = (bool)(arg1)->base_DeleteCols(arg2,arg3); | |
7180 | ||
7181 | wxPyEndAllowThreads(__tstate); | |
7182 | if (PyErr_Occurred()) SWIG_fail; | |
7183 | } | |
fbc46b20 RD |
7184 | { |
7185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7186 | } | |
d14a1e28 RD |
7187 | return resultobj; |
7188 | fail: | |
7189 | return NULL; | |
7190 | } | |
7191 | ||
7192 | ||
c370783e | 7193 | static PyObject *_wrap_PyGridTableBase_base_GetRowLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7194 | PyObject *resultobj; |
7195 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7196 | int arg2 ; | |
7197 | wxString result; | |
7198 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7199 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7200 | char *kwnames[] = { |
7201 | (char *) "self",(char *) "row", NULL | |
7202 | }; | |
7203 | ||
8edf1c75 | 7204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7207 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7208 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7209 | { |
7210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7211 | result = (arg1)->base_GetRowLabelValue(arg2); | |
7212 | ||
7213 | wxPyEndAllowThreads(__tstate); | |
7214 | if (PyErr_Occurred()) SWIG_fail; | |
7215 | } | |
7216 | { | |
7217 | #if wxUSE_UNICODE | |
7218 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7219 | #else | |
7220 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7221 | #endif | |
7222 | } | |
7223 | return resultobj; | |
7224 | fail: | |
7225 | return NULL; | |
7226 | } | |
7227 | ||
7228 | ||
c370783e | 7229 | static PyObject *_wrap_PyGridTableBase_base_GetColLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7230 | PyObject *resultobj; |
7231 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7232 | int arg2 ; | |
7233 | wxString result; | |
7234 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7235 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7236 | char *kwnames[] = { |
7237 | (char *) "self",(char *) "col", NULL | |
7238 | }; | |
7239 | ||
8edf1c75 | 7240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7243 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7244 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7245 | { |
7246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7247 | result = (arg1)->base_GetColLabelValue(arg2); | |
7248 | ||
7249 | wxPyEndAllowThreads(__tstate); | |
7250 | if (PyErr_Occurred()) SWIG_fail; | |
7251 | } | |
7252 | { | |
7253 | #if wxUSE_UNICODE | |
7254 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7255 | #else | |
7256 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7257 | #endif | |
7258 | } | |
7259 | return resultobj; | |
7260 | fail: | |
7261 | return NULL; | |
7262 | } | |
7263 | ||
7264 | ||
c370783e | 7265 | static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7266 | PyObject *resultobj; |
7267 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7268 | int arg2 ; | |
7269 | wxString *arg3 = 0 ; | |
b411df4a | 7270 | bool temp3 = false ; |
d14a1e28 | 7271 | PyObject * obj0 = 0 ; |
8edf1c75 | 7272 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7273 | PyObject * obj2 = 0 ; |
7274 | char *kwnames[] = { | |
7275 | (char *) "self",(char *) "row",(char *) "value", NULL | |
7276 | }; | |
7277 | ||
8edf1c75 | 7278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7281 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7282 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7283 | { |
7284 | arg3 = wxString_in_helper(obj2); | |
7285 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 7286 | temp3 = true; |
d14a1e28 RD |
7287 | } |
7288 | { | |
7289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7290 | (arg1)->base_SetRowLabelValue(arg2,(wxString const &)*arg3); | |
7291 | ||
7292 | wxPyEndAllowThreads(__tstate); | |
7293 | if (PyErr_Occurred()) SWIG_fail; | |
7294 | } | |
7295 | Py_INCREF(Py_None); resultobj = Py_None; | |
7296 | { | |
7297 | if (temp3) | |
7298 | delete arg3; | |
7299 | } | |
7300 | return resultobj; | |
7301 | fail: | |
7302 | { | |
7303 | if (temp3) | |
7304 | delete arg3; | |
7305 | } | |
7306 | return NULL; | |
7307 | } | |
7308 | ||
7309 | ||
c370783e | 7310 | static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7311 | PyObject *resultobj; |
7312 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7313 | int arg2 ; | |
7314 | wxString *arg3 = 0 ; | |
b411df4a | 7315 | bool temp3 = false ; |
d14a1e28 | 7316 | PyObject * obj0 = 0 ; |
8edf1c75 | 7317 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7318 | PyObject * obj2 = 0 ; |
7319 | char *kwnames[] = { | |
7320 | (char *) "self",(char *) "col",(char *) "value", NULL | |
7321 | }; | |
7322 | ||
8edf1c75 | 7323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7326 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7327 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7328 | { |
7329 | arg3 = wxString_in_helper(obj2); | |
7330 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 7331 | temp3 = true; |
d14a1e28 RD |
7332 | } |
7333 | { | |
7334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7335 | (arg1)->base_SetColLabelValue(arg2,(wxString const &)*arg3); | |
7336 | ||
7337 | wxPyEndAllowThreads(__tstate); | |
7338 | if (PyErr_Occurred()) SWIG_fail; | |
7339 | } | |
7340 | Py_INCREF(Py_None); resultobj = Py_None; | |
7341 | { | |
7342 | if (temp3) | |
7343 | delete arg3; | |
7344 | } | |
7345 | return resultobj; | |
7346 | fail: | |
7347 | { | |
7348 | if (temp3) | |
7349 | delete arg3; | |
7350 | } | |
7351 | return NULL; | |
7352 | } | |
7353 | ||
7354 | ||
c370783e | 7355 | static PyObject *_wrap_PyGridTableBase_base_CanHaveAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7356 | PyObject *resultobj; |
7357 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7358 | bool result; | |
7359 | PyObject * obj0 = 0 ; | |
7360 | char *kwnames[] = { | |
7361 | (char *) "self", NULL | |
7362 | }; | |
7363 | ||
7364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_CanHaveAttributes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7367 | { |
7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7369 | result = (bool)(arg1)->base_CanHaveAttributes(); | |
7370 | ||
7371 | wxPyEndAllowThreads(__tstate); | |
7372 | if (PyErr_Occurred()) SWIG_fail; | |
7373 | } | |
fbc46b20 RD |
7374 | { |
7375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7376 | } | |
d14a1e28 RD |
7377 | return resultobj; |
7378 | fail: | |
7379 | return NULL; | |
7380 | } | |
7381 | ||
7382 | ||
c370783e | 7383 | static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7384 | PyObject *resultobj; |
7385 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7386 | int arg2 ; | |
7387 | int arg3 ; | |
7388 | int arg4 ; | |
7389 | wxGridCellAttr *result; | |
7390 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7391 | PyObject * obj1 = 0 ; |
7392 | PyObject * obj2 = 0 ; | |
7393 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7394 | char *kwnames[] = { |
7395 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
7396 | }; | |
7397 | ||
8edf1c75 | 7398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
7399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7401 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7402 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 7403 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 7404 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 7405 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 7406 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7407 | { |
7408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7409 | result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
7410 | ||
7411 | wxPyEndAllowThreads(__tstate); | |
7412 | if (PyErr_Occurred()) SWIG_fail; | |
7413 | } | |
7414 | { | |
412d302d | 7415 | resultobj = wxPyMake_wxGridCellAttr(result, 0); |
d14a1e28 RD |
7416 | } |
7417 | return resultobj; | |
7418 | fail: | |
7419 | return NULL; | |
7420 | } | |
7421 | ||
7422 | ||
c370783e | 7423 | static PyObject *_wrap_PyGridTableBase_base_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7424 | PyObject *resultobj; |
7425 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7426 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7427 | int arg3 ; | |
7428 | int arg4 ; | |
7429 | PyObject * obj0 = 0 ; | |
7430 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
7431 | PyObject * obj2 = 0 ; |
7432 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7433 | char *kwnames[] = { |
7434 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
7435 | }; | |
7436 | ||
8edf1c75 | 7437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
7438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
7441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7442 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 7443 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 7444 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 7445 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7446 | { |
7447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7448 | (arg1)->base_SetAttr(arg2,arg3,arg4); | |
7449 | ||
7450 | wxPyEndAllowThreads(__tstate); | |
7451 | if (PyErr_Occurred()) SWIG_fail; | |
7452 | } | |
7453 | Py_INCREF(Py_None); resultobj = Py_None; | |
7454 | return resultobj; | |
7455 | fail: | |
7456 | return NULL; | |
7457 | } | |
7458 | ||
7459 | ||
c370783e | 7460 | static PyObject *_wrap_PyGridTableBase_base_SetRowAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7461 | PyObject *resultobj; |
7462 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7463 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7464 | int arg3 ; | |
7465 | PyObject * obj0 = 0 ; | |
7466 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7467 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7468 | char *kwnames[] = { |
7469 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
7470 | }; | |
7471 | ||
8edf1c75 | 7472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7475 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
7476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7477 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 7478 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7479 | { |
7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7481 | (arg1)->base_SetRowAttr(arg2,arg3); | |
7482 | ||
7483 | wxPyEndAllowThreads(__tstate); | |
7484 | if (PyErr_Occurred()) SWIG_fail; | |
7485 | } | |
7486 | Py_INCREF(Py_None); resultobj = Py_None; | |
7487 | return resultobj; | |
7488 | fail: | |
7489 | return NULL; | |
7490 | } | |
7491 | ||
7492 | ||
c370783e | 7493 | static PyObject *_wrap_PyGridTableBase_base_SetColAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7494 | PyObject *resultobj; |
7495 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7496 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7497 | int arg3 ; | |
7498 | PyObject * obj0 = 0 ; | |
7499 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7500 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7501 | char *kwnames[] = { |
7502 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
7503 | }; | |
7504 | ||
8edf1c75 | 7505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7508 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
7509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7510 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 7511 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7512 | { |
7513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7514 | (arg1)->base_SetColAttr(arg2,arg3); | |
7515 | ||
7516 | wxPyEndAllowThreads(__tstate); | |
7517 | if (PyErr_Occurred()) SWIG_fail; | |
7518 | } | |
7519 | Py_INCREF(Py_None); resultobj = Py_None; | |
7520 | return resultobj; | |
7521 | fail: | |
7522 | return NULL; | |
7523 | } | |
7524 | ||
7525 | ||
c370783e | 7526 | static PyObject * PyGridTableBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7527 | PyObject *obj; |
7528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7529 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridTableBase, obj); | |
7530 | Py_INCREF(obj); | |
7531 | return Py_BuildValue((char *)""); | |
7532 | } | |
c370783e | 7533 | static PyObject *_wrap_new_GridStringTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7534 | PyObject *resultobj; |
7535 | int arg1 = (int) 0 ; | |
7536 | int arg2 = (int) 0 ; | |
7537 | wxGridStringTable *result; | |
8edf1c75 RD |
7538 | PyObject * obj0 = 0 ; |
7539 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
7540 | char *kwnames[] = { |
7541 | (char *) "numRows",(char *) "numCols", NULL | |
7542 | }; | |
7543 | ||
8edf1c75 RD |
7544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridStringTable",kwnames,&obj0,&obj1)) goto fail; |
7545 | if (obj0) { | |
c370783e | 7546 | arg1 = (int)SWIG_As_int(obj0); |
2f4c0a16 | 7547 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
7548 | } |
7549 | if (obj1) { | |
c370783e | 7550 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7551 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 7552 | } |
d14a1e28 RD |
7553 | { |
7554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7555 | result = (wxGridStringTable *)new wxGridStringTable(arg1,arg2); | |
7556 | ||
7557 | wxPyEndAllowThreads(__tstate); | |
7558 | if (PyErr_Occurred()) SWIG_fail; | |
7559 | } | |
2f4c0a16 | 7560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridStringTable, 1); |
d14a1e28 RD |
7561 | return resultobj; |
7562 | fail: | |
7563 | return NULL; | |
7564 | } | |
7565 | ||
7566 | ||
c370783e | 7567 | static PyObject * GridStringTable_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7568 | PyObject *obj; |
7569 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7570 | SWIG_TypeClientData(SWIGTYPE_p_wxGridStringTable, obj); | |
7571 | Py_INCREF(obj); | |
7572 | return Py_BuildValue((char *)""); | |
7573 | } | |
c370783e | 7574 | static PyObject *_wrap_new_GridTableMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7575 | PyObject *resultobj; |
7576 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
7577 | int arg2 ; | |
7578 | int arg3 = (int) -1 ; | |
7579 | int arg4 = (int) -1 ; | |
7580 | wxGridTableMessage *result; | |
7581 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7582 | PyObject * obj1 = 0 ; |
7583 | PyObject * obj2 = 0 ; | |
7584 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7585 | char *kwnames[] = { |
7586 | (char *) "table",(char *) "id",(char *) "comInt1",(char *) "comInt2", NULL | |
7587 | }; | |
7588 | ||
8edf1c75 | 7589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GridTableMessage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
7590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
7591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7592 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7593 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 7594 | if (obj2) { |
c370783e | 7595 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 7596 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
7597 | } |
7598 | if (obj3) { | |
c370783e | 7599 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 7600 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 7601 | } |
d14a1e28 RD |
7602 | { |
7603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7604 | result = (wxGridTableMessage *)new wxGridTableMessage(arg1,arg2,arg3,arg4); | |
7605 | ||
7606 | wxPyEndAllowThreads(__tstate); | |
7607 | if (PyErr_Occurred()) SWIG_fail; | |
7608 | } | |
2f4c0a16 | 7609 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridTableMessage, 1); |
d14a1e28 RD |
7610 | return resultobj; |
7611 | fail: | |
7612 | return NULL; | |
7613 | } | |
7614 | ||
7615 | ||
c370783e | 7616 | static PyObject *_wrap_delete_GridTableMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7617 | PyObject *resultobj; |
7618 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7619 | PyObject * obj0 = 0 ; | |
7620 | char *kwnames[] = { | |
7621 | (char *) "self", NULL | |
7622 | }; | |
7623 | ||
7624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridTableMessage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7627 | { |
7628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7629 | delete arg1; | |
7630 | ||
7631 | wxPyEndAllowThreads(__tstate); | |
7632 | if (PyErr_Occurred()) SWIG_fail; | |
7633 | } | |
7634 | Py_INCREF(Py_None); resultobj = Py_None; | |
7635 | return resultobj; | |
7636 | fail: | |
7637 | return NULL; | |
7638 | } | |
7639 | ||
7640 | ||
c370783e | 7641 | static PyObject *_wrap_GridTableMessage_SetTableObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7642 | PyObject *resultobj; |
7643 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7644 | wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; | |
7645 | PyObject * obj0 = 0 ; | |
7646 | PyObject * obj1 = 0 ; | |
7647 | char *kwnames[] = { | |
7648 | (char *) "self",(char *) "table", NULL | |
7649 | }; | |
7650 | ||
7651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetTableObject",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7654 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableBase, | |
7655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7656 | { |
7657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7658 | (arg1)->SetTableObject(arg2); | |
7659 | ||
7660 | wxPyEndAllowThreads(__tstate); | |
7661 | if (PyErr_Occurred()) SWIG_fail; | |
7662 | } | |
7663 | Py_INCREF(Py_None); resultobj = Py_None; | |
7664 | return resultobj; | |
7665 | fail: | |
7666 | return NULL; | |
7667 | } | |
7668 | ||
7669 | ||
c370783e | 7670 | static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7671 | PyObject *resultobj; |
7672 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7673 | wxGridTableBase *result; | |
7674 | PyObject * obj0 = 0 ; | |
7675 | char *kwnames[] = { | |
7676 | (char *) "self", NULL | |
7677 | }; | |
7678 | ||
7679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetTableObject",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7682 | { |
7683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7684 | result = (wxGridTableBase *)((wxGridTableMessage const *)arg1)->GetTableObject(); | |
7685 | ||
7686 | wxPyEndAllowThreads(__tstate); | |
7687 | if (PyErr_Occurred()) SWIG_fail; | |
7688 | } | |
7689 | { | |
412d302d | 7690 | resultobj = wxPyMake_wxGridTableBase(result, 0); |
d14a1e28 RD |
7691 | } |
7692 | return resultobj; | |
7693 | fail: | |
7694 | return NULL; | |
7695 | } | |
7696 | ||
7697 | ||
c370783e | 7698 | static PyObject *_wrap_GridTableMessage_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7699 | PyObject *resultobj; |
7700 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7701 | int arg2 ; | |
7702 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7703 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7704 | char *kwnames[] = { |
7705 | (char *) "self",(char *) "id", NULL | |
7706 | }; | |
7707 | ||
8edf1c75 | 7708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7711 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7712 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7713 | { |
7714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7715 | (arg1)->SetId(arg2); | |
7716 | ||
7717 | wxPyEndAllowThreads(__tstate); | |
7718 | if (PyErr_Occurred()) SWIG_fail; | |
7719 | } | |
7720 | Py_INCREF(Py_None); resultobj = Py_None; | |
7721 | return resultobj; | |
7722 | fail: | |
7723 | return NULL; | |
7724 | } | |
7725 | ||
7726 | ||
c370783e | 7727 | static PyObject *_wrap_GridTableMessage_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7728 | PyObject *resultobj; |
7729 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7730 | int result; | |
7731 | PyObject * obj0 = 0 ; | |
7732 | char *kwnames[] = { | |
7733 | (char *) "self", NULL | |
7734 | }; | |
7735 | ||
7736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7739 | { |
7740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7741 | result = (int)(arg1)->GetId(); | |
7742 | ||
7743 | wxPyEndAllowThreads(__tstate); | |
7744 | if (PyErr_Occurred()) SWIG_fail; | |
7745 | } | |
c370783e | 7746 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7747 | return resultobj; |
7748 | fail: | |
7749 | return NULL; | |
7750 | } | |
7751 | ||
7752 | ||
c370783e | 7753 | static PyObject *_wrap_GridTableMessage_SetCommandInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7754 | PyObject *resultobj; |
7755 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7756 | int arg2 ; | |
7757 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7758 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7759 | char *kwnames[] = { |
7760 | (char *) "self",(char *) "comInt1", NULL | |
7761 | }; | |
7762 | ||
8edf1c75 | 7763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7766 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7767 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7768 | { |
7769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7770 | (arg1)->SetCommandInt(arg2); | |
7771 | ||
7772 | wxPyEndAllowThreads(__tstate); | |
7773 | if (PyErr_Occurred()) SWIG_fail; | |
7774 | } | |
7775 | Py_INCREF(Py_None); resultobj = Py_None; | |
7776 | return resultobj; | |
7777 | fail: | |
7778 | return NULL; | |
7779 | } | |
7780 | ||
7781 | ||
c370783e | 7782 | static PyObject *_wrap_GridTableMessage_GetCommandInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7783 | PyObject *resultobj; |
7784 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7785 | int result; | |
7786 | PyObject * obj0 = 0 ; | |
7787 | char *kwnames[] = { | |
7788 | (char *) "self", NULL | |
7789 | }; | |
7790 | ||
7791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7794 | { |
7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7796 | result = (int)(arg1)->GetCommandInt(); | |
7797 | ||
7798 | wxPyEndAllowThreads(__tstate); | |
7799 | if (PyErr_Occurred()) SWIG_fail; | |
7800 | } | |
c370783e | 7801 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7802 | return resultobj; |
7803 | fail: | |
7804 | return NULL; | |
7805 | } | |
7806 | ||
7807 | ||
c370783e | 7808 | static PyObject *_wrap_GridTableMessage_SetCommandInt2(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7809 | PyObject *resultobj; |
7810 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7811 | int arg2 ; | |
7812 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7813 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7814 | char *kwnames[] = { |
7815 | (char *) "self",(char *) "comInt2", NULL | |
7816 | }; | |
7817 | ||
8edf1c75 | 7818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt2",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7821 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7822 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7823 | { |
7824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7825 | (arg1)->SetCommandInt2(arg2); | |
7826 | ||
7827 | wxPyEndAllowThreads(__tstate); | |
7828 | if (PyErr_Occurred()) SWIG_fail; | |
7829 | } | |
7830 | Py_INCREF(Py_None); resultobj = Py_None; | |
7831 | return resultobj; | |
7832 | fail: | |
7833 | return NULL; | |
7834 | } | |
7835 | ||
7836 | ||
c370783e | 7837 | static PyObject *_wrap_GridTableMessage_GetCommandInt2(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7838 | PyObject *resultobj; |
7839 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7840 | int result; | |
7841 | PyObject * obj0 = 0 ; | |
7842 | char *kwnames[] = { | |
7843 | (char *) "self", NULL | |
7844 | }; | |
7845 | ||
7846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt2",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7849 | { |
7850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7851 | result = (int)(arg1)->GetCommandInt2(); | |
7852 | ||
7853 | wxPyEndAllowThreads(__tstate); | |
7854 | if (PyErr_Occurred()) SWIG_fail; | |
7855 | } | |
c370783e | 7856 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7857 | return resultobj; |
7858 | fail: | |
7859 | return NULL; | |
7860 | } | |
7861 | ||
7862 | ||
c370783e | 7863 | static PyObject * GridTableMessage_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7864 | PyObject *obj; |
7865 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7866 | SWIG_TypeClientData(SWIGTYPE_p_wxGridTableMessage, obj); | |
7867 | Py_INCREF(obj); | |
7868 | return Py_BuildValue((char *)""); | |
7869 | } | |
c370783e | 7870 | static PyObject *_wrap_new_GridCellCoords(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7871 | PyObject *resultobj; |
7872 | int arg1 = (int) -1 ; | |
7873 | int arg2 = (int) -1 ; | |
7874 | wxGridCellCoords *result; | |
8edf1c75 RD |
7875 | PyObject * obj0 = 0 ; |
7876 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
7877 | char *kwnames[] = { |
7878 | (char *) "r",(char *) "c", NULL | |
7879 | }; | |
7880 | ||
8edf1c75 RD |
7881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellCoords",kwnames,&obj0,&obj1)) goto fail; |
7882 | if (obj0) { | |
c370783e | 7883 | arg1 = (int)SWIG_As_int(obj0); |
2f4c0a16 | 7884 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
7885 | } |
7886 | if (obj1) { | |
c370783e | 7887 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7888 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 7889 | } |
d14a1e28 RD |
7890 | { |
7891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7892 | result = (wxGridCellCoords *)new wxGridCellCoords(arg1,arg2); | |
7893 | ||
7894 | wxPyEndAllowThreads(__tstate); | |
7895 | if (PyErr_Occurred()) SWIG_fail; | |
7896 | } | |
2f4c0a16 | 7897 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellCoords, 1); |
d14a1e28 RD |
7898 | return resultobj; |
7899 | fail: | |
7900 | return NULL; | |
7901 | } | |
7902 | ||
7903 | ||
c370783e | 7904 | static PyObject *_wrap_delete_GridCellCoords(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7905 | PyObject *resultobj; |
7906 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7907 | PyObject * obj0 = 0 ; | |
7908 | char *kwnames[] = { | |
7909 | (char *) "self", NULL | |
7910 | }; | |
7911 | ||
7912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridCellCoords",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7915 | { |
7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7917 | delete arg1; | |
7918 | ||
7919 | wxPyEndAllowThreads(__tstate); | |
7920 | if (PyErr_Occurred()) SWIG_fail; | |
7921 | } | |
7922 | Py_INCREF(Py_None); resultobj = Py_None; | |
7923 | return resultobj; | |
7924 | fail: | |
7925 | return NULL; | |
7926 | } | |
7927 | ||
7928 | ||
c370783e | 7929 | static PyObject *_wrap_GridCellCoords_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7930 | PyObject *resultobj; |
7931 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7932 | int result; | |
7933 | PyObject * obj0 = 0 ; | |
7934 | char *kwnames[] = { | |
7935 | (char *) "self", NULL | |
7936 | }; | |
7937 | ||
7938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetRow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7941 | { |
7942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7943 | result = (int)((wxGridCellCoords const *)arg1)->GetRow(); | |
7944 | ||
7945 | wxPyEndAllowThreads(__tstate); | |
7946 | if (PyErr_Occurred()) SWIG_fail; | |
7947 | } | |
c370783e | 7948 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
7949 | return resultobj; |
7950 | fail: | |
7951 | return NULL; | |
7952 | } | |
7953 | ||
7954 | ||
c370783e | 7955 | static PyObject *_wrap_GridCellCoords_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7956 | PyObject *resultobj; |
7957 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7958 | int arg2 ; | |
7959 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7960 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7961 | char *kwnames[] = { |
7962 | (char *) "self",(char *) "n", NULL | |
7963 | }; | |
7964 | ||
8edf1c75 | 7965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetRow",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7968 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 7969 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7970 | { |
7971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7972 | (arg1)->SetRow(arg2); | |
7973 | ||
7974 | wxPyEndAllowThreads(__tstate); | |
7975 | if (PyErr_Occurred()) SWIG_fail; | |
7976 | } | |
7977 | Py_INCREF(Py_None); resultobj = Py_None; | |
7978 | return resultobj; | |
7979 | fail: | |
7980 | return NULL; | |
7981 | } | |
7982 | ||
7983 | ||
c370783e | 7984 | static PyObject *_wrap_GridCellCoords_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7985 | PyObject *resultobj; |
7986 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7987 | int result; | |
7988 | PyObject * obj0 = 0 ; | |
7989 | char *kwnames[] = { | |
7990 | (char *) "self", NULL | |
7991 | }; | |
7992 | ||
7993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetCol",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7996 | { |
7997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7998 | result = (int)((wxGridCellCoords const *)arg1)->GetCol(); | |
7999 | ||
8000 | wxPyEndAllowThreads(__tstate); | |
8001 | if (PyErr_Occurred()) SWIG_fail; | |
8002 | } | |
c370783e | 8003 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8004 | return resultobj; |
8005 | fail: | |
8006 | return NULL; | |
8007 | } | |
8008 | ||
8009 | ||
c370783e | 8010 | static PyObject *_wrap_GridCellCoords_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8011 | PyObject *resultobj; |
8012 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
8013 | int arg2 ; | |
8014 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8015 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8016 | char *kwnames[] = { |
8017 | (char *) "self",(char *) "n", NULL | |
8018 | }; | |
8019 | ||
8edf1c75 | 8020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetCol",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
8022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8023 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 8024 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8025 | { |
8026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8027 | (arg1)->SetCol(arg2); | |
8028 | ||
8029 | wxPyEndAllowThreads(__tstate); | |
8030 | if (PyErr_Occurred()) SWIG_fail; | |
8031 | } | |
8032 | Py_INCREF(Py_None); resultobj = Py_None; | |
8033 | return resultobj; | |
8034 | fail: | |
8035 | return NULL; | |
8036 | } | |
8037 | ||
8038 | ||
c370783e | 8039 | static PyObject *_wrap_GridCellCoords_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8040 | PyObject *resultobj; |
8041 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
8042 | int arg2 ; | |
8043 | int arg3 ; | |
8044 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8045 | PyObject * obj1 = 0 ; |
8046 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8047 | char *kwnames[] = { |
8048 | (char *) "self",(char *) "row",(char *) "col", NULL | |
8049 | }; | |
8050 | ||
8edf1c75 | 8051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellCoords_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
8053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8054 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 8055 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8056 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 8057 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8058 | { |
8059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8060 | (arg1)->Set(arg2,arg3); | |
8061 | ||
8062 | wxPyEndAllowThreads(__tstate); | |
8063 | if (PyErr_Occurred()) SWIG_fail; | |
8064 | } | |
8065 | Py_INCREF(Py_None); resultobj = Py_None; | |
8066 | return resultobj; | |
8067 | fail: | |
8068 | return NULL; | |
8069 | } | |
8070 | ||
8071 | ||
c370783e | 8072 | static PyObject *_wrap_GridCellCoords___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8073 | PyObject *resultobj; |
8074 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
8075 | wxGridCellCoords *arg2 = 0 ; | |
8076 | bool result; | |
38f59159 | 8077 | wxGridCellCoords temp2 ; |
d14a1e28 RD |
8078 | PyObject * obj0 = 0 ; |
8079 | PyObject * obj1 = 0 ; | |
8080 | char *kwnames[] = { | |
8081 | (char *) "self",(char *) "other", NULL | |
8082 | }; | |
8083 | ||
8084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
8086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38f59159 RD |
8087 | { |
8088 | arg2 = &temp2; | |
8089 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 RD |
8090 | } |
8091 | { | |
8092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8093 | result = (bool)((wxGridCellCoords const *)arg1)->operator ==((wxGridCellCoords const &)*arg2); | |
8094 | ||
8095 | wxPyEndAllowThreads(__tstate); | |
8096 | if (PyErr_Occurred()) SWIG_fail; | |
8097 | } | |
fbc46b20 RD |
8098 | { |
8099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8100 | } | |
d14a1e28 RD |
8101 | return resultobj; |
8102 | fail: | |
8103 | return NULL; | |
8104 | } | |
8105 | ||
8106 | ||
c370783e | 8107 | static PyObject *_wrap_GridCellCoords___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8108 | PyObject *resultobj; |
8109 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
8110 | wxGridCellCoords *arg2 = 0 ; | |
8111 | bool result; | |
38f59159 | 8112 | wxGridCellCoords temp2 ; |
d14a1e28 RD |
8113 | PyObject * obj0 = 0 ; |
8114 | PyObject * obj1 = 0 ; | |
8115 | char *kwnames[] = { | |
8116 | (char *) "self",(char *) "other", NULL | |
8117 | }; | |
8118 | ||
8119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
8121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38f59159 RD |
8122 | { |
8123 | arg2 = &temp2; | |
8124 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 RD |
8125 | } |
8126 | { | |
8127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8128 | result = (bool)((wxGridCellCoords const *)arg1)->operator !=((wxGridCellCoords const &)*arg2); | |
8129 | ||
8130 | wxPyEndAllowThreads(__tstate); | |
8131 | if (PyErr_Occurred()) SWIG_fail; | |
8132 | } | |
fbc46b20 RD |
8133 | { |
8134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8135 | } | |
d14a1e28 RD |
8136 | return resultobj; |
8137 | fail: | |
8138 | return NULL; | |
8139 | } | |
8140 | ||
8141 | ||
c370783e | 8142 | static PyObject *_wrap_GridCellCoords_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8143 | PyObject *resultobj; |
8144 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
8145 | PyObject *result; | |
8146 | PyObject * obj0 = 0 ; | |
8147 | char *kwnames[] = { | |
8148 | (char *) "self", NULL | |
8149 | }; | |
8150 | ||
15817c7e | 8151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
8152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
8153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8154 | { |
8155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15817c7e | 8156 | result = (PyObject *)wxGridCellCoords_Get(arg1); |
d14a1e28 RD |
8157 | |
8158 | wxPyEndAllowThreads(__tstate); | |
8159 | if (PyErr_Occurred()) SWIG_fail; | |
8160 | } | |
8161 | resultobj = result; | |
8162 | return resultobj; | |
8163 | fail: | |
8164 | return NULL; | |
8165 | } | |
8166 | ||
8167 | ||
c370783e | 8168 | static PyObject * GridCellCoords_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8169 | PyObject *obj; |
8170 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8171 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellCoords, obj); | |
8172 | Py_INCREF(obj); | |
8173 | return Py_BuildValue((char *)""); | |
8174 | } | |
c370783e | 8175 | static PyObject *_wrap_new_Grid(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8176 | PyObject *resultobj; |
8177 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 8178 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8179 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8180 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8181 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8182 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8183 | long arg5 = (long) wxWANTS_CHARS ; | |
8184 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
8185 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8186 | wxGrid *result; | |
8187 | wxPoint temp3 ; | |
8188 | wxSize temp4 ; | |
b411df4a | 8189 | bool temp6 = false ; |
d14a1e28 | 8190 | PyObject * obj0 = 0 ; |
8edf1c75 | 8191 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8192 | PyObject * obj2 = 0 ; |
8193 | PyObject * obj3 = 0 ; | |
8edf1c75 | 8194 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
8195 | PyObject * obj5 = 0 ; |
8196 | char *kwnames[] = { | |
8197 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8198 | }; | |
8199 | ||
bfddbb17 | 8200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Grid",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
8201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
8202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 8203 | if (obj1) { |
c370783e | 8204 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
8205 | if (PyErr_Occurred()) SWIG_fail; |
8206 | } | |
d14a1e28 RD |
8207 | if (obj2) { |
8208 | { | |
8209 | arg3 = &temp3; | |
8210 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8211 | } | |
8212 | } | |
8213 | if (obj3) { | |
8214 | { | |
8215 | arg4 = &temp4; | |
8216 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8217 | } | |
8218 | } | |
8edf1c75 | 8219 | if (obj4) { |
c370783e | 8220 | arg5 = (long)SWIG_As_long(obj4); |
2f4c0a16 | 8221 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8222 | } |
d14a1e28 RD |
8223 | if (obj5) { |
8224 | { | |
8225 | arg6 = wxString_in_helper(obj5); | |
8226 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 8227 | temp6 = true; |
d14a1e28 RD |
8228 | } |
8229 | } | |
8230 | { | |
0439c23b | 8231 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8233 | result = (wxGrid *)new wxGrid(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8234 | ||
8235 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8236 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8237 | } |
b0f7404b | 8238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGrid, 1); |
d14a1e28 RD |
8239 | { |
8240 | if (temp6) | |
8241 | delete arg6; | |
8242 | } | |
8243 | return resultobj; | |
8244 | fail: | |
8245 | { | |
8246 | if (temp6) | |
8247 | delete arg6; | |
8248 | } | |
8249 | return NULL; | |
8250 | } | |
8251 | ||
8252 | ||
c370783e | 8253 | static PyObject *_wrap_new_PreGrid(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
8254 | PyObject *resultobj; |
8255 | wxGrid *result; | |
8256 | char *kwnames[] = { | |
8257 | NULL | |
8258 | }; | |
8259 | ||
8260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGrid",kwnames)) goto fail; | |
8261 | { | |
0439c23b | 8262 | if (!wxPyCheckForApp()) SWIG_fail; |
68e533f8 RD |
8263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8264 | result = (wxGrid *)new wxGrid(); | |
8265 | ||
8266 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8267 | if (PyErr_Occurred()) SWIG_fail; |
68e533f8 | 8268 | } |
b0f7404b | 8269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGrid, 1); |
68e533f8 RD |
8270 | return resultobj; |
8271 | fail: | |
8272 | return NULL; | |
8273 | } | |
8274 | ||
8275 | ||
c370783e | 8276 | static PyObject *_wrap_Grid_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
8277 | PyObject *resultobj; |
8278 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8279 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 8280 | int arg3 = (int) -1 ; |
68e533f8 RD |
8281 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8282 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8283 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8284 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8285 | long arg6 = (long) wxWANTS_CHARS ; | |
8286 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
8287 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8288 | bool result; | |
8289 | wxPoint temp4 ; | |
8290 | wxSize temp5 ; | |
b411df4a | 8291 | bool temp7 = false ; |
68e533f8 RD |
8292 | PyObject * obj0 = 0 ; |
8293 | PyObject * obj1 = 0 ; | |
8294 | PyObject * obj2 = 0 ; | |
8295 | PyObject * obj3 = 0 ; | |
8296 | PyObject * obj4 = 0 ; | |
8297 | PyObject * obj5 = 0 ; | |
8298 | PyObject * obj6 = 0 ; | |
8299 | char *kwnames[] = { | |
8300 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8301 | }; | |
8302 | ||
bfddbb17 | 8303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Grid_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
68e533f8 RD |
8304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8306 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 8308 | if (obj2) { |
c370783e | 8309 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
8310 | if (PyErr_Occurred()) SWIG_fail; |
8311 | } | |
68e533f8 RD |
8312 | if (obj3) { |
8313 | { | |
8314 | arg4 = &temp4; | |
8315 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8316 | } | |
8317 | } | |
8318 | if (obj4) { | |
8319 | { | |
8320 | arg5 = &temp5; | |
8321 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8322 | } | |
8323 | } | |
8324 | if (obj5) { | |
c370783e | 8325 | arg6 = (long)SWIG_As_long(obj5); |
68e533f8 RD |
8326 | if (PyErr_Occurred()) SWIG_fail; |
8327 | } | |
8328 | if (obj6) { | |
8329 | { | |
8330 | arg7 = wxString_in_helper(obj6); | |
8331 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 8332 | temp7 = true; |
68e533f8 RD |
8333 | } |
8334 | } | |
8335 | { | |
8336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8337 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8338 | ||
8339 | wxPyEndAllowThreads(__tstate); | |
8340 | if (PyErr_Occurred()) SWIG_fail; | |
8341 | } | |
8342 | { | |
8343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8344 | } | |
8345 | { | |
8346 | if (temp7) | |
8347 | delete arg7; | |
8348 | } | |
8349 | return resultobj; | |
8350 | fail: | |
8351 | { | |
8352 | if (temp7) | |
8353 | delete arg7; | |
8354 | } | |
8355 | return NULL; | |
8356 | } | |
8357 | ||
8358 | ||
c370783e | 8359 | static PyObject *_wrap_Grid_CreateGrid(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8360 | PyObject *resultobj; |
8361 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8362 | int arg2 ; | |
8363 | int arg3 ; | |
8364 | WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; | |
8365 | bool result; | |
8366 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8367 | PyObject * obj1 = 0 ; |
8368 | PyObject * obj2 = 0 ; | |
8369 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
8370 | char *kwnames[] = { |
8371 | (char *) "self",(char *) "numRows",(char *) "numCols",(char *) "selmode", NULL | |
8372 | }; | |
8373 | ||
8edf1c75 | 8374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_CreateGrid",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
8375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8377 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 8378 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8379 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 8380 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8381 | if (obj3) { |
c370783e | 8382 | arg4 = (WXGRIDSELECTIONMODES)SWIG_As_int(obj3); |
2f4c0a16 | 8383 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8384 | } |
d14a1e28 RD |
8385 | { |
8386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8387 | result = (bool)(arg1)->CreateGrid(arg2,arg3,arg4); | |
8388 | ||
8389 | wxPyEndAllowThreads(__tstate); | |
8390 | if (PyErr_Occurred()) SWIG_fail; | |
8391 | } | |
fbc46b20 RD |
8392 | { |
8393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8394 | } | |
d14a1e28 RD |
8395 | return resultobj; |
8396 | fail: | |
8397 | return NULL; | |
8398 | } | |
8399 | ||
8400 | ||
c370783e | 8401 | static PyObject *_wrap_Grid_SetSelectionMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8402 | PyObject *resultobj; |
8403 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8404 | WXGRIDSELECTIONMODES arg2 ; | |
8405 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8406 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8407 | char *kwnames[] = { |
8408 | (char *) "self",(char *) "selmode", NULL | |
8409 | }; | |
8410 | ||
8edf1c75 | 8411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8414 | arg2 = (WXGRIDSELECTIONMODES)SWIG_As_int(obj1); |
2f4c0a16 | 8415 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8416 | { |
8417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8418 | (arg1)->SetSelectionMode(arg2); | |
8419 | ||
8420 | wxPyEndAllowThreads(__tstate); | |
8421 | if (PyErr_Occurred()) SWIG_fail; | |
8422 | } | |
8423 | Py_INCREF(Py_None); resultobj = Py_None; | |
8424 | return resultobj; | |
8425 | fail: | |
8426 | return NULL; | |
8427 | } | |
8428 | ||
8429 | ||
c370783e | 8430 | static PyObject *_wrap_Grid_GetSelectionMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8431 | PyObject *resultobj; |
8432 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8433 | WXGRIDSELECTIONMODES result; | |
8434 | PyObject * obj0 = 0 ; | |
8435 | char *kwnames[] = { | |
8436 | (char *) "self", NULL | |
8437 | }; | |
8438 | ||
8439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8442 | { |
8443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8444 | result = (WXGRIDSELECTIONMODES)(arg1)->GetSelectionMode(); | |
8445 | ||
8446 | wxPyEndAllowThreads(__tstate); | |
8447 | if (PyErr_Occurred()) SWIG_fail; | |
8448 | } | |
c370783e | 8449 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8450 | return resultobj; |
8451 | fail: | |
8452 | return NULL; | |
8453 | } | |
8454 | ||
8455 | ||
c370783e | 8456 | static PyObject *_wrap_Grid_GetNumberRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8457 | PyObject *resultobj; |
8458 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8459 | int result; | |
8460 | PyObject * obj0 = 0 ; | |
8461 | char *kwnames[] = { | |
8462 | (char *) "self", NULL | |
8463 | }; | |
8464 | ||
8465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberRows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8468 | { |
8469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8470 | result = (int)(arg1)->GetNumberRows(); | |
8471 | ||
8472 | wxPyEndAllowThreads(__tstate); | |
8473 | if (PyErr_Occurred()) SWIG_fail; | |
8474 | } | |
c370783e | 8475 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8476 | return resultobj; |
8477 | fail: | |
8478 | return NULL; | |
8479 | } | |
8480 | ||
8481 | ||
c370783e | 8482 | static PyObject *_wrap_Grid_GetNumberCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8483 | PyObject *resultobj; |
8484 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8485 | int result; | |
8486 | PyObject * obj0 = 0 ; | |
8487 | char *kwnames[] = { | |
8488 | (char *) "self", NULL | |
8489 | }; | |
8490 | ||
8491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberCols",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8494 | { |
8495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8496 | result = (int)(arg1)->GetNumberCols(); | |
8497 | ||
8498 | wxPyEndAllowThreads(__tstate); | |
8499 | if (PyErr_Occurred()) SWIG_fail; | |
8500 | } | |
c370783e | 8501 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
8502 | return resultobj; |
8503 | fail: | |
8504 | return NULL; | |
8505 | } | |
8506 | ||
8507 | ||
c370783e | 8508 | static PyObject *_wrap_Grid_ProcessTableMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8509 | PyObject *resultobj; |
8510 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8511 | wxGridTableMessage *arg2 = 0 ; | |
8512 | bool result; | |
8513 | PyObject * obj0 = 0 ; | |
8514 | PyObject * obj1 = 0 ; | |
8515 | char *kwnames[] = { | |
8516 | (char *) "self","arg2", NULL | |
8517 | }; | |
8518 | ||
8519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_ProcessTableMessage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableMessage, | |
8523 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8524 | SWIG_fail; | |
d14a1e28 | 8525 | if (arg2 == NULL) { |
2f4c0a16 RD |
8526 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8527 | SWIG_fail; | |
d14a1e28 RD |
8528 | } |
8529 | { | |
8530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8531 | result = (bool)(arg1)->ProcessTableMessage(*arg2); | |
8532 | ||
8533 | wxPyEndAllowThreads(__tstate); | |
8534 | if (PyErr_Occurred()) SWIG_fail; | |
8535 | } | |
fbc46b20 RD |
8536 | { |
8537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8538 | } | |
d14a1e28 RD |
8539 | return resultobj; |
8540 | fail: | |
8541 | return NULL; | |
8542 | } | |
8543 | ||
8544 | ||
c370783e | 8545 | static PyObject *_wrap_Grid_GetTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8546 | PyObject *resultobj; |
8547 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8548 | wxGridTableBase *result; | |
8549 | PyObject * obj0 = 0 ; | |
8550 | char *kwnames[] = { | |
8551 | (char *) "self", NULL | |
8552 | }; | |
8553 | ||
8554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetTable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8557 | { |
8558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8559 | result = (wxGridTableBase *)((wxGrid const *)arg1)->GetTable(); | |
8560 | ||
8561 | wxPyEndAllowThreads(__tstate); | |
8562 | if (PyErr_Occurred()) SWIG_fail; | |
8563 | } | |
8564 | { | |
412d302d | 8565 | resultobj = wxPyMake_wxGridTableBase(result, 0); |
d14a1e28 RD |
8566 | } |
8567 | return resultobj; | |
8568 | fail: | |
8569 | return NULL; | |
8570 | } | |
8571 | ||
8572 | ||
c370783e | 8573 | static PyObject *_wrap_Grid_SetTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8574 | PyObject *resultobj; |
8575 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8576 | wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; | |
b411df4a | 8577 | bool arg3 = (bool) false ; |
d14a1e28 RD |
8578 | WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; |
8579 | bool result; | |
8580 | PyObject * obj0 = 0 ; | |
8581 | PyObject * obj1 = 0 ; | |
8582 | PyObject * obj2 = 0 ; | |
8edf1c75 | 8583 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
8584 | char *kwnames[] = { |
8585 | (char *) "self",(char *) "table",(char *) "takeOwnership",(char *) "selmode", NULL | |
8586 | }; | |
8587 | ||
8edf1c75 | 8588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetTable",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
8589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8591 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableBase, | |
8592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8593 | if (obj2) { |
c370783e | 8594 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 8595 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8596 | } |
8597 | if (obj3) { | |
c370783e | 8598 | arg4 = (WXGRIDSELECTIONMODES)SWIG_As_int(obj3); |
2f4c0a16 | 8599 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8600 | } |
8601 | { | |
8602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8603 | result = (bool)(arg1)->SetTable(arg2,arg3,arg4); | |
8604 | ||
8605 | wxPyEndAllowThreads(__tstate); | |
8606 | if (PyErr_Occurred()) SWIG_fail; | |
8607 | } | |
fbc46b20 RD |
8608 | { |
8609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8610 | } | |
d14a1e28 RD |
8611 | return resultobj; |
8612 | fail: | |
8613 | return NULL; | |
8614 | } | |
8615 | ||
8616 | ||
c370783e | 8617 | static PyObject *_wrap_Grid_ClearGrid(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8618 | PyObject *resultobj; |
8619 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8620 | PyObject * obj0 = 0 ; | |
8621 | char *kwnames[] = { | |
8622 | (char *) "self", NULL | |
8623 | }; | |
8624 | ||
8625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearGrid",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8628 | { |
8629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8630 | (arg1)->ClearGrid(); | |
8631 | ||
8632 | wxPyEndAllowThreads(__tstate); | |
8633 | if (PyErr_Occurred()) SWIG_fail; | |
8634 | } | |
8635 | Py_INCREF(Py_None); resultobj = Py_None; | |
8636 | return resultobj; | |
8637 | fail: | |
8638 | return NULL; | |
8639 | } | |
8640 | ||
8641 | ||
c370783e | 8642 | static PyObject *_wrap_Grid_InsertRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8643 | PyObject *resultobj; |
8644 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8645 | int arg2 = (int) 0 ; | |
8646 | int arg3 = (int) 1 ; | |
b411df4a | 8647 | bool arg4 = (bool) true ; |
d14a1e28 RD |
8648 | bool result; |
8649 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8650 | PyObject * obj1 = 0 ; |
8651 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8652 | PyObject * obj3 = 0 ; |
8653 | char *kwnames[] = { | |
8654 | (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL | |
8655 | }; | |
8656 | ||
8edf1c75 | 8657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
8658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 8660 | if (obj1) { |
c370783e | 8661 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 8662 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8663 | } |
8664 | if (obj2) { | |
c370783e | 8665 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 8666 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8667 | } |
d14a1e28 | 8668 | if (obj3) { |
c370783e | 8669 | arg4 = (bool)SWIG_As_bool(obj3); |
2f4c0a16 | 8670 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8671 | } |
8672 | { | |
8673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8674 | result = (bool)(arg1)->InsertRows(arg2,arg3,arg4); | |
8675 | ||
8676 | wxPyEndAllowThreads(__tstate); | |
8677 | if (PyErr_Occurred()) SWIG_fail; | |
8678 | } | |
fbc46b20 RD |
8679 | { |
8680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8681 | } | |
d14a1e28 RD |
8682 | return resultobj; |
8683 | fail: | |
8684 | return NULL; | |
8685 | } | |
8686 | ||
8687 | ||
c370783e | 8688 | static PyObject *_wrap_Grid_AppendRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8689 | PyObject *resultobj; |
8690 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8691 | int arg2 = (int) 1 ; | |
b411df4a | 8692 | bool arg3 = (bool) true ; |
d14a1e28 RD |
8693 | bool result; |
8694 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8695 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8696 | PyObject * obj2 = 0 ; |
8697 | char *kwnames[] = { | |
8698 | (char *) "self",(char *) "numRows",(char *) "updateLabels", NULL | |
8699 | }; | |
8700 | ||
8edf1c75 | 8701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendRows",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 8704 | if (obj1) { |
c370783e | 8705 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 8706 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8707 | } |
d14a1e28 | 8708 | if (obj2) { |
c370783e | 8709 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 8710 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8711 | } |
8712 | { | |
8713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8714 | result = (bool)(arg1)->AppendRows(arg2,arg3); | |
8715 | ||
8716 | wxPyEndAllowThreads(__tstate); | |
8717 | if (PyErr_Occurred()) SWIG_fail; | |
8718 | } | |
fbc46b20 RD |
8719 | { |
8720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8721 | } | |
d14a1e28 RD |
8722 | return resultobj; |
8723 | fail: | |
8724 | return NULL; | |
8725 | } | |
8726 | ||
8727 | ||
c370783e | 8728 | static PyObject *_wrap_Grid_DeleteRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8729 | PyObject *resultobj; |
8730 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8731 | int arg2 = (int) 0 ; | |
8732 | int arg3 = (int) 1 ; | |
b411df4a | 8733 | bool arg4 = (bool) true ; |
d14a1e28 RD |
8734 | bool result; |
8735 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8736 | PyObject * obj1 = 0 ; |
8737 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8738 | PyObject * obj3 = 0 ; |
8739 | char *kwnames[] = { | |
8740 | (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL | |
8741 | }; | |
8742 | ||
8edf1c75 | 8743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
8744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 8746 | if (obj1) { |
c370783e | 8747 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 8748 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8749 | } |
8750 | if (obj2) { | |
c370783e | 8751 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 8752 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8753 | } |
d14a1e28 | 8754 | if (obj3) { |
c370783e | 8755 | arg4 = (bool)SWIG_As_bool(obj3); |
2f4c0a16 | 8756 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8757 | } |
8758 | { | |
8759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8760 | result = (bool)(arg1)->DeleteRows(arg2,arg3,arg4); | |
8761 | ||
8762 | wxPyEndAllowThreads(__tstate); | |
8763 | if (PyErr_Occurred()) SWIG_fail; | |
8764 | } | |
fbc46b20 RD |
8765 | { |
8766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8767 | } | |
d14a1e28 RD |
8768 | return resultobj; |
8769 | fail: | |
8770 | return NULL; | |
8771 | } | |
8772 | ||
8773 | ||
c370783e | 8774 | static PyObject *_wrap_Grid_InsertCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8775 | PyObject *resultobj; |
8776 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8777 | int arg2 = (int) 0 ; | |
8778 | int arg3 = (int) 1 ; | |
b411df4a | 8779 | bool arg4 = (bool) true ; |
d14a1e28 RD |
8780 | bool result; |
8781 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8782 | PyObject * obj1 = 0 ; |
8783 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8784 | PyObject * obj3 = 0 ; |
8785 | char *kwnames[] = { | |
8786 | (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL | |
8787 | }; | |
8788 | ||
8edf1c75 | 8789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
8790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 8792 | if (obj1) { |
c370783e | 8793 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 8794 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8795 | } |
8796 | if (obj2) { | |
c370783e | 8797 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 8798 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8799 | } |
d14a1e28 | 8800 | if (obj3) { |
c370783e | 8801 | arg4 = (bool)SWIG_As_bool(obj3); |
2f4c0a16 | 8802 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8803 | } |
8804 | { | |
8805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8806 | result = (bool)(arg1)->InsertCols(arg2,arg3,arg4); | |
8807 | ||
8808 | wxPyEndAllowThreads(__tstate); | |
8809 | if (PyErr_Occurred()) SWIG_fail; | |
8810 | } | |
fbc46b20 RD |
8811 | { |
8812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8813 | } | |
d14a1e28 RD |
8814 | return resultobj; |
8815 | fail: | |
8816 | return NULL; | |
8817 | } | |
8818 | ||
8819 | ||
c370783e | 8820 | static PyObject *_wrap_Grid_AppendCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8821 | PyObject *resultobj; |
8822 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8823 | int arg2 = (int) 1 ; | |
b411df4a | 8824 | bool arg3 = (bool) true ; |
d14a1e28 RD |
8825 | bool result; |
8826 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8827 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8828 | PyObject * obj2 = 0 ; |
8829 | char *kwnames[] = { | |
8830 | (char *) "self",(char *) "numCols",(char *) "updateLabels", NULL | |
8831 | }; | |
8832 | ||
8edf1c75 | 8833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 8836 | if (obj1) { |
c370783e | 8837 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 8838 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8839 | } |
d14a1e28 | 8840 | if (obj2) { |
c370783e | 8841 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 8842 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8843 | } |
8844 | { | |
8845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8846 | result = (bool)(arg1)->AppendCols(arg2,arg3); | |
8847 | ||
8848 | wxPyEndAllowThreads(__tstate); | |
8849 | if (PyErr_Occurred()) SWIG_fail; | |
8850 | } | |
fbc46b20 RD |
8851 | { |
8852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8853 | } | |
d14a1e28 RD |
8854 | return resultobj; |
8855 | fail: | |
8856 | return NULL; | |
8857 | } | |
8858 | ||
8859 | ||
c370783e | 8860 | static PyObject *_wrap_Grid_DeleteCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8861 | PyObject *resultobj; |
8862 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8863 | int arg2 = (int) 0 ; | |
8864 | int arg3 = (int) 1 ; | |
b411df4a | 8865 | bool arg4 = (bool) true ; |
d14a1e28 RD |
8866 | bool result; |
8867 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8868 | PyObject * obj1 = 0 ; |
8869 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8870 | PyObject * obj3 = 0 ; |
8871 | char *kwnames[] = { | |
8872 | (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL | |
8873 | }; | |
8874 | ||
8edf1c75 | 8875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
8876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 8878 | if (obj1) { |
c370783e | 8879 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 8880 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8881 | } |
8882 | if (obj2) { | |
c370783e | 8883 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 8884 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8885 | } |
d14a1e28 | 8886 | if (obj3) { |
c370783e | 8887 | arg4 = (bool)SWIG_As_bool(obj3); |
2f4c0a16 | 8888 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
8889 | } |
8890 | { | |
8891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8892 | result = (bool)(arg1)->DeleteCols(arg2,arg3,arg4); | |
8893 | ||
8894 | wxPyEndAllowThreads(__tstate); | |
8895 | if (PyErr_Occurred()) SWIG_fail; | |
8896 | } | |
fbc46b20 RD |
8897 | { |
8898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8899 | } | |
d14a1e28 RD |
8900 | return resultobj; |
8901 | fail: | |
8902 | return NULL; | |
8903 | } | |
8904 | ||
8905 | ||
c370783e | 8906 | static PyObject *_wrap_Grid_DrawCellHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8907 | PyObject *resultobj; |
8908 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8909 | wxDC *arg2 = 0 ; | |
8910 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
8911 | PyObject * obj0 = 0 ; | |
8912 | PyObject * obj1 = 0 ; | |
8913 | PyObject * obj2 = 0 ; | |
8914 | char *kwnames[] = { | |
8915 | (char *) "self",(char *) "dc",(char *) "attr", NULL | |
8916 | }; | |
8917 | ||
8918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DrawCellHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
8919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8922 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8923 | SWIG_fail; | |
d14a1e28 | 8924 | if (arg2 == NULL) { |
2f4c0a16 RD |
8925 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8926 | SWIG_fail; | |
d14a1e28 | 8927 | } |
2f4c0a16 RD |
8928 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
8929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8930 | { |
8931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8932 | (arg1)->DrawCellHighlight(*arg2,(wxGridCellAttr const *)arg3); | |
8933 | ||
8934 | wxPyEndAllowThreads(__tstate); | |
8935 | if (PyErr_Occurred()) SWIG_fail; | |
8936 | } | |
8937 | Py_INCREF(Py_None); resultobj = Py_None; | |
8938 | return resultobj; | |
8939 | fail: | |
8940 | return NULL; | |
8941 | } | |
8942 | ||
8943 | ||
c370783e | 8944 | static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8945 | PyObject *resultobj; |
8946 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8947 | wxDC *arg2 = 0 ; | |
8948 | wxString *arg3 = 0 ; | |
8949 | wxRect *arg4 = 0 ; | |
8950 | int arg5 = (int) wxLEFT ; | |
8951 | int arg6 = (int) wxTOP ; | |
8952 | int arg7 = (int) wxHORIZONTAL ; | |
b411df4a | 8953 | bool temp3 = false ; |
d14a1e28 RD |
8954 | wxRect temp4 ; |
8955 | PyObject * obj0 = 0 ; | |
8956 | PyObject * obj1 = 0 ; | |
8957 | PyObject * obj2 = 0 ; | |
8958 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
8959 | PyObject * obj4 = 0 ; |
8960 | PyObject * obj5 = 0 ; | |
8961 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
8962 | char *kwnames[] = { |
8963 | (char *) "self",(char *) "dc","arg3","arg4",(char *) "horizontalAlignment",(char *) "verticalAlignment",(char *) "textOrientation", NULL | |
8964 | }; | |
8965 | ||
8edf1c75 | 8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:Grid_DrawTextRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
8967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8969 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8970 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8971 | SWIG_fail; | |
d14a1e28 | 8972 | if (arg2 == NULL) { |
2f4c0a16 RD |
8973 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8974 | SWIG_fail; | |
d14a1e28 RD |
8975 | } |
8976 | { | |
8977 | arg3 = wxString_in_helper(obj2); | |
8978 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 8979 | temp3 = true; |
d14a1e28 RD |
8980 | } |
8981 | { | |
8982 | arg4 = &temp4; | |
8983 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
8984 | } | |
8edf1c75 | 8985 | if (obj4) { |
c370783e | 8986 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 8987 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8988 | } |
8989 | if (obj5) { | |
c370783e | 8990 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 8991 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
8992 | } |
8993 | if (obj6) { | |
c370783e | 8994 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 8995 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 8996 | } |
d14a1e28 RD |
8997 | { |
8998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8999 | (arg1)->DrawTextRectangle(*arg2,(wxString const &)*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); | |
9000 | ||
9001 | wxPyEndAllowThreads(__tstate); | |
9002 | if (PyErr_Occurred()) SWIG_fail; | |
9003 | } | |
9004 | Py_INCREF(Py_None); resultobj = Py_None; | |
9005 | { | |
9006 | if (temp3) | |
9007 | delete arg3; | |
9008 | } | |
9009 | return resultobj; | |
9010 | fail: | |
9011 | { | |
9012 | if (temp3) | |
9013 | delete arg3; | |
9014 | } | |
9015 | return NULL; | |
9016 | } | |
9017 | ||
9018 | ||
c370783e | 9019 | static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9020 | PyObject *resultobj; |
9021 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9022 | wxDC *arg2 = 0 ; | |
9023 | wxArrayString *arg3 = 0 ; | |
9024 | long *arg4 = (long *) 0 ; | |
9025 | long *arg5 = (long *) 0 ; | |
b411df4a | 9026 | bool temp3 = false ; |
d14a1e28 | 9027 | long temp4 ; |
c370783e | 9028 | int res4 = 0 ; |
d14a1e28 | 9029 | long temp5 ; |
c370783e | 9030 | int res5 = 0 ; |
d14a1e28 RD |
9031 | PyObject * obj0 = 0 ; |
9032 | PyObject * obj1 = 0 ; | |
9033 | PyObject * obj2 = 0 ; | |
9034 | char *kwnames[] = { | |
9035 | (char *) "self",(char *) "dc",(char *) "lines", NULL | |
9036 | }; | |
9037 | ||
c370783e RD |
9038 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
9039 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d14a1e28 | 9040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetTextBoxSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9043 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
9044 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9045 | SWIG_fail; | |
d14a1e28 | 9046 | if (arg2 == NULL) { |
2f4c0a16 RD |
9047 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9048 | SWIG_fail; | |
d14a1e28 RD |
9049 | } |
9050 | { | |
9051 | if (! PySequence_Check(obj2)) { | |
9052 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
9053 | SWIG_fail; | |
9054 | } | |
9055 | arg3 = new wxArrayString; | |
b411df4a | 9056 | temp3 = true; |
d14a1e28 RD |
9057 | int i, len=PySequence_Length(obj2); |
9058 | for (i=0; i<len; i++) { | |
9059 | PyObject* item = PySequence_GetItem(obj2, i); | |
9060 | #if wxUSE_UNICODE | |
9061 | PyObject* str = PyObject_Unicode(item); | |
9062 | #else | |
9063 | PyObject* str = PyObject_Str(item); | |
9064 | #endif | |
377d47bd | 9065 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9066 | arg3->Add(Py2wxString(str)); |
9067 | Py_DECREF(item); | |
9068 | Py_DECREF(str); | |
9069 | } | |
9070 | } | |
9071 | { | |
9072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9073 | (arg1)->GetTextBoxSize(*arg2,*arg3,arg4,arg5); | |
9074 | ||
9075 | wxPyEndAllowThreads(__tstate); | |
9076 | if (PyErr_Occurred()) SWIG_fail; | |
9077 | } | |
9078 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
9079 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
9080 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
9081 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
9082 | SWIG_From_long((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_long, 0))); | |
d14a1e28 | 9083 | { |
0ffb2aa6 | 9084 | if (temp3) delete arg3; |
d14a1e28 RD |
9085 | } |
9086 | return resultobj; | |
9087 | fail: | |
9088 | { | |
0ffb2aa6 | 9089 | if (temp3) delete arg3; |
d14a1e28 RD |
9090 | } |
9091 | return NULL; | |
9092 | } | |
9093 | ||
9094 | ||
c370783e | 9095 | static PyObject *_wrap_Grid_BeginBatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9096 | PyObject *resultobj; |
9097 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9098 | PyObject * obj0 = 0 ; | |
9099 | char *kwnames[] = { | |
9100 | (char *) "self", NULL | |
9101 | }; | |
9102 | ||
9103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_BeginBatch",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9106 | { |
9107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9108 | (arg1)->BeginBatch(); | |
9109 | ||
9110 | wxPyEndAllowThreads(__tstate); | |
9111 | if (PyErr_Occurred()) SWIG_fail; | |
9112 | } | |
9113 | Py_INCREF(Py_None); resultobj = Py_None; | |
9114 | return resultobj; | |
9115 | fail: | |
9116 | return NULL; | |
9117 | } | |
9118 | ||
9119 | ||
c370783e | 9120 | static PyObject *_wrap_Grid_EndBatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9121 | PyObject *resultobj; |
9122 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9123 | PyObject * obj0 = 0 ; | |
9124 | char *kwnames[] = { | |
9125 | (char *) "self", NULL | |
9126 | }; | |
9127 | ||
9128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_EndBatch",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9131 | { |
9132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9133 | (arg1)->EndBatch(); | |
9134 | ||
9135 | wxPyEndAllowThreads(__tstate); | |
9136 | if (PyErr_Occurred()) SWIG_fail; | |
9137 | } | |
9138 | Py_INCREF(Py_None); resultobj = Py_None; | |
9139 | return resultobj; | |
9140 | fail: | |
9141 | return NULL; | |
9142 | } | |
9143 | ||
9144 | ||
c370783e | 9145 | static PyObject *_wrap_Grid_GetBatchCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9146 | PyObject *resultobj; |
9147 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9148 | int result; | |
9149 | PyObject * obj0 = 0 ; | |
9150 | char *kwnames[] = { | |
9151 | (char *) "self", NULL | |
9152 | }; | |
9153 | ||
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetBatchCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9157 | { |
9158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9159 | result = (int)(arg1)->GetBatchCount(); | |
9160 | ||
9161 | wxPyEndAllowThreads(__tstate); | |
9162 | if (PyErr_Occurred()) SWIG_fail; | |
9163 | } | |
c370783e | 9164 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9165 | return resultobj; |
9166 | fail: | |
9167 | return NULL; | |
9168 | } | |
9169 | ||
9170 | ||
c370783e | 9171 | static PyObject *_wrap_Grid_ForceRefresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9172 | PyObject *resultobj; |
9173 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9174 | PyObject * obj0 = 0 ; | |
9175 | char *kwnames[] = { | |
9176 | (char *) "self", NULL | |
9177 | }; | |
9178 | ||
9179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ForceRefresh",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9182 | { |
9183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9184 | (arg1)->ForceRefresh(); | |
9185 | ||
9186 | wxPyEndAllowThreads(__tstate); | |
9187 | if (PyErr_Occurred()) SWIG_fail; | |
9188 | } | |
9189 | Py_INCREF(Py_None); resultobj = Py_None; | |
9190 | return resultobj; | |
9191 | fail: | |
9192 | return NULL; | |
9193 | } | |
9194 | ||
9195 | ||
c370783e | 9196 | static PyObject *_wrap_Grid_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9197 | PyObject *resultobj; |
9198 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9199 | bool result; | |
9200 | PyObject * obj0 = 0 ; | |
9201 | char *kwnames[] = { | |
9202 | (char *) "self", NULL | |
9203 | }; | |
9204 | ||
9205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsEditable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9208 | { |
9209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9210 | result = (bool)(arg1)->IsEditable(); | |
9211 | ||
9212 | wxPyEndAllowThreads(__tstate); | |
9213 | if (PyErr_Occurred()) SWIG_fail; | |
9214 | } | |
fbc46b20 RD |
9215 | { |
9216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9217 | } | |
d14a1e28 RD |
9218 | return resultobj; |
9219 | fail: | |
9220 | return NULL; | |
9221 | } | |
9222 | ||
9223 | ||
c370783e | 9224 | static PyObject *_wrap_Grid_EnableEditing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9225 | PyObject *resultobj; |
9226 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9227 | bool arg2 ; | |
9228 | PyObject * obj0 = 0 ; | |
9229 | PyObject * obj1 = 0 ; | |
9230 | char *kwnames[] = { | |
9231 | (char *) "self",(char *) "edit", NULL | |
9232 | }; | |
9233 | ||
9234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_EnableEditing",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9237 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 9238 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9239 | { |
9240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9241 | (arg1)->EnableEditing(arg2); | |
9242 | ||
9243 | wxPyEndAllowThreads(__tstate); | |
9244 | if (PyErr_Occurred()) SWIG_fail; | |
9245 | } | |
9246 | Py_INCREF(Py_None); resultobj = Py_None; | |
9247 | return resultobj; | |
9248 | fail: | |
9249 | return NULL; | |
9250 | } | |
9251 | ||
9252 | ||
c370783e | 9253 | static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9254 | PyObject *resultobj; |
9255 | wxGrid *arg1 = (wxGrid *) 0 ; | |
b411df4a | 9256 | bool arg2 = (bool) true ; |
d14a1e28 RD |
9257 | PyObject * obj0 = 0 ; |
9258 | PyObject * obj1 = 0 ; | |
9259 | char *kwnames[] = { | |
9260 | (char *) "self",(char *) "enable", NULL | |
9261 | }; | |
9262 | ||
9263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableCellEditControl",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9266 | if (obj1) { |
c370783e | 9267 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 9268 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9269 | } |
9270 | { | |
9271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9272 | (arg1)->EnableCellEditControl(arg2); | |
9273 | ||
9274 | wxPyEndAllowThreads(__tstate); | |
9275 | if (PyErr_Occurred()) SWIG_fail; | |
9276 | } | |
9277 | Py_INCREF(Py_None); resultobj = Py_None; | |
9278 | return resultobj; | |
9279 | fail: | |
9280 | return NULL; | |
9281 | } | |
9282 | ||
9283 | ||
c370783e | 9284 | static PyObject *_wrap_Grid_DisableCellEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9285 | PyObject *resultobj; |
9286 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9287 | PyObject * obj0 = 0 ; | |
9288 | char *kwnames[] = { | |
9289 | (char *) "self", NULL | |
9290 | }; | |
9291 | ||
9292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableCellEditControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9295 | { |
9296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9297 | (arg1)->DisableCellEditControl(); | |
9298 | ||
9299 | wxPyEndAllowThreads(__tstate); | |
9300 | if (PyErr_Occurred()) SWIG_fail; | |
9301 | } | |
9302 | Py_INCREF(Py_None); resultobj = Py_None; | |
9303 | return resultobj; | |
9304 | fail: | |
9305 | return NULL; | |
9306 | } | |
9307 | ||
9308 | ||
c370783e | 9309 | static PyObject *_wrap_Grid_CanEnableCellControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9310 | PyObject *resultobj; |
9311 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9312 | bool result; | |
9313 | PyObject * obj0 = 0 ; | |
9314 | char *kwnames[] = { | |
9315 | (char *) "self", NULL | |
9316 | }; | |
9317 | ||
9318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanEnableCellControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9321 | { |
9322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9323 | result = (bool)((wxGrid const *)arg1)->CanEnableCellControl(); | |
9324 | ||
9325 | wxPyEndAllowThreads(__tstate); | |
9326 | if (PyErr_Occurred()) SWIG_fail; | |
9327 | } | |
fbc46b20 RD |
9328 | { |
9329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9330 | } | |
d14a1e28 RD |
9331 | return resultobj; |
9332 | fail: | |
9333 | return NULL; | |
9334 | } | |
9335 | ||
9336 | ||
c370783e | 9337 | static PyObject *_wrap_Grid_IsCellEditControlEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9338 | PyObject *resultobj; |
9339 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9340 | bool result; | |
9341 | PyObject * obj0 = 0 ; | |
9342 | char *kwnames[] = { | |
9343 | (char *) "self", NULL | |
9344 | }; | |
9345 | ||
9346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9349 | { |
9350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9351 | result = (bool)((wxGrid const *)arg1)->IsCellEditControlEnabled(); | |
9352 | ||
9353 | wxPyEndAllowThreads(__tstate); | |
9354 | if (PyErr_Occurred()) SWIG_fail; | |
9355 | } | |
fbc46b20 RD |
9356 | { |
9357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9358 | } | |
d14a1e28 RD |
9359 | return resultobj; |
9360 | fail: | |
9361 | return NULL; | |
9362 | } | |
9363 | ||
9364 | ||
c370783e | 9365 | static PyObject *_wrap_Grid_IsCellEditControlShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9366 | PyObject *resultobj; |
9367 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9368 | bool result; | |
9369 | PyObject * obj0 = 0 ; | |
9370 | char *kwnames[] = { | |
9371 | (char *) "self", NULL | |
9372 | }; | |
9373 | ||
9374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlShown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9377 | { |
9378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9379 | result = (bool)((wxGrid const *)arg1)->IsCellEditControlShown(); | |
9380 | ||
9381 | wxPyEndAllowThreads(__tstate); | |
9382 | if (PyErr_Occurred()) SWIG_fail; | |
9383 | } | |
fbc46b20 RD |
9384 | { |
9385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9386 | } | |
d14a1e28 RD |
9387 | return resultobj; |
9388 | fail: | |
9389 | return NULL; | |
9390 | } | |
9391 | ||
9392 | ||
c370783e | 9393 | static PyObject *_wrap_Grid_IsCurrentCellReadOnly(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9394 | PyObject *resultobj; |
9395 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9396 | bool result; | |
9397 | PyObject * obj0 = 0 ; | |
9398 | char *kwnames[] = { | |
9399 | (char *) "self", NULL | |
9400 | }; | |
9401 | ||
9402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCurrentCellReadOnly",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9405 | { |
9406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9407 | result = (bool)((wxGrid const *)arg1)->IsCurrentCellReadOnly(); | |
9408 | ||
9409 | wxPyEndAllowThreads(__tstate); | |
9410 | if (PyErr_Occurred()) SWIG_fail; | |
9411 | } | |
fbc46b20 RD |
9412 | { |
9413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9414 | } | |
d14a1e28 RD |
9415 | return resultobj; |
9416 | fail: | |
9417 | return NULL; | |
9418 | } | |
9419 | ||
9420 | ||
c370783e | 9421 | static PyObject *_wrap_Grid_ShowCellEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9422 | PyObject *resultobj; |
9423 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9424 | PyObject * obj0 = 0 ; | |
9425 | char *kwnames[] = { | |
9426 | (char *) "self", NULL | |
9427 | }; | |
9428 | ||
9429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ShowCellEditControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9432 | { |
9433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9434 | (arg1)->ShowCellEditControl(); | |
9435 | ||
9436 | wxPyEndAllowThreads(__tstate); | |
9437 | if (PyErr_Occurred()) SWIG_fail; | |
9438 | } | |
9439 | Py_INCREF(Py_None); resultobj = Py_None; | |
9440 | return resultobj; | |
9441 | fail: | |
9442 | return NULL; | |
9443 | } | |
9444 | ||
9445 | ||
c370783e | 9446 | static PyObject *_wrap_Grid_HideCellEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9447 | PyObject *resultobj; |
9448 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9449 | PyObject * obj0 = 0 ; | |
9450 | char *kwnames[] = { | |
9451 | (char *) "self", NULL | |
9452 | }; | |
9453 | ||
9454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_HideCellEditControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9457 | { |
9458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9459 | (arg1)->HideCellEditControl(); | |
9460 | ||
9461 | wxPyEndAllowThreads(__tstate); | |
9462 | if (PyErr_Occurred()) SWIG_fail; | |
9463 | } | |
9464 | Py_INCREF(Py_None); resultobj = Py_None; | |
9465 | return resultobj; | |
9466 | fail: | |
9467 | return NULL; | |
9468 | } | |
9469 | ||
9470 | ||
c370783e | 9471 | static PyObject *_wrap_Grid_SaveEditControlValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9472 | PyObject *resultobj; |
9473 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9474 | PyObject * obj0 = 0 ; | |
9475 | char *kwnames[] = { | |
9476 | (char *) "self", NULL | |
9477 | }; | |
9478 | ||
9479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SaveEditControlValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9482 | { |
9483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9484 | (arg1)->SaveEditControlValue(); | |
9485 | ||
9486 | wxPyEndAllowThreads(__tstate); | |
9487 | if (PyErr_Occurred()) SWIG_fail; | |
9488 | } | |
9489 | Py_INCREF(Py_None); resultobj = Py_None; | |
9490 | return resultobj; | |
9491 | fail: | |
9492 | return NULL; | |
9493 | } | |
9494 | ||
9495 | ||
c370783e | 9496 | static PyObject *_wrap_Grid_XYToCell(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9497 | PyObject *resultobj; |
9498 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9499 | int arg2 ; | |
9500 | int arg3 ; | |
9501 | wxGridCellCoords result; | |
9502 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9503 | PyObject * obj1 = 0 ; |
9504 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9505 | char *kwnames[] = { |
9506 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9507 | }; | |
9508 | ||
8edf1c75 | 9509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_XYToCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9512 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 9513 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9514 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 9515 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9516 | { |
9517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9518 | result = wxGrid_XYToCell(arg1,arg2,arg3); | |
9519 | ||
9520 | wxPyEndAllowThreads(__tstate); | |
9521 | if (PyErr_Occurred()) SWIG_fail; | |
9522 | } | |
9523 | { | |
9524 | wxGridCellCoords * resultptr; | |
9525 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
2f4c0a16 | 9526 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1); |
d14a1e28 RD |
9527 | } |
9528 | return resultobj; | |
9529 | fail: | |
9530 | return NULL; | |
9531 | } | |
9532 | ||
9533 | ||
c370783e | 9534 | static PyObject *_wrap_Grid_YToRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9535 | PyObject *resultobj; |
9536 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9537 | int arg2 ; | |
9538 | int result; | |
9539 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9540 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9541 | char *kwnames[] = { |
9542 | (char *) "self",(char *) "y", NULL | |
9543 | }; | |
9544 | ||
8edf1c75 | 9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToRow",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9548 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 9549 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9550 | { |
9551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9552 | result = (int)(arg1)->YToRow(arg2); | |
9553 | ||
9554 | wxPyEndAllowThreads(__tstate); | |
9555 | if (PyErr_Occurred()) SWIG_fail; | |
9556 | } | |
c370783e | 9557 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9558 | return resultobj; |
9559 | fail: | |
9560 | return NULL; | |
9561 | } | |
9562 | ||
9563 | ||
c370783e | 9564 | static PyObject *_wrap_Grid_XToCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9565 | PyObject *resultobj; |
9566 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9567 | int arg2 ; | |
9568 | int result; | |
9569 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9570 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9571 | char *kwnames[] = { |
9572 | (char *) "self",(char *) "x", NULL | |
9573 | }; | |
9574 | ||
8edf1c75 | 9575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToCol",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9578 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 9579 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9580 | { |
9581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9582 | result = (int)(arg1)->XToCol(arg2); | |
9583 | ||
9584 | wxPyEndAllowThreads(__tstate); | |
9585 | if (PyErr_Occurred()) SWIG_fail; | |
9586 | } | |
c370783e | 9587 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9588 | return resultobj; |
9589 | fail: | |
9590 | return NULL; | |
9591 | } | |
9592 | ||
9593 | ||
c370783e | 9594 | static PyObject *_wrap_Grid_YToEdgeOfRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9595 | PyObject *resultobj; |
9596 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9597 | int arg2 ; | |
9598 | int result; | |
9599 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9600 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9601 | char *kwnames[] = { |
9602 | (char *) "self",(char *) "y", NULL | |
9603 | }; | |
9604 | ||
8edf1c75 | 9605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToEdgeOfRow",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9608 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 9609 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9610 | { |
9611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9612 | result = (int)(arg1)->YToEdgeOfRow(arg2); | |
9613 | ||
9614 | wxPyEndAllowThreads(__tstate); | |
9615 | if (PyErr_Occurred()) SWIG_fail; | |
9616 | } | |
c370783e | 9617 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9618 | return resultobj; |
9619 | fail: | |
9620 | return NULL; | |
9621 | } | |
9622 | ||
9623 | ||
c370783e | 9624 | static PyObject *_wrap_Grid_XToEdgeOfCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9625 | PyObject *resultobj; |
9626 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9627 | int arg2 ; | |
9628 | int result; | |
9629 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9630 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9631 | char *kwnames[] = { |
9632 | (char *) "self",(char *) "x", NULL | |
9633 | }; | |
9634 | ||
8edf1c75 | 9635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToEdgeOfCol",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9638 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 9639 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9640 | { |
9641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9642 | result = (int)(arg1)->XToEdgeOfCol(arg2); | |
9643 | ||
9644 | wxPyEndAllowThreads(__tstate); | |
9645 | if (PyErr_Occurred()) SWIG_fail; | |
9646 | } | |
c370783e | 9647 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9648 | return resultobj; |
9649 | fail: | |
9650 | return NULL; | |
9651 | } | |
9652 | ||
9653 | ||
c370783e | 9654 | static PyObject *_wrap_Grid_CellToRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9655 | PyObject *resultobj; |
9656 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9657 | int arg2 ; | |
9658 | int arg3 ; | |
9659 | wxRect result; | |
9660 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9661 | PyObject * obj1 = 0 ; |
9662 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9663 | char *kwnames[] = { |
9664 | (char *) "self",(char *) "row",(char *) "col", NULL | |
2f4c0a16 RD |
9665 | }; |
9666 | ||
9667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_CellToRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9670 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 9671 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9672 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 9673 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9674 | { |
9675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9676 | result = (arg1)->CellToRect(arg2,arg3); | |
9677 | ||
9678 | wxPyEndAllowThreads(__tstate); | |
9679 | if (PyErr_Occurred()) SWIG_fail; | |
9680 | } | |
9681 | { | |
9682 | wxRect * resultptr; | |
9683 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 9684 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
9685 | } |
9686 | return resultobj; | |
9687 | fail: | |
9688 | return NULL; | |
9689 | } | |
9690 | ||
9691 | ||
c370783e | 9692 | static PyObject *_wrap_Grid_GetGridCursorRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9693 | PyObject *resultobj; |
9694 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9695 | int result; | |
9696 | PyObject * obj0 = 0 ; | |
9697 | char *kwnames[] = { | |
9698 | (char *) "self", NULL | |
9699 | }; | |
9700 | ||
9701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorRow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9704 | { |
9705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9706 | result = (int)(arg1)->GetGridCursorRow(); | |
9707 | ||
9708 | wxPyEndAllowThreads(__tstate); | |
9709 | if (PyErr_Occurred()) SWIG_fail; | |
9710 | } | |
c370783e | 9711 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9712 | return resultobj; |
9713 | fail: | |
9714 | return NULL; | |
9715 | } | |
9716 | ||
9717 | ||
c370783e | 9718 | static PyObject *_wrap_Grid_GetGridCursorCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9719 | PyObject *resultobj; |
9720 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9721 | int result; | |
9722 | PyObject * obj0 = 0 ; | |
9723 | char *kwnames[] = { | |
9724 | (char *) "self", NULL | |
9725 | }; | |
9726 | ||
9727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorCol",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9730 | { |
9731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9732 | result = (int)(arg1)->GetGridCursorCol(); | |
9733 | ||
9734 | wxPyEndAllowThreads(__tstate); | |
9735 | if (PyErr_Occurred()) SWIG_fail; | |
9736 | } | |
c370783e | 9737 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
9738 | return resultobj; |
9739 | fail: | |
9740 | return NULL; | |
9741 | } | |
9742 | ||
9743 | ||
c370783e | 9744 | static PyObject *_wrap_Grid_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9745 | PyObject *resultobj; |
9746 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9747 | int arg2 ; | |
9748 | int arg3 ; | |
b411df4a | 9749 | bool arg4 = (bool) true ; |
d14a1e28 RD |
9750 | bool result; |
9751 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9752 | PyObject * obj1 = 0 ; |
9753 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9754 | PyObject * obj3 = 0 ; |
9755 | char *kwnames[] = { | |
9756 | (char *) "self",(char *) "row",(char *) "col",(char *) "wholeCellVisible", NULL | |
9757 | }; | |
9758 | ||
8edf1c75 | 9759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_IsVisible",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9762 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 9763 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9764 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 9765 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9766 | if (obj3) { |
c370783e | 9767 | arg4 = (bool)SWIG_As_bool(obj3); |
2f4c0a16 | 9768 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9769 | } |
9770 | { | |
9771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9772 | result = (bool)(arg1)->IsVisible(arg2,arg3,arg4); | |
9773 | ||
9774 | wxPyEndAllowThreads(__tstate); | |
9775 | if (PyErr_Occurred()) SWIG_fail; | |
9776 | } | |
fbc46b20 RD |
9777 | { |
9778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9779 | } | |
d14a1e28 RD |
9780 | return resultobj; |
9781 | fail: | |
9782 | return NULL; | |
9783 | } | |
9784 | ||
9785 | ||
c370783e | 9786 | static PyObject *_wrap_Grid_MakeCellVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9787 | PyObject *resultobj; |
9788 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9789 | int arg2 ; | |
9790 | int arg3 ; | |
9791 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9792 | PyObject * obj1 = 0 ; |
9793 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9794 | char *kwnames[] = { |
9795 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9796 | }; | |
9797 | ||
8edf1c75 | 9798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_MakeCellVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9801 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 9802 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9803 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 9804 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9805 | { |
9806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9807 | (arg1)->MakeCellVisible(arg2,arg3); | |
9808 | ||
9809 | wxPyEndAllowThreads(__tstate); | |
9810 | if (PyErr_Occurred()) SWIG_fail; | |
9811 | } | |
9812 | Py_INCREF(Py_None); resultobj = Py_None; | |
9813 | return resultobj; | |
9814 | fail: | |
9815 | return NULL; | |
9816 | } | |
9817 | ||
9818 | ||
c370783e | 9819 | static PyObject *_wrap_Grid_SetGridCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9820 | PyObject *resultobj; |
9821 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9822 | int arg2 ; | |
9823 | int arg3 ; | |
9824 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9825 | PyObject * obj1 = 0 ; |
9826 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9827 | char *kwnames[] = { |
9828 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9829 | }; | |
9830 | ||
8edf1c75 | 9831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetGridCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9834 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 9835 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9836 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 9837 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9838 | { |
9839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9840 | (arg1)->SetGridCursor(arg2,arg3); | |
9841 | ||
9842 | wxPyEndAllowThreads(__tstate); | |
9843 | if (PyErr_Occurred()) SWIG_fail; | |
9844 | } | |
9845 | Py_INCREF(Py_None); resultobj = Py_None; | |
9846 | return resultobj; | |
9847 | fail: | |
9848 | return NULL; | |
9849 | } | |
9850 | ||
9851 | ||
c370783e | 9852 | static PyObject *_wrap_Grid_MoveCursorUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9853 | PyObject *resultobj; |
9854 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9855 | bool arg2 ; | |
9856 | bool result; | |
9857 | PyObject * obj0 = 0 ; | |
9858 | PyObject * obj1 = 0 ; | |
9859 | char *kwnames[] = { | |
9860 | (char *) "self",(char *) "expandSelection", NULL | |
9861 | }; | |
9862 | ||
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9866 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 9867 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9868 | { |
9869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9870 | result = (bool)(arg1)->MoveCursorUp(arg2); | |
9871 | ||
9872 | wxPyEndAllowThreads(__tstate); | |
9873 | if (PyErr_Occurred()) SWIG_fail; | |
9874 | } | |
fbc46b20 RD |
9875 | { |
9876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9877 | } | |
d14a1e28 RD |
9878 | return resultobj; |
9879 | fail: | |
9880 | return NULL; | |
9881 | } | |
9882 | ||
9883 | ||
c370783e | 9884 | static PyObject *_wrap_Grid_MoveCursorDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9885 | PyObject *resultobj; |
9886 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9887 | bool arg2 ; | |
9888 | bool result; | |
9889 | PyObject * obj0 = 0 ; | |
9890 | PyObject * obj1 = 0 ; | |
9891 | char *kwnames[] = { | |
9892 | (char *) "self",(char *) "expandSelection", NULL | |
9893 | }; | |
9894 | ||
9895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDown",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9898 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 9899 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9900 | { |
9901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9902 | result = (bool)(arg1)->MoveCursorDown(arg2); | |
9903 | ||
9904 | wxPyEndAllowThreads(__tstate); | |
9905 | if (PyErr_Occurred()) SWIG_fail; | |
9906 | } | |
fbc46b20 RD |
9907 | { |
9908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9909 | } | |
d14a1e28 RD |
9910 | return resultobj; |
9911 | fail: | |
9912 | return NULL; | |
9913 | } | |
9914 | ||
9915 | ||
c370783e | 9916 | static PyObject *_wrap_Grid_MoveCursorLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9917 | PyObject *resultobj; |
9918 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9919 | bool arg2 ; | |
9920 | bool result; | |
9921 | PyObject * obj0 = 0 ; | |
9922 | PyObject * obj1 = 0 ; | |
9923 | char *kwnames[] = { | |
9924 | (char *) "self",(char *) "expandSelection", NULL | |
9925 | }; | |
9926 | ||
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeft",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9930 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 9931 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9932 | { |
9933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9934 | result = (bool)(arg1)->MoveCursorLeft(arg2); | |
9935 | ||
9936 | wxPyEndAllowThreads(__tstate); | |
9937 | if (PyErr_Occurred()) SWIG_fail; | |
9938 | } | |
fbc46b20 RD |
9939 | { |
9940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9941 | } | |
d14a1e28 RD |
9942 | return resultobj; |
9943 | fail: | |
9944 | return NULL; | |
9945 | } | |
9946 | ||
9947 | ||
c370783e | 9948 | static PyObject *_wrap_Grid_MoveCursorRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9949 | PyObject *resultobj; |
9950 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9951 | bool arg2 ; | |
9952 | bool result; | |
9953 | PyObject * obj0 = 0 ; | |
9954 | PyObject * obj1 = 0 ; | |
9955 | char *kwnames[] = { | |
9956 | (char *) "self",(char *) "expandSelection", NULL | |
9957 | }; | |
9958 | ||
9959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9962 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 9963 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
9964 | { |
9965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9966 | result = (bool)(arg1)->MoveCursorRight(arg2); | |
9967 | ||
9968 | wxPyEndAllowThreads(__tstate); | |
9969 | if (PyErr_Occurred()) SWIG_fail; | |
9970 | } | |
fbc46b20 RD |
9971 | { |
9972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9973 | } | |
d14a1e28 RD |
9974 | return resultobj; |
9975 | fail: | |
9976 | return NULL; | |
9977 | } | |
9978 | ||
9979 | ||
c370783e | 9980 | static PyObject *_wrap_Grid_MovePageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9981 | PyObject *resultobj; |
9982 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9983 | bool result; | |
9984 | PyObject * obj0 = 0 ; | |
9985 | char *kwnames[] = { | |
9986 | (char *) "self", NULL | |
9987 | }; | |
9988 | ||
9989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9992 | { |
9993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9994 | result = (bool)(arg1)->MovePageDown(); | |
9995 | ||
9996 | wxPyEndAllowThreads(__tstate); | |
9997 | if (PyErr_Occurred()) SWIG_fail; | |
9998 | } | |
fbc46b20 RD |
9999 | { |
10000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10001 | } | |
d14a1e28 RD |
10002 | return resultobj; |
10003 | fail: | |
10004 | return NULL; | |
10005 | } | |
10006 | ||
10007 | ||
c370783e | 10008 | static PyObject *_wrap_Grid_MovePageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10009 | PyObject *resultobj; |
10010 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10011 | bool result; | |
10012 | PyObject * obj0 = 0 ; | |
10013 | char *kwnames[] = { | |
10014 | (char *) "self", NULL | |
10015 | }; | |
10016 | ||
10017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10020 | { |
10021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10022 | result = (bool)(arg1)->MovePageUp(); | |
10023 | ||
10024 | wxPyEndAllowThreads(__tstate); | |
10025 | if (PyErr_Occurred()) SWIG_fail; | |
10026 | } | |
fbc46b20 RD |
10027 | { |
10028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10029 | } | |
d14a1e28 RD |
10030 | return resultobj; |
10031 | fail: | |
10032 | return NULL; | |
10033 | } | |
10034 | ||
10035 | ||
c370783e | 10036 | static PyObject *_wrap_Grid_MoveCursorUpBlock(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10037 | PyObject *resultobj; |
10038 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10039 | bool arg2 ; | |
10040 | bool result; | |
10041 | PyObject * obj0 = 0 ; | |
10042 | PyObject * obj1 = 0 ; | |
10043 | char *kwnames[] = { | |
10044 | (char *) "self",(char *) "expandSelection", NULL | |
10045 | }; | |
10046 | ||
10047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUpBlock",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10050 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 10051 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10052 | { |
10053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10054 | result = (bool)(arg1)->MoveCursorUpBlock(arg2); | |
10055 | ||
10056 | wxPyEndAllowThreads(__tstate); | |
10057 | if (PyErr_Occurred()) SWIG_fail; | |
10058 | } | |
fbc46b20 RD |
10059 | { |
10060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10061 | } | |
d14a1e28 RD |
10062 | return resultobj; |
10063 | fail: | |
10064 | return NULL; | |
10065 | } | |
10066 | ||
10067 | ||
c370783e | 10068 | static PyObject *_wrap_Grid_MoveCursorDownBlock(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10069 | PyObject *resultobj; |
10070 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10071 | bool arg2 ; | |
10072 | bool result; | |
10073 | PyObject * obj0 = 0 ; | |
10074 | PyObject * obj1 = 0 ; | |
10075 | char *kwnames[] = { | |
10076 | (char *) "self",(char *) "expandSelection", NULL | |
10077 | }; | |
10078 | ||
10079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDownBlock",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10082 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 10083 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10084 | { |
10085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10086 | result = (bool)(arg1)->MoveCursorDownBlock(arg2); | |
10087 | ||
10088 | wxPyEndAllowThreads(__tstate); | |
10089 | if (PyErr_Occurred()) SWIG_fail; | |
10090 | } | |
fbc46b20 RD |
10091 | { |
10092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10093 | } | |
d14a1e28 RD |
10094 | return resultobj; |
10095 | fail: | |
10096 | return NULL; | |
10097 | } | |
10098 | ||
10099 | ||
c370783e | 10100 | static PyObject *_wrap_Grid_MoveCursorLeftBlock(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10101 | PyObject *resultobj; |
10102 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10103 | bool arg2 ; | |
10104 | bool result; | |
10105 | PyObject * obj0 = 0 ; | |
10106 | PyObject * obj1 = 0 ; | |
10107 | char *kwnames[] = { | |
10108 | (char *) "self",(char *) "expandSelection", NULL | |
10109 | }; | |
10110 | ||
10111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeftBlock",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10114 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 10115 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10116 | { |
10117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10118 | result = (bool)(arg1)->MoveCursorLeftBlock(arg2); | |
10119 | ||
10120 | wxPyEndAllowThreads(__tstate); | |
10121 | if (PyErr_Occurred()) SWIG_fail; | |
10122 | } | |
fbc46b20 RD |
10123 | { |
10124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10125 | } | |
d14a1e28 RD |
10126 | return resultobj; |
10127 | fail: | |
10128 | return NULL; | |
10129 | } | |
10130 | ||
10131 | ||
c370783e | 10132 | static PyObject *_wrap_Grid_MoveCursorRightBlock(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10133 | PyObject *resultobj; |
10134 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10135 | bool arg2 ; | |
10136 | bool result; | |
10137 | PyObject * obj0 = 0 ; | |
10138 | PyObject * obj1 = 0 ; | |
10139 | char *kwnames[] = { | |
10140 | (char *) "self",(char *) "expandSelection", NULL | |
10141 | }; | |
10142 | ||
10143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRightBlock",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10146 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 10147 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10148 | { |
10149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10150 | result = (bool)(arg1)->MoveCursorRightBlock(arg2); | |
10151 | ||
10152 | wxPyEndAllowThreads(__tstate); | |
10153 | if (PyErr_Occurred()) SWIG_fail; | |
10154 | } | |
fbc46b20 RD |
10155 | { |
10156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10157 | } | |
d14a1e28 RD |
10158 | return resultobj; |
10159 | fail: | |
10160 | return NULL; | |
10161 | } | |
10162 | ||
10163 | ||
c370783e | 10164 | static PyObject *_wrap_Grid_GetDefaultRowLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10165 | PyObject *resultobj; |
10166 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10167 | int result; | |
10168 | PyObject * obj0 = 0 ; | |
10169 | char *kwnames[] = { | |
10170 | (char *) "self", NULL | |
10171 | }; | |
10172 | ||
10173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowLabelSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10176 | { |
10177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10178 | result = (int)(arg1)->GetDefaultRowLabelSize(); | |
10179 | ||
10180 | wxPyEndAllowThreads(__tstate); | |
10181 | if (PyErr_Occurred()) SWIG_fail; | |
10182 | } | |
c370783e | 10183 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10184 | return resultobj; |
10185 | fail: | |
10186 | return NULL; | |
10187 | } | |
10188 | ||
10189 | ||
c370783e | 10190 | static PyObject *_wrap_Grid_GetRowLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10191 | PyObject *resultobj; |
10192 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10193 | int result; | |
10194 | PyObject * obj0 = 0 ; | |
10195 | char *kwnames[] = { | |
10196 | (char *) "self", NULL | |
10197 | }; | |
10198 | ||
10199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10202 | { |
10203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10204 | result = (int)(arg1)->GetRowLabelSize(); | |
10205 | ||
10206 | wxPyEndAllowThreads(__tstate); | |
10207 | if (PyErr_Occurred()) SWIG_fail; | |
10208 | } | |
c370783e | 10209 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10210 | return resultobj; |
10211 | fail: | |
10212 | return NULL; | |
10213 | } | |
10214 | ||
10215 | ||
c370783e | 10216 | static PyObject *_wrap_Grid_GetDefaultColLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10217 | PyObject *resultobj; |
10218 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10219 | int result; | |
10220 | PyObject * obj0 = 0 ; | |
10221 | char *kwnames[] = { | |
10222 | (char *) "self", NULL | |
10223 | }; | |
10224 | ||
10225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColLabelSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10228 | { |
10229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10230 | result = (int)(arg1)->GetDefaultColLabelSize(); | |
10231 | ||
10232 | wxPyEndAllowThreads(__tstate); | |
10233 | if (PyErr_Occurred()) SWIG_fail; | |
10234 | } | |
c370783e | 10235 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10236 | return resultobj; |
10237 | fail: | |
10238 | return NULL; | |
10239 | } | |
10240 | ||
10241 | ||
c370783e | 10242 | static PyObject *_wrap_Grid_GetColLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10243 | PyObject *resultobj; |
10244 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10245 | int result; | |
10246 | PyObject * obj0 = 0 ; | |
10247 | char *kwnames[] = { | |
10248 | (char *) "self", NULL | |
10249 | }; | |
10250 | ||
10251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10254 | { |
10255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10256 | result = (int)(arg1)->GetColLabelSize(); | |
10257 | ||
10258 | wxPyEndAllowThreads(__tstate); | |
10259 | if (PyErr_Occurred()) SWIG_fail; | |
10260 | } | |
c370783e | 10261 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10262 | return resultobj; |
10263 | fail: | |
10264 | return NULL; | |
10265 | } | |
10266 | ||
10267 | ||
c370783e | 10268 | static PyObject *_wrap_Grid_GetLabelBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10269 | PyObject *resultobj; |
10270 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10271 | wxColour result; | |
10272 | PyObject * obj0 = 0 ; | |
10273 | char *kwnames[] = { | |
10274 | (char *) "self", NULL | |
10275 | }; | |
10276 | ||
10277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10280 | { |
10281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10282 | result = (arg1)->GetLabelBackgroundColour(); | |
10283 | ||
10284 | wxPyEndAllowThreads(__tstate); | |
10285 | if (PyErr_Occurred()) SWIG_fail; | |
10286 | } | |
10287 | { | |
10288 | wxColour * resultptr; | |
10289 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 10290 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10291 | } |
10292 | return resultobj; | |
10293 | fail: | |
10294 | return NULL; | |
10295 | } | |
10296 | ||
10297 | ||
c370783e | 10298 | static PyObject *_wrap_Grid_GetLabelTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10299 | PyObject *resultobj; |
10300 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10301 | wxColour result; | |
10302 | PyObject * obj0 = 0 ; | |
10303 | char *kwnames[] = { | |
10304 | (char *) "self", NULL | |
10305 | }; | |
10306 | ||
10307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10310 | { |
10311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10312 | result = (arg1)->GetLabelTextColour(); | |
10313 | ||
10314 | wxPyEndAllowThreads(__tstate); | |
10315 | if (PyErr_Occurred()) SWIG_fail; | |
10316 | } | |
10317 | { | |
10318 | wxColour * resultptr; | |
10319 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 10320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10321 | } |
10322 | return resultobj; | |
10323 | fail: | |
10324 | return NULL; | |
10325 | } | |
10326 | ||
10327 | ||
c370783e | 10328 | static PyObject *_wrap_Grid_GetLabelFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10329 | PyObject *resultobj; |
10330 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10331 | wxFont result; | |
10332 | PyObject * obj0 = 0 ; | |
10333 | char *kwnames[] = { | |
10334 | (char *) "self", NULL | |
10335 | }; | |
10336 | ||
10337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10340 | { |
10341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10342 | result = (arg1)->GetLabelFont(); | |
10343 | ||
10344 | wxPyEndAllowThreads(__tstate); | |
10345 | if (PyErr_Occurred()) SWIG_fail; | |
10346 | } | |
10347 | { | |
10348 | wxFont * resultptr; | |
10349 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 10350 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
10351 | } |
10352 | return resultobj; | |
10353 | fail: | |
10354 | return NULL; | |
10355 | } | |
10356 | ||
10357 | ||
c370783e | 10358 | static PyObject *_wrap_Grid_GetRowLabelAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10359 | PyObject *resultobj; |
10360 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10361 | int *arg2 = (int *) 0 ; | |
10362 | int *arg3 = (int *) 0 ; | |
10363 | int temp2 ; | |
c370783e | 10364 | int res2 = 0 ; |
d14a1e28 | 10365 | int temp3 ; |
c370783e | 10366 | int res3 = 0 ; |
d14a1e28 RD |
10367 | PyObject * obj0 = 0 ; |
10368 | char *kwnames[] = { | |
10369 | (char *) "self", NULL | |
10370 | }; | |
10371 | ||
c370783e RD |
10372 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
10373 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 10374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelAlignment",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
10375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10377 | { |
10378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10379 | (arg1)->GetRowLabelAlignment(arg2,arg3); | |
10380 | ||
10381 | wxPyEndAllowThreads(__tstate); | |
10382 | if (PyErr_Occurred()) SWIG_fail; | |
10383 | } | |
10384 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
10385 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
10386 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
10387 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10388 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
10389 | return resultobj; |
10390 | fail: | |
10391 | return NULL; | |
10392 | } | |
10393 | ||
10394 | ||
c370783e | 10395 | static PyObject *_wrap_Grid_GetColLabelAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10396 | PyObject *resultobj; |
10397 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10398 | int *arg2 = (int *) 0 ; | |
10399 | int *arg3 = (int *) 0 ; | |
10400 | int temp2 ; | |
c370783e | 10401 | int res2 = 0 ; |
d14a1e28 | 10402 | int temp3 ; |
c370783e | 10403 | int res3 = 0 ; |
d14a1e28 RD |
10404 | PyObject * obj0 = 0 ; |
10405 | char *kwnames[] = { | |
10406 | (char *) "self", NULL | |
10407 | }; | |
10408 | ||
c370783e RD |
10409 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
10410 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 10411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelAlignment",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
10412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10414 | { |
10415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10416 | (arg1)->GetColLabelAlignment(arg2,arg3); | |
10417 | ||
10418 | wxPyEndAllowThreads(__tstate); | |
10419 | if (PyErr_Occurred()) SWIG_fail; | |
10420 | } | |
10421 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
10422 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
10423 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
10424 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10425 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
10426 | return resultobj; |
10427 | fail: | |
10428 | return NULL; | |
10429 | } | |
10430 | ||
10431 | ||
c370783e | 10432 | static PyObject *_wrap_Grid_GetColLabelTextOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10433 | PyObject *resultobj; |
10434 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10435 | int result; | |
10436 | PyObject * obj0 = 0 ; | |
10437 | char *kwnames[] = { | |
10438 | (char *) "self", NULL | |
10439 | }; | |
10440 | ||
10441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelTextOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10444 | { |
10445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10446 | result = (int)(arg1)->GetColLabelTextOrientation(); | |
10447 | ||
10448 | wxPyEndAllowThreads(__tstate); | |
10449 | if (PyErr_Occurred()) SWIG_fail; | |
10450 | } | |
c370783e | 10451 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10452 | return resultobj; |
10453 | fail: | |
10454 | return NULL; | |
10455 | } | |
10456 | ||
10457 | ||
c370783e | 10458 | static PyObject *_wrap_Grid_GetRowLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10459 | PyObject *resultobj; |
10460 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10461 | int arg2 ; | |
10462 | wxString result; | |
10463 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10464 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10465 | char *kwnames[] = { |
10466 | (char *) "self",(char *) "row", NULL | |
10467 | }; | |
10468 | ||
8edf1c75 | 10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10472 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 10473 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10474 | { |
10475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10476 | result = (arg1)->GetRowLabelValue(arg2); | |
10477 | ||
10478 | wxPyEndAllowThreads(__tstate); | |
10479 | if (PyErr_Occurred()) SWIG_fail; | |
10480 | } | |
10481 | { | |
10482 | #if wxUSE_UNICODE | |
10483 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10484 | #else | |
10485 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10486 | #endif | |
10487 | } | |
10488 | return resultobj; | |
10489 | fail: | |
10490 | return NULL; | |
10491 | } | |
10492 | ||
10493 | ||
c370783e | 10494 | static PyObject *_wrap_Grid_GetColLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10495 | PyObject *resultobj; |
10496 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10497 | int arg2 ; | |
10498 | wxString result; | |
10499 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10500 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10501 | char *kwnames[] = { |
10502 | (char *) "self",(char *) "col", NULL | |
10503 | }; | |
10504 | ||
8edf1c75 | 10505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10508 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 10509 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10510 | { |
10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10512 | result = (arg1)->GetColLabelValue(arg2); | |
10513 | ||
10514 | wxPyEndAllowThreads(__tstate); | |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | } | |
10517 | { | |
10518 | #if wxUSE_UNICODE | |
10519 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10520 | #else | |
10521 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10522 | #endif | |
10523 | } | |
10524 | return resultobj; | |
10525 | fail: | |
10526 | return NULL; | |
10527 | } | |
10528 | ||
10529 | ||
c370783e | 10530 | static PyObject *_wrap_Grid_GetGridLineColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10531 | PyObject *resultobj; |
10532 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10533 | wxColour result; | |
10534 | PyObject * obj0 = 0 ; | |
10535 | char *kwnames[] = { | |
10536 | (char *) "self", NULL | |
10537 | }; | |
10538 | ||
10539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridLineColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10542 | { |
10543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10544 | result = (arg1)->GetGridLineColour(); | |
10545 | ||
10546 | wxPyEndAllowThreads(__tstate); | |
10547 | if (PyErr_Occurred()) SWIG_fail; | |
10548 | } | |
10549 | { | |
10550 | wxColour * resultptr; | |
10551 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 10552 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10553 | } |
10554 | return resultobj; | |
10555 | fail: | |
10556 | return NULL; | |
10557 | } | |
10558 | ||
10559 | ||
c370783e | 10560 | static PyObject *_wrap_Grid_GetCellHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10561 | PyObject *resultobj; |
10562 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10563 | wxColour result; | |
10564 | PyObject * obj0 = 0 ; | |
10565 | char *kwnames[] = { | |
10566 | (char *) "self", NULL | |
10567 | }; | |
10568 | ||
10569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10572 | { |
10573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10574 | result = (arg1)->GetCellHighlightColour(); | |
10575 | ||
10576 | wxPyEndAllowThreads(__tstate); | |
10577 | if (PyErr_Occurred()) SWIG_fail; | |
10578 | } | |
10579 | { | |
10580 | wxColour * resultptr; | |
10581 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 10582 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10583 | } |
10584 | return resultobj; | |
10585 | fail: | |
10586 | return NULL; | |
10587 | } | |
10588 | ||
10589 | ||
c370783e | 10590 | static PyObject *_wrap_Grid_GetCellHighlightPenWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10591 | PyObject *resultobj; |
10592 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10593 | int result; | |
10594 | PyObject * obj0 = 0 ; | |
10595 | char *kwnames[] = { | |
10596 | (char *) "self", NULL | |
10597 | }; | |
10598 | ||
10599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightPenWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10602 | { |
10603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10604 | result = (int)(arg1)->GetCellHighlightPenWidth(); | |
10605 | ||
10606 | wxPyEndAllowThreads(__tstate); | |
10607 | if (PyErr_Occurred()) SWIG_fail; | |
10608 | } | |
c370783e | 10609 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10610 | return resultobj; |
10611 | fail: | |
10612 | return NULL; | |
10613 | } | |
10614 | ||
10615 | ||
c370783e | 10616 | static PyObject *_wrap_Grid_GetCellHighlightROPenWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10617 | PyObject *resultobj; |
10618 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10619 | int result; | |
10620 | PyObject * obj0 = 0 ; | |
10621 | char *kwnames[] = { | |
10622 | (char *) "self", NULL | |
10623 | }; | |
10624 | ||
10625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightROPenWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10628 | { |
10629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10630 | result = (int)(arg1)->GetCellHighlightROPenWidth(); | |
10631 | ||
10632 | wxPyEndAllowThreads(__tstate); | |
10633 | if (PyErr_Occurred()) SWIG_fail; | |
10634 | } | |
c370783e | 10635 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
10636 | return resultobj; |
10637 | fail: | |
10638 | return NULL; | |
10639 | } | |
10640 | ||
10641 | ||
c370783e | 10642 | static PyObject *_wrap_Grid_SetRowLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10643 | PyObject *resultobj; |
10644 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10645 | int arg2 ; | |
10646 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10647 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10648 | char *kwnames[] = { |
10649 | (char *) "self",(char *) "width", NULL | |
10650 | }; | |
10651 | ||
8edf1c75 | 10652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowLabelSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10655 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 10656 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10657 | { |
10658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10659 | (arg1)->SetRowLabelSize(arg2); | |
10660 | ||
10661 | wxPyEndAllowThreads(__tstate); | |
10662 | if (PyErr_Occurred()) SWIG_fail; | |
10663 | } | |
10664 | Py_INCREF(Py_None); resultobj = Py_None; | |
10665 | return resultobj; | |
10666 | fail: | |
10667 | return NULL; | |
10668 | } | |
10669 | ||
10670 | ||
c370783e | 10671 | static PyObject *_wrap_Grid_SetColLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10672 | PyObject *resultobj; |
10673 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10674 | int arg2 ; | |
10675 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10676 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10677 | char *kwnames[] = { |
10678 | (char *) "self",(char *) "height", NULL | |
10679 | }; | |
10680 | ||
8edf1c75 | 10681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10684 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 10685 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10686 | { |
10687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10688 | (arg1)->SetColLabelSize(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 | ||
c370783e | 10700 | static PyObject *_wrap_Grid_SetLabelBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10701 | PyObject *resultobj; |
10702 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10703 | wxColour *arg2 = 0 ; | |
10704 | wxColour temp2 ; | |
10705 | PyObject * obj0 = 0 ; | |
10706 | PyObject * obj1 = 0 ; | |
10707 | char *kwnames[] = { | |
10708 | (char *) "self","arg2", NULL | |
10709 | }; | |
10710 | ||
10711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10714 | { |
10715 | arg2 = &temp2; | |
10716 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10717 | } | |
10718 | { | |
10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10720 | (arg1)->SetLabelBackgroundColour((wxColour const &)*arg2); | |
10721 | ||
10722 | wxPyEndAllowThreads(__tstate); | |
10723 | if (PyErr_Occurred()) SWIG_fail; | |
10724 | } | |
10725 | Py_INCREF(Py_None); resultobj = Py_None; | |
10726 | return resultobj; | |
10727 | fail: | |
10728 | return NULL; | |
10729 | } | |
10730 | ||
10731 | ||
c370783e | 10732 | static PyObject *_wrap_Grid_SetLabelTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10733 | PyObject *resultobj; |
10734 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10735 | wxColour *arg2 = 0 ; | |
10736 | wxColour temp2 ; | |
10737 | PyObject * obj0 = 0 ; | |
10738 | PyObject * obj1 = 0 ; | |
10739 | char *kwnames[] = { | |
10740 | (char *) "self","arg2", NULL | |
10741 | }; | |
10742 | ||
10743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10746 | { |
10747 | arg2 = &temp2; | |
10748 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10749 | } | |
10750 | { | |
10751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10752 | (arg1)->SetLabelTextColour((wxColour const &)*arg2); | |
10753 | ||
10754 | wxPyEndAllowThreads(__tstate); | |
10755 | if (PyErr_Occurred()) SWIG_fail; | |
10756 | } | |
10757 | Py_INCREF(Py_None); resultobj = Py_None; | |
10758 | return resultobj; | |
10759 | fail: | |
10760 | return NULL; | |
10761 | } | |
10762 | ||
10763 | ||
c370783e | 10764 | static PyObject *_wrap_Grid_SetLabelFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10765 | PyObject *resultobj; |
10766 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10767 | wxFont *arg2 = 0 ; | |
10768 | PyObject * obj0 = 0 ; | |
10769 | PyObject * obj1 = 0 ; | |
10770 | char *kwnames[] = { | |
10771 | (char *) "self","arg2", NULL | |
10772 | }; | |
10773 | ||
10774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10777 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
10778 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10779 | SWIG_fail; | |
d14a1e28 | 10780 | if (arg2 == NULL) { |
2f4c0a16 RD |
10781 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10782 | SWIG_fail; | |
d14a1e28 RD |
10783 | } |
10784 | { | |
10785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10786 | (arg1)->SetLabelFont((wxFont const &)*arg2); | |
10787 | ||
10788 | wxPyEndAllowThreads(__tstate); | |
10789 | if (PyErr_Occurred()) SWIG_fail; | |
10790 | } | |
10791 | Py_INCREF(Py_None); resultobj = Py_None; | |
10792 | return resultobj; | |
10793 | fail: | |
10794 | return NULL; | |
10795 | } | |
10796 | ||
10797 | ||
c370783e | 10798 | static PyObject *_wrap_Grid_SetRowLabelAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10799 | PyObject *resultobj; |
10800 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10801 | int arg2 ; | |
10802 | int arg3 ; | |
10803 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10804 | PyObject * obj1 = 0 ; |
10805 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10806 | char *kwnames[] = { |
10807 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
10808 | }; | |
10809 | ||
8edf1c75 | 10810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10813 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 10814 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10815 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 10816 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10817 | { |
10818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10819 | (arg1)->SetRowLabelAlignment(arg2,arg3); | |
10820 | ||
10821 | wxPyEndAllowThreads(__tstate); | |
10822 | if (PyErr_Occurred()) SWIG_fail; | |
10823 | } | |
10824 | Py_INCREF(Py_None); resultobj = Py_None; | |
10825 | return resultobj; | |
10826 | fail: | |
10827 | return NULL; | |
10828 | } | |
10829 | ||
10830 | ||
c370783e | 10831 | static PyObject *_wrap_Grid_SetColLabelAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10832 | PyObject *resultobj; |
10833 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10834 | int arg2 ; | |
10835 | int arg3 ; | |
10836 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10837 | PyObject * obj1 = 0 ; |
10838 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10839 | char *kwnames[] = { |
10840 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
10841 | }; | |
10842 | ||
8edf1c75 | 10843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10846 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 10847 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10848 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 10849 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10850 | { |
10851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10852 | (arg1)->SetColLabelAlignment(arg2,arg3); | |
10853 | ||
10854 | wxPyEndAllowThreads(__tstate); | |
10855 | if (PyErr_Occurred()) SWIG_fail; | |
10856 | } | |
10857 | Py_INCREF(Py_None); resultobj = Py_None; | |
10858 | return resultobj; | |
10859 | fail: | |
10860 | return NULL; | |
10861 | } | |
10862 | ||
10863 | ||
c370783e | 10864 | static PyObject *_wrap_Grid_SetColLabelTextOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10865 | PyObject *resultobj; |
10866 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10867 | int arg2 ; | |
10868 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10869 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10870 | char *kwnames[] = { |
10871 | (char *) "self",(char *) "textOrientation", NULL | |
10872 | }; | |
10873 | ||
8edf1c75 | 10874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelTextOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10877 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 10878 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10879 | { |
10880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10881 | (arg1)->SetColLabelTextOrientation(arg2); | |
10882 | ||
10883 | wxPyEndAllowThreads(__tstate); | |
10884 | if (PyErr_Occurred()) SWIG_fail; | |
10885 | } | |
10886 | Py_INCREF(Py_None); resultobj = Py_None; | |
10887 | return resultobj; | |
10888 | fail: | |
10889 | return NULL; | |
10890 | } | |
10891 | ||
10892 | ||
c370783e | 10893 | static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10894 | PyObject *resultobj; |
10895 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10896 | int arg2 ; | |
10897 | wxString *arg3 = 0 ; | |
b411df4a | 10898 | bool temp3 = false ; |
d14a1e28 | 10899 | PyObject * obj0 = 0 ; |
8edf1c75 | 10900 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10901 | PyObject * obj2 = 0 ; |
10902 | char *kwnames[] = { | |
10903 | (char *) "self",(char *) "row","arg3", NULL | |
10904 | }; | |
10905 | ||
8edf1c75 | 10906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10909 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 10910 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10911 | { |
10912 | arg3 = wxString_in_helper(obj2); | |
10913 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 10914 | temp3 = true; |
d14a1e28 RD |
10915 | } |
10916 | { | |
10917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10918 | (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3); | |
10919 | ||
10920 | wxPyEndAllowThreads(__tstate); | |
10921 | if (PyErr_Occurred()) SWIG_fail; | |
10922 | } | |
10923 | Py_INCREF(Py_None); resultobj = Py_None; | |
10924 | { | |
10925 | if (temp3) | |
10926 | delete arg3; | |
10927 | } | |
10928 | return resultobj; | |
10929 | fail: | |
10930 | { | |
10931 | if (temp3) | |
10932 | delete arg3; | |
10933 | } | |
10934 | return NULL; | |
10935 | } | |
10936 | ||
10937 | ||
c370783e | 10938 | static PyObject *_wrap_Grid_SetColLabelValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10939 | PyObject *resultobj; |
10940 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10941 | int arg2 ; | |
10942 | wxString *arg3 = 0 ; | |
b411df4a | 10943 | bool temp3 = false ; |
d14a1e28 | 10944 | PyObject * obj0 = 0 ; |
8edf1c75 | 10945 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10946 | PyObject * obj2 = 0 ; |
10947 | char *kwnames[] = { | |
10948 | (char *) "self",(char *) "col","arg3", NULL | |
10949 | }; | |
10950 | ||
8edf1c75 | 10951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10954 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 10955 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
10956 | { |
10957 | arg3 = wxString_in_helper(obj2); | |
10958 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 10959 | temp3 = true; |
d14a1e28 RD |
10960 | } |
10961 | { | |
10962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10963 | (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3); | |
10964 | ||
10965 | wxPyEndAllowThreads(__tstate); | |
10966 | if (PyErr_Occurred()) SWIG_fail; | |
10967 | } | |
10968 | Py_INCREF(Py_None); resultobj = Py_None; | |
10969 | { | |
10970 | if (temp3) | |
10971 | delete arg3; | |
10972 | } | |
10973 | return resultobj; | |
10974 | fail: | |
10975 | { | |
10976 | if (temp3) | |
10977 | delete arg3; | |
10978 | } | |
10979 | return NULL; | |
10980 | } | |
10981 | ||
10982 | ||
c370783e | 10983 | static PyObject *_wrap_Grid_SetGridLineColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10984 | PyObject *resultobj; |
10985 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10986 | wxColour *arg2 = 0 ; | |
10987 | wxColour temp2 ; | |
10988 | PyObject * obj0 = 0 ; | |
10989 | PyObject * obj1 = 0 ; | |
10990 | char *kwnames[] = { | |
10991 | (char *) "self","arg2", NULL | |
10992 | }; | |
10993 | ||
10994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetGridLineColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10997 | { |
10998 | arg2 = &temp2; | |
10999 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11000 | } | |
11001 | { | |
11002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11003 | (arg1)->SetGridLineColour((wxColour const &)*arg2); | |
11004 | ||
11005 | wxPyEndAllowThreads(__tstate); | |
11006 | if (PyErr_Occurred()) SWIG_fail; | |
11007 | } | |
11008 | Py_INCREF(Py_None); resultobj = Py_None; | |
11009 | return resultobj; | |
11010 | fail: | |
11011 | return NULL; | |
11012 | } | |
11013 | ||
11014 | ||
c370783e | 11015 | static PyObject *_wrap_Grid_SetCellHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11016 | PyObject *resultobj; |
11017 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11018 | wxColour *arg2 = 0 ; | |
11019 | wxColour temp2 ; | |
11020 | PyObject * obj0 = 0 ; | |
11021 | PyObject * obj1 = 0 ; | |
11022 | char *kwnames[] = { | |
11023 | (char *) "self","arg2", NULL | |
11024 | }; | |
11025 | ||
11026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11029 | { |
11030 | arg2 = &temp2; | |
11031 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11032 | } | |
11033 | { | |
11034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11035 | (arg1)->SetCellHighlightColour((wxColour const &)*arg2); | |
11036 | ||
11037 | wxPyEndAllowThreads(__tstate); | |
11038 | if (PyErr_Occurred()) SWIG_fail; | |
11039 | } | |
11040 | Py_INCREF(Py_None); resultobj = Py_None; | |
11041 | return resultobj; | |
11042 | fail: | |
11043 | return NULL; | |
11044 | } | |
11045 | ||
11046 | ||
c370783e | 11047 | static PyObject *_wrap_Grid_SetCellHighlightPenWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11048 | PyObject *resultobj; |
11049 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11050 | int arg2 ; | |
11051 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11052 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11053 | char *kwnames[] = { |
11054 | (char *) "self",(char *) "width", NULL | |
11055 | }; | |
11056 | ||
8edf1c75 | 11057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightPenWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11060 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 11061 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11062 | { |
11063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11064 | (arg1)->SetCellHighlightPenWidth(arg2); | |
11065 | ||
11066 | wxPyEndAllowThreads(__tstate); | |
11067 | if (PyErr_Occurred()) SWIG_fail; | |
11068 | } | |
11069 | Py_INCREF(Py_None); resultobj = Py_None; | |
11070 | return resultobj; | |
11071 | fail: | |
11072 | return NULL; | |
11073 | } | |
11074 | ||
11075 | ||
c370783e | 11076 | static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11077 | PyObject *resultobj; |
11078 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11079 | int arg2 ; | |
11080 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11081 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11082 | char *kwnames[] = { |
11083 | (char *) "self",(char *) "width", NULL | |
11084 | }; | |
11085 | ||
8edf1c75 | 11086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightROPenWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11089 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 11090 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11091 | { |
11092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11093 | (arg1)->SetCellHighlightROPenWidth(arg2); | |
11094 | ||
11095 | wxPyEndAllowThreads(__tstate); | |
11096 | if (PyErr_Occurred()) SWIG_fail; | |
11097 | } | |
11098 | Py_INCREF(Py_None); resultobj = Py_None; | |
11099 | return resultobj; | |
11100 | fail: | |
11101 | return NULL; | |
11102 | } | |
11103 | ||
11104 | ||
c370783e | 11105 | static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11106 | PyObject *resultobj; |
11107 | wxGrid *arg1 = (wxGrid *) 0 ; | |
b411df4a | 11108 | bool arg2 = (bool) true ; |
d14a1e28 RD |
11109 | PyObject * obj0 = 0 ; |
11110 | PyObject * obj1 = 0 ; | |
11111 | char *kwnames[] = { | |
11112 | (char *) "self",(char *) "enable", NULL | |
11113 | }; | |
11114 | ||
11115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragRowSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11118 | if (obj1) { |
c370783e | 11119 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 11120 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11121 | } |
11122 | { | |
11123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11124 | (arg1)->EnableDragRowSize(arg2); | |
11125 | ||
11126 | wxPyEndAllowThreads(__tstate); | |
11127 | if (PyErr_Occurred()) SWIG_fail; | |
11128 | } | |
11129 | Py_INCREF(Py_None); resultobj = Py_None; | |
11130 | return resultobj; | |
11131 | fail: | |
11132 | return NULL; | |
11133 | } | |
11134 | ||
11135 | ||
c370783e | 11136 | static PyObject *_wrap_Grid_DisableDragRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11137 | PyObject *resultobj; |
11138 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11139 | PyObject * obj0 = 0 ; | |
11140 | char *kwnames[] = { | |
11141 | (char *) "self", NULL | |
11142 | }; | |
11143 | ||
11144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragRowSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11147 | { |
11148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11149 | (arg1)->DisableDragRowSize(); | |
11150 | ||
11151 | wxPyEndAllowThreads(__tstate); | |
11152 | if (PyErr_Occurred()) SWIG_fail; | |
11153 | } | |
11154 | Py_INCREF(Py_None); resultobj = Py_None; | |
11155 | return resultobj; | |
11156 | fail: | |
11157 | return NULL; | |
11158 | } | |
11159 | ||
11160 | ||
c370783e | 11161 | static PyObject *_wrap_Grid_CanDragRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11162 | PyObject *resultobj; |
11163 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11164 | bool result; | |
11165 | PyObject * obj0 = 0 ; | |
11166 | char *kwnames[] = { | |
11167 | (char *) "self", NULL | |
11168 | }; | |
11169 | ||
11170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragRowSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11173 | { |
11174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11175 | result = (bool)(arg1)->CanDragRowSize(); | |
11176 | ||
11177 | wxPyEndAllowThreads(__tstate); | |
11178 | if (PyErr_Occurred()) SWIG_fail; | |
11179 | } | |
fbc46b20 RD |
11180 | { |
11181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11182 | } | |
d14a1e28 RD |
11183 | return resultobj; |
11184 | fail: | |
11185 | return NULL; | |
11186 | } | |
11187 | ||
11188 | ||
c370783e | 11189 | static PyObject *_wrap_Grid_EnableDragColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11190 | PyObject *resultobj; |
11191 | wxGrid *arg1 = (wxGrid *) 0 ; | |
b411df4a | 11192 | bool arg2 = (bool) true ; |
d14a1e28 RD |
11193 | PyObject * obj0 = 0 ; |
11194 | PyObject * obj1 = 0 ; | |
11195 | char *kwnames[] = { | |
11196 | (char *) "self",(char *) "enable", NULL | |
11197 | }; | |
11198 | ||
11199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragColSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11202 | if (obj1) { |
c370783e | 11203 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 11204 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11205 | } |
11206 | { | |
11207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11208 | (arg1)->EnableDragColSize(arg2); | |
11209 | ||
11210 | wxPyEndAllowThreads(__tstate); | |
11211 | if (PyErr_Occurred()) SWIG_fail; | |
11212 | } | |
11213 | Py_INCREF(Py_None); resultobj = Py_None; | |
11214 | return resultobj; | |
11215 | fail: | |
11216 | return NULL; | |
11217 | } | |
11218 | ||
11219 | ||
c370783e | 11220 | static PyObject *_wrap_Grid_DisableDragColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11221 | PyObject *resultobj; |
11222 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11223 | PyObject * obj0 = 0 ; | |
11224 | char *kwnames[] = { | |
11225 | (char *) "self", NULL | |
11226 | }; | |
11227 | ||
11228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragColSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11231 | { |
11232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11233 | (arg1)->DisableDragColSize(); | |
11234 | ||
11235 | wxPyEndAllowThreads(__tstate); | |
11236 | if (PyErr_Occurred()) SWIG_fail; | |
11237 | } | |
11238 | Py_INCREF(Py_None); resultobj = Py_None; | |
11239 | return resultobj; | |
11240 | fail: | |
11241 | return NULL; | |
11242 | } | |
11243 | ||
11244 | ||
c370783e | 11245 | static PyObject *_wrap_Grid_CanDragColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11246 | PyObject *resultobj; |
11247 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11248 | bool result; | |
11249 | PyObject * obj0 = 0 ; | |
11250 | char *kwnames[] = { | |
11251 | (char *) "self", NULL | |
11252 | }; | |
11253 | ||
11254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragColSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11257 | { |
11258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11259 | result = (bool)(arg1)->CanDragColSize(); | |
11260 | ||
11261 | wxPyEndAllowThreads(__tstate); | |
11262 | if (PyErr_Occurred()) SWIG_fail; | |
11263 | } | |
fbc46b20 RD |
11264 | { |
11265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11266 | } | |
d14a1e28 RD |
11267 | return resultobj; |
11268 | fail: | |
11269 | return NULL; | |
11270 | } | |
11271 | ||
11272 | ||
c370783e | 11273 | static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11274 | PyObject *resultobj; |
11275 | wxGrid *arg1 = (wxGrid *) 0 ; | |
b411df4a | 11276 | bool arg2 = (bool) true ; |
d14a1e28 RD |
11277 | PyObject * obj0 = 0 ; |
11278 | PyObject * obj1 = 0 ; | |
11279 | char *kwnames[] = { | |
11280 | (char *) "self",(char *) "enable", NULL | |
11281 | }; | |
11282 | ||
11283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragGridSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11286 | if (obj1) { |
c370783e | 11287 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 11288 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11289 | } |
11290 | { | |
11291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11292 | (arg1)->EnableDragGridSize(arg2); | |
11293 | ||
11294 | wxPyEndAllowThreads(__tstate); | |
11295 | if (PyErr_Occurred()) SWIG_fail; | |
11296 | } | |
11297 | Py_INCREF(Py_None); resultobj = Py_None; | |
11298 | return resultobj; | |
11299 | fail: | |
11300 | return NULL; | |
11301 | } | |
11302 | ||
11303 | ||
c370783e | 11304 | static PyObject *_wrap_Grid_DisableDragGridSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11305 | PyObject *resultobj; |
11306 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11307 | PyObject * obj0 = 0 ; | |
11308 | char *kwnames[] = { | |
11309 | (char *) "self", NULL | |
11310 | }; | |
11311 | ||
11312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragGridSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11315 | { |
11316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11317 | (arg1)->DisableDragGridSize(); | |
11318 | ||
11319 | wxPyEndAllowThreads(__tstate); | |
11320 | if (PyErr_Occurred()) SWIG_fail; | |
11321 | } | |
11322 | Py_INCREF(Py_None); resultobj = Py_None; | |
11323 | return resultobj; | |
11324 | fail: | |
11325 | return NULL; | |
11326 | } | |
11327 | ||
11328 | ||
c370783e | 11329 | static PyObject *_wrap_Grid_CanDragGridSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11330 | PyObject *resultobj; |
11331 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11332 | bool result; | |
11333 | PyObject * obj0 = 0 ; | |
11334 | char *kwnames[] = { | |
11335 | (char *) "self", NULL | |
11336 | }; | |
11337 | ||
11338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragGridSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11341 | { |
11342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11343 | result = (bool)(arg1)->CanDragGridSize(); | |
11344 | ||
11345 | wxPyEndAllowThreads(__tstate); | |
11346 | if (PyErr_Occurred()) SWIG_fail; | |
11347 | } | |
fbc46b20 RD |
11348 | { |
11349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11350 | } | |
d14a1e28 RD |
11351 | return resultobj; |
11352 | fail: | |
11353 | return NULL; | |
11354 | } | |
11355 | ||
11356 | ||
c370783e | 11357 | static PyObject *_wrap_Grid_EnableDragCell(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
11358 | PyObject *resultobj; |
11359 | wxGrid *arg1 = (wxGrid *) 0 ; | |
b411df4a | 11360 | bool arg2 = (bool) true ; |
4cf4100f RD |
11361 | PyObject * obj0 = 0 ; |
11362 | PyObject * obj1 = 0 ; | |
11363 | char *kwnames[] = { | |
11364 | (char *) "self",(char *) "enable", NULL | |
11365 | }; | |
11366 | ||
11367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragCell",kwnames,&obj0,&obj1)) goto fail; | |
11368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11370 | if (obj1) { | |
c370783e | 11371 | arg2 = (bool)SWIG_As_bool(obj1); |
4cf4100f RD |
11372 | if (PyErr_Occurred()) SWIG_fail; |
11373 | } | |
11374 | { | |
11375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11376 | (arg1)->EnableDragCell(arg2); | |
11377 | ||
11378 | wxPyEndAllowThreads(__tstate); | |
11379 | if (PyErr_Occurred()) SWIG_fail; | |
11380 | } | |
11381 | Py_INCREF(Py_None); resultobj = Py_None; | |
11382 | return resultobj; | |
11383 | fail: | |
11384 | return NULL; | |
11385 | } | |
11386 | ||
11387 | ||
c370783e | 11388 | static PyObject *_wrap_Grid_DisableDragCell(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
11389 | PyObject *resultobj; |
11390 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11391 | PyObject * obj0 = 0 ; | |
11392 | char *kwnames[] = { | |
11393 | (char *) "self", NULL | |
11394 | }; | |
11395 | ||
11396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragCell",kwnames,&obj0)) goto fail; | |
11397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11399 | { | |
11400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11401 | (arg1)->DisableDragCell(); | |
11402 | ||
11403 | wxPyEndAllowThreads(__tstate); | |
11404 | if (PyErr_Occurred()) SWIG_fail; | |
11405 | } | |
11406 | Py_INCREF(Py_None); resultobj = Py_None; | |
11407 | return resultobj; | |
11408 | fail: | |
11409 | return NULL; | |
11410 | } | |
11411 | ||
11412 | ||
c370783e | 11413 | static PyObject *_wrap_Grid_CanDragCell(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
11414 | PyObject *resultobj; |
11415 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11416 | bool result; | |
11417 | PyObject * obj0 = 0 ; | |
11418 | char *kwnames[] = { | |
11419 | (char *) "self", NULL | |
11420 | }; | |
11421 | ||
11422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragCell",kwnames,&obj0)) goto fail; | |
11423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11425 | { | |
11426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11427 | result = (bool)(arg1)->CanDragCell(); | |
11428 | ||
11429 | wxPyEndAllowThreads(__tstate); | |
11430 | if (PyErr_Occurred()) SWIG_fail; | |
11431 | } | |
11432 | { | |
11433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11434 | } | |
11435 | return resultobj; | |
11436 | fail: | |
11437 | return NULL; | |
11438 | } | |
11439 | ||
11440 | ||
c370783e | 11441 | static PyObject *_wrap_Grid_SetAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11442 | PyObject *resultobj; |
11443 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11444 | int arg2 ; | |
11445 | int arg3 ; | |
11446 | wxGridCellAttr *arg4 = (wxGridCellAttr *) 0 ; | |
11447 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11448 | PyObject * obj1 = 0 ; |
11449 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11450 | PyObject * obj3 = 0 ; |
11451 | char *kwnames[] = { | |
11452 | (char *) "self",(char *) "row",(char *) "col",(char *) "attr", NULL | |
11453 | }; | |
11454 | ||
8edf1c75 | 11455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11458 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 11459 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11460 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 RD |
11461 | if (PyErr_Occurred()) SWIG_fail; |
11462 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellAttr, | |
11463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11464 | { |
11465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11466 | (arg1)->SetAttr(arg2,arg3,arg4); | |
11467 | ||
11468 | wxPyEndAllowThreads(__tstate); | |
11469 | if (PyErr_Occurred()) SWIG_fail; | |
11470 | } | |
11471 | Py_INCREF(Py_None); resultobj = Py_None; | |
11472 | return resultobj; | |
11473 | fail: | |
11474 | return NULL; | |
11475 | } | |
11476 | ||
11477 | ||
c370783e | 11478 | static PyObject *_wrap_Grid_SetRowAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11479 | PyObject *resultobj; |
11480 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11481 | int arg2 ; | |
11482 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
11483 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11484 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11485 | PyObject * obj2 = 0 ; |
11486 | char *kwnames[] = { | |
11487 | (char *) "self",(char *) "row",(char *) "attr", NULL | |
11488 | }; | |
11489 | ||
8edf1c75 | 11490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11493 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 RD |
11494 | if (PyErr_Occurred()) SWIG_fail; |
11495 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
11496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11497 | { |
11498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11499 | (arg1)->SetRowAttr(arg2,arg3); | |
11500 | ||
11501 | wxPyEndAllowThreads(__tstate); | |
11502 | if (PyErr_Occurred()) SWIG_fail; | |
11503 | } | |
11504 | Py_INCREF(Py_None); resultobj = Py_None; | |
11505 | return resultobj; | |
11506 | fail: | |
11507 | return NULL; | |
11508 | } | |
11509 | ||
11510 | ||
c370783e | 11511 | static PyObject *_wrap_Grid_SetColAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11512 | PyObject *resultobj; |
11513 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11514 | int arg2 ; | |
11515 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
11516 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11517 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11518 | PyObject * obj2 = 0 ; |
11519 | char *kwnames[] = { | |
11520 | (char *) "self",(char *) "col",(char *) "attr", NULL | |
11521 | }; | |
11522 | ||
8edf1c75 | 11523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11526 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 RD |
11527 | if (PyErr_Occurred()) SWIG_fail; |
11528 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
11529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11530 | { |
11531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11532 | (arg1)->SetColAttr(arg2,arg3); | |
11533 | ||
11534 | wxPyEndAllowThreads(__tstate); | |
11535 | if (PyErr_Occurred()) SWIG_fail; | |
11536 | } | |
11537 | Py_INCREF(Py_None); resultobj = Py_None; | |
11538 | return resultobj; | |
11539 | fail: | |
11540 | return NULL; | |
11541 | } | |
11542 | ||
11543 | ||
c370783e | 11544 | static PyObject *_wrap_Grid_GetOrCreateCellAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
01ac03ba RD |
11545 | PyObject *resultobj; |
11546 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11547 | int arg2 ; | |
11548 | int arg3 ; | |
11549 | wxGridCellAttr *result; | |
11550 | PyObject * obj0 = 0 ; | |
11551 | PyObject * obj1 = 0 ; | |
11552 | PyObject * obj2 = 0 ; | |
11553 | char *kwnames[] = { | |
11554 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11555 | }; | |
11556 | ||
11557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetOrCreateCellAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
11559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11560 | arg2 = (int)SWIG_As_int(obj1); |
01ac03ba | 11561 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11562 | arg3 = (int)SWIG_As_int(obj2); |
01ac03ba RD |
11563 | if (PyErr_Occurred()) SWIG_fail; |
11564 | { | |
11565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11566 | result = (wxGridCellAttr *)((wxGrid const *)arg1)->GetOrCreateCellAttr(arg2,arg3); | |
11567 | ||
11568 | wxPyEndAllowThreads(__tstate); | |
11569 | if (PyErr_Occurred()) SWIG_fail; | |
11570 | } | |
11571 | { | |
11572 | resultobj = wxPyMake_wxGridCellAttr(result, 0); | |
11573 | } | |
11574 | return resultobj; | |
11575 | fail: | |
11576 | return NULL; | |
11577 | } | |
11578 | ||
11579 | ||
c370783e | 11580 | static PyObject *_wrap_Grid_SetColFormatBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11581 | PyObject *resultobj; |
11582 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11583 | int arg2 ; | |
11584 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11585 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11586 | char *kwnames[] = { |
11587 | (char *) "self",(char *) "col", NULL | |
11588 | }; | |
11589 | ||
8edf1c75 | 11590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatBool",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11593 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 11594 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11595 | { |
11596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11597 | (arg1)->SetColFormatBool(arg2); | |
11598 | ||
11599 | wxPyEndAllowThreads(__tstate); | |
11600 | if (PyErr_Occurred()) SWIG_fail; | |
11601 | } | |
11602 | Py_INCREF(Py_None); resultobj = Py_None; | |
11603 | return resultobj; | |
11604 | fail: | |
11605 | return NULL; | |
11606 | } | |
11607 | ||
11608 | ||
c370783e | 11609 | static PyObject *_wrap_Grid_SetColFormatNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11610 | PyObject *resultobj; |
11611 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11612 | int arg2 ; | |
11613 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11614 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11615 | char *kwnames[] = { |
11616 | (char *) "self",(char *) "col", NULL | |
11617 | }; | |
11618 | ||
8edf1c75 | 11619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatNumber",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11622 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 11623 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11624 | { |
11625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11626 | (arg1)->SetColFormatNumber(arg2); | |
11627 | ||
11628 | wxPyEndAllowThreads(__tstate); | |
11629 | if (PyErr_Occurred()) SWIG_fail; | |
11630 | } | |
11631 | Py_INCREF(Py_None); resultobj = Py_None; | |
11632 | return resultobj; | |
11633 | fail: | |
11634 | return NULL; | |
11635 | } | |
11636 | ||
11637 | ||
c370783e | 11638 | static PyObject *_wrap_Grid_SetColFormatFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11639 | PyObject *resultobj; |
11640 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11641 | int arg2 ; | |
11642 | int arg3 = (int) -1 ; | |
11643 | int arg4 = (int) -1 ; | |
11644 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11645 | PyObject * obj1 = 0 ; |
11646 | PyObject * obj2 = 0 ; | |
11647 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11648 | char *kwnames[] = { |
11649 | (char *) "self",(char *) "col",(char *) "width",(char *) "precision", NULL | |
11650 | }; | |
11651 | ||
8edf1c75 | 11652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetColFormatFloat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11655 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 11656 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11657 | if (obj2) { |
c370783e | 11658 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 11659 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
11660 | } |
11661 | if (obj3) { | |
c370783e | 11662 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 11663 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 11664 | } |
d14a1e28 RD |
11665 | { |
11666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11667 | (arg1)->SetColFormatFloat(arg2,arg3,arg4); | |
11668 | ||
11669 | wxPyEndAllowThreads(__tstate); | |
11670 | if (PyErr_Occurred()) SWIG_fail; | |
11671 | } | |
11672 | Py_INCREF(Py_None); resultobj = Py_None; | |
11673 | return resultobj; | |
11674 | fail: | |
11675 | return NULL; | |
11676 | } | |
11677 | ||
11678 | ||
c370783e | 11679 | static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11680 | PyObject *resultobj; |
11681 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11682 | int arg2 ; | |
11683 | wxString *arg3 = 0 ; | |
b411df4a | 11684 | bool temp3 = false ; |
d14a1e28 | 11685 | PyObject * obj0 = 0 ; |
8edf1c75 | 11686 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11687 | PyObject * obj2 = 0 ; |
11688 | char *kwnames[] = { | |
11689 | (char *) "self",(char *) "col",(char *) "typeName", NULL | |
11690 | }; | |
11691 | ||
8edf1c75 | 11692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColFormatCustom",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11695 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 11696 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11697 | { |
11698 | arg3 = wxString_in_helper(obj2); | |
11699 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 11700 | temp3 = true; |
d14a1e28 RD |
11701 | } |
11702 | { | |
11703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11704 | (arg1)->SetColFormatCustom(arg2,(wxString const &)*arg3); | |
11705 | ||
11706 | wxPyEndAllowThreads(__tstate); | |
11707 | if (PyErr_Occurred()) SWIG_fail; | |
11708 | } | |
11709 | Py_INCREF(Py_None); resultobj = Py_None; | |
11710 | { | |
11711 | if (temp3) | |
11712 | delete arg3; | |
11713 | } | |
11714 | return resultobj; | |
11715 | fail: | |
11716 | { | |
11717 | if (temp3) | |
11718 | delete arg3; | |
11719 | } | |
11720 | return NULL; | |
11721 | } | |
11722 | ||
11723 | ||
c370783e | 11724 | static PyObject *_wrap_Grid_EnableGridLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11725 | PyObject *resultobj; |
11726 | wxGrid *arg1 = (wxGrid *) 0 ; | |
b411df4a | 11727 | bool arg2 = (bool) true ; |
d14a1e28 RD |
11728 | PyObject * obj0 = 0 ; |
11729 | PyObject * obj1 = 0 ; | |
11730 | char *kwnames[] = { | |
11731 | (char *) "self",(char *) "enable", NULL | |
11732 | }; | |
11733 | ||
11734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableGridLines",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11737 | if (obj1) { |
c370783e | 11738 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 11739 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11740 | } |
11741 | { | |
11742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11743 | (arg1)->EnableGridLines(arg2); | |
11744 | ||
11745 | wxPyEndAllowThreads(__tstate); | |
11746 | if (PyErr_Occurred()) SWIG_fail; | |
11747 | } | |
11748 | Py_INCREF(Py_None); resultobj = Py_None; | |
11749 | return resultobj; | |
11750 | fail: | |
11751 | return NULL; | |
11752 | } | |
11753 | ||
11754 | ||
c370783e | 11755 | static PyObject *_wrap_Grid_GridLinesEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11756 | PyObject *resultobj; |
11757 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11758 | bool result; | |
11759 | PyObject * obj0 = 0 ; | |
11760 | char *kwnames[] = { | |
11761 | (char *) "self", NULL | |
11762 | }; | |
11763 | ||
11764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GridLinesEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11767 | { |
11768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11769 | result = (bool)(arg1)->GridLinesEnabled(); | |
11770 | ||
11771 | wxPyEndAllowThreads(__tstate); | |
11772 | if (PyErr_Occurred()) SWIG_fail; | |
11773 | } | |
fbc46b20 RD |
11774 | { |
11775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11776 | } | |
d14a1e28 RD |
11777 | return resultobj; |
11778 | fail: | |
11779 | return NULL; | |
11780 | } | |
11781 | ||
11782 | ||
c370783e | 11783 | static PyObject *_wrap_Grid_GetDefaultRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11784 | PyObject *resultobj; |
11785 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11786 | int result; | |
11787 | PyObject * obj0 = 0 ; | |
11788 | char *kwnames[] = { | |
11789 | (char *) "self", NULL | |
11790 | }; | |
11791 | ||
11792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11795 | { |
11796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11797 | result = (int)(arg1)->GetDefaultRowSize(); | |
11798 | ||
11799 | wxPyEndAllowThreads(__tstate); | |
11800 | if (PyErr_Occurred()) SWIG_fail; | |
11801 | } | |
c370783e | 11802 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11803 | return resultobj; |
11804 | fail: | |
11805 | return NULL; | |
11806 | } | |
11807 | ||
11808 | ||
c370783e | 11809 | static PyObject *_wrap_Grid_GetRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11810 | PyObject *resultobj; |
11811 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11812 | int arg2 ; | |
11813 | int result; | |
11814 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11815 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11816 | char *kwnames[] = { |
11817 | (char *) "self",(char *) "row", NULL | |
11818 | }; | |
11819 | ||
8edf1c75 | 11820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11823 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 11824 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11825 | { |
11826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11827 | result = (int)(arg1)->GetRowSize(arg2); | |
11828 | ||
11829 | wxPyEndAllowThreads(__tstate); | |
11830 | if (PyErr_Occurred()) SWIG_fail; | |
11831 | } | |
c370783e | 11832 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11833 | return resultobj; |
11834 | fail: | |
11835 | return NULL; | |
11836 | } | |
11837 | ||
11838 | ||
c370783e | 11839 | static PyObject *_wrap_Grid_GetDefaultColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11840 | PyObject *resultobj; |
11841 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11842 | int result; | |
11843 | PyObject * obj0 = 0 ; | |
11844 | char *kwnames[] = { | |
11845 | (char *) "self", NULL | |
11846 | }; | |
11847 | ||
11848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11851 | { |
11852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11853 | result = (int)(arg1)->GetDefaultColSize(); | |
11854 | ||
11855 | wxPyEndAllowThreads(__tstate); | |
11856 | if (PyErr_Occurred()) SWIG_fail; | |
11857 | } | |
c370783e | 11858 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11859 | return resultobj; |
11860 | fail: | |
11861 | return NULL; | |
11862 | } | |
11863 | ||
11864 | ||
c370783e | 11865 | static PyObject *_wrap_Grid_GetColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11866 | PyObject *resultobj; |
11867 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11868 | int arg2 ; | |
11869 | int result; | |
11870 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11871 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11872 | char *kwnames[] = { |
11873 | (char *) "self",(char *) "col", NULL | |
11874 | }; | |
11875 | ||
8edf1c75 | 11876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11879 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 11880 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11881 | { |
11882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11883 | result = (int)(arg1)->GetColSize(arg2); | |
11884 | ||
11885 | wxPyEndAllowThreads(__tstate); | |
11886 | if (PyErr_Occurred()) SWIG_fail; | |
11887 | } | |
c370783e | 11888 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
11889 | return resultobj; |
11890 | fail: | |
11891 | return NULL; | |
11892 | } | |
11893 | ||
11894 | ||
c370783e | 11895 | static PyObject *_wrap_Grid_GetDefaultCellBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11896 | PyObject *resultobj; |
11897 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11898 | wxColour result; | |
11899 | PyObject * obj0 = 0 ; | |
11900 | char *kwnames[] = { | |
11901 | (char *) "self", NULL | |
11902 | }; | |
11903 | ||
11904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11907 | { |
11908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11909 | result = (arg1)->GetDefaultCellBackgroundColour(); | |
11910 | ||
11911 | wxPyEndAllowThreads(__tstate); | |
11912 | if (PyErr_Occurred()) SWIG_fail; | |
11913 | } | |
11914 | { | |
11915 | wxColour * resultptr; | |
11916 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 11917 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
11918 | } |
11919 | return resultobj; | |
11920 | fail: | |
11921 | return NULL; | |
11922 | } | |
11923 | ||
11924 | ||
c370783e | 11925 | static PyObject *_wrap_Grid_GetCellBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11926 | PyObject *resultobj; |
11927 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11928 | int arg2 ; | |
11929 | int arg3 ; | |
11930 | wxColour result; | |
11931 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11932 | PyObject * obj1 = 0 ; |
11933 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11934 | char *kwnames[] = { |
11935 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11936 | }; | |
11937 | ||
8edf1c75 | 11938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11941 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 11942 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11943 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 11944 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11945 | { |
11946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11947 | result = (arg1)->GetCellBackgroundColour(arg2,arg3); | |
11948 | ||
11949 | wxPyEndAllowThreads(__tstate); | |
11950 | if (PyErr_Occurred()) SWIG_fail; | |
11951 | } | |
11952 | { | |
11953 | wxColour * resultptr; | |
11954 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 11955 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
11956 | } |
11957 | return resultobj; | |
11958 | fail: | |
11959 | return NULL; | |
11960 | } | |
11961 | ||
11962 | ||
c370783e | 11963 | static PyObject *_wrap_Grid_GetDefaultCellTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11964 | PyObject *resultobj; |
11965 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11966 | wxColour result; | |
11967 | PyObject * obj0 = 0 ; | |
11968 | char *kwnames[] = { | |
11969 | (char *) "self", NULL | |
11970 | }; | |
11971 | ||
11972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11975 | { |
11976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11977 | result = (arg1)->GetDefaultCellTextColour(); | |
11978 | ||
11979 | wxPyEndAllowThreads(__tstate); | |
11980 | if (PyErr_Occurred()) SWIG_fail; | |
11981 | } | |
11982 | { | |
11983 | wxColour * resultptr; | |
11984 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 11985 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
11986 | } |
11987 | return resultobj; | |
11988 | fail: | |
11989 | return NULL; | |
11990 | } | |
11991 | ||
11992 | ||
c370783e | 11993 | static PyObject *_wrap_Grid_GetCellTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11994 | PyObject *resultobj; |
11995 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11996 | int arg2 ; | |
11997 | int arg3 ; | |
11998 | wxColour result; | |
11999 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12000 | PyObject * obj1 = 0 ; |
12001 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12002 | char *kwnames[] = { |
12003 | (char *) "self",(char *) "row",(char *) "col", NULL | |
12004 | }; | |
12005 | ||
8edf1c75 | 12006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12009 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12010 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12011 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 12012 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12013 | { |
12014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12015 | result = (arg1)->GetCellTextColour(arg2,arg3); | |
12016 | ||
12017 | wxPyEndAllowThreads(__tstate); | |
12018 | if (PyErr_Occurred()) SWIG_fail; | |
12019 | } | |
12020 | { | |
12021 | wxColour * resultptr; | |
12022 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 12023 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
12024 | } |
12025 | return resultobj; | |
12026 | fail: | |
12027 | return NULL; | |
12028 | } | |
12029 | ||
12030 | ||
c370783e | 12031 | static PyObject *_wrap_Grid_GetDefaultCellFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12032 | PyObject *resultobj; |
12033 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12034 | wxFont result; | |
12035 | PyObject * obj0 = 0 ; | |
12036 | char *kwnames[] = { | |
12037 | (char *) "self", NULL | |
12038 | }; | |
12039 | ||
12040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12043 | { |
12044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12045 | result = (arg1)->GetDefaultCellFont(); | |
12046 | ||
12047 | wxPyEndAllowThreads(__tstate); | |
12048 | if (PyErr_Occurred()) SWIG_fail; | |
12049 | } | |
12050 | { | |
12051 | wxFont * resultptr; | |
12052 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 12053 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
12054 | } |
12055 | return resultobj; | |
12056 | fail: | |
12057 | return NULL; | |
12058 | } | |
12059 | ||
12060 | ||
c370783e | 12061 | static PyObject *_wrap_Grid_GetCellFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12062 | PyObject *resultobj; |
12063 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12064 | int arg2 ; | |
12065 | int arg3 ; | |
12066 | wxFont result; | |
12067 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12068 | PyObject * obj1 = 0 ; |
12069 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12070 | char *kwnames[] = { |
12071 | (char *) "self",(char *) "row",(char *) "col", NULL | |
12072 | }; | |
12073 | ||
8edf1c75 | 12074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12077 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12078 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12079 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 12080 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12081 | { |
12082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12083 | result = (arg1)->GetCellFont(arg2,arg3); | |
12084 | ||
12085 | wxPyEndAllowThreads(__tstate); | |
12086 | if (PyErr_Occurred()) SWIG_fail; | |
12087 | } | |
12088 | { | |
12089 | wxFont * resultptr; | |
12090 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 12091 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
12092 | } |
12093 | return resultobj; | |
12094 | fail: | |
12095 | return NULL; | |
12096 | } | |
12097 | ||
12098 | ||
c370783e | 12099 | static PyObject *_wrap_Grid_GetDefaultCellAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12100 | PyObject *resultobj; |
12101 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12102 | int *arg2 = (int *) 0 ; | |
12103 | int *arg3 = (int *) 0 ; | |
12104 | int temp2 ; | |
c370783e | 12105 | int res2 = 0 ; |
d14a1e28 | 12106 | int temp3 ; |
c370783e | 12107 | int res3 = 0 ; |
d14a1e28 RD |
12108 | PyObject * obj0 = 0 ; |
12109 | char *kwnames[] = { | |
12110 | (char *) "self", NULL | |
12111 | }; | |
12112 | ||
c370783e RD |
12113 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
12114 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 12115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellAlignment",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
12116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12118 | { |
12119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12120 | (arg1)->GetDefaultCellAlignment(arg2,arg3); | |
12121 | ||
12122 | wxPyEndAllowThreads(__tstate); | |
12123 | if (PyErr_Occurred()) SWIG_fail; | |
12124 | } | |
12125 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
12126 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
12127 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
12128 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
12129 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
12130 | return resultobj; |
12131 | fail: | |
12132 | return NULL; | |
12133 | } | |
12134 | ||
12135 | ||
c370783e | 12136 | static PyObject *_wrap_Grid_GetCellAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12137 | PyObject *resultobj; |
12138 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12139 | int arg2 ; | |
12140 | int arg3 ; | |
12141 | int *arg4 = (int *) 0 ; | |
12142 | int *arg5 = (int *) 0 ; | |
12143 | int temp4 ; | |
c370783e | 12144 | int res4 = 0 ; |
d14a1e28 | 12145 | int temp5 ; |
c370783e | 12146 | int res5 = 0 ; |
d14a1e28 | 12147 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12148 | PyObject * obj1 = 0 ; |
12149 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12150 | char *kwnames[] = { |
12151 | (char *) "self",(char *) "row",(char *) "col", NULL | |
12152 | }; | |
12153 | ||
c370783e RD |
12154 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
12155 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
8edf1c75 | 12156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12159 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12160 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12161 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 12162 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12163 | { |
12164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12165 | (arg1)->GetCellAlignment(arg2,arg3,arg4,arg5); | |
12166 | ||
12167 | wxPyEndAllowThreads(__tstate); | |
12168 | if (PyErr_Occurred()) SWIG_fail; | |
12169 | } | |
12170 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
12171 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
12172 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
12173 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
12174 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
12175 | return resultobj; |
12176 | fail: | |
12177 | return NULL; | |
12178 | } | |
12179 | ||
12180 | ||
c370783e | 12181 | static PyObject *_wrap_Grid_GetDefaultCellOverflow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12182 | PyObject *resultobj; |
12183 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12184 | bool result; | |
12185 | PyObject * obj0 = 0 ; | |
12186 | char *kwnames[] = { | |
12187 | (char *) "self", NULL | |
12188 | }; | |
12189 | ||
12190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellOverflow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12193 | { |
12194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12195 | result = (bool)(arg1)->GetDefaultCellOverflow(); | |
12196 | ||
12197 | wxPyEndAllowThreads(__tstate); | |
12198 | if (PyErr_Occurred()) SWIG_fail; | |
12199 | } | |
fbc46b20 RD |
12200 | { |
12201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12202 | } | |
d14a1e28 RD |
12203 | return resultobj; |
12204 | fail: | |
12205 | return NULL; | |
12206 | } | |
12207 | ||
12208 | ||
c370783e | 12209 | static PyObject *_wrap_Grid_GetCellOverflow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12210 | PyObject *resultobj; |
12211 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12212 | int arg2 ; | |
12213 | int arg3 ; | |
12214 | bool result; | |
12215 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12216 | PyObject * obj1 = 0 ; |
12217 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12218 | char *kwnames[] = { |
12219 | (char *) "self",(char *) "row",(char *) "col", NULL | |
12220 | }; | |
12221 | ||
8edf1c75 | 12222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellOverflow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12225 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12226 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12227 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 12228 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12229 | { |
12230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12231 | result = (bool)(arg1)->GetCellOverflow(arg2,arg3); | |
12232 | ||
12233 | wxPyEndAllowThreads(__tstate); | |
12234 | if (PyErr_Occurred()) SWIG_fail; | |
12235 | } | |
fbc46b20 RD |
12236 | { |
12237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12238 | } | |
d14a1e28 RD |
12239 | return resultobj; |
12240 | fail: | |
12241 | return NULL; | |
12242 | } | |
12243 | ||
12244 | ||
c370783e | 12245 | static PyObject *_wrap_Grid_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12246 | PyObject *resultobj; |
12247 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12248 | int arg2 ; | |
12249 | int arg3 ; | |
12250 | int *arg4 = (int *) 0 ; | |
12251 | int *arg5 = (int *) 0 ; | |
12252 | int temp4 ; | |
c370783e | 12253 | int res4 = 0 ; |
d14a1e28 | 12254 | int temp5 ; |
c370783e | 12255 | int res5 = 0 ; |
d14a1e28 | 12256 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12257 | PyObject * obj1 = 0 ; |
12258 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12259 | char *kwnames[] = { |
12260 | (char *) "self",(char *) "row",(char *) "col", NULL | |
12261 | }; | |
12262 | ||
c370783e RD |
12263 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
12264 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
8edf1c75 | 12265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12268 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12269 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12270 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 12271 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12272 | { |
12273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12274 | (arg1)->GetCellSize(arg2,arg3,arg4,arg5); | |
12275 | ||
12276 | wxPyEndAllowThreads(__tstate); | |
12277 | if (PyErr_Occurred()) SWIG_fail; | |
12278 | } | |
12279 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
12280 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
12281 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
12282 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
12283 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
12284 | return resultobj; |
12285 | fail: | |
12286 | return NULL; | |
12287 | } | |
12288 | ||
12289 | ||
c370783e | 12290 | static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12291 | PyObject *resultobj; |
12292 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12293 | int arg2 ; | |
b411df4a | 12294 | bool arg3 = (bool) false ; |
d14a1e28 | 12295 | PyObject * obj0 = 0 ; |
8edf1c75 | 12296 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12297 | PyObject * obj2 = 0 ; |
12298 | char *kwnames[] = { | |
12299 | (char *) "self",(char *) "height",(char *) "resizeExistingRows", NULL | |
12300 | }; | |
12301 | ||
8edf1c75 | 12302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12305 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12306 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12307 | if (obj2) { |
c370783e | 12308 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 12309 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12310 | } |
12311 | { | |
12312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12313 | (arg1)->SetDefaultRowSize(arg2,arg3); | |
12314 | ||
12315 | wxPyEndAllowThreads(__tstate); | |
12316 | if (PyErr_Occurred()) SWIG_fail; | |
12317 | } | |
12318 | Py_INCREF(Py_None); resultobj = Py_None; | |
12319 | return resultobj; | |
12320 | fail: | |
12321 | return NULL; | |
12322 | } | |
12323 | ||
12324 | ||
c370783e | 12325 | static PyObject *_wrap_Grid_SetRowSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12326 | PyObject *resultobj; |
12327 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12328 | int arg2 ; | |
12329 | int arg3 ; | |
12330 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12331 | PyObject * obj1 = 0 ; |
12332 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12333 | char *kwnames[] = { |
12334 | (char *) "self",(char *) "row",(char *) "height", NULL | |
12335 | }; | |
12336 | ||
8edf1c75 | 12337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12340 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12341 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12342 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 12343 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12344 | { |
12345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12346 | (arg1)->SetRowSize(arg2,arg3); | |
12347 | ||
12348 | wxPyEndAllowThreads(__tstate); | |
12349 | if (PyErr_Occurred()) SWIG_fail; | |
12350 | } | |
12351 | Py_INCREF(Py_None); resultobj = Py_None; | |
12352 | return resultobj; | |
12353 | fail: | |
12354 | return NULL; | |
12355 | } | |
12356 | ||
12357 | ||
c370783e | 12358 | static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12359 | PyObject *resultobj; |
12360 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12361 | int arg2 ; | |
b411df4a | 12362 | bool arg3 = (bool) false ; |
d14a1e28 | 12363 | PyObject * obj0 = 0 ; |
8edf1c75 | 12364 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12365 | PyObject * obj2 = 0 ; |
12366 | char *kwnames[] = { | |
12367 | (char *) "self",(char *) "width",(char *) "resizeExistingCols", NULL | |
12368 | }; | |
12369 | ||
8edf1c75 | 12370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultColSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12373 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12374 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12375 | if (obj2) { |
c370783e | 12376 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 12377 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12378 | } |
12379 | { | |
12380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12381 | (arg1)->SetDefaultColSize(arg2,arg3); | |
12382 | ||
12383 | wxPyEndAllowThreads(__tstate); | |
12384 | if (PyErr_Occurred()) SWIG_fail; | |
12385 | } | |
12386 | Py_INCREF(Py_None); resultobj = Py_None; | |
12387 | return resultobj; | |
12388 | fail: | |
12389 | return NULL; | |
12390 | } | |
12391 | ||
12392 | ||
c370783e | 12393 | static PyObject *_wrap_Grid_SetColSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12394 | PyObject *resultobj; |
12395 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12396 | int arg2 ; | |
12397 | int arg3 ; | |
12398 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12399 | PyObject * obj1 = 0 ; |
12400 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12401 | char *kwnames[] = { |
12402 | (char *) "self",(char *) "col",(char *) "width", NULL | |
12403 | }; | |
12404 | ||
8edf1c75 | 12405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12408 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12409 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12410 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 12411 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12412 | { |
12413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12414 | (arg1)->SetColSize(arg2,arg3); | |
12415 | ||
12416 | wxPyEndAllowThreads(__tstate); | |
12417 | if (PyErr_Occurred()) SWIG_fail; | |
12418 | } | |
12419 | Py_INCREF(Py_None); resultobj = Py_None; | |
12420 | return resultobj; | |
12421 | fail: | |
12422 | return NULL; | |
12423 | } | |
12424 | ||
12425 | ||
c370783e | 12426 | static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12427 | PyObject *resultobj; |
12428 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12429 | int arg2 ; | |
b411df4a | 12430 | bool arg3 = (bool) true ; |
d14a1e28 | 12431 | PyObject * obj0 = 0 ; |
8edf1c75 | 12432 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12433 | PyObject * obj2 = 0 ; |
12434 | char *kwnames[] = { | |
12435 | (char *) "self",(char *) "col",(char *) "setAsMin", NULL | |
12436 | }; | |
12437 | ||
8edf1c75 | 12438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12441 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12442 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12443 | if (obj2) { |
c370783e | 12444 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 12445 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12446 | } |
12447 | { | |
12448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12449 | (arg1)->AutoSizeColumn(arg2,arg3); | |
12450 | ||
12451 | wxPyEndAllowThreads(__tstate); | |
12452 | if (PyErr_Occurred()) SWIG_fail; | |
12453 | } | |
12454 | Py_INCREF(Py_None); resultobj = Py_None; | |
12455 | return resultobj; | |
12456 | fail: | |
12457 | return NULL; | |
12458 | } | |
12459 | ||
12460 | ||
c370783e | 12461 | static PyObject *_wrap_Grid_AutoSizeRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12462 | PyObject *resultobj; |
12463 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12464 | int arg2 ; | |
b411df4a | 12465 | bool arg3 = (bool) true ; |
d14a1e28 | 12466 | PyObject * obj0 = 0 ; |
8edf1c75 | 12467 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12468 | PyObject * obj2 = 0 ; |
12469 | char *kwnames[] = { | |
12470 | (char *) "self",(char *) "row",(char *) "setAsMin", NULL | |
12471 | }; | |
12472 | ||
8edf1c75 | 12473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12476 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12477 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12478 | if (obj2) { |
c370783e | 12479 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 12480 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12481 | } |
12482 | { | |
12483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12484 | (arg1)->AutoSizeRow(arg2,arg3); | |
12485 | ||
12486 | wxPyEndAllowThreads(__tstate); | |
12487 | if (PyErr_Occurred()) SWIG_fail; | |
12488 | } | |
12489 | Py_INCREF(Py_None); resultobj = Py_None; | |
12490 | return resultobj; | |
12491 | fail: | |
12492 | return NULL; | |
12493 | } | |
12494 | ||
12495 | ||
c370783e | 12496 | static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12497 | PyObject *resultobj; |
12498 | wxGrid *arg1 = (wxGrid *) 0 ; | |
b411df4a | 12499 | bool arg2 = (bool) true ; |
d14a1e28 RD |
12500 | PyObject * obj0 = 0 ; |
12501 | PyObject * obj1 = 0 ; | |
12502 | char *kwnames[] = { | |
12503 | (char *) "self",(char *) "setAsMin", NULL | |
12504 | }; | |
12505 | ||
12506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeColumns",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12509 | if (obj1) { |
c370783e | 12510 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 12511 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12512 | } |
12513 | { | |
12514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12515 | (arg1)->AutoSizeColumns(arg2); | |
12516 | ||
12517 | wxPyEndAllowThreads(__tstate); | |
12518 | if (PyErr_Occurred()) SWIG_fail; | |
12519 | } | |
12520 | Py_INCREF(Py_None); resultobj = Py_None; | |
12521 | return resultobj; | |
12522 | fail: | |
12523 | return NULL; | |
12524 | } | |
12525 | ||
12526 | ||
c370783e | 12527 | static PyObject *_wrap_Grid_AutoSizeRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12528 | PyObject *resultobj; |
12529 | wxGrid *arg1 = (wxGrid *) 0 ; | |
b411df4a | 12530 | bool arg2 = (bool) true ; |
d14a1e28 RD |
12531 | PyObject * obj0 = 0 ; |
12532 | PyObject * obj1 = 0 ; | |
12533 | char *kwnames[] = { | |
12534 | (char *) "self",(char *) "setAsMin", NULL | |
12535 | }; | |
12536 | ||
12537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeRows",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12540 | if (obj1) { |
c370783e | 12541 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 12542 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12543 | } |
12544 | { | |
12545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12546 | (arg1)->AutoSizeRows(arg2); | |
12547 | ||
12548 | wxPyEndAllowThreads(__tstate); | |
12549 | if (PyErr_Occurred()) SWIG_fail; | |
12550 | } | |
12551 | Py_INCREF(Py_None); resultobj = Py_None; | |
12552 | return resultobj; | |
12553 | fail: | |
12554 | return NULL; | |
12555 | } | |
12556 | ||
12557 | ||
c370783e | 12558 | static PyObject *_wrap_Grid_AutoSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12559 | PyObject *resultobj; |
12560 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12561 | PyObject * obj0 = 0 ; | |
12562 | char *kwnames[] = { | |
12563 | (char *) "self", NULL | |
12564 | }; | |
12565 | ||
12566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_AutoSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12569 | { |
12570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12571 | (arg1)->AutoSize(); | |
12572 | ||
12573 | wxPyEndAllowThreads(__tstate); | |
12574 | if (PyErr_Occurred()) SWIG_fail; | |
12575 | } | |
12576 | Py_INCREF(Py_None); resultobj = Py_None; | |
12577 | return resultobj; | |
12578 | fail: | |
12579 | return NULL; | |
12580 | } | |
12581 | ||
12582 | ||
c370783e | 12583 | static PyObject *_wrap_Grid_AutoSizeRowLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12584 | PyObject *resultobj; |
12585 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12586 | int arg2 ; | |
12587 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12588 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12589 | char *kwnames[] = { |
12590 | (char *) "self",(char *) "row", NULL | |
12591 | }; | |
12592 | ||
8edf1c75 | 12593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeRowLabelSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12596 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12597 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12598 | { |
12599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12600 | (arg1)->AutoSizeRowLabelSize(arg2); | |
12601 | ||
12602 | wxPyEndAllowThreads(__tstate); | |
12603 | if (PyErr_Occurred()) SWIG_fail; | |
12604 | } | |
12605 | Py_INCREF(Py_None); resultobj = Py_None; | |
12606 | return resultobj; | |
12607 | fail: | |
12608 | return NULL; | |
12609 | } | |
12610 | ||
12611 | ||
c370783e | 12612 | static PyObject *_wrap_Grid_AutoSizeColLabelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12613 | PyObject *resultobj; |
12614 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12615 | int arg2 ; | |
12616 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12617 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12618 | char *kwnames[] = { |
12619 | (char *) "self",(char *) "col", NULL | |
12620 | }; | |
12621 | ||
8edf1c75 | 12622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeColLabelSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12625 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12626 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12627 | { |
12628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12629 | (arg1)->AutoSizeColLabelSize(arg2); | |
12630 | ||
12631 | wxPyEndAllowThreads(__tstate); | |
12632 | if (PyErr_Occurred()) SWIG_fail; | |
12633 | } | |
12634 | Py_INCREF(Py_None); resultobj = Py_None; | |
12635 | return resultobj; | |
12636 | fail: | |
12637 | return NULL; | |
12638 | } | |
12639 | ||
12640 | ||
c370783e | 12641 | static PyObject *_wrap_Grid_SetColMinimalWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12642 | PyObject *resultobj; |
12643 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12644 | int arg2 ; | |
12645 | int arg3 ; | |
12646 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12647 | PyObject * obj1 = 0 ; |
12648 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12649 | char *kwnames[] = { |
12650 | (char *) "self",(char *) "col",(char *) "width", NULL | |
12651 | }; | |
12652 | ||
8edf1c75 | 12653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColMinimalWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12656 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12657 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12658 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 12659 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12660 | { |
12661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12662 | (arg1)->SetColMinimalWidth(arg2,arg3); | |
12663 | ||
12664 | wxPyEndAllowThreads(__tstate); | |
12665 | if (PyErr_Occurred()) SWIG_fail; | |
12666 | } | |
12667 | Py_INCREF(Py_None); resultobj = Py_None; | |
12668 | return resultobj; | |
12669 | fail: | |
12670 | return NULL; | |
12671 | } | |
12672 | ||
12673 | ||
c370783e | 12674 | static PyObject *_wrap_Grid_SetRowMinimalHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12675 | PyObject *resultobj; |
12676 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12677 | int arg2 ; | |
12678 | int arg3 ; | |
12679 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12680 | PyObject * obj1 = 0 ; |
12681 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12682 | char *kwnames[] = { |
12683 | (char *) "self",(char *) "row",(char *) "width", NULL | |
12684 | }; | |
12685 | ||
8edf1c75 | 12686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowMinimalHeight",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12689 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12690 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12691 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 12692 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12693 | { |
12694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12695 | (arg1)->SetRowMinimalHeight(arg2,arg3); | |
12696 | ||
12697 | wxPyEndAllowThreads(__tstate); | |
12698 | if (PyErr_Occurred()) SWIG_fail; | |
12699 | } | |
12700 | Py_INCREF(Py_None); resultobj = Py_None; | |
12701 | return resultobj; | |
12702 | fail: | |
12703 | return NULL; | |
12704 | } | |
12705 | ||
12706 | ||
c370783e | 12707 | static PyObject *_wrap_Grid_SetColMinimalAcceptableWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12708 | PyObject *resultobj; |
12709 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12710 | int arg2 ; | |
12711 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12712 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12713 | char *kwnames[] = { |
12714 | (char *) "self",(char *) "width", NULL | |
12715 | }; | |
12716 | ||
8edf1c75 | 12717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColMinimalAcceptableWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12720 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12721 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12722 | { |
12723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12724 | (arg1)->SetColMinimalAcceptableWidth(arg2); | |
12725 | ||
12726 | wxPyEndAllowThreads(__tstate); | |
12727 | if (PyErr_Occurred()) SWIG_fail; | |
12728 | } | |
12729 | Py_INCREF(Py_None); resultobj = Py_None; | |
12730 | return resultobj; | |
12731 | fail: | |
12732 | return NULL; | |
12733 | } | |
12734 | ||
12735 | ||
c370783e | 12736 | static PyObject *_wrap_Grid_SetRowMinimalAcceptableHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12737 | PyObject *resultobj; |
12738 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12739 | int arg2 ; | |
12740 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12741 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12742 | char *kwnames[] = { |
12743 | (char *) "self",(char *) "width", NULL | |
12744 | }; | |
12745 | ||
8edf1c75 | 12746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowMinimalAcceptableHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12749 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12750 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12751 | { |
12752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12753 | (arg1)->SetRowMinimalAcceptableHeight(arg2); | |
12754 | ||
12755 | wxPyEndAllowThreads(__tstate); | |
12756 | if (PyErr_Occurred()) SWIG_fail; | |
12757 | } | |
12758 | Py_INCREF(Py_None); resultobj = Py_None; | |
12759 | return resultobj; | |
12760 | fail: | |
12761 | return NULL; | |
12762 | } | |
12763 | ||
12764 | ||
c370783e | 12765 | static PyObject *_wrap_Grid_GetColMinimalAcceptableWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12766 | PyObject *resultobj; |
12767 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12768 | int result; | |
12769 | PyObject * obj0 = 0 ; | |
12770 | char *kwnames[] = { | |
12771 | (char *) "self", NULL | |
12772 | }; | |
12773 | ||
12774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColMinimalAcceptableWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12777 | { |
12778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12779 | result = (int)((wxGrid const *)arg1)->GetColMinimalAcceptableWidth(); | |
12780 | ||
12781 | wxPyEndAllowThreads(__tstate); | |
12782 | if (PyErr_Occurred()) SWIG_fail; | |
12783 | } | |
c370783e | 12784 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12785 | return resultobj; |
12786 | fail: | |
12787 | return NULL; | |
12788 | } | |
12789 | ||
12790 | ||
c370783e | 12791 | static PyObject *_wrap_Grid_GetRowMinimalAcceptableHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12792 | PyObject *resultobj; |
12793 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12794 | int result; | |
12795 | PyObject * obj0 = 0 ; | |
12796 | char *kwnames[] = { | |
12797 | (char *) "self", NULL | |
12798 | }; | |
12799 | ||
12800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowMinimalAcceptableHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12803 | { |
12804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12805 | result = (int)((wxGrid const *)arg1)->GetRowMinimalAcceptableHeight(); | |
12806 | ||
12807 | wxPyEndAllowThreads(__tstate); | |
12808 | if (PyErr_Occurred()) SWIG_fail; | |
12809 | } | |
c370783e | 12810 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
12811 | return resultobj; |
12812 | fail: | |
12813 | return NULL; | |
12814 | } | |
12815 | ||
12816 | ||
c370783e | 12817 | static PyObject *_wrap_Grid_SetDefaultCellBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12818 | PyObject *resultobj; |
12819 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12820 | wxColour *arg2 = 0 ; | |
12821 | wxColour temp2 ; | |
12822 | PyObject * obj0 = 0 ; | |
12823 | PyObject * obj1 = 0 ; | |
12824 | char *kwnames[] = { | |
12825 | (char *) "self","arg2", NULL | |
12826 | }; | |
12827 | ||
12828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12831 | { |
12832 | arg2 = &temp2; | |
12833 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12834 | } | |
12835 | { | |
12836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12837 | (arg1)->SetDefaultCellBackgroundColour((wxColour const &)*arg2); | |
12838 | ||
12839 | wxPyEndAllowThreads(__tstate); | |
12840 | if (PyErr_Occurred()) SWIG_fail; | |
12841 | } | |
12842 | Py_INCREF(Py_None); resultobj = Py_None; | |
12843 | return resultobj; | |
12844 | fail: | |
12845 | return NULL; | |
12846 | } | |
12847 | ||
12848 | ||
c370783e | 12849 | static PyObject *_wrap_Grid_SetCellBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12850 | PyObject *resultobj; |
12851 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12852 | int arg2 ; | |
12853 | int arg3 ; | |
12854 | wxColour *arg4 = 0 ; | |
12855 | wxColour temp4 ; | |
12856 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12857 | PyObject * obj1 = 0 ; |
12858 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12859 | PyObject * obj3 = 0 ; |
12860 | char *kwnames[] = { | |
12861 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12862 | }; | |
12863 | ||
8edf1c75 | 12864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
12865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12867 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12868 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12869 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 12870 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12871 | { |
12872 | arg4 = &temp4; | |
12873 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12874 | } | |
12875 | { | |
12876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12877 | (arg1)->SetCellBackgroundColour(arg2,arg3,(wxColour const &)*arg4); | |
12878 | ||
12879 | wxPyEndAllowThreads(__tstate); | |
12880 | if (PyErr_Occurred()) SWIG_fail; | |
12881 | } | |
12882 | Py_INCREF(Py_None); resultobj = Py_None; | |
12883 | return resultobj; | |
12884 | fail: | |
12885 | return NULL; | |
12886 | } | |
12887 | ||
12888 | ||
c370783e | 12889 | static PyObject *_wrap_Grid_SetDefaultCellTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12890 | PyObject *resultobj; |
12891 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12892 | wxColour *arg2 = 0 ; | |
12893 | wxColour temp2 ; | |
12894 | PyObject * obj0 = 0 ; | |
12895 | PyObject * obj1 = 0 ; | |
12896 | char *kwnames[] = { | |
12897 | (char *) "self","arg2", NULL | |
12898 | }; | |
12899 | ||
12900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12903 | { |
12904 | arg2 = &temp2; | |
12905 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12906 | } | |
12907 | { | |
12908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12909 | (arg1)->SetDefaultCellTextColour((wxColour const &)*arg2); | |
12910 | ||
12911 | wxPyEndAllowThreads(__tstate); | |
12912 | if (PyErr_Occurred()) SWIG_fail; | |
12913 | } | |
12914 | Py_INCREF(Py_None); resultobj = Py_None; | |
12915 | return resultobj; | |
12916 | fail: | |
12917 | return NULL; | |
12918 | } | |
12919 | ||
12920 | ||
c370783e | 12921 | static PyObject *_wrap_Grid_SetCellTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12922 | PyObject *resultobj; |
12923 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12924 | int arg2 ; | |
12925 | int arg3 ; | |
12926 | wxColour *arg4 = 0 ; | |
12927 | wxColour temp4 ; | |
12928 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12929 | PyObject * obj1 = 0 ; |
12930 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12931 | PyObject * obj3 = 0 ; |
12932 | char *kwnames[] = { | |
12933 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12934 | }; | |
12935 | ||
8edf1c75 | 12936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellTextColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
12937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12939 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 12940 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12941 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 12942 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12943 | { |
12944 | arg4 = &temp4; | |
12945 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12946 | } | |
12947 | { | |
12948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12949 | (arg1)->SetCellTextColour(arg2,arg3,(wxColour const &)*arg4); | |
12950 | ||
12951 | wxPyEndAllowThreads(__tstate); | |
12952 | if (PyErr_Occurred()) SWIG_fail; | |
12953 | } | |
12954 | Py_INCREF(Py_None); resultobj = Py_None; | |
12955 | return resultobj; | |
12956 | fail: | |
12957 | return NULL; | |
12958 | } | |
12959 | ||
12960 | ||
c370783e | 12961 | static PyObject *_wrap_Grid_SetDefaultCellFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12962 | PyObject *resultobj; |
12963 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12964 | wxFont *arg2 = 0 ; | |
12965 | PyObject * obj0 = 0 ; | |
12966 | PyObject * obj1 = 0 ; | |
12967 | char *kwnames[] = { | |
12968 | (char *) "self","arg2", NULL | |
12969 | }; | |
12970 | ||
12971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12974 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
12975 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12976 | SWIG_fail; | |
d14a1e28 | 12977 | if (arg2 == NULL) { |
2f4c0a16 RD |
12978 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12979 | SWIG_fail; | |
d14a1e28 RD |
12980 | } |
12981 | { | |
12982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12983 | (arg1)->SetDefaultCellFont((wxFont const &)*arg2); | |
12984 | ||
12985 | wxPyEndAllowThreads(__tstate); | |
12986 | if (PyErr_Occurred()) SWIG_fail; | |
12987 | } | |
12988 | Py_INCREF(Py_None); resultobj = Py_None; | |
12989 | return resultobj; | |
12990 | fail: | |
12991 | return NULL; | |
12992 | } | |
12993 | ||
12994 | ||
c370783e | 12995 | static PyObject *_wrap_Grid_SetCellFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12996 | PyObject *resultobj; |
12997 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12998 | int arg2 ; | |
12999 | int arg3 ; | |
13000 | wxFont *arg4 = 0 ; | |
13001 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13002 | PyObject * obj1 = 0 ; |
13003 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13004 | PyObject * obj3 = 0 ; |
13005 | char *kwnames[] = { | |
13006 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
13007 | }; | |
13008 | ||
2f4c0a16 RD |
13009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellFont",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
13011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13012 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13013 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13014 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 RD |
13015 | if (PyErr_Occurred()) SWIG_fail; |
13016 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxFont, | |
13017 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13018 | SWIG_fail; | |
d14a1e28 | 13019 | if (arg4 == NULL) { |
2f4c0a16 RD |
13020 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13021 | SWIG_fail; | |
d14a1e28 RD |
13022 | } |
13023 | { | |
13024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13025 | (arg1)->SetCellFont(arg2,arg3,(wxFont const &)*arg4); | |
13026 | ||
13027 | wxPyEndAllowThreads(__tstate); | |
13028 | if (PyErr_Occurred()) SWIG_fail; | |
13029 | } | |
13030 | Py_INCREF(Py_None); resultobj = Py_None; | |
13031 | return resultobj; | |
13032 | fail: | |
13033 | return NULL; | |
13034 | } | |
13035 | ||
13036 | ||
c370783e | 13037 | static PyObject *_wrap_Grid_SetDefaultCellAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13038 | PyObject *resultobj; |
13039 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13040 | int arg2 ; | |
13041 | int arg3 ; | |
13042 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13043 | PyObject * obj1 = 0 ; |
13044 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13045 | char *kwnames[] = { |
13046 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
13047 | }; | |
13048 | ||
8edf1c75 | 13049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetDefaultCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13052 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13053 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13054 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 13055 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13056 | { |
13057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13058 | (arg1)->SetDefaultCellAlignment(arg2,arg3); | |
13059 | ||
13060 | wxPyEndAllowThreads(__tstate); | |
13061 | if (PyErr_Occurred()) SWIG_fail; | |
13062 | } | |
13063 | Py_INCREF(Py_None); resultobj = Py_None; | |
13064 | return resultobj; | |
13065 | fail: | |
13066 | return NULL; | |
13067 | } | |
13068 | ||
13069 | ||
c370783e | 13070 | static PyObject *_wrap_Grid_SetCellAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13071 | PyObject *resultobj; |
13072 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13073 | int arg2 ; | |
13074 | int arg3 ; | |
13075 | int arg4 ; | |
13076 | int arg5 ; | |
13077 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13078 | PyObject * obj1 = 0 ; |
13079 | PyObject * obj2 = 0 ; | |
13080 | PyObject * obj3 = 0 ; | |
13081 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
13082 | char *kwnames[] = { |
13083 | (char *) "self",(char *) "row",(char *) "col",(char *) "horiz",(char *) "vert", NULL | |
13084 | }; | |
13085 | ||
8edf1c75 | 13086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellAlignment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
13087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13089 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13090 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13091 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 13092 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13093 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 13094 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13095 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 13096 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13097 | { |
13098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13099 | (arg1)->SetCellAlignment(arg2,arg3,arg4,arg5); | |
13100 | ||
13101 | wxPyEndAllowThreads(__tstate); | |
13102 | if (PyErr_Occurred()) SWIG_fail; | |
13103 | } | |
13104 | Py_INCREF(Py_None); resultobj = Py_None; | |
13105 | return resultobj; | |
13106 | fail: | |
13107 | return NULL; | |
13108 | } | |
13109 | ||
13110 | ||
c370783e | 13111 | static PyObject *_wrap_Grid_SetDefaultCellOverflow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13112 | PyObject *resultobj; |
13113 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13114 | bool arg2 ; | |
13115 | PyObject * obj0 = 0 ; | |
13116 | PyObject * obj1 = 0 ; | |
13117 | char *kwnames[] = { | |
13118 | (char *) "self",(char *) "allow", NULL | |
13119 | }; | |
13120 | ||
13121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellOverflow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13124 | arg2 = (bool)SWIG_As_bool(obj1); |
2f4c0a16 | 13125 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13126 | { |
13127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13128 | (arg1)->SetDefaultCellOverflow(arg2); | |
13129 | ||
13130 | wxPyEndAllowThreads(__tstate); | |
13131 | if (PyErr_Occurred()) SWIG_fail; | |
13132 | } | |
13133 | Py_INCREF(Py_None); resultobj = Py_None; | |
13134 | return resultobj; | |
13135 | fail: | |
13136 | return NULL; | |
13137 | } | |
13138 | ||
13139 | ||
c370783e | 13140 | static PyObject *_wrap_Grid_SetCellOverflow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13141 | PyObject *resultobj; |
13142 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13143 | int arg2 ; | |
13144 | int arg3 ; | |
13145 | bool arg4 ; | |
13146 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13147 | PyObject * obj1 = 0 ; |
13148 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13149 | PyObject * obj3 = 0 ; |
13150 | char *kwnames[] = { | |
13151 | (char *) "self",(char *) "row",(char *) "col",(char *) "allow", NULL | |
13152 | }; | |
13153 | ||
8edf1c75 | 13154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellOverflow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
13155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13157 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13158 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13159 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 13160 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13161 | arg4 = (bool)SWIG_As_bool(obj3); |
2f4c0a16 | 13162 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13163 | { |
13164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13165 | (arg1)->SetCellOverflow(arg2,arg3,arg4); | |
13166 | ||
13167 | wxPyEndAllowThreads(__tstate); | |
13168 | if (PyErr_Occurred()) SWIG_fail; | |
13169 | } | |
13170 | Py_INCREF(Py_None); resultobj = Py_None; | |
13171 | return resultobj; | |
13172 | fail: | |
13173 | return NULL; | |
13174 | } | |
13175 | ||
13176 | ||
c370783e | 13177 | static PyObject *_wrap_Grid_SetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13178 | PyObject *resultobj; |
13179 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13180 | int arg2 ; | |
13181 | int arg3 ; | |
13182 | int arg4 ; | |
13183 | int arg5 ; | |
13184 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13185 | PyObject * obj1 = 0 ; |
13186 | PyObject * obj2 = 0 ; | |
13187 | PyObject * obj3 = 0 ; | |
13188 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
13189 | char *kwnames[] = { |
13190 | (char *) "self",(char *) "row",(char *) "col",(char *) "num_rows",(char *) "num_cols", NULL | |
13191 | }; | |
13192 | ||
8edf1c75 | 13193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
13194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13196 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13197 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13198 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 13199 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13200 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 13201 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13202 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 13203 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13204 | { |
13205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13206 | (arg1)->SetCellSize(arg2,arg3,arg4,arg5); | |
13207 | ||
13208 | wxPyEndAllowThreads(__tstate); | |
13209 | if (PyErr_Occurred()) SWIG_fail; | |
13210 | } | |
13211 | Py_INCREF(Py_None); resultobj = Py_None; | |
13212 | return resultobj; | |
13213 | fail: | |
13214 | return NULL; | |
13215 | } | |
13216 | ||
13217 | ||
c370783e | 13218 | static PyObject *_wrap_Grid_SetDefaultRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13219 | PyObject *resultobj; |
13220 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13221 | wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ; | |
13222 | PyObject * obj0 = 0 ; | |
13223 | PyObject * obj1 = 0 ; | |
13224 | char *kwnames[] = { | |
13225 | (char *) "self",(char *) "renderer", NULL | |
13226 | }; | |
13227 | ||
13228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultRenderer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellRenderer, | |
13232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13233 | { |
13234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13235 | (arg1)->SetDefaultRenderer(arg2); | |
13236 | ||
13237 | wxPyEndAllowThreads(__tstate); | |
13238 | if (PyErr_Occurred()) SWIG_fail; | |
13239 | } | |
13240 | Py_INCREF(Py_None); resultobj = Py_None; | |
13241 | return resultobj; | |
13242 | fail: | |
13243 | return NULL; | |
13244 | } | |
13245 | ||
13246 | ||
c370783e | 13247 | static PyObject *_wrap_Grid_SetCellRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13248 | PyObject *resultobj; |
13249 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13250 | int arg2 ; | |
13251 | int arg3 ; | |
13252 | wxGridCellRenderer *arg4 = (wxGridCellRenderer *) 0 ; | |
13253 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13254 | PyObject * obj1 = 0 ; |
13255 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13256 | PyObject * obj3 = 0 ; |
13257 | char *kwnames[] = { | |
13258 | (char *) "self",(char *) "row",(char *) "col",(char *) "renderer", NULL | |
13259 | }; | |
13260 | ||
8edf1c75 | 13261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
13262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13264 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13265 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13266 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 RD |
13267 | if (PyErr_Occurred()) SWIG_fail; |
13268 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellRenderer, | |
13269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13270 | { |
13271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13272 | (arg1)->SetCellRenderer(arg2,arg3,arg4); | |
13273 | ||
13274 | wxPyEndAllowThreads(__tstate); | |
13275 | if (PyErr_Occurred()) SWIG_fail; | |
13276 | } | |
13277 | Py_INCREF(Py_None); resultobj = Py_None; | |
13278 | return resultobj; | |
13279 | fail: | |
13280 | return NULL; | |
13281 | } | |
13282 | ||
13283 | ||
c370783e | 13284 | static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13285 | PyObject *resultobj; |
13286 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13287 | wxGridCellRenderer *result; | |
13288 | PyObject * obj0 = 0 ; | |
13289 | char *kwnames[] = { | |
13290 | (char *) "self", NULL | |
13291 | }; | |
13292 | ||
13293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRenderer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13296 | { |
13297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13298 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRenderer(); | |
13299 | ||
13300 | wxPyEndAllowThreads(__tstate); | |
13301 | if (PyErr_Occurred()) SWIG_fail; | |
13302 | } | |
13303 | { | |
412d302d | 13304 | resultobj = wxPyMake_wxGridCellRenderer(result, 0); |
d14a1e28 RD |
13305 | } |
13306 | return resultobj; | |
13307 | fail: | |
13308 | return NULL; | |
13309 | } | |
13310 | ||
13311 | ||
c370783e | 13312 | static PyObject *_wrap_Grid_GetCellRenderer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13313 | PyObject *resultobj; |
13314 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13315 | int arg2 ; | |
13316 | int arg3 ; | |
13317 | wxGridCellRenderer *result; | |
13318 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13319 | PyObject * obj1 = 0 ; |
13320 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13321 | char *kwnames[] = { |
13322 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13323 | }; | |
13324 | ||
8edf1c75 | 13325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellRenderer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13328 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13329 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13330 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 13331 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13332 | { |
13333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13334 | result = (wxGridCellRenderer *)(arg1)->GetCellRenderer(arg2,arg3); | |
13335 | ||
13336 | wxPyEndAllowThreads(__tstate); | |
13337 | if (PyErr_Occurred()) SWIG_fail; | |
13338 | } | |
13339 | { | |
412d302d | 13340 | resultobj = wxPyMake_wxGridCellRenderer(result, 0); |
d14a1e28 RD |
13341 | } |
13342 | return resultobj; | |
13343 | fail: | |
13344 | return NULL; | |
13345 | } | |
13346 | ||
13347 | ||
c370783e | 13348 | static PyObject *_wrap_Grid_SetDefaultEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13349 | PyObject *resultobj; |
13350 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13351 | wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ; | |
13352 | PyObject * obj0 = 0 ; | |
13353 | PyObject * obj1 = 0 ; | |
13354 | char *kwnames[] = { | |
13355 | (char *) "self",(char *) "editor", NULL | |
13356 | }; | |
13357 | ||
13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultEditor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13361 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellEditor, | |
13362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13363 | { |
13364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13365 | (arg1)->SetDefaultEditor(arg2); | |
13366 | ||
13367 | wxPyEndAllowThreads(__tstate); | |
13368 | if (PyErr_Occurred()) SWIG_fail; | |
13369 | } | |
13370 | Py_INCREF(Py_None); resultobj = Py_None; | |
13371 | return resultobj; | |
13372 | fail: | |
13373 | return NULL; | |
13374 | } | |
13375 | ||
13376 | ||
c370783e | 13377 | static PyObject *_wrap_Grid_SetCellEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13378 | PyObject *resultobj; |
13379 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13380 | int arg2 ; | |
13381 | int arg3 ; | |
13382 | wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; | |
13383 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13384 | PyObject * obj1 = 0 ; |
13385 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13386 | PyObject * obj3 = 0 ; |
13387 | char *kwnames[] = { | |
13388 | (char *) "self",(char *) "row",(char *) "col",(char *) "editor", NULL | |
13389 | }; | |
13390 | ||
8edf1c75 | 13391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
13392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13394 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13395 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13396 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 RD |
13397 | if (PyErr_Occurred()) SWIG_fail; |
13398 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellEditor, | |
13399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13400 | { |
13401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13402 | (arg1)->SetCellEditor(arg2,arg3,arg4); | |
13403 | ||
13404 | wxPyEndAllowThreads(__tstate); | |
13405 | if (PyErr_Occurred()) SWIG_fail; | |
13406 | } | |
13407 | Py_INCREF(Py_None); resultobj = Py_None; | |
13408 | return resultobj; | |
13409 | fail: | |
13410 | return NULL; | |
13411 | } | |
13412 | ||
13413 | ||
c370783e | 13414 | static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13415 | PyObject *resultobj; |
13416 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13417 | wxGridCellEditor *result; | |
13418 | PyObject * obj0 = 0 ; | |
13419 | char *kwnames[] = { | |
13420 | (char *) "self", NULL | |
13421 | }; | |
13422 | ||
13423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultEditor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13426 | { |
13427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13428 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditor(); | |
13429 | ||
13430 | wxPyEndAllowThreads(__tstate); | |
13431 | if (PyErr_Occurred()) SWIG_fail; | |
13432 | } | |
13433 | { | |
412d302d | 13434 | resultobj = wxPyMake_wxGridCellEditor(result, 0); |
d14a1e28 RD |
13435 | } |
13436 | return resultobj; | |
13437 | fail: | |
13438 | return NULL; | |
13439 | } | |
13440 | ||
13441 | ||
c370783e | 13442 | static PyObject *_wrap_Grid_GetCellEditor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13443 | PyObject *resultobj; |
13444 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13445 | int arg2 ; | |
13446 | int arg3 ; | |
13447 | wxGridCellEditor *result; | |
13448 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13449 | PyObject * obj1 = 0 ; |
13450 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13451 | char *kwnames[] = { |
13452 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13453 | }; | |
13454 | ||
8edf1c75 | 13455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellEditor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13458 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13459 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13460 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 13461 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13462 | { |
13463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13464 | result = (wxGridCellEditor *)(arg1)->GetCellEditor(arg2,arg3); | |
13465 | ||
13466 | wxPyEndAllowThreads(__tstate); | |
13467 | if (PyErr_Occurred()) SWIG_fail; | |
13468 | } | |
13469 | { | |
412d302d | 13470 | resultobj = wxPyMake_wxGridCellEditor(result, 0); |
d14a1e28 RD |
13471 | } |
13472 | return resultobj; | |
13473 | fail: | |
13474 | return NULL; | |
13475 | } | |
13476 | ||
13477 | ||
c370783e | 13478 | static PyObject *_wrap_Grid_GetCellValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13479 | PyObject *resultobj; |
13480 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13481 | int arg2 ; | |
13482 | int arg3 ; | |
13483 | wxString result; | |
13484 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13485 | PyObject * obj1 = 0 ; |
13486 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13487 | char *kwnames[] = { |
13488 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13489 | }; | |
13490 | ||
8edf1c75 | 13491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13494 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13495 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13496 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 13497 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13498 | { |
13499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13500 | result = (arg1)->GetCellValue(arg2,arg3); | |
13501 | ||
13502 | wxPyEndAllowThreads(__tstate); | |
13503 | if (PyErr_Occurred()) SWIG_fail; | |
13504 | } | |
13505 | { | |
13506 | #if wxUSE_UNICODE | |
13507 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13508 | #else | |
13509 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13510 | #endif | |
13511 | } | |
13512 | return resultobj; | |
13513 | fail: | |
13514 | return NULL; | |
13515 | } | |
13516 | ||
13517 | ||
c370783e | 13518 | static PyObject *_wrap_Grid_SetCellValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13519 | PyObject *resultobj; |
13520 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13521 | int arg2 ; | |
13522 | int arg3 ; | |
13523 | wxString *arg4 = 0 ; | |
b411df4a | 13524 | bool temp4 = false ; |
d14a1e28 | 13525 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
13526 | PyObject * obj1 = 0 ; |
13527 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13528 | PyObject * obj3 = 0 ; |
13529 | char *kwnames[] = { | |
13530 | (char *) "self",(char *) "row",(char *) "col",(char *) "s", NULL | |
13531 | }; | |
13532 | ||
8edf1c75 | 13533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
13534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13536 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13537 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13538 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 13539 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13540 | { |
13541 | arg4 = wxString_in_helper(obj3); | |
13542 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 13543 | temp4 = true; |
d14a1e28 RD |
13544 | } |
13545 | { | |
13546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13547 | (arg1)->SetCellValue(arg2,arg3,(wxString const &)*arg4); | |
13548 | ||
13549 | wxPyEndAllowThreads(__tstate); | |
13550 | if (PyErr_Occurred()) SWIG_fail; | |
13551 | } | |
13552 | Py_INCREF(Py_None); resultobj = Py_None; | |
13553 | { | |
13554 | if (temp4) | |
13555 | delete arg4; | |
13556 | } | |
13557 | return resultobj; | |
13558 | fail: | |
13559 | { | |
13560 | if (temp4) | |
13561 | delete arg4; | |
13562 | } | |
13563 | return NULL; | |
13564 | } | |
13565 | ||
13566 | ||
c370783e | 13567 | static PyObject *_wrap_Grid_IsReadOnly(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13568 | PyObject *resultobj; |
13569 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13570 | int arg2 ; | |
13571 | int arg3 ; | |
13572 | bool result; | |
13573 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13574 | PyObject * obj1 = 0 ; |
13575 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13576 | char *kwnames[] = { |
13577 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13578 | }; | |
13579 | ||
8edf1c75 | 13580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsReadOnly",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13583 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13584 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13585 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 13586 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13587 | { |
13588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13589 | result = (bool)((wxGrid const *)arg1)->IsReadOnly(arg2,arg3); | |
13590 | ||
13591 | wxPyEndAllowThreads(__tstate); | |
13592 | if (PyErr_Occurred()) SWIG_fail; | |
13593 | } | |
fbc46b20 RD |
13594 | { |
13595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13596 | } | |
d14a1e28 RD |
13597 | return resultobj; |
13598 | fail: | |
13599 | return NULL; | |
13600 | } | |
13601 | ||
13602 | ||
c370783e | 13603 | static PyObject *_wrap_Grid_SetReadOnly(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13604 | PyObject *resultobj; |
13605 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13606 | int arg2 ; | |
13607 | int arg3 ; | |
b411df4a | 13608 | bool arg4 = (bool) true ; |
d14a1e28 | 13609 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
13610 | PyObject * obj1 = 0 ; |
13611 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13612 | PyObject * obj3 = 0 ; |
13613 | char *kwnames[] = { | |
13614 | (char *) "self",(char *) "row",(char *) "col",(char *) "isReadOnly", NULL | |
13615 | }; | |
13616 | ||
8edf1c75 | 13617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_SetReadOnly",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
13618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13620 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13621 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13622 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 13623 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13624 | if (obj3) { |
c370783e | 13625 | arg4 = (bool)SWIG_As_bool(obj3); |
2f4c0a16 | 13626 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13627 | } |
13628 | { | |
13629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13630 | (arg1)->SetReadOnly(arg2,arg3,arg4); | |
13631 | ||
13632 | wxPyEndAllowThreads(__tstate); | |
13633 | if (PyErr_Occurred()) SWIG_fail; | |
13634 | } | |
13635 | Py_INCREF(Py_None); resultobj = Py_None; | |
13636 | return resultobj; | |
13637 | fail: | |
13638 | return NULL; | |
13639 | } | |
13640 | ||
13641 | ||
c370783e | 13642 | static PyObject *_wrap_Grid_SelectRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13643 | PyObject *resultobj; |
13644 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13645 | int arg2 ; | |
b411df4a | 13646 | bool arg3 = (bool) false ; |
d14a1e28 | 13647 | PyObject * obj0 = 0 ; |
8edf1c75 | 13648 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13649 | PyObject * obj2 = 0 ; |
13650 | char *kwnames[] = { | |
13651 | (char *) "self",(char *) "row",(char *) "addToSelected", NULL | |
13652 | }; | |
13653 | ||
8edf1c75 | 13654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13657 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13658 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13659 | if (obj2) { |
c370783e | 13660 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 13661 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13662 | } |
13663 | { | |
13664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13665 | (arg1)->SelectRow(arg2,arg3); | |
13666 | ||
13667 | wxPyEndAllowThreads(__tstate); | |
13668 | if (PyErr_Occurred()) SWIG_fail; | |
13669 | } | |
13670 | Py_INCREF(Py_None); resultobj = Py_None; | |
13671 | return resultobj; | |
13672 | fail: | |
13673 | return NULL; | |
13674 | } | |
13675 | ||
13676 | ||
c370783e | 13677 | static PyObject *_wrap_Grid_SelectCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13678 | PyObject *resultobj; |
13679 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13680 | int arg2 ; | |
b411df4a | 13681 | bool arg3 = (bool) false ; |
d14a1e28 | 13682 | PyObject * obj0 = 0 ; |
8edf1c75 | 13683 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13684 | PyObject * obj2 = 0 ; |
13685 | char *kwnames[] = { | |
13686 | (char *) "self",(char *) "col",(char *) "addToSelected", NULL | |
13687 | }; | |
13688 | ||
8edf1c75 | 13689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13692 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13693 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13694 | if (obj2) { |
c370783e | 13695 | arg3 = (bool)SWIG_As_bool(obj2); |
2f4c0a16 | 13696 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13697 | } |
13698 | { | |
13699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13700 | (arg1)->SelectCol(arg2,arg3); | |
13701 | ||
13702 | wxPyEndAllowThreads(__tstate); | |
13703 | if (PyErr_Occurred()) SWIG_fail; | |
13704 | } | |
13705 | Py_INCREF(Py_None); resultobj = Py_None; | |
13706 | return resultobj; | |
13707 | fail: | |
13708 | return NULL; | |
13709 | } | |
13710 | ||
13711 | ||
c370783e | 13712 | static PyObject *_wrap_Grid_SelectBlock(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13713 | PyObject *resultobj; |
13714 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13715 | int arg2 ; | |
13716 | int arg3 ; | |
13717 | int arg4 ; | |
13718 | int arg5 ; | |
b411df4a | 13719 | bool arg6 = (bool) false ; |
d14a1e28 | 13720 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
13721 | PyObject * obj1 = 0 ; |
13722 | PyObject * obj2 = 0 ; | |
13723 | PyObject * obj3 = 0 ; | |
13724 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
13725 | PyObject * obj5 = 0 ; |
13726 | char *kwnames[] = { | |
13727 | (char *) "self",(char *) "topRow",(char *) "leftCol",(char *) "bottomRow",(char *) "rightCol",(char *) "addToSelected", NULL | |
13728 | }; | |
13729 | ||
8edf1c75 | 13730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Grid_SelectBlock",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
13731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13733 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13734 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13735 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 13736 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13737 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 13738 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13739 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 13740 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13741 | if (obj5) { |
c370783e | 13742 | arg6 = (bool)SWIG_As_bool(obj5); |
2f4c0a16 | 13743 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13744 | } |
13745 | { | |
13746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13747 | (arg1)->SelectBlock(arg2,arg3,arg4,arg5,arg6); | |
13748 | ||
13749 | wxPyEndAllowThreads(__tstate); | |
13750 | if (PyErr_Occurred()) SWIG_fail; | |
13751 | } | |
13752 | Py_INCREF(Py_None); resultobj = Py_None; | |
13753 | return resultobj; | |
13754 | fail: | |
13755 | return NULL; | |
13756 | } | |
13757 | ||
13758 | ||
c370783e | 13759 | static PyObject *_wrap_Grid_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13760 | PyObject *resultobj; |
13761 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13762 | PyObject * obj0 = 0 ; | |
13763 | char *kwnames[] = { | |
13764 | (char *) "self", NULL | |
13765 | }; | |
13766 | ||
13767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SelectAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13770 | { |
13771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13772 | (arg1)->SelectAll(); | |
13773 | ||
13774 | wxPyEndAllowThreads(__tstate); | |
13775 | if (PyErr_Occurred()) SWIG_fail; | |
13776 | } | |
13777 | Py_INCREF(Py_None); resultobj = Py_None; | |
13778 | return resultobj; | |
13779 | fail: | |
13780 | return NULL; | |
13781 | } | |
13782 | ||
13783 | ||
c370783e | 13784 | static PyObject *_wrap_Grid_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13785 | PyObject *resultobj; |
13786 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13787 | bool result; | |
13788 | PyObject * obj0 = 0 ; | |
13789 | char *kwnames[] = { | |
13790 | (char *) "self", NULL | |
13791 | }; | |
13792 | ||
13793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13796 | { |
13797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13798 | result = (bool)(arg1)->IsSelection(); | |
13799 | ||
13800 | wxPyEndAllowThreads(__tstate); | |
13801 | if (PyErr_Occurred()) SWIG_fail; | |
13802 | } | |
fbc46b20 RD |
13803 | { |
13804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13805 | } | |
d14a1e28 RD |
13806 | return resultobj; |
13807 | fail: | |
13808 | return NULL; | |
13809 | } | |
13810 | ||
13811 | ||
c370783e | 13812 | static PyObject *_wrap_Grid_ClearSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13813 | PyObject *resultobj; |
13814 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13815 | PyObject * obj0 = 0 ; | |
13816 | char *kwnames[] = { | |
13817 | (char *) "self", NULL | |
13818 | }; | |
13819 | ||
13820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13823 | { |
13824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13825 | (arg1)->ClearSelection(); | |
13826 | ||
13827 | wxPyEndAllowThreads(__tstate); | |
13828 | if (PyErr_Occurred()) SWIG_fail; | |
13829 | } | |
13830 | Py_INCREF(Py_None); resultobj = Py_None; | |
13831 | return resultobj; | |
13832 | fail: | |
13833 | return NULL; | |
13834 | } | |
13835 | ||
13836 | ||
c370783e | 13837 | static PyObject *_wrap_Grid_IsInSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13838 | PyObject *resultobj; |
13839 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13840 | int arg2 ; | |
13841 | int arg3 ; | |
13842 | bool result; | |
13843 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13844 | PyObject * obj1 = 0 ; |
13845 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13846 | char *kwnames[] = { |
13847 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13848 | }; | |
13849 | ||
8edf1c75 | 13850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsInSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13853 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 13854 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 13855 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 13856 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
13857 | { |
13858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13859 | result = (bool)(arg1)->IsInSelection(arg2,arg3); | |
13860 | ||
13861 | wxPyEndAllowThreads(__tstate); | |
13862 | if (PyErr_Occurred()) SWIG_fail; | |
13863 | } | |
fbc46b20 RD |
13864 | { |
13865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13866 | } | |
d14a1e28 RD |
13867 | return resultobj; |
13868 | fail: | |
13869 | return NULL; | |
13870 | } | |
13871 | ||
13872 | ||
c370783e | 13873 | static PyObject *_wrap_Grid_GetSelectedCells(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13874 | PyObject *resultobj; |
13875 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13876 | wxGridCellCoordsArray result; | |
13877 | PyObject * obj0 = 0 ; | |
13878 | char *kwnames[] = { | |
13879 | (char *) "self", NULL | |
13880 | }; | |
13881 | ||
13882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCells",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13885 | { |
13886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13887 | result = ((wxGrid const *)arg1)->GetSelectedCells(); | |
13888 | ||
13889 | wxPyEndAllowThreads(__tstate); | |
13890 | if (PyErr_Occurred()) SWIG_fail; | |
13891 | } | |
13892 | { | |
13893 | resultobj = wxGridCellCoordsArray_helper(result); | |
13894 | } | |
13895 | return resultobj; | |
13896 | fail: | |
13897 | return NULL; | |
13898 | } | |
13899 | ||
13900 | ||
c370783e | 13901 | static PyObject *_wrap_Grid_GetSelectionBlockTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13902 | PyObject *resultobj; |
13903 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13904 | wxGridCellCoordsArray result; | |
13905 | PyObject * obj0 = 0 ; | |
13906 | char *kwnames[] = { | |
13907 | (char *) "self", NULL | |
13908 | }; | |
13909 | ||
13910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockTopLeft",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13913 | { |
13914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13915 | result = ((wxGrid const *)arg1)->GetSelectionBlockTopLeft(); | |
13916 | ||
13917 | wxPyEndAllowThreads(__tstate); | |
13918 | if (PyErr_Occurred()) SWIG_fail; | |
13919 | } | |
13920 | { | |
13921 | resultobj = wxGridCellCoordsArray_helper(result); | |
13922 | } | |
13923 | return resultobj; | |
13924 | fail: | |
13925 | return NULL; | |
13926 | } | |
13927 | ||
13928 | ||
c370783e | 13929 | static PyObject *_wrap_Grid_GetSelectionBlockBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13930 | PyObject *resultobj; |
13931 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13932 | wxGridCellCoordsArray result; | |
13933 | PyObject * obj0 = 0 ; | |
13934 | char *kwnames[] = { | |
13935 | (char *) "self", NULL | |
13936 | }; | |
13937 | ||
13938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockBottomRight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13941 | { |
13942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13943 | result = ((wxGrid const *)arg1)->GetSelectionBlockBottomRight(); | |
13944 | ||
13945 | wxPyEndAllowThreads(__tstate); | |
13946 | if (PyErr_Occurred()) SWIG_fail; | |
13947 | } | |
13948 | { | |
13949 | resultobj = wxGridCellCoordsArray_helper(result); | |
13950 | } | |
13951 | return resultobj; | |
13952 | fail: | |
13953 | return NULL; | |
13954 | } | |
13955 | ||
13956 | ||
c370783e | 13957 | static PyObject *_wrap_Grid_GetSelectedRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13958 | PyObject *resultobj; |
13959 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13960 | wxArrayInt result; | |
13961 | PyObject * obj0 = 0 ; | |
13962 | char *kwnames[] = { | |
13963 | (char *) "self", NULL | |
13964 | }; | |
13965 | ||
13966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedRows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13969 | { |
13970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13971 | result = ((wxGrid const *)arg1)->GetSelectedRows(); | |
13972 | ||
13973 | wxPyEndAllowThreads(__tstate); | |
13974 | if (PyErr_Occurred()) SWIG_fail; | |
13975 | } | |
13976 | { | |
13977 | resultobj = PyList_New(0); | |
13978 | size_t idx; | |
13979 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13980 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13981 | PyList_Append(resultobj, val); | |
13982 | Py_DECREF(val); | |
13983 | } | |
13984 | } | |
13985 | return resultobj; | |
13986 | fail: | |
13987 | return NULL; | |
13988 | } | |
13989 | ||
13990 | ||
c370783e | 13991 | static PyObject *_wrap_Grid_GetSelectedCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13992 | PyObject *resultobj; |
13993 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13994 | wxArrayInt result; | |
13995 | PyObject * obj0 = 0 ; | |
13996 | char *kwnames[] = { | |
13997 | (char *) "self", NULL | |
13998 | }; | |
13999 | ||
14000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCols",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14003 | { |
14004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14005 | result = ((wxGrid const *)arg1)->GetSelectedCols(); | |
14006 | ||
14007 | wxPyEndAllowThreads(__tstate); | |
14008 | if (PyErr_Occurred()) SWIG_fail; | |
14009 | } | |
14010 | { | |
14011 | resultobj = PyList_New(0); | |
14012 | size_t idx; | |
14013 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
14014 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
14015 | PyList_Append(resultobj, val); | |
14016 | Py_DECREF(val); | |
14017 | } | |
14018 | } | |
14019 | return resultobj; | |
14020 | fail: | |
14021 | return NULL; | |
14022 | } | |
14023 | ||
14024 | ||
c370783e | 14025 | static PyObject *_wrap_Grid_DeselectRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14026 | PyObject *resultobj; |
14027 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14028 | int arg2 ; | |
14029 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14030 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14031 | char *kwnames[] = { |
14032 | (char *) "self",(char *) "row", NULL | |
14033 | }; | |
14034 | ||
8edf1c75 | 14035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectRow",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14038 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 14039 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14040 | { |
14041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14042 | (arg1)->DeselectRow(arg2); | |
14043 | ||
14044 | wxPyEndAllowThreads(__tstate); | |
14045 | if (PyErr_Occurred()) SWIG_fail; | |
14046 | } | |
14047 | Py_INCREF(Py_None); resultobj = Py_None; | |
14048 | return resultobj; | |
14049 | fail: | |
14050 | return NULL; | |
14051 | } | |
14052 | ||
14053 | ||
c370783e | 14054 | static PyObject *_wrap_Grid_DeselectCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14055 | PyObject *resultobj; |
14056 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14057 | int arg2 ; | |
14058 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14059 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14060 | char *kwnames[] = { |
14061 | (char *) "self",(char *) "col", NULL | |
14062 | }; | |
14063 | ||
8edf1c75 | 14064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectCol",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14067 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 14068 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14069 | { |
14070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14071 | (arg1)->DeselectCol(arg2); | |
14072 | ||
14073 | wxPyEndAllowThreads(__tstate); | |
14074 | if (PyErr_Occurred()) SWIG_fail; | |
14075 | } | |
14076 | Py_INCREF(Py_None); resultobj = Py_None; | |
14077 | return resultobj; | |
14078 | fail: | |
14079 | return NULL; | |
14080 | } | |
14081 | ||
14082 | ||
c370783e | 14083 | static PyObject *_wrap_Grid_DeselectCell(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14084 | PyObject *resultobj; |
14085 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14086 | int arg2 ; | |
14087 | int arg3 ; | |
14088 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14089 | PyObject * obj1 = 0 ; |
14090 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14091 | char *kwnames[] = { |
14092 | (char *) "self",(char *) "row",(char *) "col", NULL | |
14093 | }; | |
14094 | ||
8edf1c75 | 14095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DeselectCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14098 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 14099 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14100 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 14101 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14102 | { |
14103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14104 | (arg1)->DeselectCell(arg2,arg3); | |
14105 | ||
14106 | wxPyEndAllowThreads(__tstate); | |
14107 | if (PyErr_Occurred()) SWIG_fail; | |
14108 | } | |
14109 | Py_INCREF(Py_None); resultobj = Py_None; | |
14110 | return resultobj; | |
14111 | fail: | |
14112 | return NULL; | |
14113 | } | |
14114 | ||
14115 | ||
c370783e | 14116 | static PyObject *_wrap_Grid_BlockToDeviceRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14117 | PyObject *resultobj; |
14118 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14119 | wxGridCellCoords *arg2 = 0 ; | |
14120 | wxGridCellCoords *arg3 = 0 ; | |
14121 | wxRect result; | |
14122 | wxGridCellCoords temp2 ; | |
14123 | wxGridCellCoords temp3 ; | |
14124 | PyObject * obj0 = 0 ; | |
14125 | PyObject * obj1 = 0 ; | |
14126 | PyObject * obj2 = 0 ; | |
14127 | char *kwnames[] = { | |
14128 | (char *) "self",(char *) "topLeft",(char *) "bottomRight", NULL | |
14129 | }; | |
14130 | ||
14131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_BlockToDeviceRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
14132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14134 | { |
14135 | arg2 = &temp2; | |
14136 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
14137 | } | |
14138 | { | |
14139 | arg3 = &temp3; | |
14140 | if (! wxGridCellCoords_helper(obj2, &arg3)) SWIG_fail; | |
14141 | } | |
14142 | { | |
14143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14144 | result = (arg1)->BlockToDeviceRect((wxGridCellCoords const &)*arg2,(wxGridCellCoords const &)*arg3); | |
14145 | ||
14146 | wxPyEndAllowThreads(__tstate); | |
14147 | if (PyErr_Occurred()) SWIG_fail; | |
14148 | } | |
14149 | { | |
14150 | wxRect * resultptr; | |
14151 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 14152 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
14153 | } |
14154 | return resultobj; | |
14155 | fail: | |
14156 | return NULL; | |
14157 | } | |
14158 | ||
14159 | ||
c370783e | 14160 | static PyObject *_wrap_Grid_GetSelectionBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14161 | PyObject *resultobj; |
14162 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14163 | wxColour result; | |
14164 | PyObject * obj0 = 0 ; | |
14165 | char *kwnames[] = { | |
14166 | (char *) "self", NULL | |
14167 | }; | |
14168 | ||
14169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14172 | { |
14173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14174 | result = ((wxGrid const *)arg1)->GetSelectionBackground(); | |
14175 | ||
14176 | wxPyEndAllowThreads(__tstate); | |
14177 | if (PyErr_Occurred()) SWIG_fail; | |
14178 | } | |
14179 | { | |
14180 | wxColour * resultptr; | |
14181 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 14182 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
14183 | } |
14184 | return resultobj; | |
14185 | fail: | |
14186 | return NULL; | |
14187 | } | |
14188 | ||
14189 | ||
c370783e | 14190 | static PyObject *_wrap_Grid_GetSelectionForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14191 | PyObject *resultobj; |
14192 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14193 | wxColour result; | |
14194 | PyObject * obj0 = 0 ; | |
14195 | char *kwnames[] = { | |
14196 | (char *) "self", NULL | |
14197 | }; | |
14198 | ||
14199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionForeground",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14202 | { |
14203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14204 | result = ((wxGrid const *)arg1)->GetSelectionForeground(); | |
14205 | ||
14206 | wxPyEndAllowThreads(__tstate); | |
14207 | if (PyErr_Occurred()) SWIG_fail; | |
14208 | } | |
14209 | { | |
14210 | wxColour * resultptr; | |
14211 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 14212 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
14213 | } |
14214 | return resultobj; | |
14215 | fail: | |
14216 | return NULL; | |
14217 | } | |
14218 | ||
14219 | ||
c370783e | 14220 | static PyObject *_wrap_Grid_SetSelectionBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14221 | PyObject *resultobj; |
14222 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14223 | wxColour *arg2 = 0 ; | |
14224 | wxColour temp2 ; | |
14225 | PyObject * obj0 = 0 ; | |
14226 | PyObject * obj1 = 0 ; | |
14227 | char *kwnames[] = { | |
14228 | (char *) "self",(char *) "c", NULL | |
14229 | }; | |
14230 | ||
14231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14234 | { |
14235 | arg2 = &temp2; | |
14236 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14237 | } | |
14238 | { | |
14239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14240 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
14241 | ||
14242 | wxPyEndAllowThreads(__tstate); | |
14243 | if (PyErr_Occurred()) SWIG_fail; | |
14244 | } | |
14245 | Py_INCREF(Py_None); resultobj = Py_None; | |
14246 | return resultobj; | |
14247 | fail: | |
14248 | return NULL; | |
14249 | } | |
14250 | ||
14251 | ||
c370783e | 14252 | static PyObject *_wrap_Grid_SetSelectionForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14253 | PyObject *resultobj; |
14254 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14255 | wxColour *arg2 = 0 ; | |
14256 | wxColour temp2 ; | |
14257 | PyObject * obj0 = 0 ; | |
14258 | PyObject * obj1 = 0 ; | |
14259 | char *kwnames[] = { | |
14260 | (char *) "self",(char *) "c", NULL | |
14261 | }; | |
14262 | ||
14263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionForeground",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14266 | { |
14267 | arg2 = &temp2; | |
14268 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14269 | } | |
14270 | { | |
14271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14272 | (arg1)->SetSelectionForeground((wxColour const &)*arg2); | |
14273 | ||
14274 | wxPyEndAllowThreads(__tstate); | |
14275 | if (PyErr_Occurred()) SWIG_fail; | |
14276 | } | |
14277 | Py_INCREF(Py_None); resultobj = Py_None; | |
14278 | return resultobj; | |
14279 | fail: | |
14280 | return NULL; | |
14281 | } | |
14282 | ||
14283 | ||
c370783e | 14284 | static PyObject *_wrap_Grid_RegisterDataType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14285 | PyObject *resultobj; |
14286 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14287 | wxString *arg2 = 0 ; | |
14288 | wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ; | |
14289 | wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; | |
b411df4a | 14290 | bool temp2 = false ; |
d14a1e28 RD |
14291 | PyObject * obj0 = 0 ; |
14292 | PyObject * obj1 = 0 ; | |
14293 | PyObject * obj2 = 0 ; | |
14294 | PyObject * obj3 = 0 ; | |
14295 | char *kwnames[] = { | |
14296 | (char *) "self",(char *) "typeName",(char *) "renderer",(char *) "editor", NULL | |
14297 | }; | |
14298 | ||
14299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_RegisterDataType",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
14300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14302 | { |
14303 | arg2 = wxString_in_helper(obj1); | |
14304 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14305 | temp2 = true; |
d14a1e28 | 14306 | } |
2f4c0a16 RD |
14307 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellRenderer, |
14308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14309 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellEditor, | |
14310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14311 | { |
14312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14313 | (arg1)->RegisterDataType((wxString const &)*arg2,arg3,arg4); | |
14314 | ||
14315 | wxPyEndAllowThreads(__tstate); | |
14316 | if (PyErr_Occurred()) SWIG_fail; | |
14317 | } | |
14318 | Py_INCREF(Py_None); resultobj = Py_None; | |
14319 | { | |
14320 | if (temp2) | |
14321 | delete arg2; | |
14322 | } | |
14323 | return resultobj; | |
14324 | fail: | |
14325 | { | |
14326 | if (temp2) | |
14327 | delete arg2; | |
14328 | } | |
14329 | return NULL; | |
14330 | } | |
14331 | ||
14332 | ||
c370783e | 14333 | static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14334 | PyObject *resultobj; |
14335 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14336 | int arg2 ; | |
14337 | int arg3 ; | |
14338 | wxGridCellEditor *result; | |
14339 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14340 | PyObject * obj1 = 0 ; |
14341 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14342 | char *kwnames[] = { |
14343 | (char *) "self",(char *) "row",(char *) "col", NULL | |
14344 | }; | |
14345 | ||
8edf1c75 | 14346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultEditorForCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14349 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 14350 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14351 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 14352 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14353 | { |
14354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14355 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForCell(arg2,arg3); | |
14356 | ||
14357 | wxPyEndAllowThreads(__tstate); | |
14358 | if (PyErr_Occurred()) SWIG_fail; | |
14359 | } | |
14360 | { | |
412d302d | 14361 | resultobj = wxPyMake_wxGridCellEditor(result, 0); |
d14a1e28 RD |
14362 | } |
14363 | return resultobj; | |
14364 | fail: | |
14365 | return NULL; | |
14366 | } | |
14367 | ||
14368 | ||
c370783e | 14369 | static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14370 | PyObject *resultobj; |
14371 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14372 | int arg2 ; | |
14373 | int arg3 ; | |
14374 | wxGridCellRenderer *result; | |
14375 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14376 | PyObject * obj1 = 0 ; |
14377 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14378 | char *kwnames[] = { |
14379 | (char *) "self",(char *) "row",(char *) "col", NULL | |
14380 | }; | |
14381 | ||
8edf1c75 | 14382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultRendererForCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14385 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 14386 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14387 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 14388 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14389 | { |
14390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14391 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForCell(arg2,arg3); | |
14392 | ||
14393 | wxPyEndAllowThreads(__tstate); | |
14394 | if (PyErr_Occurred()) SWIG_fail; | |
14395 | } | |
14396 | { | |
412d302d | 14397 | resultobj = wxPyMake_wxGridCellRenderer(result, 0); |
d14a1e28 RD |
14398 | } |
14399 | return resultobj; | |
14400 | fail: | |
14401 | return NULL; | |
14402 | } | |
14403 | ||
14404 | ||
c370783e | 14405 | static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14406 | PyObject *resultobj; |
14407 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14408 | wxString *arg2 = 0 ; | |
14409 | wxGridCellEditor *result; | |
b411df4a | 14410 | bool temp2 = false ; |
d14a1e28 RD |
14411 | PyObject * obj0 = 0 ; |
14412 | PyObject * obj1 = 0 ; | |
14413 | char *kwnames[] = { | |
14414 | (char *) "self",(char *) "typeName", NULL | |
14415 | }; | |
14416 | ||
14417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultEditorForType",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14420 | { |
14421 | arg2 = wxString_in_helper(obj1); | |
14422 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14423 | temp2 = true; |
d14a1e28 RD |
14424 | } |
14425 | { | |
14426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14427 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForType((wxString const &)*arg2); | |
14428 | ||
14429 | wxPyEndAllowThreads(__tstate); | |
14430 | if (PyErr_Occurred()) SWIG_fail; | |
14431 | } | |
14432 | { | |
412d302d | 14433 | resultobj = wxPyMake_wxGridCellEditor(result, 0); |
d14a1e28 RD |
14434 | } |
14435 | { | |
14436 | if (temp2) | |
14437 | delete arg2; | |
14438 | } | |
14439 | return resultobj; | |
14440 | fail: | |
14441 | { | |
14442 | if (temp2) | |
14443 | delete arg2; | |
14444 | } | |
14445 | return NULL; | |
14446 | } | |
14447 | ||
14448 | ||
c370783e | 14449 | static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14450 | PyObject *resultobj; |
14451 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14452 | wxString *arg2 = 0 ; | |
14453 | wxGridCellRenderer *result; | |
b411df4a | 14454 | bool temp2 = false ; |
d14a1e28 RD |
14455 | PyObject * obj0 = 0 ; |
14456 | PyObject * obj1 = 0 ; | |
14457 | char *kwnames[] = { | |
14458 | (char *) "self",(char *) "typeName", NULL | |
14459 | }; | |
14460 | ||
14461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultRendererForType",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14464 | { |
14465 | arg2 = wxString_in_helper(obj1); | |
14466 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14467 | temp2 = true; |
d14a1e28 RD |
14468 | } |
14469 | { | |
14470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14471 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForType((wxString const &)*arg2); | |
14472 | ||
14473 | wxPyEndAllowThreads(__tstate); | |
14474 | if (PyErr_Occurred()) SWIG_fail; | |
14475 | } | |
14476 | { | |
412d302d | 14477 | resultobj = wxPyMake_wxGridCellRenderer(result, 0); |
d14a1e28 RD |
14478 | } |
14479 | { | |
14480 | if (temp2) | |
14481 | delete arg2; | |
14482 | } | |
14483 | return resultobj; | |
14484 | fail: | |
14485 | { | |
14486 | if (temp2) | |
14487 | delete arg2; | |
14488 | } | |
14489 | return NULL; | |
14490 | } | |
14491 | ||
14492 | ||
c370783e | 14493 | static PyObject *_wrap_Grid_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14494 | PyObject *resultobj; |
14495 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14496 | int arg2 ; | |
14497 | int arg3 ; | |
14498 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14499 | PyObject * obj1 = 0 ; |
14500 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14501 | char *kwnames[] = { |
14502 | (char *) "self",(char *) "extraWidth",(char *) "extraHeight", NULL | |
14503 | }; | |
14504 | ||
8edf1c75 | 14505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14508 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 14509 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14510 | arg3 = (int)SWIG_As_int(obj2); |
2f4c0a16 | 14511 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14512 | { |
14513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14514 | (arg1)->SetMargins(arg2,arg3); | |
14515 | ||
14516 | wxPyEndAllowThreads(__tstate); | |
14517 | if (PyErr_Occurred()) SWIG_fail; | |
14518 | } | |
14519 | Py_INCREF(Py_None); resultobj = Py_None; | |
14520 | return resultobj; | |
14521 | fail: | |
14522 | return NULL; | |
14523 | } | |
14524 | ||
14525 | ||
c370783e | 14526 | static PyObject *_wrap_Grid_GetGridWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14527 | PyObject *resultobj; |
14528 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14529 | wxWindow *result; | |
14530 | PyObject * obj0 = 0 ; | |
14531 | char *kwnames[] = { | |
14532 | (char *) "self", NULL | |
14533 | }; | |
14534 | ||
14535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14538 | { |
14539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14540 | result = (wxWindow *)(arg1)->GetGridWindow(); | |
14541 | ||
14542 | wxPyEndAllowThreads(__tstate); | |
14543 | if (PyErr_Occurred()) SWIG_fail; | |
14544 | } | |
14545 | { | |
412d302d | 14546 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14547 | } |
14548 | return resultobj; | |
14549 | fail: | |
14550 | return NULL; | |
14551 | } | |
14552 | ||
14553 | ||
c370783e | 14554 | static PyObject *_wrap_Grid_GetGridRowLabelWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14555 | PyObject *resultobj; |
14556 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14557 | wxWindow *result; | |
14558 | PyObject * obj0 = 0 ; | |
14559 | char *kwnames[] = { | |
14560 | (char *) "self", NULL | |
14561 | }; | |
14562 | ||
14563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridRowLabelWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14566 | { |
14567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14568 | result = (wxWindow *)(arg1)->GetGridRowLabelWindow(); | |
14569 | ||
14570 | wxPyEndAllowThreads(__tstate); | |
14571 | if (PyErr_Occurred()) SWIG_fail; | |
14572 | } | |
14573 | { | |
412d302d | 14574 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14575 | } |
14576 | return resultobj; | |
14577 | fail: | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
c370783e | 14582 | static PyObject *_wrap_Grid_GetGridColLabelWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14583 | PyObject *resultobj; |
14584 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14585 | wxWindow *result; | |
14586 | PyObject * obj0 = 0 ; | |
14587 | char *kwnames[] = { | |
14588 | (char *) "self", NULL | |
14589 | }; | |
14590 | ||
14591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridColLabelWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14594 | { |
14595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14596 | result = (wxWindow *)(arg1)->GetGridColLabelWindow(); | |
14597 | ||
14598 | wxPyEndAllowThreads(__tstate); | |
14599 | if (PyErr_Occurred()) SWIG_fail; | |
14600 | } | |
14601 | { | |
412d302d | 14602 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14603 | } |
14604 | return resultobj; | |
14605 | fail: | |
14606 | return NULL; | |
14607 | } | |
14608 | ||
14609 | ||
c370783e | 14610 | static PyObject *_wrap_Grid_GetGridCornerLabelWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14611 | PyObject *resultobj; |
14612 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14613 | wxWindow *result; | |
14614 | PyObject * obj0 = 0 ; | |
14615 | char *kwnames[] = { | |
14616 | (char *) "self", NULL | |
14617 | }; | |
14618 | ||
14619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCornerLabelWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14622 | { |
14623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14624 | result = (wxWindow *)(arg1)->GetGridCornerLabelWindow(); | |
14625 | ||
14626 | wxPyEndAllowThreads(__tstate); | |
14627 | if (PyErr_Occurred()) SWIG_fail; | |
14628 | } | |
14629 | { | |
412d302d | 14630 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14631 | } |
14632 | return resultobj; | |
14633 | fail: | |
14634 | return NULL; | |
14635 | } | |
14636 | ||
14637 | ||
070c48b4 RD |
14638 | static PyObject *_wrap_Grid_SetScrollLineX(PyObject *, PyObject *args, PyObject *kwargs) { |
14639 | PyObject *resultobj; | |
14640 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14641 | int arg2 ; | |
14642 | PyObject * obj0 = 0 ; | |
14643 | PyObject * obj1 = 0 ; | |
14644 | char *kwnames[] = { | |
14645 | (char *) "self",(char *) "x", NULL | |
14646 | }; | |
14647 | ||
14648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetScrollLineX",kwnames,&obj0,&obj1)) goto fail; | |
14649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14651 | arg2 = (int)SWIG_As_int(obj1); | |
14652 | if (PyErr_Occurred()) SWIG_fail; | |
14653 | { | |
14654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14655 | (arg1)->SetScrollLineX(arg2); | |
14656 | ||
14657 | wxPyEndAllowThreads(__tstate); | |
14658 | if (PyErr_Occurred()) SWIG_fail; | |
14659 | } | |
14660 | Py_INCREF(Py_None); resultobj = Py_None; | |
14661 | return resultobj; | |
14662 | fail: | |
14663 | return NULL; | |
14664 | } | |
14665 | ||
14666 | ||
14667 | static PyObject *_wrap_Grid_SetScrollLineY(PyObject *, PyObject *args, PyObject *kwargs) { | |
14668 | PyObject *resultobj; | |
14669 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14670 | int arg2 ; | |
14671 | PyObject * obj0 = 0 ; | |
14672 | PyObject * obj1 = 0 ; | |
14673 | char *kwnames[] = { | |
14674 | (char *) "self",(char *) "y", NULL | |
14675 | }; | |
14676 | ||
14677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetScrollLineY",kwnames,&obj0,&obj1)) goto fail; | |
14678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14680 | arg2 = (int)SWIG_As_int(obj1); | |
14681 | if (PyErr_Occurred()) SWIG_fail; | |
14682 | { | |
14683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14684 | (arg1)->SetScrollLineY(arg2); | |
14685 | ||
14686 | wxPyEndAllowThreads(__tstate); | |
14687 | if (PyErr_Occurred()) SWIG_fail; | |
14688 | } | |
14689 | Py_INCREF(Py_None); resultobj = Py_None; | |
14690 | return resultobj; | |
14691 | fail: | |
14692 | return NULL; | |
14693 | } | |
14694 | ||
14695 | ||
14696 | static PyObject *_wrap_Grid_GetScrollLineX(PyObject *, PyObject *args, PyObject *kwargs) { | |
14697 | PyObject *resultobj; | |
14698 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14699 | int result; | |
14700 | PyObject * obj0 = 0 ; | |
14701 | char *kwnames[] = { | |
14702 | (char *) "self", NULL | |
14703 | }; | |
14704 | ||
14705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetScrollLineX",kwnames,&obj0)) goto fail; | |
14706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14708 | { | |
14709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14710 | result = (int)((wxGrid const *)arg1)->GetScrollLineX(); | |
14711 | ||
14712 | wxPyEndAllowThreads(__tstate); | |
14713 | if (PyErr_Occurred()) SWIG_fail; | |
14714 | } | |
14715 | resultobj = SWIG_From_int((int)result); | |
14716 | return resultobj; | |
14717 | fail: | |
14718 | return NULL; | |
14719 | } | |
14720 | ||
14721 | ||
14722 | static PyObject *_wrap_Grid_GetScrollLineY(PyObject *, PyObject *args, PyObject *kwargs) { | |
14723 | PyObject *resultobj; | |
14724 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14725 | int result; | |
14726 | PyObject * obj0 = 0 ; | |
14727 | char *kwnames[] = { | |
14728 | (char *) "self", NULL | |
14729 | }; | |
14730 | ||
14731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetScrollLineY",kwnames,&obj0)) goto fail; | |
14732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14734 | { | |
14735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14736 | result = (int)((wxGrid const *)arg1)->GetScrollLineY(); | |
14737 | ||
14738 | wxPyEndAllowThreads(__tstate); | |
14739 | if (PyErr_Occurred()) SWIG_fail; | |
14740 | } | |
14741 | resultobj = SWIG_From_int((int)result); | |
14742 | return resultobj; | |
14743 | fail: | |
14744 | return NULL; | |
14745 | } | |
14746 | ||
14747 | ||
14748 | static PyObject *_wrap_Grid_GetScrollX(PyObject *, PyObject *args, PyObject *kwargs) { | |
14749 | PyObject *resultobj; | |
14750 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14751 | int arg2 ; | |
14752 | int result; | |
14753 | PyObject * obj0 = 0 ; | |
14754 | PyObject * obj1 = 0 ; | |
14755 | char *kwnames[] = { | |
14756 | (char *) "self",(char *) "x", NULL | |
14757 | }; | |
14758 | ||
14759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetScrollX",kwnames,&obj0,&obj1)) goto fail; | |
14760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14762 | arg2 = (int)SWIG_As_int(obj1); | |
14763 | if (PyErr_Occurred()) SWIG_fail; | |
14764 | { | |
14765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14766 | result = (int)((wxGrid const *)arg1)->GetScrollX(arg2); | |
14767 | ||
14768 | wxPyEndAllowThreads(__tstate); | |
14769 | if (PyErr_Occurred()) SWIG_fail; | |
14770 | } | |
14771 | resultobj = SWIG_From_int((int)result); | |
14772 | return resultobj; | |
14773 | fail: | |
14774 | return NULL; | |
14775 | } | |
14776 | ||
14777 | ||
14778 | static PyObject *_wrap_Grid_GetScrollY(PyObject *, PyObject *args, PyObject *kwargs) { | |
14779 | PyObject *resultobj; | |
14780 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14781 | int arg2 ; | |
14782 | int result; | |
14783 | PyObject * obj0 = 0 ; | |
14784 | PyObject * obj1 = 0 ; | |
14785 | char *kwnames[] = { | |
14786 | (char *) "self",(char *) "y", NULL | |
14787 | }; | |
14788 | ||
14789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetScrollY",kwnames,&obj0,&obj1)) goto fail; | |
14790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
14791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14792 | arg2 = (int)SWIG_As_int(obj1); | |
14793 | if (PyErr_Occurred()) SWIG_fail; | |
14794 | { | |
14795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14796 | result = (int)((wxGrid const *)arg1)->GetScrollY(arg2); | |
14797 | ||
14798 | wxPyEndAllowThreads(__tstate); | |
14799 | if (PyErr_Occurred()) SWIG_fail; | |
14800 | } | |
14801 | resultobj = SWIG_From_int((int)result); | |
14802 | return resultobj; | |
14803 | fail: | |
14804 | return NULL; | |
14805 | } | |
14806 | ||
14807 | ||
c370783e | 14808 | static PyObject *_wrap_Grid_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
14809 | PyObject *resultobj; |
14810 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14811 | wxVisualAttributes result; | |
14812 | PyObject * obj0 = 0 ; | |
14813 | char *kwnames[] = { | |
14814 | (char *) "variant", NULL | |
14815 | }; | |
14816 | ||
14817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Grid_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14818 | if (obj0) { | |
c370783e | 14819 | arg1 = (int)SWIG_As_int(obj0); |
f20a2e1f RD |
14820 | if (PyErr_Occurred()) SWIG_fail; |
14821 | } | |
14822 | { | |
0439c23b | 14823 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14825 | result = wxGrid::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14826 | ||
14827 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14828 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14829 | } |
14830 | { | |
14831 | wxVisualAttributes * resultptr; | |
14832 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14833 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14834 | } | |
14835 | return resultobj; | |
14836 | fail: | |
14837 | return NULL; | |
14838 | } | |
14839 | ||
14840 | ||
c370783e | 14841 | static PyObject * Grid_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14842 | PyObject *obj; |
14843 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14844 | SWIG_TypeClientData(SWIGTYPE_p_wxGrid, obj); | |
14845 | Py_INCREF(obj); | |
14846 | return Py_BuildValue((char *)""); | |
14847 | } | |
c370783e | 14848 | static PyObject *_wrap_new_GridEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14849 | PyObject *resultobj; |
14850 | int arg1 ; | |
14851 | wxEventType arg2 ; | |
14852 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14853 | int arg4 = (int) -1 ; | |
14854 | int arg5 = (int) -1 ; | |
14855 | int arg6 = (int) -1 ; | |
14856 | int arg7 = (int) -1 ; | |
b411df4a RD |
14857 | bool arg8 = (bool) true ; |
14858 | bool arg9 = (bool) false ; | |
14859 | bool arg10 = (bool) false ; | |
14860 | bool arg11 = (bool) false ; | |
14861 | bool arg12 = (bool) false ; | |
d14a1e28 | 14862 | wxGridEvent *result; |
8edf1c75 RD |
14863 | PyObject * obj0 = 0 ; |
14864 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14865 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
14866 | PyObject * obj3 = 0 ; |
14867 | PyObject * obj4 = 0 ; | |
14868 | PyObject * obj5 = 0 ; | |
14869 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
14870 | PyObject * obj7 = 0 ; |
14871 | PyObject * obj8 = 0 ; | |
14872 | PyObject * obj9 = 0 ; | |
14873 | PyObject * obj10 = 0 ; | |
14874 | PyObject * obj11 = 0 ; | |
14875 | char *kwnames[] = { | |
14876 | (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "x",(char *) "y",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL | |
14877 | }; | |
14878 | ||
8edf1c75 | 14879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOOOO:new_GridEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail; |
c370783e | 14880 | arg1 = (int)SWIG_As_int(obj0); |
2f4c0a16 | 14881 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14882 | arg2 = (wxEventType)SWIG_As_int(obj1); |
2f4c0a16 RD |
14883 | if (PyErr_Occurred()) SWIG_fail; |
14884 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid, | |
14885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 14886 | if (obj3) { |
c370783e | 14887 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 14888 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
14889 | } |
14890 | if (obj4) { | |
c370783e | 14891 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 14892 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
14893 | } |
14894 | if (obj5) { | |
c370783e | 14895 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 14896 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
14897 | } |
14898 | if (obj6) { | |
c370783e | 14899 | arg7 = (int)SWIG_As_int(obj6); |
2f4c0a16 | 14900 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 14901 | } |
d14a1e28 | 14902 | if (obj7) { |
c370783e | 14903 | arg8 = (bool)SWIG_As_bool(obj7); |
2f4c0a16 | 14904 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14905 | } |
14906 | if (obj8) { | |
c370783e | 14907 | arg9 = (bool)SWIG_As_bool(obj8); |
2f4c0a16 | 14908 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14909 | } |
14910 | if (obj9) { | |
c370783e | 14911 | arg10 = (bool)SWIG_As_bool(obj9); |
2f4c0a16 | 14912 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14913 | } |
14914 | if (obj10) { | |
c370783e | 14915 | arg11 = (bool)SWIG_As_bool(obj10); |
2f4c0a16 | 14916 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14917 | } |
14918 | if (obj11) { | |
c370783e | 14919 | arg12 = (bool)SWIG_As_bool(obj11); |
2f4c0a16 | 14920 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14921 | } |
14922 | { | |
14923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14924 | result = (wxGridEvent *)new wxGridEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
14925 | ||
14926 | wxPyEndAllowThreads(__tstate); | |
14927 | if (PyErr_Occurred()) SWIG_fail; | |
14928 | } | |
2f4c0a16 | 14929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridEvent, 1); |
d14a1e28 RD |
14930 | return resultobj; |
14931 | fail: | |
14932 | return NULL; | |
14933 | } | |
14934 | ||
14935 | ||
c370783e | 14936 | static PyObject *_wrap_GridEvent_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14937 | PyObject *resultobj; |
14938 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14939 | int result; | |
14940 | PyObject * obj0 = 0 ; | |
14941 | char *kwnames[] = { | |
14942 | (char *) "self", NULL | |
14943 | }; | |
14944 | ||
14945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetRow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
14947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14948 | { |
14949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14950 | result = (int)(arg1)->GetRow(); | |
14951 | ||
14952 | wxPyEndAllowThreads(__tstate); | |
14953 | if (PyErr_Occurred()) SWIG_fail; | |
14954 | } | |
c370783e | 14955 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14956 | return resultobj; |
14957 | fail: | |
14958 | return NULL; | |
14959 | } | |
14960 | ||
14961 | ||
c370783e | 14962 | static PyObject *_wrap_GridEvent_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14963 | PyObject *resultobj; |
14964 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14965 | int result; | |
14966 | PyObject * obj0 = 0 ; | |
14967 | char *kwnames[] = { | |
14968 | (char *) "self", NULL | |
14969 | }; | |
14970 | ||
14971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetCol",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
14973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14974 | { |
14975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14976 | result = (int)(arg1)->GetCol(); | |
14977 | ||
14978 | wxPyEndAllowThreads(__tstate); | |
14979 | if (PyErr_Occurred()) SWIG_fail; | |
14980 | } | |
c370783e | 14981 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
14982 | return resultobj; |
14983 | fail: | |
14984 | return NULL; | |
14985 | } | |
14986 | ||
14987 | ||
c370783e | 14988 | static PyObject *_wrap_GridEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14989 | PyObject *resultobj; |
14990 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14991 | wxPoint result; | |
14992 | PyObject * obj0 = 0 ; | |
14993 | char *kwnames[] = { | |
14994 | (char *) "self", NULL | |
14995 | }; | |
14996 | ||
14997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
14999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15000 | { |
15001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15002 | result = (arg1)->GetPosition(); | |
15003 | ||
15004 | wxPyEndAllowThreads(__tstate); | |
15005 | if (PyErr_Occurred()) SWIG_fail; | |
15006 | } | |
15007 | { | |
15008 | wxPoint * resultptr; | |
15009 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 15010 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
15011 | } |
15012 | return resultobj; | |
15013 | fail: | |
15014 | return NULL; | |
15015 | } | |
15016 | ||
15017 | ||
c370783e | 15018 | static PyObject *_wrap_GridEvent_Selecting(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15019 | PyObject *resultobj; |
15020 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
15021 | bool result; | |
15022 | PyObject * obj0 = 0 ; | |
15023 | char *kwnames[] = { | |
15024 | (char *) "self", NULL | |
15025 | }; | |
15026 | ||
15027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_Selecting",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
15029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15030 | { |
15031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15032 | result = (bool)(arg1)->Selecting(); | |
15033 | ||
15034 | wxPyEndAllowThreads(__tstate); | |
15035 | if (PyErr_Occurred()) SWIG_fail; | |
15036 | } | |
fbc46b20 RD |
15037 | { |
15038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15039 | } | |
d14a1e28 RD |
15040 | return resultobj; |
15041 | fail: | |
15042 | return NULL; | |
15043 | } | |
15044 | ||
15045 | ||
c370783e | 15046 | static PyObject *_wrap_GridEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15047 | PyObject *resultobj; |
15048 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
15049 | bool result; | |
15050 | PyObject * obj0 = 0 ; | |
15051 | char *kwnames[] = { | |
15052 | (char *) "self", NULL | |
15053 | }; | |
15054 | ||
15055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ControlDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
15057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15058 | { |
15059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15060 | result = (bool)(arg1)->ControlDown(); | |
15061 | ||
15062 | wxPyEndAllowThreads(__tstate); | |
15063 | if (PyErr_Occurred()) SWIG_fail; | |
15064 | } | |
fbc46b20 RD |
15065 | { |
15066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15067 | } | |
d14a1e28 RD |
15068 | return resultobj; |
15069 | fail: | |
15070 | return NULL; | |
15071 | } | |
15072 | ||
15073 | ||
c370783e | 15074 | static PyObject *_wrap_GridEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15075 | PyObject *resultobj; |
15076 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
15077 | bool result; | |
15078 | PyObject * obj0 = 0 ; | |
15079 | char *kwnames[] = { | |
15080 | (char *) "self", NULL | |
15081 | }; | |
15082 | ||
15083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_MetaDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
15085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15086 | { |
15087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15088 | result = (bool)(arg1)->MetaDown(); | |
15089 | ||
15090 | wxPyEndAllowThreads(__tstate); | |
15091 | if (PyErr_Occurred()) SWIG_fail; | |
15092 | } | |
fbc46b20 RD |
15093 | { |
15094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15095 | } | |
d14a1e28 RD |
15096 | return resultobj; |
15097 | fail: | |
15098 | return NULL; | |
15099 | } | |
15100 | ||
15101 | ||
c370783e | 15102 | static PyObject *_wrap_GridEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15103 | PyObject *resultobj; |
15104 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
15105 | bool result; | |
15106 | PyObject * obj0 = 0 ; | |
15107 | char *kwnames[] = { | |
15108 | (char *) "self", NULL | |
15109 | }; | |
15110 | ||
15111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
15113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15114 | { |
15115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15116 | result = (bool)(arg1)->ShiftDown(); | |
15117 | ||
15118 | wxPyEndAllowThreads(__tstate); | |
15119 | if (PyErr_Occurred()) SWIG_fail; | |
15120 | } | |
fbc46b20 RD |
15121 | { |
15122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15123 | } | |
d14a1e28 RD |
15124 | return resultobj; |
15125 | fail: | |
15126 | return NULL; | |
15127 | } | |
15128 | ||
15129 | ||
c370783e | 15130 | static PyObject *_wrap_GridEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15131 | PyObject *resultobj; |
15132 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
15133 | bool result; | |
15134 | PyObject * obj0 = 0 ; | |
15135 | char *kwnames[] = { | |
15136 | (char *) "self", NULL | |
15137 | }; | |
15138 | ||
15139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_AltDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
15141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15142 | { |
15143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15144 | result = (bool)(arg1)->AltDown(); | |
15145 | ||
15146 | wxPyEndAllowThreads(__tstate); | |
15147 | if (PyErr_Occurred()) SWIG_fail; | |
15148 | } | |
fbc46b20 RD |
15149 | { |
15150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15151 | } | |
d14a1e28 RD |
15152 | return resultobj; |
15153 | fail: | |
15154 | return NULL; | |
15155 | } | |
15156 | ||
15157 | ||
c370783e | 15158 | static PyObject * GridEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15159 | PyObject *obj; |
15160 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15161 | SWIG_TypeClientData(SWIGTYPE_p_wxGridEvent, obj); | |
15162 | Py_INCREF(obj); | |
15163 | return Py_BuildValue((char *)""); | |
15164 | } | |
c370783e | 15165 | static PyObject *_wrap_new_GridSizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15166 | PyObject *resultobj; |
15167 | int arg1 ; | |
15168 | wxEventType arg2 ; | |
15169 | wxGrid *arg3 = (wxGrid *) 0 ; | |
15170 | int arg4 = (int) -1 ; | |
15171 | int arg5 = (int) -1 ; | |
15172 | int arg6 = (int) -1 ; | |
b411df4a RD |
15173 | bool arg7 = (bool) false ; |
15174 | bool arg8 = (bool) false ; | |
15175 | bool arg9 = (bool) false ; | |
15176 | bool arg10 = (bool) false ; | |
d14a1e28 | 15177 | wxGridSizeEvent *result; |
8edf1c75 RD |
15178 | PyObject * obj0 = 0 ; |
15179 | PyObject * obj1 = 0 ; | |
d14a1e28 | 15180 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
15181 | PyObject * obj3 = 0 ; |
15182 | PyObject * obj4 = 0 ; | |
15183 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15184 | PyObject * obj6 = 0 ; |
15185 | PyObject * obj7 = 0 ; | |
15186 | PyObject * obj8 = 0 ; | |
15187 | PyObject * obj9 = 0 ; | |
15188 | char *kwnames[] = { | |
15189 | (char *) "id",(char *) "type",(char *) "obj",(char *) "rowOrCol",(char *) "x",(char *) "y",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL | |
15190 | }; | |
15191 | ||
8edf1c75 | 15192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_GridSizeEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
c370783e | 15193 | arg1 = (int)SWIG_As_int(obj0); |
2f4c0a16 | 15194 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 15195 | arg2 = (wxEventType)SWIG_As_int(obj1); |
2f4c0a16 RD |
15196 | if (PyErr_Occurred()) SWIG_fail; |
15197 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid, | |
15198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 15199 | if (obj3) { |
c370783e | 15200 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 15201 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
15202 | } |
15203 | if (obj4) { | |
c370783e | 15204 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 | 15205 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 RD |
15206 | } |
15207 | if (obj5) { | |
c370783e | 15208 | arg6 = (int)SWIG_As_int(obj5); |
2f4c0a16 | 15209 | if (PyErr_Occurred()) SWIG_fail; |
8edf1c75 | 15210 | } |
d14a1e28 | 15211 | if (obj6) { |
c370783e | 15212 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 15213 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15214 | } |
15215 | if (obj7) { | |
c370783e | 15216 | arg8 = (bool)SWIG_As_bool(obj7); |
2f4c0a16 | 15217 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15218 | } |
15219 | if (obj8) { | |
c370783e | 15220 | arg9 = (bool)SWIG_As_bool(obj8); |
2f4c0a16 | 15221 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15222 | } |
15223 | if (obj9) { | |
c370783e | 15224 | arg10 = (bool)SWIG_As_bool(obj9); |
2f4c0a16 | 15225 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15226 | } |
15227 | { | |
15228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15229 | result = (wxGridSizeEvent *)new wxGridSizeEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
15230 | ||
15231 | wxPyEndAllowThreads(__tstate); | |
15232 | if (PyErr_Occurred()) SWIG_fail; | |
15233 | } | |
2f4c0a16 | 15234 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizeEvent, 1); |
d14a1e28 RD |
15235 | return resultobj; |
15236 | fail: | |
15237 | return NULL; | |
15238 | } | |
15239 | ||
15240 | ||
c370783e | 15241 | static PyObject *_wrap_GridSizeEvent_GetRowOrCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15242 | PyObject *resultobj; |
15243 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
15244 | int result; | |
15245 | PyObject * obj0 = 0 ; | |
15246 | char *kwnames[] = { | |
15247 | (char *) "self", NULL | |
15248 | }; | |
15249 | ||
15250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetRowOrCol",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
15252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15253 | { |
15254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15255 | result = (int)(arg1)->GetRowOrCol(); | |
15256 | ||
15257 | wxPyEndAllowThreads(__tstate); | |
15258 | if (PyErr_Occurred()) SWIG_fail; | |
15259 | } | |
c370783e | 15260 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15261 | return resultobj; |
15262 | fail: | |
15263 | return NULL; | |
15264 | } | |
15265 | ||
15266 | ||
c370783e | 15267 | static PyObject *_wrap_GridSizeEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15268 | PyObject *resultobj; |
15269 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
15270 | wxPoint result; | |
15271 | PyObject * obj0 = 0 ; | |
15272 | char *kwnames[] = { | |
15273 | (char *) "self", NULL | |
15274 | }; | |
15275 | ||
15276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
15278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15279 | { |
15280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15281 | result = (arg1)->GetPosition(); | |
15282 | ||
15283 | wxPyEndAllowThreads(__tstate); | |
15284 | if (PyErr_Occurred()) SWIG_fail; | |
15285 | } | |
15286 | { | |
15287 | wxPoint * resultptr; | |
15288 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 15289 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
15290 | } |
15291 | return resultobj; | |
15292 | fail: | |
15293 | return NULL; | |
15294 | } | |
15295 | ||
15296 | ||
c370783e | 15297 | static PyObject *_wrap_GridSizeEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15298 | PyObject *resultobj; |
15299 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
15300 | bool result; | |
15301 | PyObject * obj0 = 0 ; | |
15302 | char *kwnames[] = { | |
15303 | (char *) "self", NULL | |
15304 | }; | |
15305 | ||
15306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ControlDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
15308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15309 | { |
15310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15311 | result = (bool)(arg1)->ControlDown(); | |
15312 | ||
15313 | wxPyEndAllowThreads(__tstate); | |
15314 | if (PyErr_Occurred()) SWIG_fail; | |
15315 | } | |
fbc46b20 RD |
15316 | { |
15317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15318 | } | |
d14a1e28 RD |
15319 | return resultobj; |
15320 | fail: | |
15321 | return NULL; | |
15322 | } | |
15323 | ||
15324 | ||
c370783e | 15325 | static PyObject *_wrap_GridSizeEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15326 | PyObject *resultobj; |
15327 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
15328 | bool result; | |
15329 | PyObject * obj0 = 0 ; | |
15330 | char *kwnames[] = { | |
15331 | (char *) "self", NULL | |
15332 | }; | |
15333 | ||
15334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_MetaDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
15336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15337 | { |
15338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15339 | result = (bool)(arg1)->MetaDown(); | |
15340 | ||
15341 | wxPyEndAllowThreads(__tstate); | |
15342 | if (PyErr_Occurred()) SWIG_fail; | |
15343 | } | |
fbc46b20 RD |
15344 | { |
15345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15346 | } | |
d14a1e28 RD |
15347 | return resultobj; |
15348 | fail: | |
15349 | return NULL; | |
15350 | } | |
15351 | ||
15352 | ||
c370783e | 15353 | static PyObject *_wrap_GridSizeEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15354 | PyObject *resultobj; |
15355 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
15356 | bool result; | |
15357 | PyObject * obj0 = 0 ; | |
15358 | char *kwnames[] = { | |
15359 | (char *) "self", NULL | |
15360 | }; | |
15361 | ||
15362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
15364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15365 | { |
15366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15367 | result = (bool)(arg1)->ShiftDown(); | |
15368 | ||
15369 | wxPyEndAllowThreads(__tstate); | |
15370 | if (PyErr_Occurred()) SWIG_fail; | |
15371 | } | |
fbc46b20 RD |
15372 | { |
15373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15374 | } | |
d14a1e28 RD |
15375 | return resultobj; |
15376 | fail: | |
15377 | return NULL; | |
15378 | } | |
15379 | ||
15380 | ||
c370783e | 15381 | static PyObject *_wrap_GridSizeEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15382 | PyObject *resultobj; |
15383 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
15384 | bool result; | |
15385 | PyObject * obj0 = 0 ; | |
15386 | char *kwnames[] = { | |
15387 | (char *) "self", NULL | |
15388 | }; | |
15389 | ||
15390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_AltDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
15392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15393 | { |
15394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15395 | result = (bool)(arg1)->AltDown(); | |
15396 | ||
15397 | wxPyEndAllowThreads(__tstate); | |
15398 | if (PyErr_Occurred()) SWIG_fail; | |
15399 | } | |
fbc46b20 RD |
15400 | { |
15401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15402 | } | |
d14a1e28 RD |
15403 | return resultobj; |
15404 | fail: | |
15405 | return NULL; | |
15406 | } | |
15407 | ||
15408 | ||
c370783e | 15409 | static PyObject * GridSizeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15410 | PyObject *obj; |
15411 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15412 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizeEvent, obj); | |
15413 | Py_INCREF(obj); | |
15414 | return Py_BuildValue((char *)""); | |
15415 | } | |
c370783e | 15416 | static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15417 | PyObject *resultobj; |
15418 | int arg1 ; | |
15419 | wxEventType arg2 ; | |
15420 | wxGrid *arg3 = (wxGrid *) 0 ; | |
15421 | wxGridCellCoords *arg4 = 0 ; | |
15422 | wxGridCellCoords *arg5 = 0 ; | |
b411df4a RD |
15423 | bool arg6 = (bool) true ; |
15424 | bool arg7 = (bool) false ; | |
15425 | bool arg8 = (bool) false ; | |
15426 | bool arg9 = (bool) false ; | |
15427 | bool arg10 = (bool) false ; | |
d14a1e28 RD |
15428 | wxGridRangeSelectEvent *result; |
15429 | wxGridCellCoords temp4 ; | |
15430 | wxGridCellCoords temp5 ; | |
8edf1c75 RD |
15431 | PyObject * obj0 = 0 ; |
15432 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
15433 | PyObject * obj2 = 0 ; |
15434 | PyObject * obj3 = 0 ; | |
15435 | PyObject * obj4 = 0 ; | |
15436 | PyObject * obj5 = 0 ; | |
15437 | PyObject * obj6 = 0 ; | |
15438 | PyObject * obj7 = 0 ; | |
15439 | PyObject * obj8 = 0 ; | |
15440 | PyObject * obj9 = 0 ; | |
15441 | char *kwnames[] = { | |
15442 | (char *) "id",(char *) "type",(char *) "obj",(char *) "topLeft",(char *) "bottomRight",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL | |
15443 | }; | |
15444 | ||
8edf1c75 | 15445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_GridRangeSelectEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
c370783e | 15446 | arg1 = (int)SWIG_As_int(obj0); |
2f4c0a16 | 15447 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 15448 | arg2 = (wxEventType)SWIG_As_int(obj1); |
2f4c0a16 RD |
15449 | if (PyErr_Occurred()) SWIG_fail; |
15450 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid, | |
15451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15452 | { |
15453 | arg4 = &temp4; | |
15454 | if (! wxGridCellCoords_helper(obj3, &arg4)) SWIG_fail; | |
15455 | } | |
15456 | { | |
15457 | arg5 = &temp5; | |
15458 | if (! wxGridCellCoords_helper(obj4, &arg5)) SWIG_fail; | |
15459 | } | |
15460 | if (obj5) { | |
c370783e | 15461 | arg6 = (bool)SWIG_As_bool(obj5); |
2f4c0a16 | 15462 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15463 | } |
15464 | if (obj6) { | |
c370783e | 15465 | arg7 = (bool)SWIG_As_bool(obj6); |
2f4c0a16 | 15466 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15467 | } |
15468 | if (obj7) { | |
c370783e | 15469 | arg8 = (bool)SWIG_As_bool(obj7); |
2f4c0a16 | 15470 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15471 | } |
15472 | if (obj8) { | |
c370783e | 15473 | arg9 = (bool)SWIG_As_bool(obj8); |
2f4c0a16 | 15474 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15475 | } |
15476 | if (obj9) { | |
c370783e | 15477 | arg10 = (bool)SWIG_As_bool(obj9); |
2f4c0a16 | 15478 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15479 | } |
15480 | { | |
15481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15482 | result = (wxGridRangeSelectEvent *)new wxGridRangeSelectEvent(arg1,arg2,arg3,(wxGridCellCoords const &)*arg4,(wxGridCellCoords const &)*arg5,arg6,arg7,arg8,arg9,arg10); | |
15483 | ||
15484 | wxPyEndAllowThreads(__tstate); | |
15485 | if (PyErr_Occurred()) SWIG_fail; | |
15486 | } | |
2f4c0a16 | 15487 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridRangeSelectEvent, 1); |
d14a1e28 RD |
15488 | return resultobj; |
15489 | fail: | |
15490 | return NULL; | |
15491 | } | |
15492 | ||
15493 | ||
c370783e | 15494 | static PyObject *_wrap_GridRangeSelectEvent_GetTopLeftCoords(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15495 | PyObject *resultobj; |
15496 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15497 | wxGridCellCoords result; | |
15498 | PyObject * obj0 = 0 ; | |
15499 | char *kwnames[] = { | |
15500 | (char *) "self", NULL | |
15501 | }; | |
15502 | ||
15503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopLeftCoords",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15506 | { |
15507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15508 | result = (arg1)->GetTopLeftCoords(); | |
15509 | ||
15510 | wxPyEndAllowThreads(__tstate); | |
15511 | if (PyErr_Occurred()) SWIG_fail; | |
15512 | } | |
15513 | { | |
15514 | wxGridCellCoords * resultptr; | |
15515 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
2f4c0a16 | 15516 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1); |
d14a1e28 RD |
15517 | } |
15518 | return resultobj; | |
15519 | fail: | |
15520 | return NULL; | |
15521 | } | |
15522 | ||
15523 | ||
c370783e | 15524 | static PyObject *_wrap_GridRangeSelectEvent_GetBottomRightCoords(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15525 | PyObject *resultobj; |
15526 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15527 | wxGridCellCoords result; | |
15528 | PyObject * obj0 = 0 ; | |
15529 | char *kwnames[] = { | |
15530 | (char *) "self", NULL | |
15531 | }; | |
15532 | ||
15533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRightCoords",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15536 | { |
15537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15538 | result = (arg1)->GetBottomRightCoords(); | |
15539 | ||
15540 | wxPyEndAllowThreads(__tstate); | |
15541 | if (PyErr_Occurred()) SWIG_fail; | |
15542 | } | |
15543 | { | |
15544 | wxGridCellCoords * resultptr; | |
15545 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
2f4c0a16 | 15546 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1); |
d14a1e28 RD |
15547 | } |
15548 | return resultobj; | |
15549 | fail: | |
15550 | return NULL; | |
15551 | } | |
15552 | ||
15553 | ||
c370783e | 15554 | static PyObject *_wrap_GridRangeSelectEvent_GetTopRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15555 | PyObject *resultobj; |
15556 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15557 | int result; | |
15558 | PyObject * obj0 = 0 ; | |
15559 | char *kwnames[] = { | |
15560 | (char *) "self", NULL | |
15561 | }; | |
15562 | ||
15563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopRow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15566 | { |
15567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15568 | result = (int)(arg1)->GetTopRow(); | |
15569 | ||
15570 | wxPyEndAllowThreads(__tstate); | |
15571 | if (PyErr_Occurred()) SWIG_fail; | |
15572 | } | |
c370783e | 15573 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15574 | return resultobj; |
15575 | fail: | |
15576 | return NULL; | |
15577 | } | |
15578 | ||
15579 | ||
c370783e | 15580 | static PyObject *_wrap_GridRangeSelectEvent_GetBottomRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15581 | PyObject *resultobj; |
15582 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15583 | int result; | |
15584 | PyObject * obj0 = 0 ; | |
15585 | char *kwnames[] = { | |
15586 | (char *) "self", NULL | |
15587 | }; | |
15588 | ||
15589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15592 | { |
15593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15594 | result = (int)(arg1)->GetBottomRow(); | |
15595 | ||
15596 | wxPyEndAllowThreads(__tstate); | |
15597 | if (PyErr_Occurred()) SWIG_fail; | |
15598 | } | |
c370783e | 15599 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15600 | return resultobj; |
15601 | fail: | |
15602 | return NULL; | |
15603 | } | |
15604 | ||
15605 | ||
c370783e | 15606 | static PyObject *_wrap_GridRangeSelectEvent_GetLeftCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15607 | PyObject *resultobj; |
15608 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15609 | int result; | |
15610 | PyObject * obj0 = 0 ; | |
15611 | char *kwnames[] = { | |
15612 | (char *) "self", NULL | |
15613 | }; | |
15614 | ||
15615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetLeftCol",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15618 | { |
15619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15620 | result = (int)(arg1)->GetLeftCol(); | |
15621 | ||
15622 | wxPyEndAllowThreads(__tstate); | |
15623 | if (PyErr_Occurred()) SWIG_fail; | |
15624 | } | |
c370783e | 15625 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15626 | return resultobj; |
15627 | fail: | |
15628 | return NULL; | |
15629 | } | |
15630 | ||
15631 | ||
c370783e | 15632 | static PyObject *_wrap_GridRangeSelectEvent_GetRightCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15633 | PyObject *resultobj; |
15634 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15635 | int result; | |
15636 | PyObject * obj0 = 0 ; | |
15637 | char *kwnames[] = { | |
15638 | (char *) "self", NULL | |
15639 | }; | |
15640 | ||
15641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetRightCol",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15644 | { |
15645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15646 | result = (int)(arg1)->GetRightCol(); | |
15647 | ||
15648 | wxPyEndAllowThreads(__tstate); | |
15649 | if (PyErr_Occurred()) SWIG_fail; | |
15650 | } | |
c370783e | 15651 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15652 | return resultobj; |
15653 | fail: | |
15654 | return NULL; | |
15655 | } | |
15656 | ||
15657 | ||
c370783e | 15658 | static PyObject *_wrap_GridRangeSelectEvent_Selecting(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15659 | PyObject *resultobj; |
15660 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15661 | bool result; | |
15662 | PyObject * obj0 = 0 ; | |
15663 | char *kwnames[] = { | |
15664 | (char *) "self", NULL | |
15665 | }; | |
15666 | ||
15667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_Selecting",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15670 | { |
15671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15672 | result = (bool)(arg1)->Selecting(); | |
15673 | ||
15674 | wxPyEndAllowThreads(__tstate); | |
15675 | if (PyErr_Occurred()) SWIG_fail; | |
15676 | } | |
fbc46b20 RD |
15677 | { |
15678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15679 | } | |
d14a1e28 RD |
15680 | return resultobj; |
15681 | fail: | |
15682 | return NULL; | |
15683 | } | |
15684 | ||
15685 | ||
c370783e | 15686 | static PyObject *_wrap_GridRangeSelectEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15687 | PyObject *resultobj; |
15688 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15689 | bool result; | |
15690 | PyObject * obj0 = 0 ; | |
15691 | char *kwnames[] = { | |
15692 | (char *) "self", NULL | |
15693 | }; | |
15694 | ||
15695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ControlDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15698 | { |
15699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15700 | result = (bool)(arg1)->ControlDown(); | |
15701 | ||
15702 | wxPyEndAllowThreads(__tstate); | |
15703 | if (PyErr_Occurred()) SWIG_fail; | |
15704 | } | |
fbc46b20 RD |
15705 | { |
15706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15707 | } | |
d14a1e28 RD |
15708 | return resultobj; |
15709 | fail: | |
15710 | return NULL; | |
15711 | } | |
15712 | ||
15713 | ||
c370783e | 15714 | static PyObject *_wrap_GridRangeSelectEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15715 | PyObject *resultobj; |
15716 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15717 | bool result; | |
15718 | PyObject * obj0 = 0 ; | |
15719 | char *kwnames[] = { | |
15720 | (char *) "self", NULL | |
15721 | }; | |
15722 | ||
15723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_MetaDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15726 | { |
15727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15728 | result = (bool)(arg1)->MetaDown(); | |
15729 | ||
15730 | wxPyEndAllowThreads(__tstate); | |
15731 | if (PyErr_Occurred()) SWIG_fail; | |
15732 | } | |
fbc46b20 RD |
15733 | { |
15734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15735 | } | |
d14a1e28 RD |
15736 | return resultobj; |
15737 | fail: | |
15738 | return NULL; | |
15739 | } | |
15740 | ||
15741 | ||
c370783e | 15742 | static PyObject *_wrap_GridRangeSelectEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15743 | PyObject *resultobj; |
15744 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15745 | bool result; | |
15746 | PyObject * obj0 = 0 ; | |
15747 | char *kwnames[] = { | |
15748 | (char *) "self", NULL | |
15749 | }; | |
15750 | ||
15751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15754 | { |
15755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15756 | result = (bool)(arg1)->ShiftDown(); | |
15757 | ||
15758 | wxPyEndAllowThreads(__tstate); | |
15759 | if (PyErr_Occurred()) SWIG_fail; | |
15760 | } | |
fbc46b20 RD |
15761 | { |
15762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15763 | } | |
d14a1e28 RD |
15764 | return resultobj; |
15765 | fail: | |
15766 | return NULL; | |
15767 | } | |
15768 | ||
15769 | ||
c370783e | 15770 | static PyObject *_wrap_GridRangeSelectEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15771 | PyObject *resultobj; |
15772 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15773 | bool result; | |
15774 | PyObject * obj0 = 0 ; | |
15775 | char *kwnames[] = { | |
15776 | (char *) "self", NULL | |
15777 | }; | |
15778 | ||
15779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_AltDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15782 | { |
15783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15784 | result = (bool)(arg1)->AltDown(); | |
15785 | ||
15786 | wxPyEndAllowThreads(__tstate); | |
15787 | if (PyErr_Occurred()) SWIG_fail; | |
15788 | } | |
fbc46b20 RD |
15789 | { |
15790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15791 | } | |
d14a1e28 RD |
15792 | return resultobj; |
15793 | fail: | |
15794 | return NULL; | |
15795 | } | |
15796 | ||
15797 | ||
c370783e | 15798 | static PyObject * GridRangeSelectEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15799 | PyObject *obj; |
15800 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15801 | SWIG_TypeClientData(SWIGTYPE_p_wxGridRangeSelectEvent, obj); | |
15802 | Py_INCREF(obj); | |
15803 | return Py_BuildValue((char *)""); | |
15804 | } | |
c370783e | 15805 | static PyObject *_wrap_new_GridEditorCreatedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15806 | PyObject *resultobj; |
15807 | int arg1 ; | |
15808 | wxEventType arg2 ; | |
15809 | wxObject *arg3 = (wxObject *) 0 ; | |
15810 | int arg4 ; | |
15811 | int arg5 ; | |
15812 | wxControl *arg6 = (wxControl *) 0 ; | |
15813 | wxGridEditorCreatedEvent *result; | |
8edf1c75 RD |
15814 | PyObject * obj0 = 0 ; |
15815 | PyObject * obj1 = 0 ; | |
d14a1e28 | 15816 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
15817 | PyObject * obj3 = 0 ; |
15818 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
15819 | PyObject * obj5 = 0 ; |
15820 | char *kwnames[] = { | |
15821 | (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "ctrl", NULL | |
15822 | }; | |
15823 | ||
8edf1c75 | 15824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GridEditorCreatedEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
c370783e | 15825 | arg1 = (int)SWIG_As_int(obj0); |
2f4c0a16 | 15826 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 15827 | arg2 = (wxEventType)SWIG_As_int(obj1); |
2f4c0a16 RD |
15828 | if (PyErr_Occurred()) SWIG_fail; |
15829 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxObject, | |
15830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15831 | arg4 = (int)SWIG_As_int(obj3); |
2f4c0a16 | 15832 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 15833 | arg5 = (int)SWIG_As_int(obj4); |
2f4c0a16 RD |
15834 | if (PyErr_Occurred()) SWIG_fail; |
15835 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxControl, | |
15836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15837 | { |
15838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15839 | result = (wxGridEditorCreatedEvent *)new wxGridEditorCreatedEvent(arg1,arg2,arg3,arg4,arg5,arg6); | |
15840 | ||
15841 | wxPyEndAllowThreads(__tstate); | |
15842 | if (PyErr_Occurred()) SWIG_fail; | |
15843 | } | |
2f4c0a16 | 15844 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridEditorCreatedEvent, 1); |
d14a1e28 RD |
15845 | return resultobj; |
15846 | fail: | |
15847 | return NULL; | |
15848 | } | |
15849 | ||
15850 | ||
c370783e | 15851 | static PyObject *_wrap_GridEditorCreatedEvent_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15852 | PyObject *resultobj; |
15853 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15854 | int result; | |
15855 | PyObject * obj0 = 0 ; | |
15856 | char *kwnames[] = { | |
15857 | (char *) "self", NULL | |
15858 | }; | |
15859 | ||
15860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetRow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
15862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15863 | { |
15864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15865 | result = (int)(arg1)->GetRow(); | |
15866 | ||
15867 | wxPyEndAllowThreads(__tstate); | |
15868 | if (PyErr_Occurred()) SWIG_fail; | |
15869 | } | |
c370783e | 15870 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15871 | return resultobj; |
15872 | fail: | |
15873 | return NULL; | |
15874 | } | |
15875 | ||
15876 | ||
c370783e | 15877 | static PyObject *_wrap_GridEditorCreatedEvent_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15878 | PyObject *resultobj; |
15879 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15880 | int result; | |
15881 | PyObject * obj0 = 0 ; | |
15882 | char *kwnames[] = { | |
15883 | (char *) "self", NULL | |
15884 | }; | |
15885 | ||
15886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetCol",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
15888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15889 | { |
15890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15891 | result = (int)(arg1)->GetCol(); | |
15892 | ||
15893 | wxPyEndAllowThreads(__tstate); | |
15894 | if (PyErr_Occurred()) SWIG_fail; | |
15895 | } | |
c370783e | 15896 | resultobj = SWIG_From_int((int)result); |
d14a1e28 RD |
15897 | return resultobj; |
15898 | fail: | |
15899 | return NULL; | |
15900 | } | |
15901 | ||
15902 | ||
c370783e | 15903 | static PyObject *_wrap_GridEditorCreatedEvent_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15904 | PyObject *resultobj; |
15905 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15906 | wxControl *result; | |
15907 | PyObject * obj0 = 0 ; | |
15908 | char *kwnames[] = { | |
15909 | (char *) "self", NULL | |
15910 | }; | |
15911 | ||
15912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
15914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15915 | { |
15916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15917 | result = (wxControl *)(arg1)->GetControl(); | |
15918 | ||
15919 | wxPyEndAllowThreads(__tstate); | |
15920 | if (PyErr_Occurred()) SWIG_fail; | |
15921 | } | |
15922 | { | |
412d302d | 15923 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
15924 | } |
15925 | return resultobj; | |
15926 | fail: | |
15927 | return NULL; | |
15928 | } | |
15929 | ||
15930 | ||
c370783e | 15931 | static PyObject *_wrap_GridEditorCreatedEvent_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15932 | PyObject *resultobj; |
15933 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15934 | int arg2 ; | |
15935 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15936 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15937 | char *kwnames[] = { |
15938 | (char *) "self",(char *) "row", NULL | |
15939 | }; | |
15940 | ||
8edf1c75 | 15941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetRow",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
15943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15944 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 15945 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15946 | { |
15947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15948 | (arg1)->SetRow(arg2); | |
15949 | ||
15950 | wxPyEndAllowThreads(__tstate); | |
15951 | if (PyErr_Occurred()) SWIG_fail; | |
15952 | } | |
15953 | Py_INCREF(Py_None); resultobj = Py_None; | |
15954 | return resultobj; | |
15955 | fail: | |
15956 | return NULL; | |
15957 | } | |
15958 | ||
15959 | ||
c370783e | 15960 | static PyObject *_wrap_GridEditorCreatedEvent_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15961 | PyObject *resultobj; |
15962 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15963 | int arg2 ; | |
15964 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15965 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15966 | char *kwnames[] = { |
15967 | (char *) "self",(char *) "col", NULL | |
15968 | }; | |
15969 | ||
8edf1c75 | 15970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetCol",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
15972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15973 | arg2 = (int)SWIG_As_int(obj1); |
2f4c0a16 | 15974 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
15975 | { |
15976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15977 | (arg1)->SetCol(arg2); | |
15978 | ||
15979 | wxPyEndAllowThreads(__tstate); | |
15980 | if (PyErr_Occurred()) SWIG_fail; | |
15981 | } | |
15982 | Py_INCREF(Py_None); resultobj = Py_None; | |
15983 | return resultobj; | |
15984 | fail: | |
15985 | return NULL; | |
15986 | } | |
15987 | ||
15988 | ||
c370783e | 15989 | static PyObject *_wrap_GridEditorCreatedEvent_SetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15990 | PyObject *resultobj; |
15991 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15992 | wxControl *arg2 = (wxControl *) 0 ; | |
15993 | PyObject * obj0 = 0 ; | |
15994 | PyObject * obj1 = 0 ; | |
15995 | char *kwnames[] = { | |
15996 | (char *) "self",(char *) "ctrl", NULL | |
15997 | }; | |
15998 | ||
15999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetControl",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
16001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16002 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
16003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16004 | { |
16005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16006 | (arg1)->SetControl(arg2); | |
16007 | ||
16008 | wxPyEndAllowThreads(__tstate); | |
16009 | if (PyErr_Occurred()) SWIG_fail; | |
16010 | } | |
16011 | Py_INCREF(Py_None); resultobj = Py_None; | |
16012 | return resultobj; | |
16013 | fail: | |
16014 | return NULL; | |
16015 | } | |
16016 | ||
16017 | ||
c370783e | 16018 | static PyObject * GridEditorCreatedEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16019 | PyObject *obj; |
16020 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16021 | SWIG_TypeClientData(SWIGTYPE_p_wxGridEditorCreatedEvent, obj); | |
16022 | Py_INCREF(obj); | |
16023 | return Py_BuildValue((char *)""); | |
16024 | } | |
16025 | static PyMethodDef SwigMethods[] = { | |
c370783e RD |
16026 | { (char *)"GridCellRenderer__setOORInfo", (PyCFunction) _wrap_GridCellRenderer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, |
16027 | { (char *)"GridCellRenderer_SetParameters", (PyCFunction) _wrap_GridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16028 | { (char *)"GridCellRenderer_IncRef", (PyCFunction) _wrap_GridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16029 | { (char *)"GridCellRenderer_DecRef", (PyCFunction) _wrap_GridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16030 | { (char *)"GridCellRenderer_Draw", (PyCFunction) _wrap_GridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16031 | { (char *)"GridCellRenderer_GetBestSize", (PyCFunction) _wrap_GridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16032 | { (char *)"GridCellRenderer_Clone", (PyCFunction) _wrap_GridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16033 | { (char *)"GridCellRenderer_swigregister", GridCellRenderer_swigregister, METH_VARARGS, NULL }, | |
16034 | { (char *)"new_PyGridCellRenderer", (PyCFunction) _wrap_new_PyGridCellRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16035 | { (char *)"PyGridCellRenderer__setCallbackInfo", (PyCFunction) _wrap_PyGridCellRenderer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16036 | { (char *)"PyGridCellRenderer_base_SetParameters", (PyCFunction) _wrap_PyGridCellRenderer_base_SetParameters, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16037 | { (char *)"PyGridCellRenderer_swigregister", PyGridCellRenderer_swigregister, METH_VARARGS, NULL }, | |
16038 | { (char *)"new_GridCellStringRenderer", (PyCFunction) _wrap_new_GridCellStringRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16039 | { (char *)"GridCellStringRenderer_swigregister", GridCellStringRenderer_swigregister, METH_VARARGS, NULL }, | |
16040 | { (char *)"new_GridCellNumberRenderer", (PyCFunction) _wrap_new_GridCellNumberRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16041 | { (char *)"GridCellNumberRenderer_swigregister", GridCellNumberRenderer_swigregister, METH_VARARGS, NULL }, | |
16042 | { (char *)"new_GridCellFloatRenderer", (PyCFunction) _wrap_new_GridCellFloatRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16043 | { (char *)"GridCellFloatRenderer_GetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16044 | { (char *)"GridCellFloatRenderer_SetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16045 | { (char *)"GridCellFloatRenderer_GetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_GetPrecision, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16046 | { (char *)"GridCellFloatRenderer_SetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_SetPrecision, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16047 | { (char *)"GridCellFloatRenderer_swigregister", GridCellFloatRenderer_swigregister, METH_VARARGS, NULL }, | |
16048 | { (char *)"new_GridCellBoolRenderer", (PyCFunction) _wrap_new_GridCellBoolRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16049 | { (char *)"GridCellBoolRenderer_swigregister", GridCellBoolRenderer_swigregister, METH_VARARGS, NULL }, | |
16050 | { (char *)"new_GridCellDateTimeRenderer", (PyCFunction) _wrap_new_GridCellDateTimeRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16051 | { (char *)"GridCellDateTimeRenderer_swigregister", GridCellDateTimeRenderer_swigregister, METH_VARARGS, NULL }, | |
16052 | { (char *)"new_GridCellEnumRenderer", (PyCFunction) _wrap_new_GridCellEnumRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16053 | { (char *)"GridCellEnumRenderer_swigregister", GridCellEnumRenderer_swigregister, METH_VARARGS, NULL }, | |
16054 | { (char *)"new_GridCellAutoWrapStringRenderer", (PyCFunction) _wrap_new_GridCellAutoWrapStringRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16055 | { (char *)"GridCellAutoWrapStringRenderer_swigregister", GridCellAutoWrapStringRenderer_swigregister, METH_VARARGS, NULL }, | |
16056 | { (char *)"GridCellEditor__setOORInfo", (PyCFunction) _wrap_GridCellEditor__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16057 | { (char *)"GridCellEditor_IsCreated", (PyCFunction) _wrap_GridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16058 | { (char *)"GridCellEditor_GetControl", (PyCFunction) _wrap_GridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16059 | { (char *)"GridCellEditor_SetControl", (PyCFunction) _wrap_GridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16060 | { (char *)"GridCellEditor_GetCellAttr", (PyCFunction) _wrap_GridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16061 | { (char *)"GridCellEditor_SetCellAttr", (PyCFunction) _wrap_GridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16062 | { (char *)"GridCellEditor_SetParameters", (PyCFunction) _wrap_GridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16063 | { (char *)"GridCellEditor_IncRef", (PyCFunction) _wrap_GridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16064 | { (char *)"GridCellEditor_DecRef", (PyCFunction) _wrap_GridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16065 | { (char *)"GridCellEditor_Create", (PyCFunction) _wrap_GridCellEditor_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16066 | { (char *)"GridCellEditor_BeginEdit", (PyCFunction) _wrap_GridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16067 | { (char *)"GridCellEditor_EndEdit", (PyCFunction) _wrap_GridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16068 | { (char *)"GridCellEditor_Reset", (PyCFunction) _wrap_GridCellEditor_Reset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16069 | { (char *)"GridCellEditor_Clone", (PyCFunction) _wrap_GridCellEditor_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16070 | { (char *)"GridCellEditor_SetSize", (PyCFunction) _wrap_GridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16071 | { (char *)"GridCellEditor_Show", (PyCFunction) _wrap_GridCellEditor_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16072 | { (char *)"GridCellEditor_PaintBackground", (PyCFunction) _wrap_GridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16073 | { (char *)"GridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_GridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16074 | { (char *)"GridCellEditor_StartingKey", (PyCFunction) _wrap_GridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16075 | { (char *)"GridCellEditor_StartingClick", (PyCFunction) _wrap_GridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16076 | { (char *)"GridCellEditor_HandleReturn", (PyCFunction) _wrap_GridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16077 | { (char *)"GridCellEditor_Destroy", (PyCFunction) _wrap_GridCellEditor_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16078 | { (char *)"GridCellEditor_swigregister", GridCellEditor_swigregister, METH_VARARGS, NULL }, | |
16079 | { (char *)"new_PyGridCellEditor", (PyCFunction) _wrap_new_PyGridCellEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16080 | { (char *)"PyGridCellEditor__setCallbackInfo", (PyCFunction) _wrap_PyGridCellEditor__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16081 | { (char *)"PyGridCellEditor_base_SetSize", (PyCFunction) _wrap_PyGridCellEditor_base_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16082 | { (char *)"PyGridCellEditor_base_Show", (PyCFunction) _wrap_PyGridCellEditor_base_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16083 | { (char *)"PyGridCellEditor_base_PaintBackground", (PyCFunction) _wrap_PyGridCellEditor_base_PaintBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16084 | { (char *)"PyGridCellEditor_base_IsAcceptedKey", (PyCFunction) _wrap_PyGridCellEditor_base_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16085 | { (char *)"PyGridCellEditor_base_StartingKey", (PyCFunction) _wrap_PyGridCellEditor_base_StartingKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16086 | { (char *)"PyGridCellEditor_base_StartingClick", (PyCFunction) _wrap_PyGridCellEditor_base_StartingClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16087 | { (char *)"PyGridCellEditor_base_HandleReturn", (PyCFunction) _wrap_PyGridCellEditor_base_HandleReturn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16088 | { (char *)"PyGridCellEditor_base_Destroy", (PyCFunction) _wrap_PyGridCellEditor_base_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16089 | { (char *)"PyGridCellEditor_base_SetParameters", (PyCFunction) _wrap_PyGridCellEditor_base_SetParameters, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16090 | { (char *)"PyGridCellEditor_swigregister", PyGridCellEditor_swigregister, METH_VARARGS, NULL }, | |
16091 | { (char *)"new_GridCellTextEditor", (PyCFunction) _wrap_new_GridCellTextEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16092 | { (char *)"GridCellTextEditor_GetValue", (PyCFunction) _wrap_GridCellTextEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16093 | { (char *)"GridCellTextEditor_swigregister", GridCellTextEditor_swigregister, METH_VARARGS, NULL }, | |
16094 | { (char *)"new_GridCellNumberEditor", (PyCFunction) _wrap_new_GridCellNumberEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16095 | { (char *)"GridCellNumberEditor_GetValue", (PyCFunction) _wrap_GridCellNumberEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16096 | { (char *)"GridCellNumberEditor_swigregister", GridCellNumberEditor_swigregister, METH_VARARGS, NULL }, | |
16097 | { (char *)"new_GridCellFloatEditor", (PyCFunction) _wrap_new_GridCellFloatEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16098 | { (char *)"GridCellFloatEditor_GetValue", (PyCFunction) _wrap_GridCellFloatEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16099 | { (char *)"GridCellFloatEditor_swigregister", GridCellFloatEditor_swigregister, METH_VARARGS, NULL }, | |
16100 | { (char *)"new_GridCellBoolEditor", (PyCFunction) _wrap_new_GridCellBoolEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16101 | { (char *)"GridCellBoolEditor_GetValue", (PyCFunction) _wrap_GridCellBoolEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16102 | { (char *)"GridCellBoolEditor_swigregister", GridCellBoolEditor_swigregister, METH_VARARGS, NULL }, | |
16103 | { (char *)"new_GridCellChoiceEditor", (PyCFunction) _wrap_new_GridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16104 | { (char *)"GridCellChoiceEditor_GetValue", (PyCFunction) _wrap_GridCellChoiceEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16105 | { (char *)"GridCellChoiceEditor_swigregister", GridCellChoiceEditor_swigregister, METH_VARARGS, NULL }, | |
16106 | { (char *)"new_GridCellEnumEditor", (PyCFunction) _wrap_new_GridCellEnumEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16107 | { (char *)"GridCellEnumEditor_GetValue", (PyCFunction) _wrap_GridCellEnumEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16108 | { (char *)"GridCellEnumEditor_swigregister", GridCellEnumEditor_swigregister, METH_VARARGS, NULL }, | |
16109 | { (char *)"new_GridCellAutoWrapStringEditor", (PyCFunction) _wrap_new_GridCellAutoWrapStringEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16110 | { (char *)"GridCellAutoWrapStringEditor_GetValue", (PyCFunction) _wrap_GridCellAutoWrapStringEditor_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16111 | { (char *)"GridCellAutoWrapStringEditor_swigregister", GridCellAutoWrapStringEditor_swigregister, METH_VARARGS, NULL }, | |
16112 | { (char *)"GridCellAttr__setOORInfo", (PyCFunction) _wrap_GridCellAttr__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16113 | { (char *)"new_GridCellAttr", (PyCFunction) _wrap_new_GridCellAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16114 | { (char *)"GridCellAttr_Clone", (PyCFunction) _wrap_GridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16115 | { (char *)"GridCellAttr_MergeWith", (PyCFunction) _wrap_GridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16116 | { (char *)"GridCellAttr_IncRef", (PyCFunction) _wrap_GridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16117 | { (char *)"GridCellAttr_DecRef", (PyCFunction) _wrap_GridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16118 | { (char *)"GridCellAttr_SetTextColour", (PyCFunction) _wrap_GridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16119 | { (char *)"GridCellAttr_SetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16120 | { (char *)"GridCellAttr_SetFont", (PyCFunction) _wrap_GridCellAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16121 | { (char *)"GridCellAttr_SetAlignment", (PyCFunction) _wrap_GridCellAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16122 | { (char *)"GridCellAttr_SetSize", (PyCFunction) _wrap_GridCellAttr_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16123 | { (char *)"GridCellAttr_SetOverflow", (PyCFunction) _wrap_GridCellAttr_SetOverflow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16124 | { (char *)"GridCellAttr_SetReadOnly", (PyCFunction) _wrap_GridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16125 | { (char *)"GridCellAttr_SetRenderer", (PyCFunction) _wrap_GridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16126 | { (char *)"GridCellAttr_SetEditor", (PyCFunction) _wrap_GridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16127 | { (char *)"GridCellAttr_SetKind", (PyCFunction) _wrap_GridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16128 | { (char *)"GridCellAttr_HasTextColour", (PyCFunction) _wrap_GridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16129 | { (char *)"GridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_GridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16130 | { (char *)"GridCellAttr_HasFont", (PyCFunction) _wrap_GridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16131 | { (char *)"GridCellAttr_HasAlignment", (PyCFunction) _wrap_GridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16132 | { (char *)"GridCellAttr_HasRenderer", (PyCFunction) _wrap_GridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16133 | { (char *)"GridCellAttr_HasEditor", (PyCFunction) _wrap_GridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16134 | { (char *)"GridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_GridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16135 | { (char *)"GridCellAttr_HasOverflowMode", (PyCFunction) _wrap_GridCellAttr_HasOverflowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16136 | { (char *)"GridCellAttr_GetTextColour", (PyCFunction) _wrap_GridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16137 | { (char *)"GridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16138 | { (char *)"GridCellAttr_GetFont", (PyCFunction) _wrap_GridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16139 | { (char *)"GridCellAttr_GetAlignment", (PyCFunction) _wrap_GridCellAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16140 | { (char *)"GridCellAttr_GetSize", (PyCFunction) _wrap_GridCellAttr_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16141 | { (char *)"GridCellAttr_GetOverflow", (PyCFunction) _wrap_GridCellAttr_GetOverflow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16142 | { (char *)"GridCellAttr_GetRenderer", (PyCFunction) _wrap_GridCellAttr_GetRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16143 | { (char *)"GridCellAttr_GetEditor", (PyCFunction) _wrap_GridCellAttr_GetEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16144 | { (char *)"GridCellAttr_IsReadOnly", (PyCFunction) _wrap_GridCellAttr_IsReadOnly, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16145 | { (char *)"GridCellAttr_GetKind", (PyCFunction) _wrap_GridCellAttr_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16146 | { (char *)"GridCellAttr_SetDefAttr", (PyCFunction) _wrap_GridCellAttr_SetDefAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16147 | { (char *)"GridCellAttr_swigregister", GridCellAttr_swigregister, METH_VARARGS, NULL }, | |
16148 | { (char *)"new_GridCellAttrProvider", (PyCFunction) _wrap_new_GridCellAttrProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16149 | { (char *)"GridCellAttrProvider__setOORInfo", (PyCFunction) _wrap_GridCellAttrProvider__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16150 | { (char *)"GridCellAttrProvider_GetAttr", (PyCFunction) _wrap_GridCellAttrProvider_GetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16151 | { (char *)"GridCellAttrProvider_SetAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16152 | { (char *)"GridCellAttrProvider_SetRowAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetRowAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16153 | { (char *)"GridCellAttrProvider_SetColAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetColAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16154 | { (char *)"GridCellAttrProvider_UpdateAttrRows", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16155 | { (char *)"GridCellAttrProvider_UpdateAttrCols", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16156 | { (char *)"GridCellAttrProvider_swigregister", GridCellAttrProvider_swigregister, METH_VARARGS, NULL }, | |
16157 | { (char *)"new_PyGridCellAttrProvider", (PyCFunction) _wrap_new_PyGridCellAttrProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16158 | { (char *)"PyGridCellAttrProvider__setCallbackInfo", (PyCFunction) _wrap_PyGridCellAttrProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16159 | { (char *)"PyGridCellAttrProvider_base_GetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_GetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16160 | { (char *)"PyGridCellAttrProvider_base_SetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16161 | { (char *)"PyGridCellAttrProvider_base_SetRowAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16162 | { (char *)"PyGridCellAttrProvider_base_SetColAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetColAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16163 | { (char *)"PyGridCellAttrProvider_swigregister", PyGridCellAttrProvider_swigregister, METH_VARARGS, NULL }, | |
16164 | { (char *)"GridTableBase__setOORInfo", (PyCFunction) _wrap_GridTableBase__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16165 | { (char *)"GridTableBase_SetAttrProvider", (PyCFunction) _wrap_GridTableBase_SetAttrProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16166 | { (char *)"GridTableBase_GetAttrProvider", (PyCFunction) _wrap_GridTableBase_GetAttrProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16167 | { (char *)"GridTableBase_SetView", (PyCFunction) _wrap_GridTableBase_SetView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16168 | { (char *)"GridTableBase_GetView", (PyCFunction) _wrap_GridTableBase_GetView, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16169 | { (char *)"GridTableBase_GetNumberRows", (PyCFunction) _wrap_GridTableBase_GetNumberRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16170 | { (char *)"GridTableBase_GetNumberCols", (PyCFunction) _wrap_GridTableBase_GetNumberCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16171 | { (char *)"GridTableBase_IsEmptyCell", (PyCFunction) _wrap_GridTableBase_IsEmptyCell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16172 | { (char *)"GridTableBase_GetValue", (PyCFunction) _wrap_GridTableBase_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16173 | { (char *)"GridTableBase_SetValue", (PyCFunction) _wrap_GridTableBase_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16174 | { (char *)"GridTableBase_GetTypeName", (PyCFunction) _wrap_GridTableBase_GetTypeName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16175 | { (char *)"GridTableBase_CanGetValueAs", (PyCFunction) _wrap_GridTableBase_CanGetValueAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16176 | { (char *)"GridTableBase_CanSetValueAs", (PyCFunction) _wrap_GridTableBase_CanSetValueAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16177 | { (char *)"GridTableBase_GetValueAsLong", (PyCFunction) _wrap_GridTableBase_GetValueAsLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16178 | { (char *)"GridTableBase_GetValueAsDouble", (PyCFunction) _wrap_GridTableBase_GetValueAsDouble, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16179 | { (char *)"GridTableBase_GetValueAsBool", (PyCFunction) _wrap_GridTableBase_GetValueAsBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16180 | { (char *)"GridTableBase_SetValueAsLong", (PyCFunction) _wrap_GridTableBase_SetValueAsLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16181 | { (char *)"GridTableBase_SetValueAsDouble", (PyCFunction) _wrap_GridTableBase_SetValueAsDouble, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16182 | { (char *)"GridTableBase_SetValueAsBool", (PyCFunction) _wrap_GridTableBase_SetValueAsBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16183 | { (char *)"GridTableBase_Clear", (PyCFunction) _wrap_GridTableBase_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16184 | { (char *)"GridTableBase_InsertRows", (PyCFunction) _wrap_GridTableBase_InsertRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16185 | { (char *)"GridTableBase_AppendRows", (PyCFunction) _wrap_GridTableBase_AppendRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16186 | { (char *)"GridTableBase_DeleteRows", (PyCFunction) _wrap_GridTableBase_DeleteRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16187 | { (char *)"GridTableBase_InsertCols", (PyCFunction) _wrap_GridTableBase_InsertCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16188 | { (char *)"GridTableBase_AppendCols", (PyCFunction) _wrap_GridTableBase_AppendCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16189 | { (char *)"GridTableBase_DeleteCols", (PyCFunction) _wrap_GridTableBase_DeleteCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16190 | { (char *)"GridTableBase_GetRowLabelValue", (PyCFunction) _wrap_GridTableBase_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16191 | { (char *)"GridTableBase_GetColLabelValue", (PyCFunction) _wrap_GridTableBase_GetColLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16192 | { (char *)"GridTableBase_SetRowLabelValue", (PyCFunction) _wrap_GridTableBase_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16193 | { (char *)"GridTableBase_SetColLabelValue", (PyCFunction) _wrap_GridTableBase_SetColLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16194 | { (char *)"GridTableBase_CanHaveAttributes", (PyCFunction) _wrap_GridTableBase_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16195 | { (char *)"GridTableBase_GetAttr", (PyCFunction) _wrap_GridTableBase_GetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16196 | { (char *)"GridTableBase_SetAttr", (PyCFunction) _wrap_GridTableBase_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16197 | { (char *)"GridTableBase_SetRowAttr", (PyCFunction) _wrap_GridTableBase_SetRowAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16198 | { (char *)"GridTableBase_SetColAttr", (PyCFunction) _wrap_GridTableBase_SetColAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16199 | { (char *)"GridTableBase_swigregister", GridTableBase_swigregister, METH_VARARGS, NULL }, | |
16200 | { (char *)"new_PyGridTableBase", (PyCFunction) _wrap_new_PyGridTableBase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16201 | { (char *)"PyGridTableBase__setCallbackInfo", (PyCFunction) _wrap_PyGridTableBase__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16202 | { (char *)"PyGridTableBase_Destroy", (PyCFunction) _wrap_PyGridTableBase_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16203 | { (char *)"PyGridTableBase_base_GetTypeName", (PyCFunction) _wrap_PyGridTableBase_base_GetTypeName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16204 | { (char *)"PyGridTableBase_base_CanGetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanGetValueAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16205 | { (char *)"PyGridTableBase_base_CanSetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanSetValueAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16206 | { (char *)"PyGridTableBase_base_Clear", (PyCFunction) _wrap_PyGridTableBase_base_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16207 | { (char *)"PyGridTableBase_base_InsertRows", (PyCFunction) _wrap_PyGridTableBase_base_InsertRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16208 | { (char *)"PyGridTableBase_base_AppendRows", (PyCFunction) _wrap_PyGridTableBase_base_AppendRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16209 | { (char *)"PyGridTableBase_base_DeleteRows", (PyCFunction) _wrap_PyGridTableBase_base_DeleteRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16210 | { (char *)"PyGridTableBase_base_InsertCols", (PyCFunction) _wrap_PyGridTableBase_base_InsertCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16211 | { (char *)"PyGridTableBase_base_AppendCols", (PyCFunction) _wrap_PyGridTableBase_base_AppendCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16212 | { (char *)"PyGridTableBase_base_DeleteCols", (PyCFunction) _wrap_PyGridTableBase_base_DeleteCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16213 | { (char *)"PyGridTableBase_base_GetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16214 | { (char *)"PyGridTableBase_base_GetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetColLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16215 | { (char *)"PyGridTableBase_base_SetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16216 | { (char *)"PyGridTableBase_base_SetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetColLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16217 | { (char *)"PyGridTableBase_base_CanHaveAttributes", (PyCFunction) _wrap_PyGridTableBase_base_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16218 | { (char *)"PyGridTableBase_base_GetAttr", (PyCFunction) _wrap_PyGridTableBase_base_GetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16219 | { (char *)"PyGridTableBase_base_SetAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16220 | { (char *)"PyGridTableBase_base_SetRowAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16221 | { (char *)"PyGridTableBase_base_SetColAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetColAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16222 | { (char *)"PyGridTableBase_swigregister", PyGridTableBase_swigregister, METH_VARARGS, NULL }, | |
16223 | { (char *)"new_GridStringTable", (PyCFunction) _wrap_new_GridStringTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16224 | { (char *)"GridStringTable_swigregister", GridStringTable_swigregister, METH_VARARGS, NULL }, | |
16225 | { (char *)"new_GridTableMessage", (PyCFunction) _wrap_new_GridTableMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16226 | { (char *)"delete_GridTableMessage", (PyCFunction) _wrap_delete_GridTableMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16227 | { (char *)"GridTableMessage_SetTableObject", (PyCFunction) _wrap_GridTableMessage_SetTableObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16228 | { (char *)"GridTableMessage_GetTableObject", (PyCFunction) _wrap_GridTableMessage_GetTableObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16229 | { (char *)"GridTableMessage_SetId", (PyCFunction) _wrap_GridTableMessage_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16230 | { (char *)"GridTableMessage_GetId", (PyCFunction) _wrap_GridTableMessage_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16231 | { (char *)"GridTableMessage_SetCommandInt", (PyCFunction) _wrap_GridTableMessage_SetCommandInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16232 | { (char *)"GridTableMessage_GetCommandInt", (PyCFunction) _wrap_GridTableMessage_GetCommandInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16233 | { (char *)"GridTableMessage_SetCommandInt2", (PyCFunction) _wrap_GridTableMessage_SetCommandInt2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16234 | { (char *)"GridTableMessage_GetCommandInt2", (PyCFunction) _wrap_GridTableMessage_GetCommandInt2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16235 | { (char *)"GridTableMessage_swigregister", GridTableMessage_swigregister, METH_VARARGS, NULL }, | |
16236 | { (char *)"new_GridCellCoords", (PyCFunction) _wrap_new_GridCellCoords, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16237 | { (char *)"delete_GridCellCoords", (PyCFunction) _wrap_delete_GridCellCoords, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16238 | { (char *)"GridCellCoords_GetRow", (PyCFunction) _wrap_GridCellCoords_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16239 | { (char *)"GridCellCoords_SetRow", (PyCFunction) _wrap_GridCellCoords_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16240 | { (char *)"GridCellCoords_GetCol", (PyCFunction) _wrap_GridCellCoords_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16241 | { (char *)"GridCellCoords_SetCol", (PyCFunction) _wrap_GridCellCoords_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16242 | { (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16243 | { (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16244 | { (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16245 | { (char *)"GridCellCoords_Get", (PyCFunction) _wrap_GridCellCoords_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16246 | { (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS, NULL }, | |
16247 | { (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16248 | { (char *)"new_PreGrid", (PyCFunction) _wrap_new_PreGrid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16249 | { (char *)"Grid_Create", (PyCFunction) _wrap_Grid_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16250 | { (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16251 | { (char *)"Grid_SetSelectionMode", (PyCFunction) _wrap_Grid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16252 | { (char *)"Grid_GetSelectionMode", (PyCFunction) _wrap_Grid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16253 | { (char *)"Grid_GetNumberRows", (PyCFunction) _wrap_Grid_GetNumberRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16254 | { (char *)"Grid_GetNumberCols", (PyCFunction) _wrap_Grid_GetNumberCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16255 | { (char *)"Grid_ProcessTableMessage", (PyCFunction) _wrap_Grid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16256 | { (char *)"Grid_GetTable", (PyCFunction) _wrap_Grid_GetTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16257 | { (char *)"Grid_SetTable", (PyCFunction) _wrap_Grid_SetTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16258 | { (char *)"Grid_ClearGrid", (PyCFunction) _wrap_Grid_ClearGrid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16259 | { (char *)"Grid_InsertRows", (PyCFunction) _wrap_Grid_InsertRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16260 | { (char *)"Grid_AppendRows", (PyCFunction) _wrap_Grid_AppendRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16261 | { (char *)"Grid_DeleteRows", (PyCFunction) _wrap_Grid_DeleteRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16262 | { (char *)"Grid_InsertCols", (PyCFunction) _wrap_Grid_InsertCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16263 | { (char *)"Grid_AppendCols", (PyCFunction) _wrap_Grid_AppendCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16264 | { (char *)"Grid_DeleteCols", (PyCFunction) _wrap_Grid_DeleteCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16265 | { (char *)"Grid_DrawCellHighlight", (PyCFunction) _wrap_Grid_DrawCellHighlight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16266 | { (char *)"Grid_DrawTextRectangle", (PyCFunction) _wrap_Grid_DrawTextRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16267 | { (char *)"Grid_GetTextBoxSize", (PyCFunction) _wrap_Grid_GetTextBoxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16268 | { (char *)"Grid_BeginBatch", (PyCFunction) _wrap_Grid_BeginBatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16269 | { (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16270 | { (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16271 | { (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16272 | { (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16273 | { (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16274 | { (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16275 | { (char *)"Grid_DisableCellEditControl", (PyCFunction) _wrap_Grid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16276 | { (char *)"Grid_CanEnableCellControl", (PyCFunction) _wrap_Grid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16277 | { (char *)"Grid_IsCellEditControlEnabled", (PyCFunction) _wrap_Grid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16278 | { (char *)"Grid_IsCellEditControlShown", (PyCFunction) _wrap_Grid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16279 | { (char *)"Grid_IsCurrentCellReadOnly", (PyCFunction) _wrap_Grid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16280 | { (char *)"Grid_ShowCellEditControl", (PyCFunction) _wrap_Grid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16281 | { (char *)"Grid_HideCellEditControl", (PyCFunction) _wrap_Grid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16282 | { (char *)"Grid_SaveEditControlValue", (PyCFunction) _wrap_Grid_SaveEditControlValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16283 | { (char *)"Grid_XYToCell", (PyCFunction) _wrap_Grid_XYToCell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16284 | { (char *)"Grid_YToRow", (PyCFunction) _wrap_Grid_YToRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16285 | { (char *)"Grid_XToCol", (PyCFunction) _wrap_Grid_XToCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16286 | { (char *)"Grid_YToEdgeOfRow", (PyCFunction) _wrap_Grid_YToEdgeOfRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16287 | { (char *)"Grid_XToEdgeOfCol", (PyCFunction) _wrap_Grid_XToEdgeOfCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16288 | { (char *)"Grid_CellToRect", (PyCFunction) _wrap_Grid_CellToRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16289 | { (char *)"Grid_GetGridCursorRow", (PyCFunction) _wrap_Grid_GetGridCursorRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16290 | { (char *)"Grid_GetGridCursorCol", (PyCFunction) _wrap_Grid_GetGridCursorCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16291 | { (char *)"Grid_IsVisible", (PyCFunction) _wrap_Grid_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16292 | { (char *)"Grid_MakeCellVisible", (PyCFunction) _wrap_Grid_MakeCellVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16293 | { (char *)"Grid_SetGridCursor", (PyCFunction) _wrap_Grid_SetGridCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16294 | { (char *)"Grid_MoveCursorUp", (PyCFunction) _wrap_Grid_MoveCursorUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16295 | { (char *)"Grid_MoveCursorDown", (PyCFunction) _wrap_Grid_MoveCursorDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16296 | { (char *)"Grid_MoveCursorLeft", (PyCFunction) _wrap_Grid_MoveCursorLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16297 | { (char *)"Grid_MoveCursorRight", (PyCFunction) _wrap_Grid_MoveCursorRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16298 | { (char *)"Grid_MovePageDown", (PyCFunction) _wrap_Grid_MovePageDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16299 | { (char *)"Grid_MovePageUp", (PyCFunction) _wrap_Grid_MovePageUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16300 | { (char *)"Grid_MoveCursorUpBlock", (PyCFunction) _wrap_Grid_MoveCursorUpBlock, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16301 | { (char *)"Grid_MoveCursorDownBlock", (PyCFunction) _wrap_Grid_MoveCursorDownBlock, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16302 | { (char *)"Grid_MoveCursorLeftBlock", (PyCFunction) _wrap_Grid_MoveCursorLeftBlock, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16303 | { (char *)"Grid_MoveCursorRightBlock", (PyCFunction) _wrap_Grid_MoveCursorRightBlock, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16304 | { (char *)"Grid_GetDefaultRowLabelSize", (PyCFunction) _wrap_Grid_GetDefaultRowLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16305 | { (char *)"Grid_GetRowLabelSize", (PyCFunction) _wrap_Grid_GetRowLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16306 | { (char *)"Grid_GetDefaultColLabelSize", (PyCFunction) _wrap_Grid_GetDefaultColLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16307 | { (char *)"Grid_GetColLabelSize", (PyCFunction) _wrap_Grid_GetColLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16308 | { (char *)"Grid_GetLabelBackgroundColour", (PyCFunction) _wrap_Grid_GetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16309 | { (char *)"Grid_GetLabelTextColour", (PyCFunction) _wrap_Grid_GetLabelTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16310 | { (char *)"Grid_GetLabelFont", (PyCFunction) _wrap_Grid_GetLabelFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16311 | { (char *)"Grid_GetRowLabelAlignment", (PyCFunction) _wrap_Grid_GetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16312 | { (char *)"Grid_GetColLabelAlignment", (PyCFunction) _wrap_Grid_GetColLabelAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16313 | { (char *)"Grid_GetColLabelTextOrientation", (PyCFunction) _wrap_Grid_GetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16314 | { (char *)"Grid_GetRowLabelValue", (PyCFunction) _wrap_Grid_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16315 | { (char *)"Grid_GetColLabelValue", (PyCFunction) _wrap_Grid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16316 | { (char *)"Grid_GetGridLineColour", (PyCFunction) _wrap_Grid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16317 | { (char *)"Grid_GetCellHighlightColour", (PyCFunction) _wrap_Grid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16318 | { (char *)"Grid_GetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16319 | { (char *)"Grid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16320 | { (char *)"Grid_SetRowLabelSize", (PyCFunction) _wrap_Grid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16321 | { (char *)"Grid_SetColLabelSize", (PyCFunction) _wrap_Grid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16322 | { (char *)"Grid_SetLabelBackgroundColour", (PyCFunction) _wrap_Grid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16323 | { (char *)"Grid_SetLabelTextColour", (PyCFunction) _wrap_Grid_SetLabelTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16324 | { (char *)"Grid_SetLabelFont", (PyCFunction) _wrap_Grid_SetLabelFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16325 | { (char *)"Grid_SetRowLabelAlignment", (PyCFunction) _wrap_Grid_SetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16326 | { (char *)"Grid_SetColLabelAlignment", (PyCFunction) _wrap_Grid_SetColLabelAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16327 | { (char *)"Grid_SetColLabelTextOrientation", (PyCFunction) _wrap_Grid_SetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16328 | { (char *)"Grid_SetRowLabelValue", (PyCFunction) _wrap_Grid_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16329 | { (char *)"Grid_SetColLabelValue", (PyCFunction) _wrap_Grid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16330 | { (char *)"Grid_SetGridLineColour", (PyCFunction) _wrap_Grid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16331 | { (char *)"Grid_SetCellHighlightColour", (PyCFunction) _wrap_Grid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16332 | { (char *)"Grid_SetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16333 | { (char *)"Grid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16334 | { (char *)"Grid_EnableDragRowSize", (PyCFunction) _wrap_Grid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16335 | { (char *)"Grid_DisableDragRowSize", (PyCFunction) _wrap_Grid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16336 | { (char *)"Grid_CanDragRowSize", (PyCFunction) _wrap_Grid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16337 | { (char *)"Grid_EnableDragColSize", (PyCFunction) _wrap_Grid_EnableDragColSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16338 | { (char *)"Grid_DisableDragColSize", (PyCFunction) _wrap_Grid_DisableDragColSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16339 | { (char *)"Grid_CanDragColSize", (PyCFunction) _wrap_Grid_CanDragColSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16340 | { (char *)"Grid_EnableDragGridSize", (PyCFunction) _wrap_Grid_EnableDragGridSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16341 | { (char *)"Grid_DisableDragGridSize", (PyCFunction) _wrap_Grid_DisableDragGridSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16342 | { (char *)"Grid_CanDragGridSize", (PyCFunction) _wrap_Grid_CanDragGridSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16343 | { (char *)"Grid_EnableDragCell", (PyCFunction) _wrap_Grid_EnableDragCell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16344 | { (char *)"Grid_DisableDragCell", (PyCFunction) _wrap_Grid_DisableDragCell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16345 | { (char *)"Grid_CanDragCell", (PyCFunction) _wrap_Grid_CanDragCell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16346 | { (char *)"Grid_SetAttr", (PyCFunction) _wrap_Grid_SetAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16347 | { (char *)"Grid_SetRowAttr", (PyCFunction) _wrap_Grid_SetRowAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16348 | { (char *)"Grid_SetColAttr", (PyCFunction) _wrap_Grid_SetColAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16349 | { (char *)"Grid_GetOrCreateCellAttr", (PyCFunction) _wrap_Grid_GetOrCreateCellAttr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16350 | { (char *)"Grid_SetColFormatBool", (PyCFunction) _wrap_Grid_SetColFormatBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16351 | { (char *)"Grid_SetColFormatNumber", (PyCFunction) _wrap_Grid_SetColFormatNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16352 | { (char *)"Grid_SetColFormatFloat", (PyCFunction) _wrap_Grid_SetColFormatFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16353 | { (char *)"Grid_SetColFormatCustom", (PyCFunction) _wrap_Grid_SetColFormatCustom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16354 | { (char *)"Grid_EnableGridLines", (PyCFunction) _wrap_Grid_EnableGridLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16355 | { (char *)"Grid_GridLinesEnabled", (PyCFunction) _wrap_Grid_GridLinesEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16356 | { (char *)"Grid_GetDefaultRowSize", (PyCFunction) _wrap_Grid_GetDefaultRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16357 | { (char *)"Grid_GetRowSize", (PyCFunction) _wrap_Grid_GetRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16358 | { (char *)"Grid_GetDefaultColSize", (PyCFunction) _wrap_Grid_GetDefaultColSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16359 | { (char *)"Grid_GetColSize", (PyCFunction) _wrap_Grid_GetColSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16360 | { (char *)"Grid_GetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_GetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16361 | { (char *)"Grid_GetCellBackgroundColour", (PyCFunction) _wrap_Grid_GetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16362 | { (char *)"Grid_GetDefaultCellTextColour", (PyCFunction) _wrap_Grid_GetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16363 | { (char *)"Grid_GetCellTextColour", (PyCFunction) _wrap_Grid_GetCellTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16364 | { (char *)"Grid_GetDefaultCellFont", (PyCFunction) _wrap_Grid_GetDefaultCellFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16365 | { (char *)"Grid_GetCellFont", (PyCFunction) _wrap_Grid_GetCellFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16366 | { (char *)"Grid_GetDefaultCellAlignment", (PyCFunction) _wrap_Grid_GetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16367 | { (char *)"Grid_GetCellAlignment", (PyCFunction) _wrap_Grid_GetCellAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16368 | { (char *)"Grid_GetDefaultCellOverflow", (PyCFunction) _wrap_Grid_GetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16369 | { (char *)"Grid_GetCellOverflow", (PyCFunction) _wrap_Grid_GetCellOverflow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16370 | { (char *)"Grid_GetCellSize", (PyCFunction) _wrap_Grid_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16371 | { (char *)"Grid_SetDefaultRowSize", (PyCFunction) _wrap_Grid_SetDefaultRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16372 | { (char *)"Grid_SetRowSize", (PyCFunction) _wrap_Grid_SetRowSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16373 | { (char *)"Grid_SetDefaultColSize", (PyCFunction) _wrap_Grid_SetDefaultColSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16374 | { (char *)"Grid_SetColSize", (PyCFunction) _wrap_Grid_SetColSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16375 | { (char *)"Grid_AutoSizeColumn", (PyCFunction) _wrap_Grid_AutoSizeColumn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16376 | { (char *)"Grid_AutoSizeRow", (PyCFunction) _wrap_Grid_AutoSizeRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16377 | { (char *)"Grid_AutoSizeColumns", (PyCFunction) _wrap_Grid_AutoSizeColumns, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16378 | { (char *)"Grid_AutoSizeRows", (PyCFunction) _wrap_Grid_AutoSizeRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16379 | { (char *)"Grid_AutoSize", (PyCFunction) _wrap_Grid_AutoSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16380 | { (char *)"Grid_AutoSizeRowLabelSize", (PyCFunction) _wrap_Grid_AutoSizeRowLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16381 | { (char *)"Grid_AutoSizeColLabelSize", (PyCFunction) _wrap_Grid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16382 | { (char *)"Grid_SetColMinimalWidth", (PyCFunction) _wrap_Grid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16383 | { (char *)"Grid_SetRowMinimalHeight", (PyCFunction) _wrap_Grid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16384 | { (char *)"Grid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16385 | { (char *)"Grid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16386 | { (char *)"Grid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16387 | { (char *)"Grid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16388 | { (char *)"Grid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16389 | { (char *)"Grid_SetCellBackgroundColour", (PyCFunction) _wrap_Grid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16390 | { (char *)"Grid_SetDefaultCellTextColour", (PyCFunction) _wrap_Grid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16391 | { (char *)"Grid_SetCellTextColour", (PyCFunction) _wrap_Grid_SetCellTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16392 | { (char *)"Grid_SetDefaultCellFont", (PyCFunction) _wrap_Grid_SetDefaultCellFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16393 | { (char *)"Grid_SetCellFont", (PyCFunction) _wrap_Grid_SetCellFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16394 | { (char *)"Grid_SetDefaultCellAlignment", (PyCFunction) _wrap_Grid_SetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16395 | { (char *)"Grid_SetCellAlignment", (PyCFunction) _wrap_Grid_SetCellAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16396 | { (char *)"Grid_SetDefaultCellOverflow", (PyCFunction) _wrap_Grid_SetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16397 | { (char *)"Grid_SetCellOverflow", (PyCFunction) _wrap_Grid_SetCellOverflow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16398 | { (char *)"Grid_SetCellSize", (PyCFunction) _wrap_Grid_SetCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16399 | { (char *)"Grid_SetDefaultRenderer", (PyCFunction) _wrap_Grid_SetDefaultRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16400 | { (char *)"Grid_SetCellRenderer", (PyCFunction) _wrap_Grid_SetCellRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16401 | { (char *)"Grid_GetDefaultRenderer", (PyCFunction) _wrap_Grid_GetDefaultRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16402 | { (char *)"Grid_GetCellRenderer", (PyCFunction) _wrap_Grid_GetCellRenderer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16403 | { (char *)"Grid_SetDefaultEditor", (PyCFunction) _wrap_Grid_SetDefaultEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16404 | { (char *)"Grid_SetCellEditor", (PyCFunction) _wrap_Grid_SetCellEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16405 | { (char *)"Grid_GetDefaultEditor", (PyCFunction) _wrap_Grid_GetDefaultEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16406 | { (char *)"Grid_GetCellEditor", (PyCFunction) _wrap_Grid_GetCellEditor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16407 | { (char *)"Grid_GetCellValue", (PyCFunction) _wrap_Grid_GetCellValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16408 | { (char *)"Grid_SetCellValue", (PyCFunction) _wrap_Grid_SetCellValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16409 | { (char *)"Grid_IsReadOnly", (PyCFunction) _wrap_Grid_IsReadOnly, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16410 | { (char *)"Grid_SetReadOnly", (PyCFunction) _wrap_Grid_SetReadOnly, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16411 | { (char *)"Grid_SelectRow", (PyCFunction) _wrap_Grid_SelectRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16412 | { (char *)"Grid_SelectCol", (PyCFunction) _wrap_Grid_SelectCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16413 | { (char *)"Grid_SelectBlock", (PyCFunction) _wrap_Grid_SelectBlock, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16414 | { (char *)"Grid_SelectAll", (PyCFunction) _wrap_Grid_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16415 | { (char *)"Grid_IsSelection", (PyCFunction) _wrap_Grid_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16416 | { (char *)"Grid_ClearSelection", (PyCFunction) _wrap_Grid_ClearSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16417 | { (char *)"Grid_IsInSelection", (PyCFunction) _wrap_Grid_IsInSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16418 | { (char *)"Grid_GetSelectedCells", (PyCFunction) _wrap_Grid_GetSelectedCells, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16419 | { (char *)"Grid_GetSelectionBlockTopLeft", (PyCFunction) _wrap_Grid_GetSelectionBlockTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16420 | { (char *)"Grid_GetSelectionBlockBottomRight", (PyCFunction) _wrap_Grid_GetSelectionBlockBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16421 | { (char *)"Grid_GetSelectedRows", (PyCFunction) _wrap_Grid_GetSelectedRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16422 | { (char *)"Grid_GetSelectedCols", (PyCFunction) _wrap_Grid_GetSelectedCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16423 | { (char *)"Grid_DeselectRow", (PyCFunction) _wrap_Grid_DeselectRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16424 | { (char *)"Grid_DeselectCol", (PyCFunction) _wrap_Grid_DeselectCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16425 | { (char *)"Grid_DeselectCell", (PyCFunction) _wrap_Grid_DeselectCell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16426 | { (char *)"Grid_BlockToDeviceRect", (PyCFunction) _wrap_Grid_BlockToDeviceRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16427 | { (char *)"Grid_GetSelectionBackground", (PyCFunction) _wrap_Grid_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16428 | { (char *)"Grid_GetSelectionForeground", (PyCFunction) _wrap_Grid_GetSelectionForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16429 | { (char *)"Grid_SetSelectionBackground", (PyCFunction) _wrap_Grid_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16430 | { (char *)"Grid_SetSelectionForeground", (PyCFunction) _wrap_Grid_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16431 | { (char *)"Grid_RegisterDataType", (PyCFunction) _wrap_Grid_RegisterDataType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16432 | { (char *)"Grid_GetDefaultEditorForCell", (PyCFunction) _wrap_Grid_GetDefaultEditorForCell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16433 | { (char *)"Grid_GetDefaultRendererForCell", (PyCFunction) _wrap_Grid_GetDefaultRendererForCell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16434 | { (char *)"Grid_GetDefaultEditorForType", (PyCFunction) _wrap_Grid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16435 | { (char *)"Grid_GetDefaultRendererForType", (PyCFunction) _wrap_Grid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16436 | { (char *)"Grid_SetMargins", (PyCFunction) _wrap_Grid_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16437 | { (char *)"Grid_GetGridWindow", (PyCFunction) _wrap_Grid_GetGridWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16438 | { (char *)"Grid_GetGridRowLabelWindow", (PyCFunction) _wrap_Grid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16439 | { (char *)"Grid_GetGridColLabelWindow", (PyCFunction) _wrap_Grid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16440 | { (char *)"Grid_GetGridCornerLabelWindow", (PyCFunction) _wrap_Grid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
070c48b4 RD |
16441 | { (char *)"Grid_SetScrollLineX", (PyCFunction) _wrap_Grid_SetScrollLineX, METH_VARARGS | METH_KEYWORDS, NULL }, |
16442 | { (char *)"Grid_SetScrollLineY", (PyCFunction) _wrap_Grid_SetScrollLineY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16443 | { (char *)"Grid_GetScrollLineX", (PyCFunction) _wrap_Grid_GetScrollLineX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16444 | { (char *)"Grid_GetScrollLineY", (PyCFunction) _wrap_Grid_GetScrollLineY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16445 | { (char *)"Grid_GetScrollX", (PyCFunction) _wrap_Grid_GetScrollX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16446 | { (char *)"Grid_GetScrollY", (PyCFunction) _wrap_Grid_GetScrollY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c370783e RD |
16447 | { (char *)"Grid_GetClassDefaultAttributes", (PyCFunction) _wrap_Grid_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, |
16448 | { (char *)"Grid_swigregister", Grid_swigregister, METH_VARARGS, NULL }, | |
16449 | { (char *)"new_GridEvent", (PyCFunction) _wrap_new_GridEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16450 | { (char *)"GridEvent_GetRow", (PyCFunction) _wrap_GridEvent_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16451 | { (char *)"GridEvent_GetCol", (PyCFunction) _wrap_GridEvent_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16452 | { (char *)"GridEvent_GetPosition", (PyCFunction) _wrap_GridEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16453 | { (char *)"GridEvent_Selecting", (PyCFunction) _wrap_GridEvent_Selecting, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16454 | { (char *)"GridEvent_ControlDown", (PyCFunction) _wrap_GridEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16455 | { (char *)"GridEvent_MetaDown", (PyCFunction) _wrap_GridEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16456 | { (char *)"GridEvent_ShiftDown", (PyCFunction) _wrap_GridEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16457 | { (char *)"GridEvent_AltDown", (PyCFunction) _wrap_GridEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16458 | { (char *)"GridEvent_swigregister", GridEvent_swigregister, METH_VARARGS, NULL }, | |
16459 | { (char *)"new_GridSizeEvent", (PyCFunction) _wrap_new_GridSizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16460 | { (char *)"GridSizeEvent_GetRowOrCol", (PyCFunction) _wrap_GridSizeEvent_GetRowOrCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16461 | { (char *)"GridSizeEvent_GetPosition", (PyCFunction) _wrap_GridSizeEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16462 | { (char *)"GridSizeEvent_ControlDown", (PyCFunction) _wrap_GridSizeEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16463 | { (char *)"GridSizeEvent_MetaDown", (PyCFunction) _wrap_GridSizeEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16464 | { (char *)"GridSizeEvent_ShiftDown", (PyCFunction) _wrap_GridSizeEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16465 | { (char *)"GridSizeEvent_AltDown", (PyCFunction) _wrap_GridSizeEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16466 | { (char *)"GridSizeEvent_swigregister", GridSizeEvent_swigregister, METH_VARARGS, NULL }, | |
16467 | { (char *)"new_GridRangeSelectEvent", (PyCFunction) _wrap_new_GridRangeSelectEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16468 | { (char *)"GridRangeSelectEvent_GetTopLeftCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopLeftCoords, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16469 | { (char *)"GridRangeSelectEvent_GetBottomRightCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRightCoords, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16470 | { (char *)"GridRangeSelectEvent_GetTopRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16471 | { (char *)"GridRangeSelectEvent_GetBottomRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16472 | { (char *)"GridRangeSelectEvent_GetLeftCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetLeftCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16473 | { (char *)"GridRangeSelectEvent_GetRightCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetRightCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16474 | { (char *)"GridRangeSelectEvent_Selecting", (PyCFunction) _wrap_GridRangeSelectEvent_Selecting, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16475 | { (char *)"GridRangeSelectEvent_ControlDown", (PyCFunction) _wrap_GridRangeSelectEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16476 | { (char *)"GridRangeSelectEvent_MetaDown", (PyCFunction) _wrap_GridRangeSelectEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16477 | { (char *)"GridRangeSelectEvent_ShiftDown", (PyCFunction) _wrap_GridRangeSelectEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16478 | { (char *)"GridRangeSelectEvent_AltDown", (PyCFunction) _wrap_GridRangeSelectEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16479 | { (char *)"GridRangeSelectEvent_swigregister", GridRangeSelectEvent_swigregister, METH_VARARGS, NULL }, | |
16480 | { (char *)"new_GridEditorCreatedEvent", (PyCFunction) _wrap_new_GridEditorCreatedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16481 | { (char *)"GridEditorCreatedEvent_GetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16482 | { (char *)"GridEditorCreatedEvent_GetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16483 | { (char *)"GridEditorCreatedEvent_GetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_GetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16484 | { (char *)"GridEditorCreatedEvent_SetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16485 | { (char *)"GridEditorCreatedEvent_SetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16486 | { (char *)"GridEditorCreatedEvent_SetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_SetControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
16487 | { (char *)"GridEditorCreatedEvent_swigregister", GridEditorCreatedEvent_swigregister, METH_VARARGS, NULL }, | |
16488 | { NULL, NULL, 0, NULL } | |
d14a1e28 RD |
16489 | }; |
16490 | ||
16491 | ||
16492 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
16493 | ||
16494 | static void *_p_wxPyGridCellRendererTo_p_wxGridCellRenderer(void *x) { | |
16495 | return (void *)((wxGridCellRenderer *) ((wxPyGridCellRenderer *) x)); | |
16496 | } | |
16497 | static void *_p_wxGridCellStringRendererTo_p_wxGridCellRenderer(void *x) { | |
16498 | return (void *)((wxGridCellRenderer *) ((wxGridCellStringRenderer *) x)); | |
16499 | } | |
16500 | static void *_p_wxGridCellNumberRendererTo_p_wxGridCellRenderer(void *x) { | |
16501 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x)); | |
16502 | } | |
16503 | static void *_p_wxGridCellFloatRendererTo_p_wxGridCellRenderer(void *x) { | |
16504 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x)); | |
16505 | } | |
16506 | static void *_p_wxGridCellBoolRendererTo_p_wxGridCellRenderer(void *x) { | |
16507 | return (void *)((wxGridCellRenderer *) ((wxGridCellBoolRenderer *) x)); | |
16508 | } | |
16509 | static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer(void *x) { | |
16510 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x)); | |
16511 | } | |
16512 | static void *_p_wxGridCellEnumRendererTo_p_wxGridCellRenderer(void *x) { | |
16513 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x)); | |
16514 | } | |
16515 | static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer(void *x) { | |
16516 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x)); | |
16517 | } | |
16518 | static void *_p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer(void *x) { | |
16519 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x)); | |
16520 | } | |
16521 | static void *_p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer(void *x) { | |
16522 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x)); | |
16523 | } | |
16524 | static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer(void *x) { | |
16525 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x)); | |
16526 | } | |
16527 | static void *_p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer(void *x) { | |
16528 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x)); | |
16529 | } | |
16530 | static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer(void *x) { | |
16531 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x)); | |
16532 | } | |
16533 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
16534 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
16535 | } | |
16536 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
16537 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16538 | } | |
a2482628 RD |
16539 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { |
16540 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
16541 | } | |
d14a1e28 RD |
16542 | static void *_p_wxGridTo_p_wxPanel(void *x) { |
16543 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxGrid *) x)); | |
16544 | } | |
16545 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
16546 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16547 | } | |
16548 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
16549 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16550 | } | |
16551 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
16552 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
16553 | } | |
16554 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
16555 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16556 | } | |
16557 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
16558 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
16559 | } | |
16560 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
16561 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16562 | } | |
16563 | static void *_p_wxGridSizeEventTo_p_wxNotifyEvent(void *x) { | |
16564 | return (void *)((wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16565 | } | |
16566 | static void *_p_wxGridRangeSelectEventTo_p_wxNotifyEvent(void *x) { | |
16567 | return (void *)((wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16568 | } | |
16569 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
16570 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16571 | } | |
16572 | static void *_p_wxGridEventTo_p_wxNotifyEvent(void *x) { | |
16573 | return (void *)((wxNotifyEvent *) ((wxGridEvent *) x)); | |
16574 | } | |
a2482628 RD |
16575 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { |
16576 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
16577 | } | |
d14a1e28 RD |
16578 | static void *_p_wxGridTo_p_wxScrolledWindow(void *x) { |
16579 | return (void *)((wxScrolledWindow *) ((wxGrid *) x)); | |
16580 | } | |
16581 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
16582 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16583 | } | |
16584 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
16585 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
16586 | } | |
16587 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
16588 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
16589 | } | |
16590 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
16591 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
16592 | } | |
16593 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
16594 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
16595 | } | |
16596 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
16597 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
16598 | } | |
16599 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
16600 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
16601 | } | |
16602 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
16603 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
16604 | } | |
070c48b4 RD |
16605 | static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) { |
16606 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
16607 | } | |
d14a1e28 RD |
16608 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { |
16609 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
16610 | } | |
16611 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
16612 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
16613 | } | |
16614 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
16615 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
16616 | } | |
16617 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
16618 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
16619 | } | |
16620 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
16621 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
16622 | } | |
16623 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
16624 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
16625 | } | |
d14a1e28 RD |
16626 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { |
16627 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16628 | } | |
16629 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
16630 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
16631 | } | |
16632 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
16633 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
16634 | } | |
16635 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
16636 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
16637 | } | |
16638 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
16639 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
16640 | } | |
16641 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
16642 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
16643 | } | |
16644 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
16645 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
16646 | } | |
16647 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
16648 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
16649 | } | |
16650 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
16651 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
16652 | } | |
16653 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
16654 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
16655 | } | |
070c48b4 RD |
16656 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { |
16657 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
16658 | } | |
a2482628 RD |
16659 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { |
16660 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
16661 | } | |
d14a1e28 RD |
16662 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
16663 | return (void *)((wxWindow *) ((wxControl *) x)); | |
16664 | } | |
16665 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
16666 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
16667 | } | |
16668 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
16669 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
16670 | } | |
16671 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
16672 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
16673 | } | |
16674 | static void *_p_wxGridTo_p_wxWindow(void *x) { | |
16675 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
16676 | } | |
16677 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
16678 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
16679 | } | |
16680 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
16681 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
16682 | } | |
16683 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
16684 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16685 | } | |
16686 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
16687 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16688 | } | |
16689 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
16690 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16691 | } | |
16692 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
16693 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
16694 | } | |
16695 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
16696 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16697 | } | |
16698 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
16699 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
16700 | } | |
16701 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
16702 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16703 | } | |
16704 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
16705 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16706 | } | |
16707 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
16708 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16709 | } | |
16710 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
16711 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
16712 | } | |
d14a1e28 RD |
16713 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { |
16714 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16715 | } | |
16716 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
16717 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
16718 | } | |
16719 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
16720 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16721 | } | |
16722 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
16723 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
16724 | } | |
16725 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
16726 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
16727 | } | |
16728 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
16729 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
16730 | } | |
16731 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
16732 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
16733 | } | |
16734 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
16735 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
16736 | } | |
16737 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
16738 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16739 | } | |
16740 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
16741 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
16742 | } | |
16743 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
16744 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
16745 | } | |
16746 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
16747 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16748 | } | |
16749 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
16750 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
16751 | } | |
16752 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
16753 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16754 | } | |
16755 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
16756 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
16757 | } | |
16758 | static void *_p_wxGridRangeSelectEventTo_p_wxEvent(void *x) { | |
16759 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16760 | } | |
16761 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
16762 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
16763 | } | |
16764 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
16765 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16766 | } | |
16767 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
16768 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
16769 | } | |
16770 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
16771 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
16772 | } | |
16773 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
16774 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
16775 | } | |
16776 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
16777 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
16778 | } | |
16779 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
16780 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
16781 | } | |
16782 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
16783 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
16784 | } | |
16785 | static void *_p_wxGridSizeEventTo_p_wxEvent(void *x) { | |
16786 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16787 | } | |
16788 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
16789 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
16790 | } | |
16791 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
16792 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
16793 | } | |
16794 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
16795 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16796 | } | |
16797 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
16798 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
16799 | } | |
16800 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
16801 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
16802 | } | |
16803 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
16804 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
16805 | } | |
16806 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
16807 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
16808 | } | |
16809 | static void *_p_wxGridEventTo_p_wxEvent(void *x) { | |
16810 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x)); | |
16811 | } | |
16812 | static void *_p_wxGridEditorCreatedEventTo_p_wxEvent(void *x) { | |
16813 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16814 | } | |
16815 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
16816 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
16817 | } | |
16818 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
16819 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
16820 | } | |
16821 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
16822 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16823 | } | |
16824 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
16825 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
16826 | } | |
16827 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
16828 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
16829 | } | |
16830 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
16831 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
16832 | } | |
16833 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
16834 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
16835 | } | |
16836 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
16837 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16838 | } | |
16839 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
16840 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16841 | } | |
16842 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
16843 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
16844 | } | |
16845 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
16846 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
16847 | } | |
16848 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
16849 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
16850 | } | |
16851 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
16852 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
16853 | } | |
16854 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
16855 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
16856 | } | |
16857 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
16858 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
16859 | } | |
16860 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
16861 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
16862 | } | |
16863 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
16864 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
16865 | } | |
16866 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
16867 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
16868 | } | |
16869 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
16870 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
16871 | } | |
16872 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
16873 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
16874 | } | |
16875 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
16876 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
16877 | } | |
16878 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
16879 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
16880 | } | |
16881 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
16882 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
16883 | } | |
16884 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
16885 | return (void *)((wxObject *) ((wxSizer *) x)); | |
16886 | } | |
16887 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
16888 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
16889 | } | |
16890 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
16891 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16892 | } | |
16893 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
16894 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
16895 | } | |
16896 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
16897 | return (void *)((wxObject *) ((wxEvent *) x)); | |
16898 | } | |
16899 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
16900 | return (void *)((wxObject *) ((wxFontData *) x)); | |
16901 | } | |
16902 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
16903 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
16904 | } | |
16905 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
16906 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
16907 | } | |
16908 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
16909 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
16910 | } | |
16911 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
16912 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
16913 | } | |
16914 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
16915 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
16916 | } | |
84f85550 RD |
16917 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { |
16918 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d14a1e28 RD |
16919 | } |
16920 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
16921 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16922 | } | |
16923 | static void *_p_wxGridStringTableTo_p_wxObject(void *x) { | |
16924 | return (void *)((wxObject *) (wxGridTableBase *) ((wxGridStringTable *) x)); | |
16925 | } | |
16926 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
16927 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
16928 | } | |
16929 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
16930 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
16931 | } | |
16932 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
16933 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
16934 | } | |
16935 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
16936 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
16937 | } | |
16938 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
16939 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
16940 | } | |
16941 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
16942 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
16943 | } | |
16944 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
16945 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16946 | } | |
16947 | static void *_p_wxGridEventTo_p_wxObject(void *x) { | |
16948 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x)); | |
16949 | } | |
16950 | static void *_p_wxGridEditorCreatedEventTo_p_wxObject(void *x) { | |
16951 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16952 | } | |
16953 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
16954 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
16955 | } | |
16956 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
16957 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
16958 | } | |
16959 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
16960 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16961 | } | |
16962 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
16963 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
16964 | } | |
16965 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
16966 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
16967 | } | |
16968 | static void *_p_wxGridTo_p_wxObject(void *x) { | |
16969 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
16970 | } | |
16971 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
16972 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
16973 | } | |
16974 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
16975 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
16976 | } | |
16977 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
16978 | return (void *)((wxObject *) ((wxColourData *) x)); | |
16979 | } | |
16980 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
16981 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
16982 | } | |
16983 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
16984 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16985 | } | |
16986 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
16987 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
16988 | } | |
16989 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
16990 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
16991 | } | |
16992 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
16993 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
16994 | } | |
16995 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
16996 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
16997 | } | |
16998 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
16999 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
17000 | } | |
17001 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
17002 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
17003 | } | |
070c48b4 RD |
17004 | static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) { |
17005 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
17006 | } | |
d14a1e28 RD |
17007 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { |
17008 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
17009 | } | |
17010 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
17011 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
17012 | } | |
17013 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
17014 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
17015 | } | |
17016 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
17017 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
17018 | } | |
17019 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
17020 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
17021 | } | |
17022 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
17023 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
17024 | } | |
17025 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
17026 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
17027 | } | |
17028 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
17029 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
17030 | } | |
17031 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
17032 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
17033 | } | |
17034 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
17035 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
17036 | } | |
17037 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
17038 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
17039 | } | |
17040 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
17041 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
17042 | } | |
17043 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
17044 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
17045 | } | |
17046 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
17047 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
17048 | } | |
17049 | static void *_p_wxGridSizeEventTo_p_wxObject(void *x) { | |
17050 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
17051 | } | |
17052 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
17053 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
17054 | } | |
17055 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
17056 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
17057 | } | |
17058 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
17059 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
17060 | } | |
17061 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
17062 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
17063 | } | |
17064 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
17065 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
17066 | } | |
17067 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
17068 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
17069 | } | |
17070 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
17071 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
17072 | } | |
17073 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
17074 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
17075 | } | |
17076 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
17077 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
17078 | } | |
17079 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
17080 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
17081 | } | |
17082 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
17083 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
17084 | } | |
17085 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
17086 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
17087 | } | |
17088 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
17089 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
17090 | } | |
17091 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
17092 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
17093 | } | |
17094 | static void *_p_wxGridRangeSelectEventTo_p_wxObject(void *x) { | |
17095 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
17096 | } | |
17097 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
17098 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
17099 | } | |
17100 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
17101 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
17102 | } | |
17103 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
17104 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
17105 | } | |
17106 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
17107 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
17108 | } | |
17109 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
17110 | return (void *)((wxObject *) ((wxImage *) x)); | |
17111 | } | |
17112 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
17113 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
17114 | } | |
17115 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
17116 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
17117 | } | |
17118 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
17119 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
17120 | } | |
17121 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
17122 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
17123 | } | |
17124 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
17125 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
17126 | } | |
17127 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
17128 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
17129 | } | |
17130 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
17131 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
17132 | } | |
17133 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
17134 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
17135 | } | |
17136 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
17137 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
17138 | } | |
d14a1e28 RD |
17139 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
17140 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
17141 | } | |
17142 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
17143 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
17144 | } | |
17145 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
17146 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
17147 | } | |
41f1cec7 RD |
17148 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { |
17149 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
17150 | } | |
d14a1e28 RD |
17151 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { |
17152 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
17153 | } | |
17154 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
17155 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
17156 | } | |
17157 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
17158 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
17159 | } | |
17160 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
17161 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
17162 | } | |
17163 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
17164 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
17165 | } | |
17166 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
17167 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
17168 | } | |
17169 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
17170 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
17171 | } | |
17172 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
17173 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
17174 | } | |
17175 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
17176 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
17177 | } | |
17178 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
17179 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
17180 | } | |
a2482628 RD |
17181 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { |
17182 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
17183 | } | |
d14a1e28 RD |
17184 | static void *_p_wxSashEventTo_p_wxObject(void *x) { |
17185 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
17186 | } | |
17187 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
17188 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
17189 | } | |
17190 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
17191 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
17192 | } | |
17193 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
17194 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
17195 | } | |
17196 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
17197 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
17198 | } | |
17199 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
17200 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
17201 | } | |
17202 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
17203 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
17204 | } | |
17205 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
17206 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
17207 | } | |
17208 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
6e0de3df | 17209 | return (void *)((wxObject *) ((wxPageSetupDialog *) x)); |
d14a1e28 RD |
17210 | } |
17211 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
fc71d09b | 17212 | return (void *)((wxObject *) ((wxPrintDialog *) x)); |
d14a1e28 RD |
17213 | } |
17214 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
17215 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
17216 | } | |
17217 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
17218 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
17219 | } | |
17220 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
17221 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
17222 | } | |
17223 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
17224 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
17225 | } | |
17226 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
17227 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
17228 | } | |
17229 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
17230 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
17231 | } | |
17232 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
17233 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
17234 | } | |
17235 | static void *_p_wxGridTableBaseTo_p_wxObject(void *x) { | |
17236 | return (void *)((wxObject *) ((wxGridTableBase *) x)); | |
17237 | } | |
17238 | static void *_p_wxPyGridTableBaseTo_p_wxObject(void *x) { | |
17239 | return (void *)((wxObject *) (wxGridTableBase *) ((wxPyGridTableBase *) x)); | |
17240 | } | |
17241 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
17242 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
17243 | } | |
17244 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
17245 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
17246 | } | |
17247 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
17248 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
17249 | } | |
17250 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
17251 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
17252 | } | |
17253 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
17254 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
17255 | } | |
17256 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
17257 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
17258 | } | |
17259 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
17260 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
17261 | } | |
17262 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
17263 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
17264 | } | |
17265 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
17266 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
17267 | } | |
17268 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
17269 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
17270 | } | |
17271 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
17272 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
17273 | } | |
17274 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
17275 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
17276 | } | |
17277 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
17278 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
17279 | } | |
17280 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
17281 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
17282 | } | |
17283 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
17284 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
17285 | } | |
17286 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
17287 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
17288 | } | |
17289 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
17290 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
17291 | } | |
17292 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
17293 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
17294 | } | |
17295 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
17296 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
17297 | } | |
070c48b4 RD |
17298 | static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) { |
17299 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
17300 | } | |
d14a1e28 RD |
17301 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { |
17302 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
17303 | } | |
17304 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
17305 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
17306 | } | |
17307 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
17308 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
17309 | } | |
17310 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
17311 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
17312 | } | |
17313 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
17314 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
17315 | } | |
17316 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
17317 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
17318 | } | |
17319 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
17320 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
17321 | } | |
17322 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
17323 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
17324 | } | |
17325 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
17326 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
17327 | } | |
17328 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
17329 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
17330 | } | |
17331 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
17332 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
17333 | } | |
17334 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
17335 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
17336 | } | |
17337 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
17338 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
17339 | } | |
17340 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
17341 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
17342 | } | |
17343 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
17344 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
17345 | } | |
17346 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
17347 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
17348 | } | |
17349 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
17350 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
17351 | } | |
17352 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
17353 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
17354 | } | |
17355 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
17356 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
17357 | } | |
17358 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
17359 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
17360 | } | |
17361 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
17362 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
17363 | } | |
a2482628 RD |
17364 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { |
17365 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
17366 | } | |
d14a1e28 RD |
17367 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { |
17368 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
17369 | } | |
17370 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
17371 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
17372 | } | |
17373 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
17374 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
17375 | } | |
17376 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
17377 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
17378 | } | |
17379 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
17380 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
17381 | } | |
17382 | static void *_p_wxGridTo_p_wxEvtHandler(void *x) { | |
17383 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
17384 | } | |
17385 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
17386 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
17387 | } | |
17388 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
17389 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
17390 | } | |
17391 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
17392 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
17393 | } | |
17394 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
17395 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
17396 | } | |
17397 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
17398 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
17399 | } | |
17400 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
17401 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
17402 | } | |
17403 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
17404 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
17405 | } | |
84f85550 RD |
17406 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { |
17407 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d14a1e28 RD |
17408 | } |
17409 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
17410 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
17411 | } | |
d14a1e28 RD |
17412 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { |
17413 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
17414 | } | |
17415 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
17416 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
17417 | } | |
17418 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
17419 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
17420 | } | |
070c48b4 RD |
17421 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { |
17422 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
17423 | } | |
d14a1e28 RD |
17424 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { |
17425 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
17426 | } | |
17427 | static void *_p_wxGridStringTableTo_p_wxGridTableBase(void *x) { | |
17428 | return (void *)((wxGridTableBase *) ((wxGridStringTable *) x)); | |
17429 | } | |
17430 | static void *_p_wxPyGridTableBaseTo_p_wxGridTableBase(void *x) { | |
17431 | return (void *)((wxGridTableBase *) ((wxPyGridTableBase *) x)); | |
17432 | } | |
17433 | static void *_p_wxPyGridCellEditorTo_p_wxGridCellEditor(void *x) { | |
17434 | return (void *)((wxGridCellEditor *) ((wxPyGridCellEditor *) x)); | |
17435 | } | |
17436 | static void *_p_wxGridCellTextEditorTo_p_wxGridCellEditor(void *x) { | |
17437 | return (void *)((wxGridCellEditor *) ((wxGridCellTextEditor *) x)); | |
17438 | } | |
17439 | static void *_p_wxGridCellNumberEditorTo_p_wxGridCellEditor(void *x) { | |
17440 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x)); | |
17441 | } | |
17442 | static void *_p_wxGridCellFloatEditorTo_p_wxGridCellEditor(void *x) { | |
17443 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x)); | |
17444 | } | |
17445 | static void *_p_wxGridCellBoolEditorTo_p_wxGridCellEditor(void *x) { | |
17446 | return (void *)((wxGridCellEditor *) ((wxGridCellBoolEditor *) x)); | |
17447 | } | |
17448 | static void *_p_wxGridCellChoiceEditorTo_p_wxGridCellEditor(void *x) { | |
17449 | return (void *)((wxGridCellEditor *) ((wxGridCellChoiceEditor *) x)); | |
17450 | } | |
17451 | static void *_p_wxGridCellEnumEditorTo_p_wxGridCellEditor(void *x) { | |
17452 | return (void *)((wxGridCellEditor *) (wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x)); | |
17453 | } | |
17454 | static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor(void *x) { | |
17455 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x)); | |
17456 | } | |
17457 | static void *_p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor(void *x) { | |
17458 | return (void *)((wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x)); | |
17459 | } | |
17460 | static void *_p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor(void *x) { | |
17461 | return (void *)((wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x)); | |
17462 | } | |
17463 | static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor(void *x) { | |
17464 | return (void *)((wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x)); | |
17465 | } | |
17466 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
17467 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
17468 | } | |
17469 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
17470 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
17471 | } | |
17472 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
17473 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
17474 | } | |
17475 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
17476 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
17477 | } | |
17478 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
17479 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
17480 | } | |
17481 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
17482 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
17483 | } | |
17484 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
17485 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
17486 | } | |
17487 | static void *_p_wxGridRangeSelectEventTo_p_wxCommandEvent(void *x) { | |
17488 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
17489 | } | |
17490 | static void *_p_wxGridSizeEventTo_p_wxCommandEvent(void *x) { | |
17491 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
17492 | } | |
17493 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
17494 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
17495 | } | |
17496 | static void *_p_wxGridEventTo_p_wxCommandEvent(void *x) { | |
17497 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridEvent *) x)); | |
17498 | } | |
17499 | static void *_p_wxGridEditorCreatedEventTo_p_wxCommandEvent(void *x) { | |
17500 | return (void *)((wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
17501 | } | |
17502 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
17503 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
17504 | } | |
17505 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
17506 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
17507 | } | |
17508 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
17509 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
17510 | } | |
17511 | static void *_p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider(void *x) { | |
17512 | return (void *)((wxGridCellAttrProvider *) ((wxPyGridCellAttrProvider *) x)); | |
17513 | } | |
17514 | static void *_p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor(void *x) { | |
17515 | return (void *)((wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x)); | |
17516 | } | |
2f4c0a16 RD |
17517 | static swig_type_info _swigt__p_wxGridCellAutoWrapStringRenderer[] = {{"_p_wxGridCellAutoWrapStringRenderer", 0, "wxGridCellAutoWrapStringRenderer *", 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
17518 | static swig_type_info _swigt__p_wxGridCellEnumRenderer[] = {{"_p_wxGridCellEnumRenderer", 0, "wxGridCellEnumRenderer *", 0, 0, 0, 0},{"_p_wxGridCellEnumRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17519 | static swig_type_info _swigt__p_wxGridCellDateTimeRenderer[] = {{"_p_wxGridCellDateTimeRenderer", 0, "wxGridCellDateTimeRenderer *", 0, 0, 0, 0},{"_p_wxGridCellDateTimeRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17520 | static swig_type_info _swigt__p_wxGridCellBoolRenderer[] = {{"_p_wxGridCellBoolRenderer", 0, "wxGridCellBoolRenderer *", 0, 0, 0, 0},{"_p_wxGridCellBoolRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17521 | static swig_type_info _swigt__p_wxGridCellFloatRenderer[] = {{"_p_wxGridCellFloatRenderer", 0, "wxGridCellFloatRenderer *", 0, 0, 0, 0},{"_p_wxGridCellFloatRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17522 | static swig_type_info _swigt__p_wxGridCellNumberRenderer[] = {{"_p_wxGridCellNumberRenderer", 0, "wxGridCellNumberRenderer *", 0, 0, 0, 0},{"_p_wxGridCellNumberRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17523 | static swig_type_info _swigt__p_wxPyGridCellRenderer[] = {{"_p_wxPyGridCellRenderer", 0, "wxPyGridCellRenderer *", 0, 0, 0, 0},{"_p_wxPyGridCellRenderer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17524 | static swig_type_info _swigt__p_wxGridCellRenderer[] = {{"_p_wxGridCellRenderer", 0, "wxGridCellRenderer *", 0, 0, 0, 0},{"_p_wxGridCellRenderer", 0, 0, 0, 0, 0, 0},{"_p_wxPyGridCellRenderer", _p_wxPyGridCellRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellStringRenderer", _p_wxGridCellStringRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellNumberRenderer", _p_wxGridCellNumberRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellFloatRenderer", _p_wxGridCellFloatRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellDateTimeRenderer", _p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellEnumRenderer", _p_wxGridCellEnumRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringRenderer", _p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellBoolRenderer", _p_wxGridCellBoolRendererTo_p_wxGridCellRenderer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17525 | static swig_type_info _swigt__p_wxGridCellStringRenderer[] = {{"_p_wxGridCellStringRenderer", 0, "wxGridCellStringRenderer *", 0, 0, 0, 0},{"_p_wxGridCellStringRenderer", 0, 0, 0, 0, 0, 0},{"_p_wxGridCellNumberRenderer", _p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellFloatRenderer", _p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellDateTimeRenderer", _p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellEnumRenderer", _p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringRenderer", _p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17526 | static swig_type_info _swigt__p_wxGridCellAttr[] = {{"_p_wxGridCellAttr", 0, "wxGridCellAttr *", 0, 0, 0, 0},{"_p_wxGridCellAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17527 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17528 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17529 | static swig_type_info _swigt__p_wxGridTableMessage[] = {{"_p_wxGridTableMessage", 0, "wxGridTableMessage *", 0, 0, 0, 0},{"_p_wxGridTableMessage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17530 | static swig_type_info _swigt__p_wxGrid[] = {{"_p_wxGrid", 0, "wxGrid *", 0, 0, 0, 0},{"_p_wxGrid", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
f20a2e1f | 17531 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
2f4c0a16 | 17532 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
a2482628 | 17533 | static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 0, 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
2f4c0a16 RD |
17534 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
17535 | static swig_type_info _swigt__p_wxGridRangeSelectEvent[] = {{"_p_wxGridRangeSelectEvent", 0, "wxGridRangeSelectEvent *", 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17536 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17537 | static swig_type_info _swigt__p_wxGridCellCoords[] = {{"_p_wxGridCellCoords", 0, "wxGridCellCoords *", 0, 0, 0, 0},{"_p_wxGridCellCoords", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
a2482628 | 17538 | static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
6e0de3df | 17539 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPasswordEntryDialog", _p_wxPasswordEntryDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
2f4c0a16 RD |
17540 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
17541 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17542 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
fc71d09b | 17543 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontData", _p_wxFontDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintData", _p_wxPrintDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTaskBarIcon", _p_wxPyTaskBarIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridStringTable", _p_wxGridStringTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutAlgorithm", _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceData", _p_wxFindReplaceDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourData", _p_wxColourDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPasswordEntryDialog", _p_wxPasswordEntryDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinter", _p_wxPrinterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintout", _p_wxPyPrintoutTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintPreview", _p_wxPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridTableBase", _p_wxGridTableBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyGridTableBase", _p_wxPyGridTableBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialogData", _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialogData", _p_wxPrintDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
2f4c0a16 RD |
17544 | static swig_type_info _swigt__p_wxGridSizeEvent[] = {{"_p_wxGridSizeEvent", 0, "wxGridSizeEvent *", 0, 0, 0, 0},{"_p_wxGridSizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
17545 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17546 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17547 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
6e0de3df | 17548 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGrid", _p_wxGridTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPasswordEntryDialog", _p_wxPasswordEntryDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTaskBarIcon", _p_wxPyTaskBarIconTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
2f4c0a16 RD |
17549 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
17550 | static swig_type_info _swigt__p_wxGridEvent[] = {{"_p_wxGridEvent", 0, "wxGridEvent *", 0, 0, 0, 0},{"_p_wxGridEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17551 | static swig_type_info _swigt__p_wxGridEditorCreatedEvent[] = {{"_p_wxGridEditorCreatedEvent", 0, "wxGridEditorCreatedEvent *", 0, 0, 0, 0},{"_p_wxGridEditorCreatedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17552 | static swig_type_info _swigt__p_wxGridTableBase[] = {{"_p_wxGridTableBase", 0, "wxGridTableBase *", 0, 0, 0, 0},{"_p_wxGridStringTable", _p_wxGridStringTableTo_p_wxGridTableBase, 0, 0, 0, 0, 0},{"_p_wxGridTableBase", 0, 0, 0, 0, 0, 0},{"_p_wxPyGridTableBase", _p_wxPyGridTableBaseTo_p_wxGridTableBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17553 | static swig_type_info _swigt__p_wxGridCellNumberEditor[] = {{"_p_wxGridCellNumberEditor", 0, "wxGridCellNumberEditor *", 0, 0, 0, 0},{"_p_wxGridCellNumberEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17554 | static swig_type_info _swigt__p_wxPyGridCellEditor[] = {{"_p_wxPyGridCellEditor", 0, "wxPyGridCellEditor *", 0, 0, 0, 0},{"_p_wxPyGridCellEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17555 | static swig_type_info _swigt__p_wxGridCellEditor[] = {{"_p_wxGridCellEditor", 0, "wxGridCellEditor *", 0, 0, 0, 0},{"_p_wxGridCellEditor", 0, 0, 0, 0, 0, 0},{"_p_wxPyGridCellEditor", _p_wxPyGridCellEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellTextEditor", _p_wxGridCellTextEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellNumberEditor", _p_wxGridCellNumberEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellFloatEditor", _p_wxGridCellFloatEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellBoolEditor", _p_wxGridCellBoolEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringEditor", _p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellChoiceEditor", _p_wxGridCellChoiceEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellEditor, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17556 | static swig_type_info _swigt__p_wxGridCellTextEditor[] = {{"_p_wxGridCellTextEditor", 0, "wxGridCellTextEditor *", 0, 0, 0, 0},{"_p_wxGridCellTextEditor", 0, 0, 0, 0, 0, 0},{"_p_wxGridCellNumberEditor", _p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellFloatEditor", _p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor, 0, 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringEditor", _p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17557 | static swig_type_info _swigt__p_wxGridCellFloatEditor[] = {{"_p_wxGridCellFloatEditor", 0, "wxGridCellFloatEditor *", 0, 0, 0, 0},{"_p_wxGridCellFloatEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17558 | static swig_type_info _swigt__p_wxGridCellBoolEditor[] = {{"_p_wxGridCellBoolEditor", 0, "wxGridCellBoolEditor *", 0, 0, 0, 0},{"_p_wxGridCellBoolEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17559 | static swig_type_info _swigt__p_wxPyGridTableBase[] = {{"_p_wxPyGridTableBase", 0, "wxPyGridTableBase *", 0, 0, 0, 0},{"_p_wxPyGridTableBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17560 | static swig_type_info _swigt__p_wxGridStringTable[] = {{"_p_wxGridStringTable", 0, "wxGridStringTable *", 0, 0, 0, 0},{"_p_wxGridStringTable", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17561 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17562 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17563 | static swig_type_info _swigt__p_wxGridCellAttrProvider[] = {{"_p_wxGridCellAttrProvider", 0, "wxGridCellAttrProvider *", 0, 0, 0, 0},{"_p_wxGridCellAttrProvider", 0, 0, 0, 0, 0, 0},{"_p_wxPyGridCellAttrProvider", _p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17564 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17565 | static swig_type_info _swigt__p_wxGridCellChoiceEditor[] = {{"_p_wxGridCellChoiceEditor", 0, "wxGridCellChoiceEditor *", 0, 0, 0, 0},{"_p_wxGridCellChoiceEditor", 0, 0, 0, 0, 0, 0},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17566 | static swig_type_info _swigt__p_wxGridCellEnumEditor[] = {{"_p_wxGridCellEnumEditor", 0, "wxGridCellEnumEditor *", 0, 0, 0, 0},{"_p_wxGridCellEnumEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17567 | static swig_type_info _swigt__p_wxGridCellAutoWrapStringEditor[] = {{"_p_wxGridCellAutoWrapStringEditor", 0, "wxGridCellAutoWrapStringEditor *", 0, 0, 0, 0},{"_p_wxGridCellAutoWrapStringEditor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17568 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
17569 | static swig_type_info _swigt__p_wxPyGridCellAttrProvider[] = {{"_p_wxPyGridCellAttrProvider", 0, "wxPyGridCellAttrProvider *", 0, 0, 0, 0},{"_p_wxPyGridCellAttrProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d14a1e28 RD |
17570 | |
17571 | static swig_type_info *swig_types_initial[] = { | |
17572 | _swigt__p_wxGridCellAutoWrapStringRenderer, | |
17573 | _swigt__p_wxGridCellEnumRenderer, | |
17574 | _swigt__p_wxGridCellDateTimeRenderer, | |
17575 | _swigt__p_wxGridCellBoolRenderer, | |
17576 | _swigt__p_wxGridCellFloatRenderer, | |
17577 | _swigt__p_wxGridCellNumberRenderer, | |
17578 | _swigt__p_wxPyGridCellRenderer, | |
17579 | _swigt__p_wxGridCellRenderer, | |
17580 | _swigt__p_wxGridCellStringRenderer, | |
17581 | _swigt__p_wxGridCellAttr, | |
17582 | _swigt__p_wxColour, | |
17583 | _swigt__p_wxDC, | |
17584 | _swigt__p_wxGridTableMessage, | |
17585 | _swigt__p_wxGrid, | |
f20a2e1f | 17586 | _swigt__p_wxVisualAttributes, |
8edf1c75 | 17587 | _swigt__p_char, |
d14a1e28 RD |
17588 | _swigt__p_wxPanel, |
17589 | _swigt__p_wxNotifyEvent, | |
17590 | _swigt__p_wxGridRangeSelectEvent, | |
17591 | _swigt__p_wxSize, | |
17592 | _swigt__p_wxGridCellCoords, | |
17593 | _swigt__p_wxScrolledWindow, | |
17594 | _swigt__p_wxWindow, | |
17595 | _swigt__p_wxFont, | |
17596 | _swigt__p_wxControl, | |
17597 | _swigt__p_wxEvent, | |
17598 | _swigt__p_wxObject, | |
17599 | _swigt__p_wxGridSizeEvent, | |
17600 | _swigt__p_wxRect, | |
17601 | _swigt__p_long, | |
17602 | _swigt__p_wxString, | |
17603 | _swigt__p_wxEvtHandler, | |
17604 | _swigt__p_wxPoint, | |
17605 | _swigt__p_wxGridEvent, | |
17606 | _swigt__p_wxGridEditorCreatedEvent, | |
17607 | _swigt__p_wxGridTableBase, | |
d14a1e28 RD |
17608 | _swigt__p_wxGridCellNumberEditor, |
17609 | _swigt__p_wxPyGridCellEditor, | |
17610 | _swigt__p_wxGridCellEditor, | |
17611 | _swigt__p_wxGridCellTextEditor, | |
8edf1c75 | 17612 | _swigt__p_wxGridCellFloatEditor, |
d14a1e28 RD |
17613 | _swigt__p_wxGridCellBoolEditor, |
17614 | _swigt__p_wxPyGridTableBase, | |
17615 | _swigt__p_wxGridStringTable, | |
17616 | _swigt__p_wxArrayString, | |
17617 | _swigt__p_wxCommandEvent, | |
17618 | _swigt__p_wxGridCellAttrProvider, | |
17619 | _swigt__p_wxKeyEvent, | |
17620 | _swigt__p_wxGridCellChoiceEditor, | |
17621 | _swigt__p_wxGridCellEnumEditor, | |
17622 | _swigt__p_wxGridCellAutoWrapStringEditor, | |
17623 | _swigt__p_int, | |
17624 | _swigt__p_wxPyGridCellAttrProvider, | |
17625 | 0 | |
17626 | }; | |
17627 | ||
17628 | ||
17629 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
17630 | ||
17631 | static swig_const_info swig_const_table[] = { | |
2f4c0a16 RD |
17632 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_STRING", 0, 0, (void *)"string", &SWIGTYPE_p_char}, |
17633 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_BOOL", 0, 0, (void *)"bool", &SWIGTYPE_p_char}, | |
17634 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_NUMBER", 0, 0, (void *)"long", &SWIGTYPE_p_char}, | |
17635 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_FLOAT", 0, 0, (void *)"double", &SWIGTYPE_p_char}, | |
17636 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_CHOICE", 0, 0, (void *)"choice", &SWIGTYPE_p_char}, | |
17637 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_TEXT", 0, 0, (void *)"string", &SWIGTYPE_p_char}, | |
17638 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_LONG", 0, 0, (void *)"long", &SWIGTYPE_p_char}, | |
17639 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_CHOICEINT", 0, 0, (void *)"choiceint", &SWIGTYPE_p_char}, | |
17640 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_DATETIME", 0, 0, (void *)"datetime", &SWIGTYPE_p_char}, | |
c370783e | 17641 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
17642 | |
17643 | #ifdef __cplusplus | |
17644 | } | |
17645 | #endif | |
17646 | ||
17647 | #ifdef __cplusplus | |
17648 | extern "C" | |
17649 | #endif | |
17650 | SWIGEXPORT(void) SWIG_init(void) { | |
17651 | static PyObject *SWIG_globals = 0; | |
17652 | static int typeinit = 0; | |
17653 | PyObject *m, *d; | |
17654 | int i; | |
17655 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
17656 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
17657 | d = PyModule_GetDict(m); | |
17658 | ||
17659 | if (!typeinit) { | |
17660 | for (i = 0; swig_types_initial[i]; i++) { | |
17661 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
17662 | } | |
17663 | typeinit = 1; | |
17664 | } | |
17665 | SWIG_InstallConstants(d,swig_const_table); | |
17666 | ||
17667 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
cbd72d4f | 17668 | SWIG_addvarlink(SWIG_globals,(char*)"DateTimeFormatStr",_wrap_DateTimeFormatStr_get, _wrap_DateTimeFormatStr_set); |
2f4c0a16 RD |
17669 | PyDict_SetItemString(d,"GRID_VALUE_STRING", SWIG_FromCharPtr("string")); |
17670 | PyDict_SetItemString(d,"GRID_VALUE_BOOL", SWIG_FromCharPtr("bool")); | |
17671 | PyDict_SetItemString(d,"GRID_VALUE_NUMBER", SWIG_FromCharPtr("long")); | |
17672 | PyDict_SetItemString(d,"GRID_VALUE_FLOAT", SWIG_FromCharPtr("double")); | |
17673 | PyDict_SetItemString(d,"GRID_VALUE_CHOICE", SWIG_FromCharPtr("choice")); | |
17674 | PyDict_SetItemString(d,"GRID_VALUE_TEXT", SWIG_FromCharPtr("string")); | |
17675 | PyDict_SetItemString(d,"GRID_VALUE_LONG", SWIG_FromCharPtr("long")); | |
17676 | PyDict_SetItemString(d,"GRID_VALUE_CHOICEINT", SWIG_FromCharPtr("choiceint")); | |
17677 | PyDict_SetItemString(d,"GRID_VALUE_DATETIME", SWIG_FromCharPtr("datetime")); | |
d14a1e28 RD |
17678 | SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set); |
17679 | SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set); | |
c370783e RD |
17680 | PyDict_SetItemString(d,"GRID_DEFAULT_NUMBER_ROWS", SWIG_From_int((int)wxGRID_DEFAULT_NUMBER_ROWS)); |
17681 | PyDict_SetItemString(d,"GRID_DEFAULT_NUMBER_COLS", SWIG_From_int((int)wxGRID_DEFAULT_NUMBER_COLS)); | |
17682 | PyDict_SetItemString(d,"GRID_DEFAULT_ROW_HEIGHT", SWIG_From_int((int)wxGRID_DEFAULT_ROW_HEIGHT)); | |
17683 | PyDict_SetItemString(d,"GRID_DEFAULT_COL_WIDTH", SWIG_From_int((int)wxGRID_DEFAULT_COL_WIDTH)); | |
17684 | PyDict_SetItemString(d,"GRID_DEFAULT_COL_LABEL_HEIGHT", SWIG_From_int((int)wxGRID_DEFAULT_COL_LABEL_HEIGHT)); | |
17685 | PyDict_SetItemString(d,"GRID_DEFAULT_ROW_LABEL_WIDTH", SWIG_From_int((int)wxGRID_DEFAULT_ROW_LABEL_WIDTH)); | |
17686 | PyDict_SetItemString(d,"GRID_LABEL_EDGE_ZONE", SWIG_From_int((int)wxGRID_LABEL_EDGE_ZONE)); | |
17687 | PyDict_SetItemString(d,"GRID_MIN_ROW_HEIGHT", SWIG_From_int((int)wxGRID_MIN_ROW_HEIGHT)); | |
17688 | PyDict_SetItemString(d,"GRID_MIN_COL_WIDTH", SWIG_From_int((int)wxGRID_MIN_COL_WIDTH)); | |
17689 | PyDict_SetItemString(d,"GRID_DEFAULT_SCROLLBAR_WIDTH", SWIG_From_int((int)wxGRID_DEFAULT_SCROLLBAR_WIDTH)); | |
17690 | PyDict_SetItemString(d,"GridCellAttr_Any", SWIG_From_int((int)wxGridCellAttr::Any)); | |
17691 | PyDict_SetItemString(d,"GridCellAttr_Default", SWIG_From_int((int)wxGridCellAttr::Default)); | |
17692 | PyDict_SetItemString(d,"GridCellAttr_Cell", SWIG_From_int((int)wxGridCellAttr::Cell)); | |
17693 | PyDict_SetItemString(d,"GridCellAttr_Row", SWIG_From_int((int)wxGridCellAttr::Row)); | |
17694 | PyDict_SetItemString(d,"GridCellAttr_Col", SWIG_From_int((int)wxGridCellAttr::Col)); | |
17695 | PyDict_SetItemString(d,"GridCellAttr_Merged", SWIG_From_int((int)wxGridCellAttr::Merged)); | |
17696 | PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_GET_VALUES", SWIG_From_int((int)wxGRIDTABLE_REQUEST_VIEW_GET_VALUES)); | |
17697 | PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_SEND_VALUES", SWIG_From_int((int)wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES)); | |
17698 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_INSERTED", SWIG_From_int((int)wxGRIDTABLE_NOTIFY_ROWS_INSERTED)); | |
17699 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_APPENDED", SWIG_From_int((int)wxGRIDTABLE_NOTIFY_ROWS_APPENDED)); | |
17700 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_DELETED", SWIG_From_int((int)wxGRIDTABLE_NOTIFY_ROWS_DELETED)); | |
17701 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_INSERTED", SWIG_From_int((int)wxGRIDTABLE_NOTIFY_COLS_INSERTED)); | |
17702 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_APPENDED", SWIG_From_int((int)wxGRIDTABLE_NOTIFY_COLS_APPENDED)); | |
17703 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_DELETED", SWIG_From_int((int)wxGRIDTABLE_NOTIFY_COLS_DELETED)); | |
17704 | PyDict_SetItemString(d,"Grid_wxGridSelectCells", SWIG_From_int((int)wxGrid::wxGridSelectCells)); | |
17705 | PyDict_SetItemString(d,"Grid_wxGridSelectRows", SWIG_From_int((int)wxGrid::wxGridSelectRows)); | |
17706 | PyDict_SetItemString(d,"Grid_wxGridSelectColumns", SWIG_From_int((int)wxGrid::wxGridSelectColumns)); | |
d14a1e28 RD |
17707 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_CLICK)); |
17708 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_CLICK)); | |
17709 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_DCLICK)); | |
17710 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_DCLICK)); | |
17711 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_CLICK)); | |
17712 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_CLICK)); | |
17713 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_DCLICK)); | |
17714 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_DCLICK)); | |
17715 | PyDict_SetItemString(d, "wxEVT_GRID_ROW_SIZE", PyInt_FromLong(wxEVT_GRID_ROW_SIZE)); | |
17716 | PyDict_SetItemString(d, "wxEVT_GRID_COL_SIZE", PyInt_FromLong(wxEVT_GRID_COL_SIZE)); | |
17717 | PyDict_SetItemString(d, "wxEVT_GRID_RANGE_SELECT", PyInt_FromLong(wxEVT_GRID_RANGE_SELECT)); | |
17718 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_CHANGE", PyInt_FromLong(wxEVT_GRID_CELL_CHANGE)); | |
17719 | PyDict_SetItemString(d, "wxEVT_GRID_SELECT_CELL", PyInt_FromLong(wxEVT_GRID_SELECT_CELL)); | |
17720 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_SHOWN", PyInt_FromLong(wxEVT_GRID_EDITOR_SHOWN)); | |
17721 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_HIDDEN", PyInt_FromLong(wxEVT_GRID_EDITOR_HIDDEN)); | |
17722 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_CREATED", PyInt_FromLong(wxEVT_GRID_EDITOR_CREATED)); | |
4cf4100f | 17723 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_BEGIN_DRAG", PyInt_FromLong(wxEVT_GRID_CELL_BEGIN_DRAG)); |
d14a1e28 RD |
17724 | |
17725 | ||
17726 | } | |
17727 |