]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 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 | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
cc6dd355 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
d14a1e28 RD |
136 | #include "Python.h" |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
d14a1e28 RD |
166 | /* Common SWIG API */ |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 173 | |
d14a1e28 RD |
174 | /* Python-specific SWIG API */ |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
994141e6 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
cc6dd355 RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | /* Contract support */ | |
199 | ||
9d1d5697 | 200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 201 | |
d14a1e28 RD |
202 | #ifdef __cplusplus |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
d14a1e28 RD |
207 | /* -------- TYPES TABLE (BEGIN) -------- */ |
208 | ||
209 | #define SWIGTYPE_p_wxGridCellAutoWrapStringRenderer swig_types[0] | |
210 | #define SWIGTYPE_p_wxGridCellEnumRenderer swig_types[1] | |
211 | #define SWIGTYPE_p_wxGridCellDateTimeRenderer swig_types[2] | |
212 | #define SWIGTYPE_p_wxGridCellBoolRenderer swig_types[3] | |
213 | #define SWIGTYPE_p_wxGridCellFloatRenderer swig_types[4] | |
214 | #define SWIGTYPE_p_wxGridCellNumberRenderer swig_types[5] | |
215 | #define SWIGTYPE_p_wxPyGridCellRenderer swig_types[6] | |
216 | #define SWIGTYPE_p_wxGridCellRenderer swig_types[7] | |
217 | #define SWIGTYPE_p_wxGridCellStringRenderer swig_types[8] | |
218 | #define SWIGTYPE_p_wxGridCellAttr swig_types[9] | |
219 | #define SWIGTYPE_p_wxColour swig_types[10] | |
220 | #define SWIGTYPE_p_wxDC swig_types[11] | |
221 | #define SWIGTYPE_p_wxGridTableMessage swig_types[12] | |
222 | #define SWIGTYPE_p_wxGrid swig_types[13] | |
994141e6 RD |
223 | #define SWIGTYPE_p_char swig_types[14] |
224 | #define SWIGTYPE_p_wxPanel swig_types[15] | |
225 | #define SWIGTYPE_p_wxNotifyEvent swig_types[16] | |
226 | #define SWIGTYPE_p_wxGridRangeSelectEvent swig_types[17] | |
227 | #define SWIGTYPE_p_wxSize swig_types[18] | |
228 | #define SWIGTYPE_p_wxGridCellCoords swig_types[19] | |
229 | #define SWIGTYPE_p_wxScrolledWindow swig_types[20] | |
230 | #define SWIGTYPE_p_wxWindow swig_types[21] | |
231 | #define SWIGTYPE_p_wxFont swig_types[22] | |
232 | #define SWIGTYPE_p_wxControl swig_types[23] | |
233 | #define SWIGTYPE_p_wxEvent swig_types[24] | |
234 | #define SWIGTYPE_p_wxObject swig_types[25] | |
235 | #define SWIGTYPE_p_wxGridSizeEvent swig_types[26] | |
236 | #define SWIGTYPE_p_wxRect swig_types[27] | |
237 | #define SWIGTYPE_p_long swig_types[28] | |
238 | #define SWIGTYPE_p_wxString swig_types[29] | |
239 | #define SWIGTYPE_p_wxEvtHandler swig_types[30] | |
240 | #define SWIGTYPE_p_wxPoint swig_types[31] | |
241 | #define SWIGTYPE_p_wxGridEvent swig_types[32] | |
242 | #define SWIGTYPE_p_wxGridEditorCreatedEvent swig_types[33] | |
243 | #define SWIGTYPE_p_wxGridTableBase swig_types[34] | |
d14a1e28 RD |
244 | #define SWIGTYPE_p_wxGridCellNumberEditor swig_types[35] |
245 | #define SWIGTYPE_p_wxPyGridCellEditor swig_types[36] | |
246 | #define SWIGTYPE_p_wxGridCellEditor swig_types[37] | |
247 | #define SWIGTYPE_p_wxGridCellTextEditor swig_types[38] | |
994141e6 RD |
248 | #define SWIGTYPE_p_wxGridCellFloatEditor swig_types[39] |
249 | #define SWIGTYPE_p_wxGridCellBoolEditor swig_types[40] | |
250 | #define SWIGTYPE_p_wxPyGridTableBase swig_types[41] | |
251 | #define SWIGTYPE_p_wxGridStringTable swig_types[42] | |
252 | #define SWIGTYPE_p_wxArrayString swig_types[43] | |
253 | #define SWIGTYPE_p_wxCommandEvent swig_types[44] | |
254 | #define SWIGTYPE_p_wxGridCellAttrProvider swig_types[45] | |
255 | #define SWIGTYPE_p_wxKeyEvent swig_types[46] | |
256 | #define SWIGTYPE_p_wxGridCellChoiceEditor swig_types[47] | |
257 | #define SWIGTYPE_p_wxGridCellEnumEditor swig_types[48] | |
258 | #define SWIGTYPE_p_wxGridCellAutoWrapStringEditor swig_types[49] | |
259 | #define SWIGTYPE_p_int swig_types[50] | |
260 | #define SWIGTYPE_p_wxPyGridCellAttrProvider swig_types[51] | |
261 | static swig_type_info *swig_types[53]; | |
d14a1e28 RD |
262 | |
263 | /* -------- TYPES TABLE (END) -------- */ | |
264 | ||
265 | ||
266 | /*----------------------------------------------- | |
267 | @(target):= _grid.so | |
268 | ------------------------------------------------*/ | |
269 | #define SWIG_init init_grid | |
270 | ||
271 | #define SWIG_name "_grid" | |
272 | ||
15afbcd0 | 273 | /* Auxiliar swig macros */ |
994141e6 | 274 | |
994141e6 | 275 | #ifdef __cplusplus |
15afbcd0 | 276 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 277 | #define SWIGSTATIC(a) static a |
15afbcd0 RD |
278 | #define swig_new_array(type, size) (new type[(size)]) |
279 | #define swig_delete_array(cptr) delete[] cptr | |
280 | #define swig_const_cast(type,a) const_cast<type>(a) | |
281 | #define swig_static_cast(type,a) static_cast<type>(a) | |
282 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
994141e6 | 283 | |
994141e6 | 284 | #ifdef HAVE_NUMERIC_CAST |
15afbcd0 | 285 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
994141e6 | 286 | #else |
15afbcd0 | 287 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
994141e6 RD |
288 | #endif |
289 | ||
15afbcd0 RD |
290 | #else /* C case */ |
291 | ||
292 | #define SWIGSTATICINLINE(a) static a | |
293 | #define SWIGSTATIC(a) static a | |
294 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
295 | #define swig_delete_array(cptr) free((char*)cptr) | |
296 | #define swig_const_cast(type,a) (type)(a) | |
297 | #define swig_static_cast(type,a) (type)(a) | |
298 | #define swig_reinterpret_cast(type,a) (type)(a) | |
299 | #define swig_numeric_cast(type,a) (type)(a) | |
300 | ||
301 | #endif /* __cplusplus */ | |
994141e6 RD |
302 | |
303 | ||
15afbcd0 RD |
304 | #define SWIG_FromSignedChar PyInt_FromLong |
305 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
306 | #define SWIG_FromShort PyInt_FromLong | |
307 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
308 | #define SWIG_FromInt PyInt_FromLong | |
309 | #define SWIG_FromLong PyInt_FromLong | |
310 | #define SWIG_FromFloat PyFloat_FromDouble | |
311 | #define SWIG_FromDouble PyFloat_FromDouble | |
312 | #define SWIG_FromFloat PyFloat_FromDouble | |
313 | #define SWIG_FromDouble PyFloat_FromDouble | |
994141e6 RD |
314 | |
315 | ||
d14a1e28 RD |
316 | #include "wx/wxPython/wxPython.h" |
317 | #include "wx/wxPython/pyclasses.h" | |
318 | #include "wx/wxPython/printfw.h" | |
319 | ||
320 | #include <wx/grid.h> | |
321 | #include <wx/generic/gridctrl.h> | |
322 | ||
d14a1e28 | 323 | |
b2dc1044 RD |
324 | static const wxString wxPyEmptyString(wxEmptyString); |
325 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
33b885b9 | 326 | static const wxString wxPyDateTimeFormatStr(wxT("%c")); |
d14a1e28 RD |
327 | |
328 | ||
329 | #define wxPyMake_TEMPLATE(TYPE) \ | |
330 | PyObject* wxPyMake_##TYPE(TYPE* source) { \ | |
331 | PyObject* target = NULL; \ | |
332 | if (source) { \ | |
333 | /* Check if there is already a pointer to a Python object in the \ | |
334 | OOR data that we can use. */ \ | |
335 | wxPyOORClientData* data = (wxPyOORClientData*)source->GetClientObject(); \ | |
336 | if (data) { \ | |
337 | target = data->m_obj; \ | |
338 | Py_INCREF(target); \ | |
339 | } \ | |
340 | /* Otherwise make a new wrapper for it the old fashioned way and \ | |
341 | give it the OOR treatment */ \ | |
342 | if (! target) { \ | |
e811c8ce | 343 | target = wxPyConstructObject(source, wxT(#TYPE), False); \ |
d14a1e28 RD |
344 | if (target) \ |
345 | source->SetClientObject(new wxPyOORClientData(target)); \ | |
346 | } \ | |
347 | } else { /* source was NULL so return None. */ \ | |
348 | Py_INCREF(Py_None); target = Py_None; \ | |
349 | } \ | |
350 | return target; \ | |
351 | } \ | |
352 | ||
353 | ||
354 | wxPyMake_TEMPLATE(wxGridCellRenderer) | |
355 | wxPyMake_TEMPLATE(wxGridCellEditor) | |
356 | wxPyMake_TEMPLATE(wxGridCellAttr) | |
357 | wxPyMake_TEMPLATE(wxGridCellAttrProvider) | |
358 | wxPyMake_TEMPLATE(wxGridTableBase) | |
359 | ||
360 | ||
361 | ||
362 | #define PYCALLBACK_GCA_INTINTKIND(PCLASS, CBNAME) \ | |
363 | wxGridCellAttr* CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \ | |
364 | wxGridCellAttr* rval = NULL; \ | |
365 | bool found; \ | |
4f89f6a3 | 366 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
367 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
368 | PyObject* ro; \ | |
369 | wxGridCellAttr* ptr; \ | |
370 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iii)", a, b, c)); \ | |
371 | if (ro) { \ | |
372 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellAttr"))) \ | |
373 | rval = ptr; \ | |
374 | Py_DECREF(ro); \ | |
375 | } \ | |
376 | } \ | |
4f89f6a3 | 377 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
378 | if (! found) \ |
379 | rval = PCLASS::CBNAME(a, b, c); \ | |
380 | return rval; \ | |
381 | } \ | |
382 | wxGridCellAttr *base_##CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \ | |
383 | return PCLASS::CBNAME(a, b, c); \ | |
384 | } | |
385 | ||
386 | ||
387 | ||
388 | #define PYCALLBACK__GCAINTINT(PCLASS, CBNAME) \ | |
389 | void CBNAME(wxGridCellAttr *attr, int a, int b) { \ | |
4f89f6a3 | 390 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
391 | bool found; \ |
392 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
393 | PyObject* obj = wxPyMake_wxGridCellAttr(attr); \ | |
394 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oii)", obj, a, b)); \ | |
395 | Py_DECREF(obj); \ | |
396 | } \ | |
4f89f6a3 | 397 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
398 | if (! found) \ |
399 | PCLASS::CBNAME(attr, a, b); \ | |
400 | } \ | |
401 | void base_##CBNAME(wxGridCellAttr *attr, int a, int b) { \ | |
402 | PCLASS::CBNAME(attr, a, b); \ | |
403 | } | |
404 | ||
405 | ||
406 | ||
407 | #define PYCALLBACK__GCAINT(PCLASS, CBNAME) \ | |
408 | void CBNAME(wxGridCellAttr *attr, int val) { \ | |
4f89f6a3 | 409 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
410 | bool found; \ |
411 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
412 | PyObject* obj = wxPyMake_wxGridCellAttr(attr); \ | |
413 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", obj, val)); \ | |
414 | Py_DECREF(obj); \ | |
415 | } \ | |
4f89f6a3 | 416 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
417 | if (! found) \ |
418 | PCLASS::CBNAME(attr, val); \ | |
419 | } \ | |
420 | void base_##CBNAME(wxGridCellAttr *attr, int val) { \ | |
421 | PCLASS::CBNAME(attr, val); \ | |
422 | } | |
423 | ||
424 | ||
425 | ||
426 | #define PYCALLBACK_INT__pure(CBNAME) \ | |
427 | int CBNAME() { \ | |
4f89f6a3 | 428 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
429 | int rval = 0; \ |
430 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \ | |
431 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ | |
4f89f6a3 | 432 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
433 | return rval; \ |
434 | } | |
435 | ||
436 | ||
437 | ||
438 | #define PYCALLBACK_BOOL_INTINT_pure(CBNAME) \ | |
439 | bool CBNAME(int a, int b) { \ | |
4f89f6a3 | 440 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
441 | bool rval = 0; \ |
442 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \ | |
443 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
4f89f6a3 | 444 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
445 | return rval; \ |
446 | } | |
447 | ||
448 | ||
449 | #define PYCALLBACK_STRING_INTINT_pure(CBNAME) \ | |
450 | wxString CBNAME(int a, int b) { \ | |
4f89f6a3 | 451 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
452 | wxString rval; \ |
453 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \ | |
454 | PyObject* ro; \ | |
455 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
456 | if (ro) { \ | |
457 | rval = Py2wxString(ro); \ | |
458 | Py_DECREF(ro); \ | |
459 | } \ | |
460 | } \ | |
4f89f6a3 | 461 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
462 | return rval; \ |
463 | } | |
464 | ||
465 | ||
466 | #define PYCALLBACK__INTINTSTRING_pure(CBNAME) \ | |
467 | void CBNAME(int a, int b, const wxString& c) { \ | |
4f89f6a3 | 468 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
469 | if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \ |
470 | PyObject* s = wx2PyString(c); \ | |
471 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\ | |
472 | Py_DECREF(s); \ | |
473 | } \ | |
4f89f6a3 | 474 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
475 | } |
476 | ||
477 | ||
478 | #define PYCALLBACK_STRING_INTINT(PCLASS, CBNAME) \ | |
479 | wxString CBNAME(int a, int b) { \ | |
480 | bool found; \ | |
4f89f6a3 | 481 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
482 | wxString rval; \ |
483 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
484 | PyObject* ro; \ | |
485 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
486 | if (ro) { \ | |
487 | rval = Py2wxString(ro); \ | |
488 | Py_DECREF(ro); \ | |
489 | } \ | |
490 | } \ | |
4f89f6a3 | 491 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
492 | if (! found) \ |
493 | rval = PCLASS::CBNAME(a, b); \ | |
494 | return rval; \ | |
495 | } \ | |
496 | wxString base_##CBNAME(int a, int b) { \ | |
497 | return PCLASS::CBNAME(a, b); \ | |
498 | } | |
499 | ||
500 | ||
501 | #define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME) \ | |
502 | bool CBNAME(int a, int b, const wxString& c) { \ | |
503 | bool rval = 0; \ | |
504 | bool found; \ | |
4f89f6a3 | 505 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
506 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
507 | PyObject* s = wx2PyString(c); \ | |
508 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\ | |
509 | Py_DECREF(s); \ | |
510 | } \ | |
4f89f6a3 | 511 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
512 | if (! found) \ |
513 | rval = PCLASS::CBNAME(a,b,c); \ | |
514 | return rval; \ | |
515 | } \ | |
516 | bool base_##CBNAME(int a, int b, const wxString& c) { \ | |
517 | return PCLASS::CBNAME(a,b,c); \ | |
518 | } | |
519 | ||
520 | ||
521 | ||
522 | ||
523 | #define PYCALLBACK_LONG_INTINT(PCLASS, CBNAME) \ | |
524 | long CBNAME(int a, int b) { \ | |
525 | long rval; \ | |
526 | bool found; \ | |
4f89f6a3 | 527 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
528 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
529 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
4f89f6a3 | 530 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
531 | if (! found) \ |
532 | rval = PCLASS::CBNAME(a,b); \ | |
533 | return rval; \ | |
534 | } \ | |
535 | long base_##CBNAME(int a, int b) { \ | |
536 | return PCLASS::CBNAME(a,b); \ | |
537 | } | |
538 | ||
539 | ||
540 | ||
541 | #define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME) \ | |
542 | bool CBNAME(int a, int b) { \ | |
543 | bool rval = 0; \ | |
544 | bool found; \ | |
4f89f6a3 | 545 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
546 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
547 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
4f89f6a3 | 548 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
549 | if (! found) \ |
550 | rval = PCLASS::CBNAME(a,b); \ | |
551 | return rval; \ | |
552 | } \ | |
553 | bool base_##CBNAME(int a, int b) { \ | |
554 | return PCLASS::CBNAME(a,b); \ | |
555 | } | |
556 | ||
557 | ||
558 | ||
559 | #define PYCALLBACK_DOUBLE_INTINT(PCLASS, CBNAME) \ | |
560 | double CBNAME(int a, int b) { \ | |
561 | bool found; \ | |
4f89f6a3 | 562 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
563 | double rval; \ |
564 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
565 | PyObject* ro; \ | |
566 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \ | |
567 | if (ro) { \ | |
568 | PyObject* str = PyObject_Str(ro); \ | |
569 | rval = PyFloat_AsDouble(str); \ | |
570 | Py_DECREF(ro); Py_DECREF(str); \ | |
571 | } \ | |
572 | } \ | |
4f89f6a3 | 573 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
574 | if (! found) \ |
575 | rval = PCLASS::CBNAME(a, b); \ | |
576 | return rval; \ | |
577 | } \ | |
578 | double base_##CBNAME(int a, int b) { \ | |
579 | return PCLASS::CBNAME(a, b); \ | |
580 | } | |
581 | ||
582 | ||
583 | ||
584 | #define PYCALLBACK__(PCLASS, CBNAME) \ | |
585 | void CBNAME() { \ | |
586 | bool found; \ | |
4f89f6a3 | 587 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
588 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
589 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ | |
4f89f6a3 | 590 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
591 | if (! found) \ |
592 | PCLASS::CBNAME(); \ | |
593 | } \ | |
594 | void base_##CBNAME() { \ | |
595 | PCLASS::CBNAME(); \ | |
596 | } | |
597 | ||
598 | ||
599 | ||
600 | ||
601 | #define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME) \ | |
602 | bool CBNAME(size_t a, size_t b) { \ | |
603 | bool rval = 0; \ | |
604 | bool found; \ | |
4f89f6a3 | 605 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
606 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
607 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
4f89f6a3 | 608 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
609 | if (! found) \ |
610 | rval = PCLASS::CBNAME(a,b); \ | |
611 | return rval; \ | |
612 | } \ | |
613 | bool base_##CBNAME(size_t a, size_t b) { \ | |
614 | return PCLASS::CBNAME(a,b); \ | |
615 | } | |
616 | ||
617 | ||
618 | ||
619 | #define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME) \ | |
620 | bool CBNAME(size_t a) { \ | |
621 | bool rval = 0; \ | |
622 | bool found; \ | |
4f89f6a3 | 623 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
624 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
625 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(i)", a)); \ | |
4f89f6a3 | 626 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
627 | if (! found) \ |
628 | rval = PCLASS::CBNAME(a); \ | |
629 | return rval; \ | |
630 | } \ | |
631 | bool base_##CBNAME(size_t a) { \ | |
632 | return PCLASS::CBNAME(a); \ | |
633 | } | |
634 | ||
635 | ||
636 | #define PYCALLBACK_STRING_INT(PCLASS, CBNAME) \ | |
637 | wxString CBNAME(int a) { \ | |
638 | bool found; \ | |
4f89f6a3 | 639 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
640 | wxString rval; \ |
641 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
642 | PyObject* ro; \ | |
643 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(i)",a)); \ | |
644 | if (ro) { \ | |
645 | rval = Py2wxString(ro); \ | |
646 | Py_DECREF(ro); \ | |
647 | } \ | |
648 | } \ | |
4f89f6a3 | 649 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
650 | if (! found) \ |
651 | rval = PCLASS::CBNAME(a); \ | |
652 | return rval; \ | |
653 | } \ | |
654 | wxString base_##CBNAME(int a) { \ | |
655 | return PCLASS::CBNAME(a); \ | |
656 | } | |
657 | ||
658 | ||
659 | #define PYCALLBACK__INTSTRING(PCLASS, CBNAME) \ | |
660 | void CBNAME(int a, const wxString& c) { \ | |
661 | bool found; \ | |
4f89f6a3 | 662 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
663 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
664 | PyObject* s = wx2PyString(c); \ | |
665 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)",a,s)); \ | |
666 | Py_DECREF(s); \ | |
667 | } \ | |
4f89f6a3 | 668 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
669 | if (! found) \ |
670 | PCLASS::CBNAME(a,c); \ | |
671 | } \ | |
672 | void base_##CBNAME(int a, const wxString& c) { \ | |
673 | PCLASS::CBNAME(a,c); \ | |
674 | } | |
675 | ||
676 | ||
677 | ||
678 | ||
679 | #define PYCALLBACK_BOOL_(PCLASS, CBNAME) \ | |
680 | bool CBNAME() { \ | |
681 | bool rval = 0; \ | |
682 | bool found; \ | |
4f89f6a3 | 683 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
684 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
685 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \ | |
4f89f6a3 | 686 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
687 | if (! found) \ |
688 | rval = PCLASS::CBNAME(); \ | |
689 | return rval; \ | |
690 | } \ | |
691 | bool base_##CBNAME() { \ | |
692 | return PCLASS::CBNAME(); \ | |
693 | } | |
694 | ||
695 | ||
696 | ||
697 | #define PYCALLBACK__SIZETINT(PCLASS, CBNAME) \ | |
698 | void CBNAME(size_t a, int b) { \ | |
699 | bool found; \ | |
4f89f6a3 | 700 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
701 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
702 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \ | |
4f89f6a3 | 703 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
704 | if (! found) \ |
705 | PCLASS::CBNAME(a,b); \ | |
706 | } \ | |
707 | void base_##CBNAME(size_t a, int b) { \ | |
708 | PCLASS::CBNAME(a,b); \ | |
709 | } | |
710 | ||
711 | ||
712 | ||
713 | ||
714 | #define PYCALLBACK__INTINTLONG(PCLASS, CBNAME) \ | |
715 | void CBNAME(int a, int b, long c) { \ | |
716 | bool found; \ | |
4f89f6a3 | 717 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
718 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
719 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \ | |
4f89f6a3 | 720 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
721 | if (! found) \ |
722 | PCLASS::CBNAME(a,b,c); \ | |
723 | } \ | |
724 | void base_##CBNAME(int a, int b, long c) { \ | |
725 | PCLASS::CBNAME(a,b,c); \ | |
726 | } | |
727 | ||
728 | ||
729 | ||
730 | ||
731 | #define PYCALLBACK__INTINTDOUBLE(PCLASS, CBNAME) \ | |
732 | void CBNAME(int a, int b, double c) { \ | |
733 | bool found; \ | |
4f89f6a3 | 734 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
735 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
736 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iif)", a,b,c)); \ | |
4f89f6a3 | 737 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
738 | if (! found) \ |
739 | PCLASS::CBNAME(a,b,c); \ | |
740 | } \ | |
741 | void base_##CBNAME(int a, int b, double c) { \ | |
742 | PCLASS::CBNAME(a,b,c); \ | |
743 | } | |
744 | ||
745 | ||
746 | ||
747 | #define PYCALLBACK__INTINTBOOL(PCLASS, CBNAME) \ | |
748 | void CBNAME(int a, int b, bool c) { \ | |
749 | bool found; \ | |
4f89f6a3 | 750 | bool blocked = wxPyBeginBlockThreads(); \ |
d14a1e28 RD |
751 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \ |
752 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \ | |
4f89f6a3 | 753 | wxPyEndBlockThreads(blocked); \ |
d14a1e28 RD |
754 | if (! found) \ |
755 | PCLASS::CBNAME(a,b,c); \ | |
756 | } \ | |
757 | void base_##CBNAME(int a, int b, bool c) { \ | |
758 | PCLASS::CBNAME(a,b,c); \ | |
759 | } | |
760 | ||
761 | ||
762 | ||
763 | ||
764 | ||
15afbcd0 RD |
765 | |
766 | SWIGSTATICINLINE(PyObject *) | |
767 | SWIG_FromCharPtr(const char* cptr) | |
768 | { | |
769 | size_t size = cptr ? strlen(cptr) : 0; | |
770 | if (cptr) { | |
771 | if (size > INT_MAX) { | |
772 | return SWIG_NewPointerObj(swig_const_cast(char*,cptr), | |
773 | SWIG_TypeQuery("char *"), 0); | |
774 | } else { | |
775 | return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); | |
776 | } | |
777 | } else { | |
778 | Py_INCREF(Py_None); | |
779 | return Py_None; | |
780 | } | |
781 | } | |
782 | ||
d14a1e28 RD |
783 | void wxGridCellRenderer__setOORInfo(wxGridCellRenderer *self,PyObject *_self){ |
784 | self->SetClientObject(new wxPyOORClientData(_self)); | |
785 | } | |
786 | ||
15afbcd0 RD |
787 | #include <limits.h> |
788 | ||
789 | ||
790 | SWIGSTATICINLINE(long) | |
791 | SWIG_CheckLongInRange(long value, const char* type, | |
792 | long min_value, long max_value) | |
793 | { | |
794 | if (!PyErr_Occurred()) { | |
795 | if (value < min_value) { | |
796 | PyObject *err = | |
797 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
798 | value, type, min_value); | |
799 | ||
800 | PyErr_SetObject(PyExc_OverflowError, err); | |
801 | Py_DECREF(err); | |
802 | } else if (value > max_value) { | |
803 | PyObject *err = | |
804 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
805 | value, type, max_value); | |
806 | PyErr_SetObject(PyExc_OverflowError, err); | |
807 | Py_DECREF(err); | |
808 | } | |
809 | } | |
810 | return value; | |
811 | } | |
812 | ||
813 | ||
814 | SWIGSTATICINLINE(long) | |
815 | SWIG_AsLong(PyObject * obj) | |
816 | { | |
69223c70 RD |
817 | if (PyNumber_Check(obj)) |
818 | return PyInt_AsLong(obj); | |
819 | else { | |
820 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
821 | obj->ob_type->tp_name); | |
822 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
823 | Py_DECREF(errmsg); | |
824 | return 0; | |
825 | } | |
15afbcd0 RD |
826 | } |
827 | ||
828 | ||
829 | #if INT_MAX != LONG_MAX | |
830 | SWIGSTATICINLINE(int) | |
831 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 832 | { |
15afbcd0 RD |
833 | return swig_numeric_cast(int, |
834 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
835 | "int", INT_MIN, INT_MAX)); | |
994141e6 | 836 | } |
15afbcd0 RD |
837 | #else |
838 | #define SWIG_AsInt SWIG_AsLong | |
839 | #endif | |
994141e6 RD |
840 | |
841 | ||
15afbcd0 RD |
842 | SWIGSTATICINLINE(bool) |
843 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
844 | { |
845 | return PyObject_IsTrue(obj) ? true : false; | |
846 | } | |
847 | ||
848 | ||
15afbcd0 RD |
849 | SWIGSTATICINLINE(int) |
850 | SWIG_CheckInt(PyObject* obj) | |
851 | { | |
852 | SWIG_AsInt(obj); | |
853 | if (PyErr_Occurred()) { | |
854 | PyErr_Clear(); | |
855 | return 0; | |
856 | } else { | |
857 | return 1; | |
858 | } | |
859 | } | |
860 | ||
861 | ||
862 | SWIGSTATICINLINE(int) | |
863 | SWIG_CheckBool(PyObject* obj) | |
864 | { | |
865 | SWIG_AsBool(obj); | |
866 | if (PyErr_Occurred()) { | |
867 | PyErr_Clear(); | |
868 | return 0; | |
869 | } else { | |
870 | return 1; | |
871 | } | |
872 | } | |
873 | ||
874 | ||
d14a1e28 RD |
875 | class wxPyGridCellRenderer : public wxGridCellRenderer |
876 | { | |
877 | public: | |
878 | wxPyGridCellRenderer() : wxGridCellRenderer() {}; | |
879 | ||
880 | // Implement Python callback aware virtual methods | |
881 | void Draw(wxGrid& grid, wxGridCellAttr& attr, | |
882 | wxDC& dc, const wxRect& rect, | |
883 | int row, int col, bool isSelected) { | |
4f89f6a3 | 884 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
885 | if (wxPyCBH_findCallback(m_myInst, "Draw")) { |
886 | PyObject* go = wxPyMake_wxObject(&grid); | |
887 | PyObject* dco = wxPyMake_wxObject(&dc); | |
888 | PyObject* ao = wxPyMake_wxGridCellAttr(&attr); | |
889 | PyObject* ro = wxPyConstructObject((void*)&rect, wxT("wxRect"), 0); | |
890 | ||
891 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOOOiii)", go, ao, dco, ro, | |
892 | row, col, isSelected)); | |
893 | Py_DECREF(go); | |
894 | Py_DECREF(ao); | |
895 | Py_DECREF(dco); | |
896 | Py_DECREF(ro); | |
897 | } | |
4f89f6a3 | 898 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
899 | } |
900 | ||
901 | wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc, | |
902 | int row, int col) { | |
903 | wxSize rval; | |
4f89f6a3 | 904 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
905 | if (wxPyCBH_findCallback(m_myInst, "GetBestSize")) { |
906 | PyObject* ro; | |
907 | wxSize* ptr; | |
908 | PyObject* go = wxPyMake_wxObject(&grid); | |
909 | PyObject* dco = wxPyMake_wxObject(&dc); | |
910 | PyObject* ao = wxPyMake_wxGridCellAttr(&attr); | |
911 | ||
912 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOOii)", | |
913 | go, ao, dco, | |
914 | row, col)); | |
915 | Py_DECREF(go); | |
916 | Py_DECREF(ao); | |
917 | Py_DECREF(dco); | |
918 | ||
919 | if (ro) { | |
920 | const char* errmsg = "GetBestSize should return a 2-tuple of integers or a wxSize object."; | |
921 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxSize"))) { | |
922 | rval = *ptr; | |
923 | } | |
924 | else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) { | |
925 | PyObject* o1 = PySequence_GetItem(ro, 0); | |
926 | PyObject* o2 = PySequence_GetItem(ro, 1); | |
927 | if (PyNumber_Check(o1) && PyNumber_Check(o2)) | |
928 | rval = wxSize(PyInt_AsLong(o1), PyInt_AsLong(o2)); | |
929 | else | |
930 | PyErr_SetString(PyExc_TypeError, errmsg); | |
931 | Py_DECREF(o1); | |
932 | Py_DECREF(o2); | |
933 | } | |
934 | else { | |
935 | PyErr_SetString(PyExc_TypeError, errmsg); | |
936 | } | |
937 | Py_DECREF(ro); | |
938 | } | |
939 | } | |
4f89f6a3 | 940 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
941 | return rval; |
942 | } | |
943 | ||
944 | ||
945 | wxGridCellRenderer *Clone() const { | |
946 | wxGridCellRenderer* rval = NULL; | |
4f89f6a3 | 947 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
948 | if (wxPyCBH_findCallback(m_myInst, "Clone")) { |
949 | PyObject* ro; | |
950 | wxGridCellRenderer* ptr; | |
951 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
952 | if (ro) { | |
953 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellRenderer"))) | |
954 | rval = ptr; | |
955 | Py_DECREF(ro); | |
956 | } | |
957 | } | |
4f89f6a3 | 958 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
959 | return rval; |
960 | } | |
961 | ||
962 | DEC_PYCALLBACK__STRING(SetParameters); | |
963 | ||
964 | PYPRIVATE; | |
965 | }; | |
966 | ||
967 | IMP_PYCALLBACK__STRING( wxPyGridCellRenderer, wxGridCellRenderer, SetParameters); | |
968 | ||
969 | ||
970 | void wxGridCellEditor__setOORInfo(wxGridCellEditor *self,PyObject *_self){ | |
971 | self->SetClientObject(new wxPyOORClientData(_self)); | |
972 | } | |
973 | ||
974 | class wxPyGridCellEditor : public wxGridCellEditor | |
975 | { | |
976 | public: | |
977 | wxPyGridCellEditor() : wxGridCellEditor() {} | |
978 | ||
979 | void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler) { | |
4f89f6a3 | 980 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
981 | if (wxPyCBH_findCallback(m_myInst, "Create")) { |
982 | PyObject* po = wxPyMake_wxObject(parent); | |
983 | PyObject* eo = wxPyMake_wxObject(evtHandler); | |
984 | ||
985 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OiO)", po, id, eo)); | |
986 | Py_DECREF(po); | |
987 | Py_DECREF(eo); | |
988 | } | |
4f89f6a3 | 989 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
990 | } |
991 | ||
992 | ||
993 | void BeginEdit(int row, int col, wxGrid* grid) { | |
4f89f6a3 | 994 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
995 | if (wxPyCBH_findCallback(m_myInst, "BeginEdit")) { |
996 | PyObject* go = wxPyMake_wxObject(grid); | |
997 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go)); | |
998 | Py_DECREF(go); | |
999 | } | |
4f89f6a3 | 1000 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1001 | } |
1002 | ||
1003 | ||
1004 | bool EndEdit(int row, int col, wxGrid* grid) { | |
e811c8ce | 1005 | bool rv = False; |
4f89f6a3 | 1006 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1007 | if (wxPyCBH_findCallback(m_myInst, "EndEdit")) { |
1008 | PyObject* go = wxPyMake_wxObject(grid); | |
1009 | rv = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go)); | |
1010 | Py_DECREF(go); | |
1011 | } | |
4f89f6a3 | 1012 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1013 | return rv; |
1014 | } | |
1015 | ||
1016 | ||
1017 | wxGridCellEditor* Clone() const { | |
1018 | wxGridCellEditor* rval = NULL; | |
4f89f6a3 | 1019 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1020 | if (wxPyCBH_findCallback(m_myInst, "Clone")) { |
1021 | PyObject* ro; | |
1022 | wxGridCellEditor* ptr; | |
1023 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1024 | if (ro) { | |
1025 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellEditor"))) | |
1026 | rval = ptr; | |
1027 | Py_DECREF(ro); | |
1028 | } | |
1029 | } | |
4f89f6a3 | 1030 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1031 | return rval; |
1032 | } | |
1033 | ||
1034 | ||
1035 | void Show(bool show, wxGridCellAttr *attr) { | |
1036 | bool found; | |
4f89f6a3 | 1037 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1038 | if ((found = wxPyCBH_findCallback(m_myInst, "Show"))) { |
1039 | PyObject* ao = wxPyMake_wxGridCellAttr(attr); | |
1040 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", show, ao)); | |
1041 | Py_DECREF(ao); | |
1042 | } | |
4f89f6a3 | 1043 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1044 | if (! found) |
1045 | wxGridCellEditor::Show(show, attr); | |
1046 | } | |
1047 | void base_Show(bool show, wxGridCellAttr *attr) { | |
1048 | wxGridCellEditor::Show(show, attr); | |
1049 | } | |
1050 | ||
1051 | ||
1052 | void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) { | |
1053 | bool found; | |
4f89f6a3 | 1054 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1055 | if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground)"))) { |
1056 | PyObject* ao = wxPyMake_wxGridCellAttr(attr); | |
1057 | PyObject* ro = wxPyConstructObject((void*)&rectCell, wxT("wxRect"), 0); | |
1058 | ||
1059 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", ro, ao)); | |
1060 | ||
1061 | Py_DECREF(ro); | |
1062 | Py_DECREF(ao); | |
1063 | } | |
4f89f6a3 | 1064 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1065 | if (! found) |
1066 | wxGridCellEditor::PaintBackground(rectCell, attr); | |
1067 | } | |
1068 | void base_PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) { | |
1069 | wxGridCellEditor::PaintBackground(rectCell, attr); | |
1070 | } | |
1071 | ||
1072 | ||
1073 | DEC_PYCALLBACK___pure(Reset); | |
1074 | DEC_PYCALLBACK__constany(SetSize, wxRect); | |
1075 | DEC_PYCALLBACK_bool_any(IsAcceptedKey, wxKeyEvent); | |
1076 | DEC_PYCALLBACK__any(StartingKey, wxKeyEvent); | |
1077 | DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent); | |
1078 | DEC_PYCALLBACK__(StartingClick); | |
1079 | DEC_PYCALLBACK__(Destroy); | |
1080 | DEC_PYCALLBACK__STRING(SetParameters); | |
1081 | DEC_PYCALLBACK_STRING__constpure(GetValue); | |
1082 | ||
1083 | PYPRIVATE; | |
1084 | }; | |
1085 | ||
1086 | ||
1087 | IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters); | |
1088 | IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset); | |
1089 | IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect); | |
1090 | IMP_PYCALLBACK_bool_any(wxPyGridCellEditor, wxGridCellEditor, IsAcceptedKey, wxKeyEvent); | |
1091 | IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent); | |
1092 | IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent); | |
1093 | IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick); | |
1094 | IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy); | |
1095 | IMP_PYCALLBACK_STRING__constpure(wxPyGridCellEditor, wxGridCellEditor, GetValue); | |
1096 | ||
1097 | ||
1098 | void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){ | |
1099 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1100 | } | |
1101 | ||
1102 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
1103 | PyObject* o2; | |
1104 | PyObject* o3; | |
1105 | ||
1106 | if (!target) { | |
1107 | target = o; | |
1108 | } else if (target == Py_None) { | |
1109 | Py_DECREF(Py_None); | |
1110 | target = o; | |
1111 | } else { | |
1112 | if (!PyTuple_Check(target)) { | |
1113 | o2 = target; | |
1114 | target = PyTuple_New(1); | |
1115 | PyTuple_SetItem(target, 0, o2); | |
1116 | } | |
1117 | o3 = PyTuple_New(1); | |
1118 | PyTuple_SetItem(o3, 0, o); | |
1119 | ||
1120 | o2 = target; | |
1121 | target = PySequence_Concat(o2, o3); | |
1122 | Py_DECREF(o2); | |
1123 | Py_DECREF(o3); | |
1124 | } | |
1125 | return target; | |
1126 | } | |
1127 | ||
1128 | void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){ | |
1129 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1130 | } | |
1131 | ||
15afbcd0 RD |
1132 | SWIGSTATICINLINE(unsigned long) |
1133 | SWIG_AsUnsignedLong(PyObject * obj) | |
1134 | { | |
1135 | if (PyLong_Check(obj)) { | |
1136 | return PyLong_AsUnsignedLong(obj); | |
1137 | } else { | |
69223c70 | 1138 | long i = SWIG_AsLong(obj); |
15afbcd0 | 1139 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 1140 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
15afbcd0 RD |
1141 | } |
1142 | return i; | |
1143 | } | |
1144 | } | |
1145 | ||
1146 | ||
1147 | SWIGSTATICINLINE(int) | |
1148 | SWIG_CheckUnsignedLong(PyObject* obj) | |
1149 | { | |
1150 | SWIG_AsUnsignedLong(obj); | |
1151 | if (PyErr_Occurred()) { | |
1152 | PyErr_Clear(); | |
1153 | return 0; | |
1154 | } else { | |
1155 | return 1; | |
1156 | } | |
1157 | } | |
1158 | ||
1159 | ||
d14a1e28 RD |
1160 | class wxPyGridCellAttrProvider : public wxGridCellAttrProvider |
1161 | { | |
1162 | public: | |
1163 | wxPyGridCellAttrProvider() : wxGridCellAttrProvider() {}; | |
1164 | ||
1165 | PYCALLBACK_GCA_INTINTKIND(wxGridCellAttrProvider, GetAttr); | |
1166 | PYCALLBACK__GCAINTINT(wxGridCellAttrProvider, SetAttr); | |
1167 | PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetRowAttr); | |
1168 | PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetColAttr); | |
1169 | ||
1170 | PYPRIVATE; | |
1171 | }; | |
1172 | ||
1173 | void wxGridTableBase__setOORInfo(wxGridTableBase *self,PyObject *_self){ | |
1174 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1175 | } | |
1176 | ||
15afbcd0 RD |
1177 | SWIGSTATICINLINE(int) |
1178 | SWIG_CheckLong(PyObject* obj) | |
994141e6 | 1179 | { |
15afbcd0 RD |
1180 | SWIG_AsLong(obj); |
1181 | if (PyErr_Occurred()) { | |
1182 | PyErr_Clear(); | |
1183 | return 0; | |
1184 | } else { | |
1185 | return 1; | |
1186 | } | |
994141e6 RD |
1187 | } |
1188 | ||
1189 | ||
15afbcd0 RD |
1190 | SWIGSTATICINLINE(double) |
1191 | SWIG_AsDouble(PyObject *obj) | |
994141e6 | 1192 | { |
69223c70 RD |
1193 | if (PyNumber_Check(obj)) |
1194 | return PyFloat_AsDouble(obj); | |
1195 | else { | |
1196 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1197 | obj->ob_type->tp_name); | |
1198 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1199 | Py_DECREF(errmsg); | |
1200 | return 0; | |
1201 | } | |
15afbcd0 RD |
1202 | } |
1203 | ||
1204 | ||
1205 | SWIGSTATICINLINE(int) | |
1206 | SWIG_CheckDouble(PyObject* obj) | |
1207 | { | |
1208 | SWIG_AsDouble(obj); | |
1209 | if (PyErr_Occurred()) { | |
1210 | PyErr_Clear(); | |
1211 | return 0; | |
1212 | } else { | |
1213 | return 1; | |
1214 | } | |
994141e6 RD |
1215 | } |
1216 | ||
1217 | ||
d14a1e28 RD |
1218 | class wxPyGridTableBase : public wxGridTableBase |
1219 | { | |
1220 | public: | |
1221 | wxPyGridTableBase() : wxGridTableBase() {} | |
1222 | ||
1223 | PYCALLBACK_INT__pure(GetNumberRows); | |
1224 | PYCALLBACK_INT__pure(GetNumberCols); | |
1225 | PYCALLBACK_BOOL_INTINT_pure(IsEmptyCell); | |
1226 | PYCALLBACK_STRING_INTINT(wxGridTableBase, GetTypeName); | |
1227 | PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanGetValueAs); | |
1228 | PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanSetValueAs); | |
1229 | PYCALLBACK__(wxGridTableBase, Clear); | |
1230 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertRows); | |
1231 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteRows); | |
1232 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertCols); | |
1233 | PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteCols); | |
1234 | PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendRows); | |
1235 | PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendCols); | |
1236 | PYCALLBACK_STRING_INT(wxGridTableBase, GetRowLabelValue); | |
1237 | PYCALLBACK_STRING_INT(wxGridTableBase, GetColLabelValue); | |
1238 | PYCALLBACK__INTSTRING(wxGridTableBase, SetRowLabelValue); | |
1239 | PYCALLBACK__INTSTRING(wxGridTableBase, SetColLabelValue); | |
1240 | PYCALLBACK_BOOL_(wxGridTableBase, CanHaveAttributes); | |
1241 | PYCALLBACK_GCA_INTINTKIND(wxGridTableBase, GetAttr); | |
1242 | PYCALLBACK__GCAINTINT(wxGridTableBase, SetAttr); | |
1243 | PYCALLBACK__GCAINT(wxGridTableBase, SetRowAttr); | |
1244 | PYCALLBACK__GCAINT(wxGridTableBase, SetColAttr); | |
1245 | ||
1246 | ||
1247 | wxString GetValue(int row, int col) { | |
4f89f6a3 | 1248 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1249 | wxString rval; |
1250 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { | |
1251 | PyObject* ro; | |
1252 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",row,col)); | |
1253 | if (ro) { | |
1254 | rval = Py2wxString(ro); | |
1255 | Py_DECREF(ro); | |
1256 | } | |
1257 | } | |
4f89f6a3 | 1258 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1259 | return rval; |
1260 | } | |
1261 | ||
1262 | void SetValue(int row, int col, const wxString& val) { | |
4f89f6a3 | 1263 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1264 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { |
1265 | PyObject* s = wx2PyString(val); | |
1266 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",row,col,s)); | |
1267 | Py_DECREF(s); | |
1268 | } | |
4f89f6a3 | 1269 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1270 | } |
1271 | ||
1272 | ||
1273 | // Map the Get/Set methods for the standard non-string types to | |
1274 | // the GetValue and SetValue python methods. | |
1275 | long GetValueAsLong( int row, int col ) { | |
1276 | long rval = 0; | |
4f89f6a3 | 1277 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1278 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { |
1279 | PyObject* ro; | |
1280 | PyObject* num; | |
1281 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col)); | |
1282 | if (ro && PyNumber_Check(ro)) { | |
1283 | num = PyNumber_Int(ro); | |
1284 | if (num) { | |
1285 | rval = PyInt_AsLong(num); | |
1286 | Py_DECREF(num); | |
1287 | } | |
1288 | Py_DECREF(ro); | |
1289 | } | |
1290 | } | |
4f89f6a3 | 1291 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1292 | return rval; |
1293 | } | |
1294 | ||
1295 | double GetValueAsDouble( int row, int col ) { | |
1296 | double rval = 0.0; | |
4f89f6a3 | 1297 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1298 | if (wxPyCBH_findCallback(m_myInst, "GetValue")) { |
1299 | PyObject* ro; | |
1300 | PyObject* num; | |
1301 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col)); | |
1302 | if (ro && PyNumber_Check(ro)) { | |
1303 | num = PyNumber_Float(ro); | |
1304 | if (num) { | |
1305 | rval = PyFloat_AsDouble(num); | |
1306 | Py_DECREF(num); | |
1307 | } | |
1308 | Py_DECREF(ro); | |
1309 | } | |
1310 | } | |
4f89f6a3 | 1311 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1312 | return rval; |
1313 | } | |
1314 | ||
1315 | bool GetValueAsBool( int row, int col ) { | |
1316 | return (bool)GetValueAsLong(row, col); | |
1317 | } | |
1318 | ||
1319 | void SetValueAsLong( int row, int col, long value ) { | |
4f89f6a3 | 1320 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1321 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { |
1322 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", row, col, value)); | |
1323 | } | |
4f89f6a3 | 1324 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1325 | } |
1326 | ||
1327 | void SetValueAsDouble( int row, int col, double value ) { | |
4f89f6a3 | 1328 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1329 | if (wxPyCBH_findCallback(m_myInst, "SetValue")) { |
1330 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iid)", row, col, value)); | |
1331 | } | |
4f89f6a3 | 1332 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1333 | } |
1334 | ||
1335 | void SetValueAsBool( int row, int col, bool value ) { | |
1336 | SetValueAsLong( row, col, (long)value ); | |
1337 | } | |
1338 | ||
1339 | ||
1340 | PYPRIVATE; | |
1341 | }; | |
1342 | ||
1343 | void wxPyGridTableBase_Destroy(wxPyGridTableBase *self){ delete self; } | |
d14a1e28 RD |
1344 | |
1345 | bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) { | |
1346 | ||
22faec7d RD |
1347 | if (source == Py_None) { |
1348 | **obj = wxGridCellCoords(-1,-1); | |
1349 | return True; | |
1350 | } | |
1351 | ||
d14a1e28 RD |
1352 | // If source is an object instance then it may already be the right type |
1353 | if (wxPySwigInstance_Check(source)) { | |
1354 | wxGridCellCoords* ptr; | |
1355 | if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) | |
1356 | goto error; | |
1357 | *obj = ptr; | |
e811c8ce | 1358 | return True; |
d14a1e28 RD |
1359 | } |
1360 | // otherwise a 2-tuple of integers is expected | |
1361 | else if (PySequence_Check(source) && PyObject_Length(source) == 2) { | |
1362 | PyObject* o1 = PySequence_GetItem(source, 0); | |
1363 | PyObject* o2 = PySequence_GetItem(source, 1); | |
1364 | if (!PyNumber_Check(o1) || !PyNumber_Check(o2)) { | |
1365 | Py_DECREF(o1); | |
1366 | Py_DECREF(o2); | |
1367 | goto error; | |
1368 | } | |
1369 | **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2)); | |
1370 | Py_DECREF(o1); | |
1371 | Py_DECREF(o2); | |
e811c8ce | 1372 | return True; |
d14a1e28 RD |
1373 | } |
1374 | ||
1375 | error: | |
1376 | PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object."); | |
e811c8ce | 1377 | return False; |
d14a1e28 RD |
1378 | } |
1379 | ||
1380 | ||
1381 | bool wxGridCellCoords_typecheck(PyObject* source) { | |
1382 | void* ptr; | |
1383 | ||
1384 | if (wxPySwigInstance_Check(source) && | |
1385 | wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords"))) | |
e811c8ce | 1386 | return True; |
d14a1e28 RD |
1387 | |
1388 | PyErr_Clear(); | |
1389 | if (PySequence_Check(source) && PySequence_Length(source) == 2) | |
e811c8ce | 1390 | return True; |
d14a1e28 | 1391 | |
e811c8ce | 1392 | return False; |
d14a1e28 RD |
1393 | } |
1394 | ||
1395 | ||
1396 | PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source) | |
1397 | { | |
1398 | PyObject* list = PyList_New(0); | |
1399 | size_t idx; | |
1400 | for (idx = 0; idx < source.GetCount(); idx += 1) { | |
1401 | wxGridCellCoords& coord = source.Item(idx); | |
1402 | PyObject* tup = PyTuple_New(2); | |
1403 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(coord.GetRow())); | |
1404 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(coord.GetCol())); | |
1405 | PyList_Append(list, tup); | |
1406 | Py_DECREF(tup); | |
1407 | } | |
1408 | return list; | |
1409 | } | |
1410 | ||
22faec7d RD |
1411 | PyObject *wxGridCellCoords_asTuple(wxGridCellCoords *self){ |
1412 | PyObject* tup = PyTuple_New(2); | |
1413 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1414 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1415 | return tup; | |
1416 | } | |
d14a1e28 RD |
1417 | |
1418 | typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES; | |
1419 | ||
1420 | wxGridCellCoords wxGrid_XYToCell(wxGrid *self,int x,int y){ | |
1421 | wxGridCellCoords rv; | |
1422 | self->XYToCell(x, y, rv); | |
1423 | return rv; | |
1424 | } | |
1425 | #ifdef __cplusplus | |
1426 | extern "C" { | |
1427 | #endif | |
b2dc1044 RD |
1428 | static int _wrap_DateTimeFormatStr_set(PyObject *_val) { |
1429 | PyErr_SetString(PyExc_TypeError,"Variable DateTimeFormatStr is read-only."); | |
1430 | return 1; | |
1431 | } | |
1432 | ||
1433 | ||
1434 | static PyObject *_wrap_DateTimeFormatStr_get() { | |
1435 | PyObject *pyobj; | |
1436 | ||
1437 | { | |
1438 | #if wxUSE_UNICODE | |
1439 | pyobj = PyUnicode_FromWideChar((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len()); | |
1440 | #else | |
1441 | pyobj = PyString_FromStringAndSize((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len()); | |
1442 | #endif | |
1443 | } | |
1444 | return pyobj; | |
1445 | } | |
1446 | ||
1447 | ||
d14a1e28 RD |
1448 | static int _wrap_GridNoCellCoords_set(PyObject *_val) { |
1449 | PyErr_SetString(PyExc_TypeError,"Variable GridNoCellCoords is read-only."); | |
1450 | return 1; | |
1451 | } | |
1452 | ||
1453 | ||
1454 | static PyObject *_wrap_GridNoCellCoords_get() { | |
1455 | PyObject *pyobj; | |
1456 | ||
15afbcd0 | 1457 | pyobj = SWIG_NewPointerObj((void *)(&wxGridNoCellCoords), SWIGTYPE_p_wxGridCellCoords, 0); |
d14a1e28 RD |
1458 | return pyobj; |
1459 | } | |
1460 | ||
1461 | ||
1462 | static int _wrap_GridNoCellRect_set(PyObject *_val) { | |
1463 | PyErr_SetString(PyExc_TypeError,"Variable GridNoCellRect is read-only."); | |
1464 | return 1; | |
1465 | } | |
1466 | ||
1467 | ||
1468 | static PyObject *_wrap_GridNoCellRect_get() { | |
1469 | PyObject *pyobj; | |
1470 | ||
15afbcd0 | 1471 | pyobj = SWIG_NewPointerObj((void *)(&wxGridNoCellRect), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
1472 | return pyobj; |
1473 | } | |
1474 | ||
1475 | ||
1476 | static PyObject *_wrap_GridCellRenderer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1477 | PyObject *resultobj; | |
1478 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1479 | PyObject *arg2 = (PyObject *) 0 ; | |
1480 | PyObject * obj0 = 0 ; | |
1481 | PyObject * obj1 = 0 ; | |
1482 | char *kwnames[] = { | |
1483 | (char *) "self",(char *) "_self", NULL | |
1484 | }; | |
1485 | ||
1486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1489 | arg2 = obj1; |
1490 | { | |
1491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1492 | wxGridCellRenderer__setOORInfo(arg1,arg2); | |
1493 | ||
1494 | wxPyEndAllowThreads(__tstate); | |
1495 | if (PyErr_Occurred()) SWIG_fail; | |
1496 | } | |
1497 | Py_INCREF(Py_None); resultobj = Py_None; | |
1498 | return resultobj; | |
1499 | fail: | |
1500 | return NULL; | |
1501 | } | |
1502 | ||
1503 | ||
1504 | static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1505 | PyObject *resultobj; | |
1506 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1507 | wxString *arg2 = 0 ; | |
e811c8ce | 1508 | bool temp2 = False ; |
d14a1e28 RD |
1509 | PyObject * obj0 = 0 ; |
1510 | PyObject * obj1 = 0 ; | |
1511 | char *kwnames[] = { | |
1512 | (char *) "self",(char *) "params", NULL | |
1513 | }; | |
1514 | ||
1515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1518 | { |
1519 | arg2 = wxString_in_helper(obj1); | |
1520 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 1521 | temp2 = True; |
d14a1e28 RD |
1522 | } |
1523 | { | |
1524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1525 | (arg1)->SetParameters((wxString const &)*arg2); | |
1526 | ||
1527 | wxPyEndAllowThreads(__tstate); | |
1528 | if (PyErr_Occurred()) SWIG_fail; | |
1529 | } | |
1530 | Py_INCREF(Py_None); resultobj = Py_None; | |
1531 | { | |
1532 | if (temp2) | |
1533 | delete arg2; | |
1534 | } | |
1535 | return resultobj; | |
1536 | fail: | |
1537 | { | |
1538 | if (temp2) | |
1539 | delete arg2; | |
1540 | } | |
1541 | return NULL; | |
1542 | } | |
1543 | ||
1544 | ||
1545 | static PyObject *_wrap_GridCellRenderer_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1546 | PyObject *resultobj; | |
1547 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1548 | PyObject * obj0 = 0 ; | |
1549 | char *kwnames[] = { | |
1550 | (char *) "self", NULL | |
1551 | }; | |
1552 | ||
1553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_IncRef",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1556 | { |
1557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1558 | (arg1)->IncRef(); | |
1559 | ||
1560 | wxPyEndAllowThreads(__tstate); | |
1561 | if (PyErr_Occurred()) SWIG_fail; | |
1562 | } | |
1563 | Py_INCREF(Py_None); resultobj = Py_None; | |
1564 | return resultobj; | |
1565 | fail: | |
1566 | return NULL; | |
1567 | } | |
1568 | ||
1569 | ||
1570 | static PyObject *_wrap_GridCellRenderer_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1571 | PyObject *resultobj; | |
1572 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1573 | PyObject * obj0 = 0 ; | |
1574 | char *kwnames[] = { | |
1575 | (char *) "self", NULL | |
1576 | }; | |
1577 | ||
1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_DecRef",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1581 | { |
1582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1583 | (arg1)->DecRef(); | |
1584 | ||
1585 | wxPyEndAllowThreads(__tstate); | |
1586 | if (PyErr_Occurred()) SWIG_fail; | |
1587 | } | |
1588 | Py_INCREF(Py_None); resultobj = Py_None; | |
1589 | return resultobj; | |
1590 | fail: | |
1591 | return NULL; | |
1592 | } | |
1593 | ||
1594 | ||
1595 | static PyObject *_wrap_GridCellRenderer_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1596 | PyObject *resultobj; | |
1597 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1598 | wxGrid *arg2 = 0 ; | |
1599 | wxGridCellAttr *arg3 = 0 ; | |
1600 | wxDC *arg4 = 0 ; | |
1601 | wxRect *arg5 = 0 ; | |
1602 | int arg6 ; | |
1603 | int arg7 ; | |
1604 | bool arg8 ; | |
1605 | wxRect temp5 ; | |
1606 | PyObject * obj0 = 0 ; | |
1607 | PyObject * obj1 = 0 ; | |
1608 | PyObject * obj2 = 0 ; | |
1609 | PyObject * obj3 = 0 ; | |
1610 | PyObject * obj4 = 0 ; | |
994141e6 RD |
1611 | PyObject * obj5 = 0 ; |
1612 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
1613 | PyObject * obj7 = 0 ; |
1614 | char *kwnames[] = { | |
1615 | (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "rect",(char *) "row",(char *) "col",(char *) "isSelected", NULL | |
1616 | }; | |
1617 | ||
994141e6 | 1618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GridCellRenderer_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1621 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
1622 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1623 | SWIG_fail; | |
d14a1e28 | 1624 | if (arg2 == NULL) { |
15afbcd0 RD |
1625 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1626 | SWIG_fail; | |
d14a1e28 | 1627 | } |
15afbcd0 RD |
1628 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
1629 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1630 | SWIG_fail; | |
d14a1e28 | 1631 | if (arg3 == NULL) { |
15afbcd0 RD |
1632 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1633 | SWIG_fail; | |
d14a1e28 | 1634 | } |
15afbcd0 RD |
1635 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, |
1636 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1637 | SWIG_fail; | |
d14a1e28 | 1638 | if (arg4 == NULL) { |
15afbcd0 RD |
1639 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1640 | SWIG_fail; | |
d14a1e28 RD |
1641 | } |
1642 | { | |
1643 | arg5 = &temp5; | |
1644 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
1645 | } | |
15afbcd0 RD |
1646 | arg6 = (int) SWIG_AsInt(obj5); |
1647 | if (PyErr_Occurred()) SWIG_fail; | |
1648 | arg7 = (int) SWIG_AsInt(obj6); | |
1649 | if (PyErr_Occurred()) SWIG_fail; | |
1650 | arg8 = (bool) SWIG_AsBool(obj7); | |
1651 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1652 | { |
1653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1654 | (arg1)->Draw(*arg2,*arg3,*arg4,(wxRect const &)*arg5,arg6,arg7,arg8); | |
1655 | ||
1656 | wxPyEndAllowThreads(__tstate); | |
1657 | if (PyErr_Occurred()) SWIG_fail; | |
1658 | } | |
1659 | Py_INCREF(Py_None); resultobj = Py_None; | |
1660 | return resultobj; | |
1661 | fail: | |
1662 | return NULL; | |
1663 | } | |
1664 | ||
1665 | ||
1666 | static PyObject *_wrap_GridCellRenderer_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1667 | PyObject *resultobj; | |
1668 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1669 | wxGrid *arg2 = 0 ; | |
1670 | wxGridCellAttr *arg3 = 0 ; | |
1671 | wxDC *arg4 = 0 ; | |
1672 | int arg5 ; | |
1673 | int arg6 ; | |
1674 | wxSize result; | |
1675 | PyObject * obj0 = 0 ; | |
1676 | PyObject * obj1 = 0 ; | |
1677 | PyObject * obj2 = 0 ; | |
1678 | PyObject * obj3 = 0 ; | |
994141e6 RD |
1679 | PyObject * obj4 = 0 ; |
1680 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
1681 | char *kwnames[] = { |
1682 | (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "row",(char *) "col", NULL | |
1683 | }; | |
1684 | ||
994141e6 | 1685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GridCellRenderer_GetBestSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
1686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1688 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
1689 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1690 | SWIG_fail; | |
d14a1e28 | 1691 | if (arg2 == NULL) { |
15afbcd0 RD |
1692 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1693 | SWIG_fail; | |
d14a1e28 | 1694 | } |
15afbcd0 RD |
1695 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
1696 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1697 | SWIG_fail; | |
d14a1e28 | 1698 | if (arg3 == NULL) { |
15afbcd0 RD |
1699 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1700 | SWIG_fail; | |
d14a1e28 | 1701 | } |
15afbcd0 RD |
1702 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, |
1703 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1704 | SWIG_fail; | |
d14a1e28 | 1705 | if (arg4 == NULL) { |
15afbcd0 RD |
1706 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1707 | SWIG_fail; | |
994141e6 | 1708 | } |
15afbcd0 RD |
1709 | arg5 = (int) SWIG_AsInt(obj4); |
1710 | if (PyErr_Occurred()) SWIG_fail; | |
1711 | arg6 = (int) SWIG_AsInt(obj5); | |
1712 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1713 | { |
1714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1715 | result = (arg1)->GetBestSize(*arg2,*arg3,*arg4,arg5,arg6); | |
1716 | ||
1717 | wxPyEndAllowThreads(__tstate); | |
1718 | if (PyErr_Occurred()) SWIG_fail; | |
1719 | } | |
1720 | { | |
1721 | wxSize * resultptr; | |
1722 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 1723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1724 | } |
1725 | return resultobj; | |
1726 | fail: | |
1727 | return NULL; | |
1728 | } | |
1729 | ||
1730 | ||
1731 | static PyObject *_wrap_GridCellRenderer_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1732 | PyObject *resultobj; | |
1733 | wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ; | |
1734 | wxGridCellRenderer *result; | |
1735 | PyObject * obj0 = 0 ; | |
1736 | char *kwnames[] = { | |
1737 | (char *) "self", NULL | |
1738 | }; | |
1739 | ||
1740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellRenderer, |
1742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1743 | { |
1744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1745 | result = (wxGridCellRenderer *)((wxGridCellRenderer const *)arg1)->Clone(); | |
1746 | ||
1747 | wxPyEndAllowThreads(__tstate); | |
1748 | if (PyErr_Occurred()) SWIG_fail; | |
1749 | } | |
1750 | { | |
1751 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
1752 | } | |
1753 | return resultobj; | |
1754 | fail: | |
1755 | return NULL; | |
1756 | } | |
1757 | ||
1758 | ||
1759 | static PyObject * GridCellRenderer_swigregister(PyObject *self, PyObject *args) { | |
1760 | PyObject *obj; | |
1761 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1762 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellRenderer, obj); | |
1763 | Py_INCREF(obj); | |
1764 | return Py_BuildValue((char *)""); | |
1765 | } | |
1766 | static PyObject *_wrap_new_PyGridCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1767 | PyObject *resultobj; | |
1768 | wxPyGridCellRenderer *result; | |
1769 | char *kwnames[] = { | |
1770 | NULL | |
1771 | }; | |
1772 | ||
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellRenderer",kwnames)) goto fail; | |
1774 | { | |
1775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1776 | result = (wxPyGridCellRenderer *)new wxPyGridCellRenderer(); | |
1777 | ||
1778 | wxPyEndAllowThreads(__tstate); | |
1779 | if (PyErr_Occurred()) SWIG_fail; | |
1780 | } | |
15afbcd0 | 1781 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellRenderer, 1); |
d14a1e28 RD |
1782 | return resultobj; |
1783 | fail: | |
1784 | return NULL; | |
1785 | } | |
1786 | ||
1787 | ||
1788 | static PyObject *_wrap_PyGridCellRenderer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1789 | PyObject *resultobj; | |
1790 | wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; | |
1791 | PyObject *arg2 = (PyObject *) 0 ; | |
1792 | PyObject *arg3 = (PyObject *) 0 ; | |
1793 | PyObject * obj0 = 0 ; | |
1794 | PyObject * obj1 = 0 ; | |
1795 | PyObject * obj2 = 0 ; | |
1796 | char *kwnames[] = { | |
1797 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
1798 | }; | |
1799 | ||
1800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellRenderer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
1801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellRenderer, |
1802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1803 | arg2 = obj1; |
1804 | arg3 = obj2; | |
1805 | { | |
1806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1807 | (arg1)->_setCallbackInfo(arg2,arg3); | |
1808 | ||
1809 | wxPyEndAllowThreads(__tstate); | |
1810 | if (PyErr_Occurred()) SWIG_fail; | |
1811 | } | |
1812 | Py_INCREF(Py_None); resultobj = Py_None; | |
1813 | return resultobj; | |
1814 | fail: | |
1815 | return NULL; | |
1816 | } | |
1817 | ||
1818 | ||
1819 | static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1820 | PyObject *resultobj; | |
1821 | wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ; | |
1822 | wxString *arg2 = 0 ; | |
e811c8ce | 1823 | bool temp2 = False ; |
d14a1e28 RD |
1824 | PyObject * obj0 = 0 ; |
1825 | PyObject * obj1 = 0 ; | |
1826 | char *kwnames[] = { | |
1827 | (char *) "self",(char *) "params", NULL | |
1828 | }; | |
1829 | ||
1830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellRenderer_base_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellRenderer, |
1832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1833 | { |
1834 | arg2 = wxString_in_helper(obj1); | |
1835 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 1836 | temp2 = True; |
d14a1e28 RD |
1837 | } |
1838 | { | |
1839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1840 | (arg1)->base_SetParameters((wxString const &)*arg2); | |
1841 | ||
1842 | wxPyEndAllowThreads(__tstate); | |
1843 | if (PyErr_Occurred()) SWIG_fail; | |
1844 | } | |
1845 | Py_INCREF(Py_None); resultobj = Py_None; | |
1846 | { | |
1847 | if (temp2) | |
1848 | delete arg2; | |
1849 | } | |
1850 | return resultobj; | |
1851 | fail: | |
1852 | { | |
1853 | if (temp2) | |
1854 | delete arg2; | |
1855 | } | |
1856 | return NULL; | |
1857 | } | |
1858 | ||
1859 | ||
1860 | static PyObject * PyGridCellRenderer_swigregister(PyObject *self, PyObject *args) { | |
1861 | PyObject *obj; | |
1862 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1863 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellRenderer, obj); | |
1864 | Py_INCREF(obj); | |
1865 | return Py_BuildValue((char *)""); | |
1866 | } | |
1867 | static PyObject *_wrap_new_GridCellStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1868 | PyObject *resultobj; | |
1869 | wxGridCellStringRenderer *result; | |
1870 | char *kwnames[] = { | |
1871 | NULL | |
1872 | }; | |
1873 | ||
1874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellStringRenderer",kwnames)) goto fail; | |
1875 | { | |
1876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1877 | result = (wxGridCellStringRenderer *)new wxGridCellStringRenderer(); | |
1878 | ||
1879 | wxPyEndAllowThreads(__tstate); | |
1880 | if (PyErr_Occurred()) SWIG_fail; | |
1881 | } | |
15afbcd0 | 1882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellStringRenderer, 1); |
d14a1e28 RD |
1883 | return resultobj; |
1884 | fail: | |
1885 | return NULL; | |
1886 | } | |
1887 | ||
1888 | ||
1889 | static PyObject * GridCellStringRenderer_swigregister(PyObject *self, PyObject *args) { | |
1890 | PyObject *obj; | |
1891 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1892 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellStringRenderer, obj); | |
1893 | Py_INCREF(obj); | |
1894 | return Py_BuildValue((char *)""); | |
1895 | } | |
1896 | static PyObject *_wrap_new_GridCellNumberRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1897 | PyObject *resultobj; | |
1898 | wxGridCellNumberRenderer *result; | |
1899 | char *kwnames[] = { | |
1900 | NULL | |
1901 | }; | |
1902 | ||
1903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellNumberRenderer",kwnames)) goto fail; | |
1904 | { | |
1905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1906 | result = (wxGridCellNumberRenderer *)new wxGridCellNumberRenderer(); | |
1907 | ||
1908 | wxPyEndAllowThreads(__tstate); | |
1909 | if (PyErr_Occurred()) SWIG_fail; | |
1910 | } | |
15afbcd0 | 1911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellNumberRenderer, 1); |
d14a1e28 RD |
1912 | return resultobj; |
1913 | fail: | |
1914 | return NULL; | |
1915 | } | |
1916 | ||
1917 | ||
1918 | static PyObject * GridCellNumberRenderer_swigregister(PyObject *self, PyObject *args) { | |
1919 | PyObject *obj; | |
1920 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1921 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberRenderer, obj); | |
1922 | Py_INCREF(obj); | |
1923 | return Py_BuildValue((char *)""); | |
1924 | } | |
1925 | static PyObject *_wrap_new_GridCellFloatRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1926 | PyObject *resultobj; | |
1927 | int arg1 = (int) -1 ; | |
1928 | int arg2 = (int) -1 ; | |
1929 | wxGridCellFloatRenderer *result; | |
994141e6 RD |
1930 | PyObject * obj0 = 0 ; |
1931 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
1932 | char *kwnames[] = { |
1933 | (char *) "width",(char *) "precision", NULL | |
1934 | }; | |
1935 | ||
994141e6 RD |
1936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatRenderer",kwnames,&obj0,&obj1)) goto fail; |
1937 | if (obj0) { | |
15afbcd0 RD |
1938 | arg1 = (int) SWIG_AsInt(obj0); |
1939 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
1940 | } |
1941 | if (obj1) { | |
15afbcd0 RD |
1942 | arg2 = (int) SWIG_AsInt(obj1); |
1943 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1944 | } |
d14a1e28 RD |
1945 | { |
1946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1947 | result = (wxGridCellFloatRenderer *)new wxGridCellFloatRenderer(arg1,arg2); | |
1948 | ||
1949 | wxPyEndAllowThreads(__tstate); | |
1950 | if (PyErr_Occurred()) SWIG_fail; | |
1951 | } | |
15afbcd0 | 1952 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellFloatRenderer, 1); |
d14a1e28 RD |
1953 | return resultobj; |
1954 | fail: | |
1955 | return NULL; | |
1956 | } | |
1957 | ||
1958 | ||
1959 | static PyObject *_wrap_GridCellFloatRenderer_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1960 | PyObject *resultobj; | |
1961 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
1962 | int result; | |
1963 | PyObject * obj0 = 0 ; | |
1964 | char *kwnames[] = { | |
1965 | (char *) "self", NULL | |
1966 | }; | |
1967 | ||
1968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, |
1970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1971 | { |
1972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1973 | result = (int)((wxGridCellFloatRenderer const *)arg1)->GetWidth(); | |
1974 | ||
1975 | wxPyEndAllowThreads(__tstate); | |
1976 | if (PyErr_Occurred()) SWIG_fail; | |
1977 | } | |
15afbcd0 | 1978 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1979 | return resultobj; |
1980 | fail: | |
1981 | return NULL; | |
1982 | } | |
1983 | ||
1984 | ||
1985 | static PyObject *_wrap_GridCellFloatRenderer_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1986 | PyObject *resultobj; | |
1987 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
1988 | int arg2 ; | |
1989 | PyObject * obj0 = 0 ; | |
994141e6 | 1990 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1991 | char *kwnames[] = { |
1992 | (char *) "self",(char *) "width", NULL | |
1993 | }; | |
1994 | ||
994141e6 | 1995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, |
1997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1998 | arg2 = (int) SWIG_AsInt(obj1); | |
1999 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2000 | { |
2001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2002 | (arg1)->SetWidth(arg2); | |
2003 | ||
2004 | wxPyEndAllowThreads(__tstate); | |
2005 | if (PyErr_Occurred()) SWIG_fail; | |
2006 | } | |
2007 | Py_INCREF(Py_None); resultobj = Py_None; | |
2008 | return resultobj; | |
2009 | fail: | |
2010 | return NULL; | |
2011 | } | |
2012 | ||
2013 | ||
2014 | static PyObject *_wrap_GridCellFloatRenderer_GetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2015 | PyObject *resultobj; | |
2016 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
2017 | int result; | |
2018 | PyObject * obj0 = 0 ; | |
2019 | char *kwnames[] = { | |
2020 | (char *) "self", NULL | |
2021 | }; | |
2022 | ||
2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetPrecision",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, |
2025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2026 | { |
2027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2028 | result = (int)((wxGridCellFloatRenderer const *)arg1)->GetPrecision(); | |
2029 | ||
2030 | wxPyEndAllowThreads(__tstate); | |
2031 | if (PyErr_Occurred()) SWIG_fail; | |
2032 | } | |
15afbcd0 | 2033 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2034 | return resultobj; |
2035 | fail: | |
2036 | return NULL; | |
2037 | } | |
2038 | ||
2039 | ||
2040 | static PyObject *_wrap_GridCellFloatRenderer_SetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2041 | PyObject *resultobj; | |
2042 | wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ; | |
2043 | int arg2 ; | |
2044 | PyObject * obj0 = 0 ; | |
994141e6 | 2045 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2046 | char *kwnames[] = { |
2047 | (char *) "self",(char *) "precision", NULL | |
2048 | }; | |
2049 | ||
994141e6 | 2050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetPrecision",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatRenderer, |
2052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2053 | arg2 = (int) SWIG_AsInt(obj1); | |
2054 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2055 | { |
2056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2057 | (arg1)->SetPrecision(arg2); | |
2058 | ||
2059 | wxPyEndAllowThreads(__tstate); | |
2060 | if (PyErr_Occurred()) SWIG_fail; | |
2061 | } | |
2062 | Py_INCREF(Py_None); resultobj = Py_None; | |
2063 | return resultobj; | |
2064 | fail: | |
2065 | return NULL; | |
2066 | } | |
2067 | ||
2068 | ||
2069 | static PyObject * GridCellFloatRenderer_swigregister(PyObject *self, PyObject *args) { | |
2070 | PyObject *obj; | |
2071 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2072 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatRenderer, obj); | |
2073 | Py_INCREF(obj); | |
2074 | return Py_BuildValue((char *)""); | |
2075 | } | |
2076 | static PyObject *_wrap_new_GridCellBoolRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2077 | PyObject *resultobj; | |
2078 | wxGridCellBoolRenderer *result; | |
2079 | char *kwnames[] = { | |
2080 | NULL | |
2081 | }; | |
2082 | ||
2083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolRenderer",kwnames)) goto fail; | |
2084 | { | |
2085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2086 | result = (wxGridCellBoolRenderer *)new wxGridCellBoolRenderer(); | |
2087 | ||
2088 | wxPyEndAllowThreads(__tstate); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
2090 | } | |
15afbcd0 | 2091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellBoolRenderer, 1); |
d14a1e28 RD |
2092 | return resultobj; |
2093 | fail: | |
2094 | return NULL; | |
2095 | } | |
2096 | ||
2097 | ||
2098 | static PyObject * GridCellBoolRenderer_swigregister(PyObject *self, PyObject *args) { | |
2099 | PyObject *obj; | |
2100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2101 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolRenderer, obj); | |
2102 | Py_INCREF(obj); | |
2103 | return Py_BuildValue((char *)""); | |
2104 | } | |
2105 | static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2106 | PyObject *resultobj; | |
2107 | wxString arg1 = (wxString) wxPyDateTimeFormatStr ; | |
2108 | wxString arg2 = (wxString) wxPyDateTimeFormatStr ; | |
2109 | wxGridCellDateTimeRenderer *result; | |
d14a1e28 RD |
2110 | PyObject * obj0 = 0 ; |
2111 | PyObject * obj1 = 0 ; | |
2112 | char *kwnames[] = { | |
2113 | (char *) "outformat",(char *) "informat", NULL | |
2114 | }; | |
2115 | ||
2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail; | |
2117 | if (obj0) { | |
e811c8ce RD |
2118 | { |
2119 | wxString* sptr = wxString_in_helper(obj0); | |
2120 | if (sptr == NULL) SWIG_fail; | |
2121 | arg1 = *sptr; | |
2122 | delete sptr; | |
2123 | } | |
d14a1e28 RD |
2124 | } |
2125 | if (obj1) { | |
e811c8ce RD |
2126 | { |
2127 | wxString* sptr = wxString_in_helper(obj1); | |
2128 | if (sptr == NULL) SWIG_fail; | |
2129 | arg2 = *sptr; | |
2130 | delete sptr; | |
2131 | } | |
d14a1e28 RD |
2132 | } |
2133 | { | |
2134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2135 | result = (wxGridCellDateTimeRenderer *)new wxGridCellDateTimeRenderer(arg1,arg2); | |
2136 | ||
2137 | wxPyEndAllowThreads(__tstate); | |
2138 | if (PyErr_Occurred()) SWIG_fail; | |
2139 | } | |
15afbcd0 | 2140 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellDateTimeRenderer, 1); |
d14a1e28 RD |
2141 | return resultobj; |
2142 | fail: | |
2143 | return NULL; | |
2144 | } | |
2145 | ||
2146 | ||
2147 | static PyObject * GridCellDateTimeRenderer_swigregister(PyObject *self, PyObject *args) { | |
2148 | PyObject *obj; | |
2149 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2150 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellDateTimeRenderer, obj); | |
2151 | Py_INCREF(obj); | |
2152 | return Py_BuildValue((char *)""); | |
2153 | } | |
2154 | static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2155 | PyObject *resultobj; | |
2156 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2157 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2158 | wxGridCellEnumRenderer *result; | |
e811c8ce | 2159 | bool temp1 = False ; |
d14a1e28 RD |
2160 | PyObject * obj0 = 0 ; |
2161 | char *kwnames[] = { | |
2162 | (char *) "choices", NULL | |
2163 | }; | |
2164 | ||
2165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumRenderer",kwnames,&obj0)) goto fail; | |
2166 | if (obj0) { | |
2167 | { | |
2168 | arg1 = wxString_in_helper(obj0); | |
2169 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2170 | temp1 = True; |
d14a1e28 RD |
2171 | } |
2172 | } | |
2173 | { | |
2174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2175 | result = (wxGridCellEnumRenderer *)new wxGridCellEnumRenderer((wxString const &)*arg1); | |
2176 | ||
2177 | wxPyEndAllowThreads(__tstate); | |
2178 | if (PyErr_Occurred()) SWIG_fail; | |
2179 | } | |
15afbcd0 | 2180 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellEnumRenderer, 1); |
d14a1e28 RD |
2181 | { |
2182 | if (temp1) | |
2183 | delete arg1; | |
2184 | } | |
2185 | return resultobj; | |
2186 | fail: | |
2187 | { | |
2188 | if (temp1) | |
2189 | delete arg1; | |
2190 | } | |
2191 | return NULL; | |
2192 | } | |
2193 | ||
2194 | ||
2195 | static PyObject * GridCellEnumRenderer_swigregister(PyObject *self, PyObject *args) { | |
2196 | PyObject *obj; | |
2197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2198 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumRenderer, obj); | |
2199 | Py_INCREF(obj); | |
2200 | return Py_BuildValue((char *)""); | |
2201 | } | |
2202 | static PyObject *_wrap_new_GridCellAutoWrapStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2203 | PyObject *resultobj; | |
2204 | wxGridCellAutoWrapStringRenderer *result; | |
2205 | char *kwnames[] = { | |
2206 | NULL | |
2207 | }; | |
2208 | ||
2209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringRenderer",kwnames)) goto fail; | |
2210 | { | |
2211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2212 | result = (wxGridCellAutoWrapStringRenderer *)new wxGridCellAutoWrapStringRenderer(); | |
2213 | ||
2214 | wxPyEndAllowThreads(__tstate); | |
2215 | if (PyErr_Occurred()) SWIG_fail; | |
2216 | } | |
15afbcd0 | 2217 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, 1); |
d14a1e28 RD |
2218 | return resultobj; |
2219 | fail: | |
2220 | return NULL; | |
2221 | } | |
2222 | ||
2223 | ||
2224 | static PyObject * GridCellAutoWrapStringRenderer_swigregister(PyObject *self, PyObject *args) { | |
2225 | PyObject *obj; | |
2226 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2227 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, obj); | |
2228 | Py_INCREF(obj); | |
2229 | return Py_BuildValue((char *)""); | |
2230 | } | |
2231 | static PyObject *_wrap_GridCellEditor__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2232 | PyObject *resultobj; | |
2233 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2234 | PyObject *arg2 = (PyObject *) 0 ; | |
2235 | PyObject * obj0 = 0 ; | |
2236 | PyObject * obj1 = 0 ; | |
2237 | char *kwnames[] = { | |
2238 | (char *) "self",(char *) "_self", NULL | |
2239 | }; | |
2240 | ||
2241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2244 | arg2 = obj1; |
2245 | { | |
2246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2247 | wxGridCellEditor__setOORInfo(arg1,arg2); | |
2248 | ||
2249 | wxPyEndAllowThreads(__tstate); | |
2250 | if (PyErr_Occurred()) SWIG_fail; | |
2251 | } | |
2252 | Py_INCREF(Py_None); resultobj = Py_None; | |
2253 | return resultobj; | |
2254 | fail: | |
2255 | return NULL; | |
2256 | } | |
2257 | ||
2258 | ||
2259 | static PyObject *_wrap_GridCellEditor_IsCreated(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2260 | PyObject *resultobj; | |
2261 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2262 | bool result; | |
2263 | PyObject * obj0 = 0 ; | |
2264 | char *kwnames[] = { | |
2265 | (char *) "self", NULL | |
2266 | }; | |
2267 | ||
2268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IsCreated",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2271 | { |
2272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2273 | result = (bool)(arg1)->IsCreated(); | |
2274 | ||
2275 | wxPyEndAllowThreads(__tstate); | |
2276 | if (PyErr_Occurred()) SWIG_fail; | |
2277 | } | |
4f89f6a3 RD |
2278 | { |
2279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2280 | } | |
d14a1e28 RD |
2281 | return resultobj; |
2282 | fail: | |
2283 | return NULL; | |
2284 | } | |
2285 | ||
2286 | ||
2287 | static PyObject *_wrap_GridCellEditor_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2288 | PyObject *resultobj; | |
2289 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2290 | wxControl *result; | |
2291 | PyObject * obj0 = 0 ; | |
2292 | char *kwnames[] = { | |
2293 | (char *) "self", NULL | |
2294 | }; | |
2295 | ||
2296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2299 | { |
2300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2301 | result = (wxControl *)(arg1)->GetControl(); | |
2302 | ||
2303 | wxPyEndAllowThreads(__tstate); | |
2304 | if (PyErr_Occurred()) SWIG_fail; | |
2305 | } | |
2306 | { | |
2307 | resultobj = wxPyMake_wxObject(result); | |
2308 | } | |
2309 | return resultobj; | |
2310 | fail: | |
2311 | return NULL; | |
2312 | } | |
2313 | ||
2314 | ||
2315 | static PyObject *_wrap_GridCellEditor_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2316 | PyObject *resultobj; | |
2317 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2318 | wxControl *arg2 = (wxControl *) 0 ; | |
2319 | PyObject * obj0 = 0 ; | |
2320 | PyObject * obj1 = 0 ; | |
2321 | char *kwnames[] = { | |
2322 | (char *) "self",(char *) "control", NULL | |
2323 | }; | |
2324 | ||
2325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetControl",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2328 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
2329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2330 | { |
2331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2332 | (arg1)->SetControl(arg2); | |
2333 | ||
2334 | wxPyEndAllowThreads(__tstate); | |
2335 | if (PyErr_Occurred()) SWIG_fail; | |
2336 | } | |
2337 | Py_INCREF(Py_None); resultobj = Py_None; | |
2338 | return resultobj; | |
2339 | fail: | |
2340 | return NULL; | |
2341 | } | |
2342 | ||
2343 | ||
2344 | static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2345 | PyObject *resultobj; | |
2346 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2347 | wxGridCellAttr *result; | |
2348 | PyObject * obj0 = 0 ; | |
2349 | char *kwnames[] = { | |
2350 | (char *) "self", NULL | |
2351 | }; | |
2352 | ||
2353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetCellAttr",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2356 | { |
2357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2358 | result = (wxGridCellAttr *)(arg1)->GetCellAttr(); | |
2359 | ||
2360 | wxPyEndAllowThreads(__tstate); | |
2361 | if (PyErr_Occurred()) SWIG_fail; | |
2362 | } | |
2363 | { | |
2364 | resultobj = wxPyMake_wxGridCellAttr(result); | |
2365 | } | |
2366 | return resultobj; | |
2367 | fail: | |
2368 | return NULL; | |
2369 | } | |
2370 | ||
2371 | ||
2372 | static PyObject *_wrap_GridCellEditor_SetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2373 | PyObject *resultobj; | |
2374 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2375 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
2376 | PyObject * obj0 = 0 ; | |
2377 | PyObject * obj1 = 0 ; | |
2378 | char *kwnames[] = { | |
2379 | (char *) "self",(char *) "attr", NULL | |
2380 | }; | |
2381 | ||
2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetCellAttr",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2385 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
2386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2387 | { |
2388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2389 | (arg1)->SetCellAttr(arg2); | |
2390 | ||
2391 | wxPyEndAllowThreads(__tstate); | |
2392 | if (PyErr_Occurred()) SWIG_fail; | |
2393 | } | |
2394 | Py_INCREF(Py_None); resultobj = Py_None; | |
2395 | return resultobj; | |
2396 | fail: | |
2397 | return NULL; | |
2398 | } | |
2399 | ||
2400 | ||
2401 | static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2402 | PyObject *resultobj; | |
2403 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2404 | wxString *arg2 = 0 ; | |
e811c8ce | 2405 | bool temp2 = False ; |
d14a1e28 RD |
2406 | PyObject * obj0 = 0 ; |
2407 | PyObject * obj1 = 0 ; | |
2408 | char *kwnames[] = { | |
2409 | (char *) "self",(char *) "params", NULL | |
2410 | }; | |
2411 | ||
2412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2415 | { |
2416 | arg2 = wxString_in_helper(obj1); | |
2417 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2418 | temp2 = True; |
d14a1e28 RD |
2419 | } |
2420 | { | |
2421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2422 | (arg1)->SetParameters((wxString const &)*arg2); | |
2423 | ||
2424 | wxPyEndAllowThreads(__tstate); | |
2425 | if (PyErr_Occurred()) SWIG_fail; | |
2426 | } | |
2427 | Py_INCREF(Py_None); resultobj = Py_None; | |
2428 | { | |
2429 | if (temp2) | |
2430 | delete arg2; | |
2431 | } | |
2432 | return resultobj; | |
2433 | fail: | |
2434 | { | |
2435 | if (temp2) | |
2436 | delete arg2; | |
2437 | } | |
2438 | return NULL; | |
2439 | } | |
2440 | ||
2441 | ||
2442 | static PyObject *_wrap_GridCellEditor_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2443 | PyObject *resultobj; | |
2444 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2445 | PyObject * obj0 = 0 ; | |
2446 | char *kwnames[] = { | |
2447 | (char *) "self", NULL | |
2448 | }; | |
2449 | ||
2450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IncRef",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2453 | { |
2454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2455 | (arg1)->IncRef(); | |
2456 | ||
2457 | wxPyEndAllowThreads(__tstate); | |
2458 | if (PyErr_Occurred()) SWIG_fail; | |
2459 | } | |
2460 | Py_INCREF(Py_None); resultobj = Py_None; | |
2461 | return resultobj; | |
2462 | fail: | |
2463 | return NULL; | |
2464 | } | |
2465 | ||
2466 | ||
2467 | static PyObject *_wrap_GridCellEditor_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2468 | PyObject *resultobj; | |
2469 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2470 | PyObject * obj0 = 0 ; | |
2471 | char *kwnames[] = { | |
2472 | (char *) "self", NULL | |
2473 | }; | |
2474 | ||
2475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_DecRef",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2478 | { |
2479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2480 | (arg1)->DecRef(); | |
2481 | ||
2482 | wxPyEndAllowThreads(__tstate); | |
2483 | if (PyErr_Occurred()) SWIG_fail; | |
2484 | } | |
2485 | Py_INCREF(Py_None); resultobj = Py_None; | |
2486 | return resultobj; | |
2487 | fail: | |
2488 | return NULL; | |
2489 | } | |
2490 | ||
2491 | ||
2492 | static PyObject *_wrap_GridCellEditor_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2493 | PyObject *resultobj; | |
2494 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2495 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 2496 | int arg3 ; |
d14a1e28 RD |
2497 | wxEvtHandler *arg4 = (wxEvtHandler *) 0 ; |
2498 | PyObject * obj0 = 0 ; | |
2499 | PyObject * obj1 = 0 ; | |
994141e6 | 2500 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2501 | PyObject * obj3 = 0 ; |
2502 | char *kwnames[] = { | |
2503 | (char *) "self",(char *) "parent",(char *) "id",(char *) "evtHandler", NULL | |
2504 | }; | |
2505 | ||
994141e6 | 2506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_Create",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
2507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2509 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2511 | arg3 = (int) SWIG_AsInt(obj2); | |
2512 | if (PyErr_Occurred()) SWIG_fail; | |
2513 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxEvtHandler, | |
2514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2515 | { |
2516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2517 | (arg1)->Create(arg2,arg3,arg4); | |
2518 | ||
2519 | wxPyEndAllowThreads(__tstate); | |
2520 | if (PyErr_Occurred()) SWIG_fail; | |
2521 | } | |
2522 | Py_INCREF(Py_None); resultobj = Py_None; | |
2523 | return resultobj; | |
2524 | fail: | |
2525 | return NULL; | |
2526 | } | |
2527 | ||
2528 | ||
2529 | static PyObject *_wrap_GridCellEditor_BeginEdit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2530 | PyObject *resultobj; | |
2531 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2532 | int arg2 ; | |
2533 | int arg3 ; | |
2534 | wxGrid *arg4 = (wxGrid *) 0 ; | |
2535 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2536 | PyObject * obj1 = 0 ; |
2537 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2538 | PyObject * obj3 = 0 ; |
2539 | char *kwnames[] = { | |
2540 | (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL | |
2541 | }; | |
2542 | ||
994141e6 | 2543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_BeginEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
2544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2546 | arg2 = (int) SWIG_AsInt(obj1); | |
2547 | if (PyErr_Occurred()) SWIG_fail; | |
2548 | arg3 = (int) SWIG_AsInt(obj2); | |
2549 | if (PyErr_Occurred()) SWIG_fail; | |
2550 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGrid, | |
2551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2552 | { |
2553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2554 | (arg1)->BeginEdit(arg2,arg3,arg4); | |
2555 | ||
2556 | wxPyEndAllowThreads(__tstate); | |
2557 | if (PyErr_Occurred()) SWIG_fail; | |
2558 | } | |
2559 | Py_INCREF(Py_None); resultobj = Py_None; | |
2560 | return resultobj; | |
2561 | fail: | |
2562 | return NULL; | |
2563 | } | |
2564 | ||
2565 | ||
2566 | static PyObject *_wrap_GridCellEditor_EndEdit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2567 | PyObject *resultobj; | |
2568 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2569 | int arg2 ; | |
2570 | int arg3 ; | |
2571 | wxGrid *arg4 = (wxGrid *) 0 ; | |
2572 | bool result; | |
2573 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2574 | PyObject * obj1 = 0 ; |
2575 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2576 | PyObject * obj3 = 0 ; |
2577 | char *kwnames[] = { | |
2578 | (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL | |
2579 | }; | |
2580 | ||
994141e6 | 2581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_EndEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
2582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2584 | arg2 = (int) SWIG_AsInt(obj1); | |
2585 | if (PyErr_Occurred()) SWIG_fail; | |
2586 | arg3 = (int) SWIG_AsInt(obj2); | |
2587 | if (PyErr_Occurred()) SWIG_fail; | |
2588 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGrid, | |
2589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2590 | { |
2591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2592 | result = (bool)(arg1)->EndEdit(arg2,arg3,arg4); | |
2593 | ||
2594 | wxPyEndAllowThreads(__tstate); | |
2595 | if (PyErr_Occurred()) SWIG_fail; | |
2596 | } | |
4f89f6a3 RD |
2597 | { |
2598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2599 | } | |
d14a1e28 RD |
2600 | return resultobj; |
2601 | fail: | |
2602 | return NULL; | |
2603 | } | |
2604 | ||
2605 | ||
2606 | static PyObject *_wrap_GridCellEditor_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2607 | PyObject *resultobj; | |
2608 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2609 | PyObject * obj0 = 0 ; | |
2610 | char *kwnames[] = { | |
2611 | (char *) "self", NULL | |
2612 | }; | |
2613 | ||
2614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Reset",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2617 | { |
2618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2619 | (arg1)->Reset(); | |
2620 | ||
2621 | wxPyEndAllowThreads(__tstate); | |
2622 | if (PyErr_Occurred()) SWIG_fail; | |
2623 | } | |
2624 | Py_INCREF(Py_None); resultobj = Py_None; | |
2625 | return resultobj; | |
2626 | fail: | |
2627 | return NULL; | |
2628 | } | |
2629 | ||
2630 | ||
2631 | static PyObject *_wrap_GridCellEditor_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2632 | PyObject *resultobj; | |
2633 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2634 | wxGridCellEditor *result; | |
2635 | PyObject * obj0 = 0 ; | |
2636 | char *kwnames[] = { | |
2637 | (char *) "self", NULL | |
2638 | }; | |
2639 | ||
2640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2643 | { |
2644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2645 | result = (wxGridCellEditor *)((wxGridCellEditor const *)arg1)->Clone(); | |
2646 | ||
2647 | wxPyEndAllowThreads(__tstate); | |
2648 | if (PyErr_Occurred()) SWIG_fail; | |
2649 | } | |
2650 | { | |
2651 | resultobj = wxPyMake_wxGridCellEditor(result); | |
2652 | } | |
2653 | return resultobj; | |
2654 | fail: | |
2655 | return NULL; | |
2656 | } | |
2657 | ||
2658 | ||
2659 | static PyObject *_wrap_GridCellEditor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2660 | PyObject *resultobj; | |
2661 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2662 | wxRect *arg2 = 0 ; | |
2663 | wxRect temp2 ; | |
2664 | PyObject * obj0 = 0 ; | |
2665 | PyObject * obj1 = 0 ; | |
2666 | char *kwnames[] = { | |
2667 | (char *) "self",(char *) "rect", NULL | |
2668 | }; | |
2669 | ||
2670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2673 | { |
2674 | arg2 = &temp2; | |
2675 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2676 | } | |
2677 | { | |
2678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2679 | (arg1)->SetSize((wxRect const &)*arg2); | |
2680 | ||
2681 | wxPyEndAllowThreads(__tstate); | |
2682 | if (PyErr_Occurred()) SWIG_fail; | |
2683 | } | |
2684 | Py_INCREF(Py_None); resultobj = Py_None; | |
2685 | return resultobj; | |
2686 | fail: | |
2687 | return NULL; | |
2688 | } | |
2689 | ||
2690 | ||
2691 | static PyObject *_wrap_GridCellEditor_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2692 | PyObject *resultobj; | |
2693 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2694 | bool arg2 ; | |
2695 | wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ; | |
2696 | PyObject * obj0 = 0 ; | |
2697 | PyObject * obj1 = 0 ; | |
2698 | PyObject * obj2 = 0 ; | |
2699 | char *kwnames[] = { | |
2700 | (char *) "self",(char *) "show",(char *) "attr", NULL | |
2701 | }; | |
2702 | ||
2703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridCellEditor_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
2704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2706 | arg2 = (bool) SWIG_AsBool(obj1); | |
2707 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 2708 | if (obj2) { |
15afbcd0 RD |
2709 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
2710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2711 | } |
2712 | { | |
2713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2714 | (arg1)->Show(arg2,arg3); | |
2715 | ||
2716 | wxPyEndAllowThreads(__tstate); | |
2717 | if (PyErr_Occurred()) SWIG_fail; | |
2718 | } | |
2719 | Py_INCREF(Py_None); resultobj = Py_None; | |
2720 | return resultobj; | |
2721 | fail: | |
2722 | return NULL; | |
2723 | } | |
2724 | ||
2725 | ||
2726 | static PyObject *_wrap_GridCellEditor_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2727 | PyObject *resultobj; | |
2728 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2729 | wxRect *arg2 = 0 ; | |
2730 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
2731 | wxRect temp2 ; | |
2732 | PyObject * obj0 = 0 ; | |
2733 | PyObject * obj1 = 0 ; | |
2734 | PyObject * obj2 = 0 ; | |
2735 | char *kwnames[] = { | |
2736 | (char *) "self",(char *) "rectCell",(char *) "attr", NULL | |
2737 | }; | |
2738 | ||
2739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellEditor_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
2740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2742 | { |
2743 | arg2 = &temp2; | |
2744 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2745 | } | |
15afbcd0 RD |
2746 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
2747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2748 | { |
2749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2750 | (arg1)->PaintBackground((wxRect const &)*arg2,arg3); | |
2751 | ||
2752 | wxPyEndAllowThreads(__tstate); | |
2753 | if (PyErr_Occurred()) SWIG_fail; | |
2754 | } | |
2755 | Py_INCREF(Py_None); resultobj = Py_None; | |
2756 | return resultobj; | |
2757 | fail: | |
2758 | return NULL; | |
2759 | } | |
2760 | ||
2761 | ||
2762 | static PyObject *_wrap_GridCellEditor_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2763 | PyObject *resultobj; | |
2764 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2765 | wxKeyEvent *arg2 = 0 ; | |
2766 | bool result; | |
2767 | PyObject * obj0 = 0 ; | |
2768 | PyObject * obj1 = 0 ; | |
2769 | char *kwnames[] = { | |
2770 | (char *) "self",(char *) "event", NULL | |
2771 | }; | |
2772 | ||
2773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2776 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
2777 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2778 | SWIG_fail; | |
d14a1e28 | 2779 | if (arg2 == NULL) { |
15afbcd0 RD |
2780 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2781 | SWIG_fail; | |
d14a1e28 RD |
2782 | } |
2783 | { | |
2784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2785 | result = (bool)(arg1)->IsAcceptedKey(*arg2); | |
2786 | ||
2787 | wxPyEndAllowThreads(__tstate); | |
2788 | if (PyErr_Occurred()) SWIG_fail; | |
2789 | } | |
4f89f6a3 RD |
2790 | { |
2791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2792 | } | |
d14a1e28 RD |
2793 | return resultobj; |
2794 | fail: | |
2795 | return NULL; | |
2796 | } | |
2797 | ||
2798 | ||
2799 | static PyObject *_wrap_GridCellEditor_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2800 | PyObject *resultobj; | |
2801 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2802 | wxKeyEvent *arg2 = 0 ; | |
2803 | PyObject * obj0 = 0 ; | |
2804 | PyObject * obj1 = 0 ; | |
2805 | char *kwnames[] = { | |
2806 | (char *) "self",(char *) "event", NULL | |
2807 | }; | |
2808 | ||
2809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_StartingKey",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2812 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
2813 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2814 | SWIG_fail; | |
d14a1e28 | 2815 | if (arg2 == NULL) { |
15afbcd0 RD |
2816 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2817 | SWIG_fail; | |
d14a1e28 RD |
2818 | } |
2819 | { | |
2820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2821 | (arg1)->StartingKey(*arg2); | |
2822 | ||
2823 | wxPyEndAllowThreads(__tstate); | |
2824 | if (PyErr_Occurred()) SWIG_fail; | |
2825 | } | |
2826 | Py_INCREF(Py_None); resultobj = Py_None; | |
2827 | return resultobj; | |
2828 | fail: | |
2829 | return NULL; | |
2830 | } | |
2831 | ||
2832 | ||
2833 | static PyObject *_wrap_GridCellEditor_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2834 | PyObject *resultobj; | |
2835 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2836 | PyObject * obj0 = 0 ; | |
2837 | char *kwnames[] = { | |
2838 | (char *) "self", NULL | |
2839 | }; | |
2840 | ||
2841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_StartingClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2844 | { |
2845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2846 | (arg1)->StartingClick(); | |
2847 | ||
2848 | wxPyEndAllowThreads(__tstate); | |
2849 | if (PyErr_Occurred()) SWIG_fail; | |
2850 | } | |
2851 | Py_INCREF(Py_None); resultobj = Py_None; | |
2852 | return resultobj; | |
2853 | fail: | |
2854 | return NULL; | |
2855 | } | |
2856 | ||
2857 | ||
2858 | static PyObject *_wrap_GridCellEditor_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2859 | PyObject *resultobj; | |
2860 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2861 | wxKeyEvent *arg2 = 0 ; | |
2862 | PyObject * obj0 = 0 ; | |
2863 | PyObject * obj1 = 0 ; | |
2864 | char *kwnames[] = { | |
2865 | (char *) "self",(char *) "event", NULL | |
2866 | }; | |
2867 | ||
2868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_HandleReturn",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2871 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
2872 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2873 | SWIG_fail; | |
d14a1e28 | 2874 | if (arg2 == NULL) { |
15afbcd0 RD |
2875 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2876 | SWIG_fail; | |
d14a1e28 RD |
2877 | } |
2878 | { | |
2879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2880 | (arg1)->HandleReturn(*arg2); | |
2881 | ||
2882 | wxPyEndAllowThreads(__tstate); | |
2883 | if (PyErr_Occurred()) SWIG_fail; | |
2884 | } | |
2885 | Py_INCREF(Py_None); resultobj = Py_None; | |
2886 | return resultobj; | |
2887 | fail: | |
2888 | return NULL; | |
2889 | } | |
2890 | ||
2891 | ||
2892 | static PyObject *_wrap_GridCellEditor_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2893 | PyObject *resultobj; | |
2894 | wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ; | |
2895 | PyObject * obj0 = 0 ; | |
2896 | char *kwnames[] = { | |
2897 | (char *) "self", NULL | |
2898 | }; | |
2899 | ||
2900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEditor, |
2902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2903 | { |
2904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2905 | (arg1)->Destroy(); | |
2906 | ||
2907 | wxPyEndAllowThreads(__tstate); | |
2908 | if (PyErr_Occurred()) SWIG_fail; | |
2909 | } | |
2910 | Py_INCREF(Py_None); resultobj = Py_None; | |
2911 | return resultobj; | |
2912 | fail: | |
2913 | return NULL; | |
2914 | } | |
2915 | ||
2916 | ||
2917 | static PyObject * GridCellEditor_swigregister(PyObject *self, PyObject *args) { | |
2918 | PyObject *obj; | |
2919 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2920 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEditor, obj); | |
2921 | Py_INCREF(obj); | |
2922 | return Py_BuildValue((char *)""); | |
2923 | } | |
2924 | static PyObject *_wrap_new_PyGridCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2925 | PyObject *resultobj; | |
2926 | wxPyGridCellEditor *result; | |
2927 | char *kwnames[] = { | |
2928 | NULL | |
2929 | }; | |
2930 | ||
2931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellEditor",kwnames)) goto fail; | |
2932 | { | |
2933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2934 | result = (wxPyGridCellEditor *)new wxPyGridCellEditor(); | |
2935 | ||
2936 | wxPyEndAllowThreads(__tstate); | |
2937 | if (PyErr_Occurred()) SWIG_fail; | |
2938 | } | |
15afbcd0 | 2939 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellEditor, 1); |
d14a1e28 RD |
2940 | return resultobj; |
2941 | fail: | |
2942 | return NULL; | |
2943 | } | |
2944 | ||
2945 | ||
2946 | static PyObject *_wrap_PyGridCellEditor__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2947 | PyObject *resultobj; | |
2948 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2949 | PyObject *arg2 = (PyObject *) 0 ; | |
2950 | PyObject *arg3 = (PyObject *) 0 ; | |
2951 | PyObject * obj0 = 0 ; | |
2952 | PyObject * obj1 = 0 ; | |
2953 | PyObject * obj2 = 0 ; | |
2954 | char *kwnames[] = { | |
2955 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
2956 | }; | |
2957 | ||
2958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
2959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
2960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2961 | arg2 = obj1; |
2962 | arg3 = obj2; | |
2963 | { | |
2964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2965 | (arg1)->_setCallbackInfo(arg2,arg3); | |
2966 | ||
2967 | wxPyEndAllowThreads(__tstate); | |
2968 | if (PyErr_Occurred()) SWIG_fail; | |
2969 | } | |
2970 | Py_INCREF(Py_None); resultobj = Py_None; | |
2971 | return resultobj; | |
2972 | fail: | |
2973 | return NULL; | |
2974 | } | |
2975 | ||
2976 | ||
2977 | static PyObject *_wrap_PyGridCellEditor_base_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2978 | PyObject *resultobj; | |
2979 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
2980 | wxRect *arg2 = 0 ; | |
2981 | wxRect temp2 ; | |
2982 | PyObject * obj0 = 0 ; | |
2983 | PyObject * obj1 = 0 ; | |
2984 | char *kwnames[] = { | |
2985 | (char *) "self",(char *) "rect", NULL | |
2986 | }; | |
2987 | ||
2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
2990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2991 | { |
2992 | arg2 = &temp2; | |
2993 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2994 | } | |
2995 | { | |
2996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2997 | (arg1)->base_SetSize((wxRect const &)*arg2); | |
2998 | ||
2999 | wxPyEndAllowThreads(__tstate); | |
3000 | if (PyErr_Occurred()) SWIG_fail; | |
3001 | } | |
3002 | Py_INCREF(Py_None); resultobj = Py_None; | |
3003 | return resultobj; | |
3004 | fail: | |
3005 | return NULL; | |
3006 | } | |
3007 | ||
3008 | ||
3009 | static PyObject *_wrap_PyGridCellEditor_base_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3010 | PyObject *resultobj; | |
3011 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3012 | bool arg2 ; | |
3013 | wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ; | |
3014 | PyObject * obj0 = 0 ; | |
3015 | PyObject * obj1 = 0 ; | |
3016 | PyObject * obj2 = 0 ; | |
3017 | char *kwnames[] = { | |
3018 | (char *) "self",(char *) "show",(char *) "attr", NULL | |
3019 | }; | |
3020 | ||
3021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyGridCellEditor_base_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
3022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3024 | arg2 = (bool) SWIG_AsBool(obj1); | |
3025 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 3026 | if (obj2) { |
15afbcd0 RD |
3027 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
3028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3029 | } |
3030 | { | |
3031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3032 | (arg1)->base_Show(arg2,arg3); | |
3033 | ||
3034 | wxPyEndAllowThreads(__tstate); | |
3035 | if (PyErr_Occurred()) SWIG_fail; | |
3036 | } | |
3037 | Py_INCREF(Py_None); resultobj = Py_None; | |
3038 | return resultobj; | |
3039 | fail: | |
3040 | return NULL; | |
3041 | } | |
3042 | ||
3043 | ||
3044 | static PyObject *_wrap_PyGridCellEditor_base_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3045 | PyObject *resultobj; | |
3046 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3047 | wxRect *arg2 = 0 ; | |
3048 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
3049 | wxRect temp2 ; | |
3050 | PyObject * obj0 = 0 ; | |
3051 | PyObject * obj1 = 0 ; | |
3052 | PyObject * obj2 = 0 ; | |
3053 | char *kwnames[] = { | |
3054 | (char *) "self",(char *) "rectCell",(char *) "attr", NULL | |
3055 | }; | |
3056 | ||
3057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor_base_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
3058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3060 | { |
3061 | arg2 = &temp2; | |
3062 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3063 | } | |
15afbcd0 RD |
3064 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
3065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3066 | { |
3067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3068 | (arg1)->base_PaintBackground((wxRect const &)*arg2,arg3); | |
3069 | ||
3070 | wxPyEndAllowThreads(__tstate); | |
3071 | if (PyErr_Occurred()) SWIG_fail; | |
3072 | } | |
3073 | Py_INCREF(Py_None); resultobj = Py_None; | |
3074 | return resultobj; | |
3075 | fail: | |
3076 | return NULL; | |
3077 | } | |
3078 | ||
3079 | ||
3080 | static PyObject *_wrap_PyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3081 | PyObject *resultobj; | |
3082 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3083 | wxKeyEvent *arg2 = 0 ; | |
3084 | bool result; | |
3085 | PyObject * obj0 = 0 ; | |
3086 | PyObject * obj1 = 0 ; | |
3087 | char *kwnames[] = { | |
3088 | (char *) "self",(char *) "event", NULL | |
3089 | }; | |
3090 | ||
3091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3094 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
3095 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3096 | SWIG_fail; | |
d14a1e28 | 3097 | if (arg2 == NULL) { |
15afbcd0 RD |
3098 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3099 | SWIG_fail; | |
d14a1e28 RD |
3100 | } |
3101 | { | |
3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3103 | result = (bool)(arg1)->base_IsAcceptedKey(*arg2); | |
3104 | ||
3105 | wxPyEndAllowThreads(__tstate); | |
3106 | if (PyErr_Occurred()) SWIG_fail; | |
3107 | } | |
4f89f6a3 RD |
3108 | { |
3109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3110 | } | |
d14a1e28 RD |
3111 | return resultobj; |
3112 | fail: | |
3113 | return NULL; | |
3114 | } | |
3115 | ||
3116 | ||
3117 | static PyObject *_wrap_PyGridCellEditor_base_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3118 | PyObject *resultobj; | |
3119 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3120 | wxKeyEvent *arg2 = 0 ; | |
3121 | PyObject * obj0 = 0 ; | |
3122 | PyObject * obj1 = 0 ; | |
3123 | char *kwnames[] = { | |
3124 | (char *) "self",(char *) "event", NULL | |
3125 | }; | |
3126 | ||
3127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_StartingKey",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3130 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
3131 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3132 | SWIG_fail; | |
d14a1e28 | 3133 | if (arg2 == NULL) { |
15afbcd0 RD |
3134 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3135 | SWIG_fail; | |
d14a1e28 RD |
3136 | } |
3137 | { | |
3138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3139 | (arg1)->base_StartingKey(*arg2); | |
3140 | ||
3141 | wxPyEndAllowThreads(__tstate); | |
3142 | if (PyErr_Occurred()) SWIG_fail; | |
3143 | } | |
3144 | Py_INCREF(Py_None); resultobj = Py_None; | |
3145 | return resultobj; | |
3146 | fail: | |
3147 | return NULL; | |
3148 | } | |
3149 | ||
3150 | ||
3151 | static PyObject *_wrap_PyGridCellEditor_base_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3152 | PyObject *resultobj; | |
3153 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3154 | PyObject * obj0 = 0 ; | |
3155 | char *kwnames[] = { | |
3156 | (char *) "self", NULL | |
3157 | }; | |
3158 | ||
3159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_StartingClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3162 | { |
3163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3164 | (arg1)->base_StartingClick(); | |
3165 | ||
3166 | wxPyEndAllowThreads(__tstate); | |
3167 | if (PyErr_Occurred()) SWIG_fail; | |
3168 | } | |
3169 | Py_INCREF(Py_None); resultobj = Py_None; | |
3170 | return resultobj; | |
3171 | fail: | |
3172 | return NULL; | |
3173 | } | |
3174 | ||
3175 | ||
3176 | static PyObject *_wrap_PyGridCellEditor_base_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3177 | PyObject *resultobj; | |
3178 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3179 | wxKeyEvent *arg2 = 0 ; | |
3180 | PyObject * obj0 = 0 ; | |
3181 | PyObject * obj1 = 0 ; | |
3182 | char *kwnames[] = { | |
3183 | (char *) "self",(char *) "event", NULL | |
3184 | }; | |
3185 | ||
3186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_HandleReturn",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3189 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
3190 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3191 | SWIG_fail; | |
d14a1e28 | 3192 | if (arg2 == NULL) { |
15afbcd0 RD |
3193 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3194 | SWIG_fail; | |
d14a1e28 RD |
3195 | } |
3196 | { | |
3197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3198 | (arg1)->base_HandleReturn(*arg2); | |
3199 | ||
3200 | wxPyEndAllowThreads(__tstate); | |
3201 | if (PyErr_Occurred()) SWIG_fail; | |
3202 | } | |
3203 | Py_INCREF(Py_None); resultobj = Py_None; | |
3204 | return resultobj; | |
3205 | fail: | |
3206 | return NULL; | |
3207 | } | |
3208 | ||
3209 | ||
3210 | static PyObject *_wrap_PyGridCellEditor_base_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3211 | PyObject *resultobj; | |
3212 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3213 | PyObject * obj0 = 0 ; | |
3214 | char *kwnames[] = { | |
3215 | (char *) "self", NULL | |
3216 | }; | |
3217 | ||
3218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3221 | { |
3222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3223 | (arg1)->base_Destroy(); | |
3224 | ||
3225 | wxPyEndAllowThreads(__tstate); | |
3226 | if (PyErr_Occurred()) SWIG_fail; | |
3227 | } | |
3228 | Py_INCREF(Py_None); resultobj = Py_None; | |
3229 | return resultobj; | |
3230 | fail: | |
3231 | return NULL; | |
3232 | } | |
3233 | ||
3234 | ||
3235 | static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3236 | PyObject *resultobj; | |
3237 | wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ; | |
3238 | wxString *arg2 = 0 ; | |
e811c8ce | 3239 | bool temp2 = False ; |
d14a1e28 RD |
3240 | PyObject * obj0 = 0 ; |
3241 | PyObject * obj1 = 0 ; | |
3242 | char *kwnames[] = { | |
3243 | (char *) "self",(char *) "params", NULL | |
3244 | }; | |
3245 | ||
3246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetParameters",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellEditor, |
3248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3249 | { |
3250 | arg2 = wxString_in_helper(obj1); | |
3251 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3252 | temp2 = True; |
d14a1e28 RD |
3253 | } |
3254 | { | |
3255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3256 | (arg1)->base_SetParameters((wxString const &)*arg2); | |
3257 | ||
3258 | wxPyEndAllowThreads(__tstate); | |
3259 | if (PyErr_Occurred()) SWIG_fail; | |
3260 | } | |
3261 | Py_INCREF(Py_None); resultobj = Py_None; | |
3262 | { | |
3263 | if (temp2) | |
3264 | delete arg2; | |
3265 | } | |
3266 | return resultobj; | |
3267 | fail: | |
3268 | { | |
3269 | if (temp2) | |
3270 | delete arg2; | |
3271 | } | |
3272 | return NULL; | |
3273 | } | |
3274 | ||
3275 | ||
3276 | static PyObject * PyGridCellEditor_swigregister(PyObject *self, PyObject *args) { | |
3277 | PyObject *obj; | |
3278 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3279 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellEditor, obj); | |
3280 | Py_INCREF(obj); | |
3281 | return Py_BuildValue((char *)""); | |
3282 | } | |
3283 | static PyObject *_wrap_new_GridCellTextEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3284 | PyObject *resultobj; | |
3285 | wxGridCellTextEditor *result; | |
3286 | char *kwnames[] = { | |
3287 | NULL | |
3288 | }; | |
3289 | ||
3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellTextEditor",kwnames)) goto fail; | |
3291 | { | |
3292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3293 | result = (wxGridCellTextEditor *)new wxGridCellTextEditor(); | |
3294 | ||
3295 | wxPyEndAllowThreads(__tstate); | |
3296 | if (PyErr_Occurred()) SWIG_fail; | |
3297 | } | |
15afbcd0 | 3298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellTextEditor, 1); |
d14a1e28 RD |
3299 | return resultobj; |
3300 | fail: | |
3301 | return NULL; | |
3302 | } | |
3303 | ||
3304 | ||
3305 | static PyObject *_wrap_GridCellTextEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3306 | PyObject *resultobj; | |
3307 | wxGridCellTextEditor *arg1 = (wxGridCellTextEditor *) 0 ; | |
3308 | wxString result; | |
3309 | PyObject * obj0 = 0 ; | |
3310 | char *kwnames[] = { | |
3311 | (char *) "self", NULL | |
3312 | }; | |
3313 | ||
3314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellTextEditor_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellTextEditor, |
3316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3317 | { |
3318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3319 | result = (arg1)->GetValue(); | |
3320 | ||
3321 | wxPyEndAllowThreads(__tstate); | |
3322 | if (PyErr_Occurred()) SWIG_fail; | |
3323 | } | |
3324 | { | |
3325 | #if wxUSE_UNICODE | |
3326 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3327 | #else | |
3328 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3329 | #endif | |
3330 | } | |
3331 | return resultobj; | |
3332 | fail: | |
3333 | return NULL; | |
3334 | } | |
3335 | ||
3336 | ||
3337 | static PyObject * GridCellTextEditor_swigregister(PyObject *self, PyObject *args) { | |
3338 | PyObject *obj; | |
3339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3340 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellTextEditor, obj); | |
3341 | Py_INCREF(obj); | |
3342 | return Py_BuildValue((char *)""); | |
3343 | } | |
3344 | static PyObject *_wrap_new_GridCellNumberEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3345 | PyObject *resultobj; | |
3346 | int arg1 = (int) -1 ; | |
3347 | int arg2 = (int) -1 ; | |
3348 | wxGridCellNumberEditor *result; | |
994141e6 RD |
3349 | PyObject * obj0 = 0 ; |
3350 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
3351 | char *kwnames[] = { |
3352 | (char *) "min",(char *) "max", NULL | |
3353 | }; | |
3354 | ||
994141e6 RD |
3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellNumberEditor",kwnames,&obj0,&obj1)) goto fail; |
3356 | if (obj0) { | |
15afbcd0 RD |
3357 | arg1 = (int) SWIG_AsInt(obj0); |
3358 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3359 | } |
3360 | if (obj1) { | |
15afbcd0 RD |
3361 | arg2 = (int) SWIG_AsInt(obj1); |
3362 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3363 | } |
d14a1e28 RD |
3364 | { |
3365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3366 | result = (wxGridCellNumberEditor *)new wxGridCellNumberEditor(arg1,arg2); | |
3367 | ||
3368 | wxPyEndAllowThreads(__tstate); | |
3369 | if (PyErr_Occurred()) SWIG_fail; | |
3370 | } | |
15afbcd0 | 3371 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellNumberEditor, 1); |
d14a1e28 RD |
3372 | return resultobj; |
3373 | fail: | |
3374 | return NULL; | |
3375 | } | |
3376 | ||
3377 | ||
3378 | static PyObject *_wrap_GridCellNumberEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3379 | PyObject *resultobj; | |
3380 | wxGridCellNumberEditor *arg1 = (wxGridCellNumberEditor *) 0 ; | |
3381 | wxString result; | |
3382 | PyObject * obj0 = 0 ; | |
3383 | char *kwnames[] = { | |
3384 | (char *) "self", NULL | |
3385 | }; | |
3386 | ||
3387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellNumberEditor_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellNumberEditor, |
3389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3390 | { |
3391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3392 | result = (arg1)->GetValue(); | |
3393 | ||
3394 | wxPyEndAllowThreads(__tstate); | |
3395 | if (PyErr_Occurred()) SWIG_fail; | |
3396 | } | |
3397 | { | |
3398 | #if wxUSE_UNICODE | |
3399 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3400 | #else | |
3401 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3402 | #endif | |
3403 | } | |
3404 | return resultobj; | |
3405 | fail: | |
3406 | return NULL; | |
3407 | } | |
3408 | ||
3409 | ||
3410 | static PyObject * GridCellNumberEditor_swigregister(PyObject *self, PyObject *args) { | |
3411 | PyObject *obj; | |
3412 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3413 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberEditor, obj); | |
3414 | Py_INCREF(obj); | |
3415 | return Py_BuildValue((char *)""); | |
3416 | } | |
3417 | static PyObject *_wrap_new_GridCellFloatEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3418 | PyObject *resultobj; | |
3419 | wxGridCellFloatEditor *result; | |
3420 | char *kwnames[] = { | |
3421 | NULL | |
3422 | }; | |
3423 | ||
3424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellFloatEditor",kwnames)) goto fail; | |
3425 | { | |
3426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3427 | result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor(); | |
3428 | ||
3429 | wxPyEndAllowThreads(__tstate); | |
3430 | if (PyErr_Occurred()) SWIG_fail; | |
3431 | } | |
15afbcd0 | 3432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellFloatEditor, 1); |
d14a1e28 RD |
3433 | return resultobj; |
3434 | fail: | |
3435 | return NULL; | |
3436 | } | |
3437 | ||
3438 | ||
3439 | static PyObject *_wrap_GridCellFloatEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3440 | PyObject *resultobj; | |
3441 | wxGridCellFloatEditor *arg1 = (wxGridCellFloatEditor *) 0 ; | |
3442 | wxString result; | |
3443 | PyObject * obj0 = 0 ; | |
3444 | char *kwnames[] = { | |
3445 | (char *) "self", NULL | |
3446 | }; | |
3447 | ||
3448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatEditor_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellFloatEditor, |
3450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3451 | { |
3452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3453 | result = (arg1)->GetValue(); | |
3454 | ||
3455 | wxPyEndAllowThreads(__tstate); | |
3456 | if (PyErr_Occurred()) SWIG_fail; | |
3457 | } | |
3458 | { | |
3459 | #if wxUSE_UNICODE | |
3460 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3461 | #else | |
3462 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3463 | #endif | |
3464 | } | |
3465 | return resultobj; | |
3466 | fail: | |
3467 | return NULL; | |
3468 | } | |
3469 | ||
3470 | ||
3471 | static PyObject * GridCellFloatEditor_swigregister(PyObject *self, PyObject *args) { | |
3472 | PyObject *obj; | |
3473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3474 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatEditor, obj); | |
3475 | Py_INCREF(obj); | |
3476 | return Py_BuildValue((char *)""); | |
3477 | } | |
3478 | static PyObject *_wrap_new_GridCellBoolEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3479 | PyObject *resultobj; | |
3480 | wxGridCellBoolEditor *result; | |
3481 | char *kwnames[] = { | |
3482 | NULL | |
3483 | }; | |
3484 | ||
3485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolEditor",kwnames)) goto fail; | |
3486 | { | |
3487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3488 | result = (wxGridCellBoolEditor *)new wxGridCellBoolEditor(); | |
3489 | ||
3490 | wxPyEndAllowThreads(__tstate); | |
3491 | if (PyErr_Occurred()) SWIG_fail; | |
3492 | } | |
15afbcd0 | 3493 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellBoolEditor, 1); |
d14a1e28 RD |
3494 | return resultobj; |
3495 | fail: | |
3496 | return NULL; | |
3497 | } | |
3498 | ||
3499 | ||
3500 | static PyObject *_wrap_GridCellBoolEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3501 | PyObject *resultobj; | |
3502 | wxGridCellBoolEditor *arg1 = (wxGridCellBoolEditor *) 0 ; | |
3503 | wxString result; | |
3504 | PyObject * obj0 = 0 ; | |
3505 | char *kwnames[] = { | |
3506 | (char *) "self", NULL | |
3507 | }; | |
3508 | ||
3509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellBoolEditor_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellBoolEditor, |
3511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3512 | { |
3513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3514 | result = (arg1)->GetValue(); | |
3515 | ||
3516 | wxPyEndAllowThreads(__tstate); | |
3517 | if (PyErr_Occurred()) SWIG_fail; | |
3518 | } | |
3519 | { | |
3520 | #if wxUSE_UNICODE | |
3521 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3522 | #else | |
3523 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3524 | #endif | |
3525 | } | |
3526 | return resultobj; | |
3527 | fail: | |
3528 | return NULL; | |
3529 | } | |
3530 | ||
3531 | ||
3532 | static PyObject * GridCellBoolEditor_swigregister(PyObject *self, PyObject *args) { | |
3533 | PyObject *obj; | |
3534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3535 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolEditor, obj); | |
3536 | Py_INCREF(obj); | |
3537 | return Py_BuildValue((char *)""); | |
3538 | } | |
3539 | static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3540 | PyObject *resultobj; | |
3541 | int arg1 = (int) 0 ; | |
3542 | wxString *arg2 = (wxString *) NULL ; | |
e811c8ce | 3543 | bool arg3 = (bool) False ; |
d14a1e28 | 3544 | wxGridCellChoiceEditor *result; |
7722248d | 3545 | PyObject * obj0 = 0 ; |
d14a1e28 | 3546 | PyObject * obj1 = 0 ; |
d14a1e28 | 3547 | char *kwnames[] = { |
7722248d | 3548 | (char *) "choices",(char *) "allowOthers", NULL |
d14a1e28 RD |
3549 | }; |
3550 | ||
7722248d RD |
3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellChoiceEditor",kwnames,&obj0,&obj1)) goto fail; |
3552 | if (obj0) { | |
3553 | { | |
3554 | arg1 = PyList_Size(obj0); | |
3555 | arg2 = wxString_LIST_helper(obj0); | |
3556 | if (arg2 == NULL) SWIG_fail; | |
3557 | } | |
d14a1e28 | 3558 | } |
7722248d | 3559 | if (obj1) { |
15afbcd0 RD |
3560 | arg3 = (bool) SWIG_AsBool(obj1); |
3561 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3562 | } |
3563 | { | |
3564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3565 | result = (wxGridCellChoiceEditor *)new wxGridCellChoiceEditor(arg1,(wxString const *)arg2,arg3); | |
3566 | ||
3567 | wxPyEndAllowThreads(__tstate); | |
3568 | if (PyErr_Occurred()) SWIG_fail; | |
3569 | } | |
15afbcd0 | 3570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellChoiceEditor, 1); |
7722248d RD |
3571 | { |
3572 | if (arg2) delete [] arg2; | |
3573 | } | |
d14a1e28 RD |
3574 | return resultobj; |
3575 | fail: | |
7722248d RD |
3576 | { |
3577 | if (arg2) delete [] arg2; | |
3578 | } | |
d14a1e28 RD |
3579 | return NULL; |
3580 | } | |
3581 | ||
3582 | ||
3583 | static PyObject *_wrap_GridCellChoiceEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3584 | PyObject *resultobj; | |
3585 | wxGridCellChoiceEditor *arg1 = (wxGridCellChoiceEditor *) 0 ; | |
3586 | wxString result; | |
3587 | PyObject * obj0 = 0 ; | |
3588 | char *kwnames[] = { | |
3589 | (char *) "self", NULL | |
3590 | }; | |
3591 | ||
3592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellChoiceEditor_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellChoiceEditor, |
3594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3595 | { |
3596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3597 | result = (arg1)->GetValue(); | |
3598 | ||
3599 | wxPyEndAllowThreads(__tstate); | |
3600 | if (PyErr_Occurred()) SWIG_fail; | |
3601 | } | |
3602 | { | |
3603 | #if wxUSE_UNICODE | |
3604 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3605 | #else | |
3606 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3607 | #endif | |
3608 | } | |
3609 | return resultobj; | |
3610 | fail: | |
3611 | return NULL; | |
3612 | } | |
3613 | ||
3614 | ||
3615 | static PyObject * GridCellChoiceEditor_swigregister(PyObject *self, PyObject *args) { | |
3616 | PyObject *obj; | |
3617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3618 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellChoiceEditor, obj); | |
3619 | Py_INCREF(obj); | |
3620 | return Py_BuildValue((char *)""); | |
3621 | } | |
3622 | static PyObject *_wrap_new_GridCellEnumEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3623 | PyObject *resultobj; | |
3624 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
3625 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3626 | wxGridCellEnumEditor *result; | |
e811c8ce | 3627 | bool temp1 = False ; |
d14a1e28 RD |
3628 | PyObject * obj0 = 0 ; |
3629 | char *kwnames[] = { | |
3630 | (char *) "choices", NULL | |
3631 | }; | |
3632 | ||
3633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumEditor",kwnames,&obj0)) goto fail; | |
3634 | if (obj0) { | |
3635 | { | |
3636 | arg1 = wxString_in_helper(obj0); | |
3637 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3638 | temp1 = True; |
d14a1e28 RD |
3639 | } |
3640 | } | |
3641 | { | |
3642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3643 | result = (wxGridCellEnumEditor *)new wxGridCellEnumEditor((wxString const &)*arg1); | |
3644 | ||
3645 | wxPyEndAllowThreads(__tstate); | |
3646 | if (PyErr_Occurred()) SWIG_fail; | |
3647 | } | |
15afbcd0 | 3648 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellEnumEditor, 1); |
d14a1e28 RD |
3649 | { |
3650 | if (temp1) | |
3651 | delete arg1; | |
3652 | } | |
3653 | return resultobj; | |
3654 | fail: | |
3655 | { | |
3656 | if (temp1) | |
3657 | delete arg1; | |
3658 | } | |
3659 | return NULL; | |
3660 | } | |
3661 | ||
3662 | ||
3663 | static PyObject *_wrap_GridCellEnumEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3664 | PyObject *resultobj; | |
3665 | wxGridCellEnumEditor *arg1 = (wxGridCellEnumEditor *) 0 ; | |
3666 | wxString result; | |
3667 | PyObject * obj0 = 0 ; | |
3668 | char *kwnames[] = { | |
3669 | (char *) "self", NULL | |
3670 | }; | |
3671 | ||
3672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEnumEditor_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellEnumEditor, |
3674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3675 | { |
3676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3677 | result = (arg1)->GetValue(); | |
3678 | ||
3679 | wxPyEndAllowThreads(__tstate); | |
3680 | if (PyErr_Occurred()) SWIG_fail; | |
3681 | } | |
3682 | { | |
3683 | #if wxUSE_UNICODE | |
3684 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3685 | #else | |
3686 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3687 | #endif | |
3688 | } | |
3689 | return resultobj; | |
3690 | fail: | |
3691 | return NULL; | |
3692 | } | |
3693 | ||
3694 | ||
3695 | static PyObject * GridCellEnumEditor_swigregister(PyObject *self, PyObject *args) { | |
3696 | PyObject *obj; | |
3697 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3698 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumEditor, obj); | |
3699 | Py_INCREF(obj); | |
3700 | return Py_BuildValue((char *)""); | |
3701 | } | |
3702 | static PyObject *_wrap_new_GridCellAutoWrapStringEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3703 | PyObject *resultobj; | |
3704 | wxGridCellAutoWrapStringEditor *result; | |
3705 | char *kwnames[] = { | |
3706 | NULL | |
3707 | }; | |
3708 | ||
3709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringEditor",kwnames)) goto fail; | |
3710 | { | |
3711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3712 | result = (wxGridCellAutoWrapStringEditor *)new wxGridCellAutoWrapStringEditor(); | |
3713 | ||
3714 | wxPyEndAllowThreads(__tstate); | |
3715 | if (PyErr_Occurred()) SWIG_fail; | |
3716 | } | |
15afbcd0 | 3717 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellAutoWrapStringEditor, 1); |
d14a1e28 RD |
3718 | return resultobj; |
3719 | fail: | |
3720 | return NULL; | |
3721 | } | |
3722 | ||
3723 | ||
3724 | static PyObject *_wrap_GridCellAutoWrapStringEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3725 | PyObject *resultobj; | |
3726 | wxGridCellAutoWrapStringEditor *arg1 = (wxGridCellAutoWrapStringEditor *) 0 ; | |
3727 | wxString result; | |
3728 | PyObject * obj0 = 0 ; | |
3729 | char *kwnames[] = { | |
3730 | (char *) "self", NULL | |
3731 | }; | |
3732 | ||
3733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAutoWrapStringEditor_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAutoWrapStringEditor, |
3735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3736 | { |
3737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3738 | result = (arg1)->GetValue(); | |
3739 | ||
3740 | wxPyEndAllowThreads(__tstate); | |
3741 | if (PyErr_Occurred()) SWIG_fail; | |
3742 | } | |
3743 | { | |
3744 | #if wxUSE_UNICODE | |
3745 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3746 | #else | |
3747 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3748 | #endif | |
3749 | } | |
3750 | return resultobj; | |
3751 | fail: | |
3752 | return NULL; | |
3753 | } | |
3754 | ||
3755 | ||
3756 | static PyObject * GridCellAutoWrapStringEditor_swigregister(PyObject *self, PyObject *args) { | |
3757 | PyObject *obj; | |
3758 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3759 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringEditor, obj); | |
3760 | Py_INCREF(obj); | |
3761 | return Py_BuildValue((char *)""); | |
3762 | } | |
3763 | static PyObject *_wrap_GridCellAttr__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3764 | PyObject *resultobj; | |
3765 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3766 | PyObject *arg2 = (PyObject *) 0 ; | |
3767 | PyObject * obj0 = 0 ; | |
3768 | PyObject * obj1 = 0 ; | |
3769 | char *kwnames[] = { | |
3770 | (char *) "self",(char *) "_self", NULL | |
3771 | }; | |
3772 | ||
3773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
3775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3776 | arg2 = obj1; |
3777 | { | |
3778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3779 | wxGridCellAttr__setOORInfo(arg1,arg2); | |
3780 | ||
3781 | wxPyEndAllowThreads(__tstate); | |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
3783 | } | |
3784 | Py_INCREF(Py_None); resultobj = Py_None; | |
3785 | return resultobj; | |
3786 | fail: | |
3787 | return NULL; | |
3788 | } | |
3789 | ||
3790 | ||
3791 | static PyObject *_wrap_new_GridCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3792 | PyObject *resultobj; | |
3793 | wxGridCellAttr *arg1 = (wxGridCellAttr *) NULL ; | |
3794 | wxGridCellAttr *result; | |
3795 | PyObject * obj0 = 0 ; | |
3796 | char *kwnames[] = { | |
3797 | (char *) "attrDefault", NULL | |
3798 | }; | |
3799 | ||
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellAttr",kwnames,&obj0)) goto fail; | |
3801 | if (obj0) { | |
15afbcd0 RD |
3802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
3803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3804 | } |
3805 | { | |
3806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3807 | result = (wxGridCellAttr *)new wxGridCellAttr(arg1); | |
3808 | ||
3809 | wxPyEndAllowThreads(__tstate); | |
3810 | if (PyErr_Occurred()) SWIG_fail; | |
3811 | } | |
3812 | { | |
3813 | resultobj = wxPyMake_wxGridCellAttr(result); | |
3814 | } | |
3815 | return resultobj; | |
3816 | fail: | |
3817 | return NULL; | |
3818 | } | |
3819 | ||
3820 | ||
3821 | static PyObject *_wrap_GridCellAttr_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3822 | PyObject *resultobj; | |
3823 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3824 | wxGridCellAttr *result; | |
3825 | PyObject * obj0 = 0 ; | |
3826 | char *kwnames[] = { | |
3827 | (char *) "self", NULL | |
3828 | }; | |
3829 | ||
3830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
3832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3833 | { |
3834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3835 | result = (wxGridCellAttr *)((wxGridCellAttr const *)arg1)->Clone(); | |
3836 | ||
3837 | wxPyEndAllowThreads(__tstate); | |
3838 | if (PyErr_Occurred()) SWIG_fail; | |
3839 | } | |
3840 | { | |
3841 | resultobj = wxPyMake_wxGridCellAttr(result); | |
3842 | } | |
3843 | return resultobj; | |
3844 | fail: | |
3845 | return NULL; | |
3846 | } | |
3847 | ||
3848 | ||
3849 | static PyObject *_wrap_GridCellAttr_MergeWith(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3850 | PyObject *resultobj; | |
3851 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3852 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
3853 | PyObject * obj0 = 0 ; | |
3854 | PyObject * obj1 = 0 ; | |
3855 | char *kwnames[] = { | |
3856 | (char *) "self",(char *) "mergefrom", NULL | |
3857 | }; | |
3858 | ||
3859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_MergeWith",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
3861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3862 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
3863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3864 | { |
3865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3866 | (arg1)->MergeWith(arg2); | |
3867 | ||
3868 | wxPyEndAllowThreads(__tstate); | |
3869 | if (PyErr_Occurred()) SWIG_fail; | |
3870 | } | |
3871 | Py_INCREF(Py_None); resultobj = Py_None; | |
3872 | return resultobj; | |
3873 | fail: | |
3874 | return NULL; | |
3875 | } | |
3876 | ||
3877 | ||
3878 | static PyObject *_wrap_GridCellAttr_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3879 | PyObject *resultobj; | |
3880 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3881 | PyObject * obj0 = 0 ; | |
3882 | char *kwnames[] = { | |
3883 | (char *) "self", NULL | |
3884 | }; | |
3885 | ||
3886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IncRef",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
3888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3889 | { |
3890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3891 | (arg1)->IncRef(); | |
3892 | ||
3893 | wxPyEndAllowThreads(__tstate); | |
3894 | if (PyErr_Occurred()) SWIG_fail; | |
3895 | } | |
3896 | Py_INCREF(Py_None); resultobj = Py_None; | |
3897 | return resultobj; | |
3898 | fail: | |
3899 | return NULL; | |
3900 | } | |
3901 | ||
3902 | ||
3903 | static PyObject *_wrap_GridCellAttr_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3904 | PyObject *resultobj; | |
3905 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3906 | PyObject * obj0 = 0 ; | |
3907 | char *kwnames[] = { | |
3908 | (char *) "self", NULL | |
3909 | }; | |
3910 | ||
3911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_DecRef",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
3913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3914 | { |
3915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3916 | (arg1)->DecRef(); | |
3917 | ||
3918 | wxPyEndAllowThreads(__tstate); | |
3919 | if (PyErr_Occurred()) SWIG_fail; | |
3920 | } | |
3921 | Py_INCREF(Py_None); resultobj = Py_None; | |
3922 | return resultobj; | |
3923 | fail: | |
3924 | return NULL; | |
3925 | } | |
3926 | ||
3927 | ||
3928 | static PyObject *_wrap_GridCellAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3929 | PyObject *resultobj; | |
3930 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3931 | wxColour *arg2 = 0 ; | |
3932 | wxColour temp2 ; | |
3933 | PyObject * obj0 = 0 ; | |
3934 | PyObject * obj1 = 0 ; | |
3935 | char *kwnames[] = { | |
3936 | (char *) "self",(char *) "colText", NULL | |
3937 | }; | |
3938 | ||
3939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
3941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3942 | { |
3943 | arg2 = &temp2; | |
3944 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3945 | } | |
3946 | { | |
3947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3948 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
3949 | ||
3950 | wxPyEndAllowThreads(__tstate); | |
3951 | if (PyErr_Occurred()) SWIG_fail; | |
3952 | } | |
3953 | Py_INCREF(Py_None); resultobj = Py_None; | |
3954 | return resultobj; | |
3955 | fail: | |
3956 | return NULL; | |
3957 | } | |
3958 | ||
3959 | ||
3960 | static PyObject *_wrap_GridCellAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3961 | PyObject *resultobj; | |
3962 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3963 | wxColour *arg2 = 0 ; | |
3964 | wxColour temp2 ; | |
3965 | PyObject * obj0 = 0 ; | |
3966 | PyObject * obj1 = 0 ; | |
3967 | char *kwnames[] = { | |
3968 | (char *) "self",(char *) "colBack", NULL | |
3969 | }; | |
3970 | ||
3971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
3973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3974 | { |
3975 | arg2 = &temp2; | |
3976 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3977 | } | |
3978 | { | |
3979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3980 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
3981 | ||
3982 | wxPyEndAllowThreads(__tstate); | |
3983 | if (PyErr_Occurred()) SWIG_fail; | |
3984 | } | |
3985 | Py_INCREF(Py_None); resultobj = Py_None; | |
3986 | return resultobj; | |
3987 | fail: | |
3988 | return NULL; | |
3989 | } | |
3990 | ||
3991 | ||
3992 | static PyObject *_wrap_GridCellAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3993 | PyObject *resultobj; | |
3994 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
3995 | wxFont *arg2 = 0 ; | |
3996 | PyObject * obj0 = 0 ; | |
3997 | PyObject * obj1 = 0 ; | |
3998 | char *kwnames[] = { | |
3999 | (char *) "self",(char *) "font", NULL | |
4000 | }; | |
4001 | ||
4002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4005 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
4006 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4007 | SWIG_fail; | |
d14a1e28 | 4008 | if (arg2 == NULL) { |
15afbcd0 RD |
4009 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4010 | SWIG_fail; | |
d14a1e28 RD |
4011 | } |
4012 | { | |
4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4014 | (arg1)->SetFont((wxFont const &)*arg2); | |
4015 | ||
4016 | wxPyEndAllowThreads(__tstate); | |
4017 | if (PyErr_Occurred()) SWIG_fail; | |
4018 | } | |
4019 | Py_INCREF(Py_None); resultobj = Py_None; | |
4020 | return resultobj; | |
4021 | fail: | |
4022 | return NULL; | |
4023 | } | |
4024 | ||
4025 | ||
4026 | static PyObject *_wrap_GridCellAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4027 | PyObject *resultobj; | |
4028 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4029 | int arg2 ; | |
4030 | int arg3 ; | |
4031 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4032 | PyObject * obj1 = 0 ; |
4033 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4034 | char *kwnames[] = { |
4035 | (char *) "self",(char *) "hAlign",(char *) "vAlign", NULL | |
4036 | }; | |
4037 | ||
994141e6 | 4038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4041 | arg2 = (int) SWIG_AsInt(obj1); | |
4042 | if (PyErr_Occurred()) SWIG_fail; | |
4043 | arg3 = (int) SWIG_AsInt(obj2); | |
4044 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4045 | { |
4046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4047 | (arg1)->SetAlignment(arg2,arg3); | |
4048 | ||
4049 | wxPyEndAllowThreads(__tstate); | |
4050 | if (PyErr_Occurred()) SWIG_fail; | |
4051 | } | |
4052 | Py_INCREF(Py_None); resultobj = Py_None; | |
4053 | return resultobj; | |
4054 | fail: | |
4055 | return NULL; | |
4056 | } | |
4057 | ||
4058 | ||
4059 | static PyObject *_wrap_GridCellAttr_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4060 | PyObject *resultobj; | |
4061 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4062 | int arg2 ; | |
4063 | int arg3 ; | |
4064 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4065 | PyObject * obj1 = 0 ; |
4066 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4067 | char *kwnames[] = { |
4068 | (char *) "self",(char *) "num_rows",(char *) "num_cols", NULL | |
4069 | }; | |
4070 | ||
994141e6 | 4071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4074 | arg2 = (int) SWIG_AsInt(obj1); | |
4075 | if (PyErr_Occurred()) SWIG_fail; | |
4076 | arg3 = (int) SWIG_AsInt(obj2); | |
4077 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4078 | { |
4079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4080 | (arg1)->SetSize(arg2,arg3); | |
4081 | ||
4082 | wxPyEndAllowThreads(__tstate); | |
4083 | if (PyErr_Occurred()) SWIG_fail; | |
4084 | } | |
4085 | Py_INCREF(Py_None); resultobj = Py_None; | |
4086 | return resultobj; | |
4087 | fail: | |
4088 | return NULL; | |
4089 | } | |
4090 | ||
4091 | ||
4092 | static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4093 | PyObject *resultobj; | |
4094 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
e811c8ce | 4095 | bool arg2 = (bool) True ; |
d14a1e28 RD |
4096 | PyObject * obj0 = 0 ; |
4097 | PyObject * obj1 = 0 ; | |
4098 | char *kwnames[] = { | |
4099 | (char *) "self",(char *) "allow", NULL | |
4100 | }; | |
4101 | ||
4102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetOverflow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 4105 | if (obj1) { |
15afbcd0 RD |
4106 | arg2 = (bool) SWIG_AsBool(obj1); |
4107 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4108 | } |
4109 | { | |
4110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4111 | (arg1)->SetOverflow(arg2); | |
4112 | ||
4113 | wxPyEndAllowThreads(__tstate); | |
4114 | if (PyErr_Occurred()) SWIG_fail; | |
4115 | } | |
4116 | Py_INCREF(Py_None); resultobj = Py_None; | |
4117 | return resultobj; | |
4118 | fail: | |
4119 | return NULL; | |
4120 | } | |
4121 | ||
4122 | ||
4123 | static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4124 | PyObject *resultobj; | |
4125 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
e811c8ce | 4126 | bool arg2 = (bool) True ; |
d14a1e28 RD |
4127 | PyObject * obj0 = 0 ; |
4128 | PyObject * obj1 = 0 ; | |
4129 | char *kwnames[] = { | |
4130 | (char *) "self",(char *) "isReadOnly", NULL | |
4131 | }; | |
4132 | ||
4133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetReadOnly",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 4136 | if (obj1) { |
15afbcd0 RD |
4137 | arg2 = (bool) SWIG_AsBool(obj1); |
4138 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4139 | } |
4140 | { | |
4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4142 | (arg1)->SetReadOnly(arg2); | |
4143 | ||
4144 | wxPyEndAllowThreads(__tstate); | |
4145 | if (PyErr_Occurred()) SWIG_fail; | |
4146 | } | |
4147 | Py_INCREF(Py_None); resultobj = Py_None; | |
4148 | return resultobj; | |
4149 | fail: | |
4150 | return NULL; | |
4151 | } | |
4152 | ||
4153 | ||
4154 | static PyObject *_wrap_GridCellAttr_SetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4155 | PyObject *resultobj; | |
4156 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4157 | wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ; | |
4158 | PyObject * obj0 = 0 ; | |
4159 | PyObject * obj1 = 0 ; | |
4160 | char *kwnames[] = { | |
4161 | (char *) "self",(char *) "renderer", NULL | |
4162 | }; | |
4163 | ||
4164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetRenderer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellRenderer, | |
4168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4169 | { |
4170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4171 | (arg1)->SetRenderer(arg2); | |
4172 | ||
4173 | wxPyEndAllowThreads(__tstate); | |
4174 | if (PyErr_Occurred()) SWIG_fail; | |
4175 | } | |
4176 | Py_INCREF(Py_None); resultobj = Py_None; | |
4177 | return resultobj; | |
4178 | fail: | |
4179 | return NULL; | |
4180 | } | |
4181 | ||
4182 | ||
4183 | static PyObject *_wrap_GridCellAttr_SetEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4184 | PyObject *resultobj; | |
4185 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4186 | wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ; | |
4187 | PyObject * obj0 = 0 ; | |
4188 | PyObject * obj1 = 0 ; | |
4189 | char *kwnames[] = { | |
4190 | (char *) "self",(char *) "editor", NULL | |
4191 | }; | |
4192 | ||
4193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetEditor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4196 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellEditor, | |
4197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4198 | { |
4199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4200 | (arg1)->SetEditor(arg2); | |
4201 | ||
4202 | wxPyEndAllowThreads(__tstate); | |
4203 | if (PyErr_Occurred()) SWIG_fail; | |
4204 | } | |
4205 | Py_INCREF(Py_None); resultobj = Py_None; | |
4206 | return resultobj; | |
4207 | fail: | |
4208 | return NULL; | |
4209 | } | |
4210 | ||
4211 | ||
4212 | static PyObject *_wrap_GridCellAttr_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4213 | PyObject *resultobj; | |
4214 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4215 | int arg2 ; | |
4216 | PyObject * obj0 = 0 ; | |
994141e6 | 4217 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4218 | char *kwnames[] = { |
4219 | (char *) "self",(char *) "kind", NULL | |
4220 | }; | |
4221 | ||
994141e6 | 4222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetKind",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4225 | arg2 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj1); | |
4226 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4227 | { |
4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4229 | (arg1)->SetKind((wxGridCellAttr::wxAttrKind )arg2); | |
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 | ||
4241 | static PyObject *_wrap_GridCellAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4242 | PyObject *resultobj; | |
4243 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4244 | bool result; | |
4245 | PyObject * obj0 = 0 ; | |
4246 | char *kwnames[] = { | |
4247 | (char *) "self", NULL | |
4248 | }; | |
4249 | ||
4250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4253 | { |
4254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4255 | result = (bool)((wxGridCellAttr const *)arg1)->HasTextColour(); | |
4256 | ||
4257 | wxPyEndAllowThreads(__tstate); | |
4258 | if (PyErr_Occurred()) SWIG_fail; | |
4259 | } | |
4f89f6a3 RD |
4260 | { |
4261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4262 | } | |
d14a1e28 RD |
4263 | return resultobj; |
4264 | fail: | |
4265 | return NULL; | |
4266 | } | |
4267 | ||
4268 | ||
4269 | static PyObject *_wrap_GridCellAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4270 | PyObject *resultobj; | |
4271 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4272 | bool result; | |
4273 | PyObject * obj0 = 0 ; | |
4274 | char *kwnames[] = { | |
4275 | (char *) "self", NULL | |
4276 | }; | |
4277 | ||
4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4281 | { |
4282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4283 | result = (bool)((wxGridCellAttr const *)arg1)->HasBackgroundColour(); | |
4284 | ||
4285 | wxPyEndAllowThreads(__tstate); | |
4286 | if (PyErr_Occurred()) SWIG_fail; | |
4287 | } | |
4f89f6a3 RD |
4288 | { |
4289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4290 | } | |
d14a1e28 RD |
4291 | return resultobj; |
4292 | fail: | |
4293 | return NULL; | |
4294 | } | |
4295 | ||
4296 | ||
4297 | static PyObject *_wrap_GridCellAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4298 | PyObject *resultobj; | |
4299 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4300 | bool result; | |
4301 | PyObject * obj0 = 0 ; | |
4302 | char *kwnames[] = { | |
4303 | (char *) "self", NULL | |
4304 | }; | |
4305 | ||
4306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4309 | { |
4310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4311 | result = (bool)((wxGridCellAttr const *)arg1)->HasFont(); | |
4312 | ||
4313 | wxPyEndAllowThreads(__tstate); | |
4314 | if (PyErr_Occurred()) SWIG_fail; | |
4315 | } | |
4f89f6a3 RD |
4316 | { |
4317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4318 | } | |
d14a1e28 RD |
4319 | return resultobj; |
4320 | fail: | |
4321 | return NULL; | |
4322 | } | |
4323 | ||
4324 | ||
4325 | static PyObject *_wrap_GridCellAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4326 | PyObject *resultobj; | |
4327 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4328 | bool result; | |
4329 | PyObject * obj0 = 0 ; | |
4330 | char *kwnames[] = { | |
4331 | (char *) "self", NULL | |
4332 | }; | |
4333 | ||
4334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4337 | { |
4338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4339 | result = (bool)((wxGridCellAttr const *)arg1)->HasAlignment(); | |
4340 | ||
4341 | wxPyEndAllowThreads(__tstate); | |
4342 | if (PyErr_Occurred()) SWIG_fail; | |
4343 | } | |
4f89f6a3 RD |
4344 | { |
4345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4346 | } | |
d14a1e28 RD |
4347 | return resultobj; |
4348 | fail: | |
4349 | return NULL; | |
4350 | } | |
4351 | ||
4352 | ||
4353 | static PyObject *_wrap_GridCellAttr_HasRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4354 | PyObject *resultobj; | |
4355 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4356 | bool result; | |
4357 | PyObject * obj0 = 0 ; | |
4358 | char *kwnames[] = { | |
4359 | (char *) "self", NULL | |
4360 | }; | |
4361 | ||
4362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasRenderer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4365 | { |
4366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4367 | result = (bool)((wxGridCellAttr const *)arg1)->HasRenderer(); | |
4368 | ||
4369 | wxPyEndAllowThreads(__tstate); | |
4370 | if (PyErr_Occurred()) SWIG_fail; | |
4371 | } | |
4f89f6a3 RD |
4372 | { |
4373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4374 | } | |
d14a1e28 RD |
4375 | return resultobj; |
4376 | fail: | |
4377 | return NULL; | |
4378 | } | |
4379 | ||
4380 | ||
4381 | static PyObject *_wrap_GridCellAttr_HasEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4382 | PyObject *resultobj; | |
4383 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4384 | bool result; | |
4385 | PyObject * obj0 = 0 ; | |
4386 | char *kwnames[] = { | |
4387 | (char *) "self", NULL | |
4388 | }; | |
4389 | ||
4390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasEditor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4393 | { |
4394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4395 | result = (bool)((wxGridCellAttr const *)arg1)->HasEditor(); | |
4396 | ||
4397 | wxPyEndAllowThreads(__tstate); | |
4398 | if (PyErr_Occurred()) SWIG_fail; | |
4399 | } | |
4f89f6a3 RD |
4400 | { |
4401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4402 | } | |
d14a1e28 RD |
4403 | return resultobj; |
4404 | fail: | |
4405 | return NULL; | |
4406 | } | |
4407 | ||
4408 | ||
4409 | static PyObject *_wrap_GridCellAttr_HasReadWriteMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4410 | PyObject *resultobj; | |
4411 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4412 | bool result; | |
4413 | PyObject * obj0 = 0 ; | |
4414 | char *kwnames[] = { | |
4415 | (char *) "self", NULL | |
4416 | }; | |
4417 | ||
4418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasReadWriteMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4421 | { |
4422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4423 | result = (bool)((wxGridCellAttr const *)arg1)->HasReadWriteMode(); | |
4424 | ||
4425 | wxPyEndAllowThreads(__tstate); | |
4426 | if (PyErr_Occurred()) SWIG_fail; | |
4427 | } | |
4f89f6a3 RD |
4428 | { |
4429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4430 | } | |
d14a1e28 RD |
4431 | return resultobj; |
4432 | fail: | |
4433 | return NULL; | |
4434 | } | |
4435 | ||
4436 | ||
4437 | static PyObject *_wrap_GridCellAttr_HasOverflowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4438 | PyObject *resultobj; | |
4439 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4440 | bool result; | |
4441 | PyObject * obj0 = 0 ; | |
4442 | char *kwnames[] = { | |
4443 | (char *) "self", NULL | |
4444 | }; | |
4445 | ||
4446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasOverflowMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4449 | { |
4450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4451 | result = (bool)((wxGridCellAttr const *)arg1)->HasOverflowMode(); | |
4452 | ||
4453 | wxPyEndAllowThreads(__tstate); | |
4454 | if (PyErr_Occurred()) SWIG_fail; | |
4455 | } | |
4f89f6a3 RD |
4456 | { |
4457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4458 | } | |
d14a1e28 RD |
4459 | return resultobj; |
4460 | fail: | |
4461 | return NULL; | |
4462 | } | |
4463 | ||
4464 | ||
4465 | static PyObject *_wrap_GridCellAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4466 | PyObject *resultobj; | |
4467 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4468 | wxColour result; | |
4469 | PyObject * obj0 = 0 ; | |
4470 | char *kwnames[] = { | |
4471 | (char *) "self", NULL | |
4472 | }; | |
4473 | ||
4474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4477 | { |
4478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4479 | result = ((wxGridCellAttr const *)arg1)->GetTextColour(); | |
4480 | ||
4481 | wxPyEndAllowThreads(__tstate); | |
4482 | if (PyErr_Occurred()) SWIG_fail; | |
4483 | } | |
4484 | { | |
4485 | wxColour * resultptr; | |
4486 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 4487 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
4488 | } |
4489 | return resultobj; | |
4490 | fail: | |
4491 | return NULL; | |
4492 | } | |
4493 | ||
4494 | ||
4495 | static PyObject *_wrap_GridCellAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4496 | PyObject *resultobj; | |
4497 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4498 | wxColour result; | |
4499 | PyObject * obj0 = 0 ; | |
4500 | char *kwnames[] = { | |
4501 | (char *) "self", NULL | |
4502 | }; | |
4503 | ||
4504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4507 | { |
4508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4509 | result = ((wxGridCellAttr const *)arg1)->GetBackgroundColour(); | |
4510 | ||
4511 | wxPyEndAllowThreads(__tstate); | |
4512 | if (PyErr_Occurred()) SWIG_fail; | |
4513 | } | |
4514 | { | |
4515 | wxColour * resultptr; | |
4516 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 4517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
4518 | } |
4519 | return resultobj; | |
4520 | fail: | |
4521 | return NULL; | |
4522 | } | |
4523 | ||
4524 | ||
4525 | static PyObject *_wrap_GridCellAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4526 | PyObject *resultobj; | |
4527 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4528 | wxFont result; | |
4529 | PyObject * obj0 = 0 ; | |
4530 | char *kwnames[] = { | |
4531 | (char *) "self", NULL | |
4532 | }; | |
4533 | ||
4534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4537 | { |
4538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4539 | result = ((wxGridCellAttr const *)arg1)->GetFont(); | |
4540 | ||
4541 | wxPyEndAllowThreads(__tstate); | |
4542 | if (PyErr_Occurred()) SWIG_fail; | |
4543 | } | |
4544 | { | |
4545 | wxFont * resultptr; | |
4546 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 4547 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
4548 | } |
4549 | return resultobj; | |
4550 | fail: | |
4551 | return NULL; | |
4552 | } | |
4553 | ||
4554 | ||
4555 | static PyObject *_wrap_GridCellAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4556 | PyObject *resultobj; | |
4557 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4558 | int *arg2 = (int *) 0 ; | |
4559 | int *arg3 = (int *) 0 ; | |
4560 | int temp2 ; | |
4561 | int temp3 ; | |
4562 | PyObject * obj0 = 0 ; | |
4563 | char *kwnames[] = { | |
4564 | (char *) "self", NULL | |
4565 | }; | |
4566 | ||
4567 | arg2 = &temp2; | |
4568 | arg3 = &temp3; | |
4569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4572 | { |
4573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4574 | ((wxGridCellAttr const *)arg1)->GetAlignment(arg2,arg3); | |
4575 | ||
4576 | wxPyEndAllowThreads(__tstate); | |
4577 | if (PyErr_Occurred()) SWIG_fail; | |
4578 | } | |
4579 | Py_INCREF(Py_None); resultobj = Py_None; | |
4580 | { | |
4581 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4582 | resultobj = t_output_helper(resultobj,o); | |
4583 | } | |
4584 | { | |
4585 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4586 | resultobj = t_output_helper(resultobj,o); | |
4587 | } | |
4588 | return resultobj; | |
4589 | fail: | |
4590 | return NULL; | |
4591 | } | |
4592 | ||
4593 | ||
4594 | static PyObject *_wrap_GridCellAttr_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4595 | PyObject *resultobj; | |
4596 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4597 | int *arg2 = (int *) 0 ; | |
4598 | int *arg3 = (int *) 0 ; | |
4599 | int temp2 ; | |
4600 | int temp3 ; | |
4601 | PyObject * obj0 = 0 ; | |
4602 | char *kwnames[] = { | |
4603 | (char *) "self", NULL | |
4604 | }; | |
4605 | ||
4606 | arg2 = &temp2; | |
4607 | arg3 = &temp3; | |
4608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4611 | { |
4612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4613 | ((wxGridCellAttr const *)arg1)->GetSize(arg2,arg3); | |
4614 | ||
4615 | wxPyEndAllowThreads(__tstate); | |
4616 | if (PyErr_Occurred()) SWIG_fail; | |
4617 | } | |
4618 | Py_INCREF(Py_None); resultobj = Py_None; | |
4619 | { | |
4620 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4621 | resultobj = t_output_helper(resultobj,o); | |
4622 | } | |
4623 | { | |
4624 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4625 | resultobj = t_output_helper(resultobj,o); | |
4626 | } | |
4627 | return resultobj; | |
4628 | fail: | |
4629 | return NULL; | |
4630 | } | |
4631 | ||
4632 | ||
4633 | static PyObject *_wrap_GridCellAttr_GetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4634 | PyObject *resultobj; | |
4635 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4636 | bool result; | |
4637 | PyObject * obj0 = 0 ; | |
4638 | char *kwnames[] = { | |
4639 | (char *) "self", NULL | |
4640 | }; | |
4641 | ||
4642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetOverflow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4645 | { |
4646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4647 | result = (bool)((wxGridCellAttr const *)arg1)->GetOverflow(); | |
4648 | ||
4649 | wxPyEndAllowThreads(__tstate); | |
4650 | if (PyErr_Occurred()) SWIG_fail; | |
4651 | } | |
4f89f6a3 RD |
4652 | { |
4653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4654 | } | |
d14a1e28 RD |
4655 | return resultobj; |
4656 | fail: | |
4657 | return NULL; | |
4658 | } | |
4659 | ||
4660 | ||
4661 | static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4662 | PyObject *resultobj; | |
4663 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4664 | wxGrid *arg2 = (wxGrid *) 0 ; | |
4665 | int arg3 ; | |
4666 | int arg4 ; | |
4667 | wxGridCellRenderer *result; | |
4668 | PyObject * obj0 = 0 ; | |
4669 | PyObject * obj1 = 0 ; | |
994141e6 RD |
4670 | PyObject * obj2 = 0 ; |
4671 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4672 | char *kwnames[] = { |
4673 | (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL | |
4674 | }; | |
4675 | ||
994141e6 | 4676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
4677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4679 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
4680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4681 | arg3 = (int) SWIG_AsInt(obj2); | |
4682 | if (PyErr_Occurred()) SWIG_fail; | |
4683 | arg4 = (int) SWIG_AsInt(obj3); | |
4684 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4685 | { |
4686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4687 | result = (wxGridCellRenderer *)((wxGridCellAttr const *)arg1)->GetRenderer(arg2,arg3,arg4); | |
4688 | ||
4689 | wxPyEndAllowThreads(__tstate); | |
4690 | if (PyErr_Occurred()) SWIG_fail; | |
4691 | } | |
4692 | { | |
4693 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
4694 | } | |
4695 | return resultobj; | |
4696 | fail: | |
4697 | return NULL; | |
4698 | } | |
4699 | ||
4700 | ||
4701 | static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4702 | PyObject *resultobj; | |
4703 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4704 | wxGrid *arg2 = (wxGrid *) 0 ; | |
4705 | int arg3 ; | |
4706 | int arg4 ; | |
4707 | wxGridCellEditor *result; | |
4708 | PyObject * obj0 = 0 ; | |
4709 | PyObject * obj1 = 0 ; | |
994141e6 RD |
4710 | PyObject * obj2 = 0 ; |
4711 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4712 | char *kwnames[] = { |
4713 | (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL | |
4714 | }; | |
4715 | ||
994141e6 | 4716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
4717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
4720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4721 | arg3 = (int) SWIG_AsInt(obj2); | |
4722 | if (PyErr_Occurred()) SWIG_fail; | |
4723 | arg4 = (int) SWIG_AsInt(obj3); | |
4724 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4725 | { |
4726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4727 | result = (wxGridCellEditor *)((wxGridCellAttr const *)arg1)->GetEditor(arg2,arg3,arg4); | |
4728 | ||
4729 | wxPyEndAllowThreads(__tstate); | |
4730 | if (PyErr_Occurred()) SWIG_fail; | |
4731 | } | |
4732 | { | |
4733 | resultobj = wxPyMake_wxGridCellEditor(result); | |
4734 | } | |
4735 | return resultobj; | |
4736 | fail: | |
4737 | return NULL; | |
4738 | } | |
4739 | ||
4740 | ||
4741 | static PyObject *_wrap_GridCellAttr_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4742 | PyObject *resultobj; | |
4743 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4744 | bool result; | |
4745 | PyObject * obj0 = 0 ; | |
4746 | char *kwnames[] = { | |
4747 | (char *) "self", NULL | |
4748 | }; | |
4749 | ||
4750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IsReadOnly",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4753 | { |
4754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4755 | result = (bool)((wxGridCellAttr const *)arg1)->IsReadOnly(); | |
4756 | ||
4757 | wxPyEndAllowThreads(__tstate); | |
4758 | if (PyErr_Occurred()) SWIG_fail; | |
4759 | } | |
4f89f6a3 RD |
4760 | { |
4761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4762 | } | |
d14a1e28 RD |
4763 | return resultobj; |
4764 | fail: | |
4765 | return NULL; | |
4766 | } | |
4767 | ||
4768 | ||
4769 | static PyObject *_wrap_GridCellAttr_SetDefAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4770 | PyObject *resultobj; | |
4771 | wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ; | |
4772 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4773 | PyObject * obj0 = 0 ; | |
4774 | PyObject * obj1 = 0 ; | |
4775 | char *kwnames[] = { | |
4776 | (char *) "self",(char *) "defAttr", NULL | |
4777 | }; | |
4778 | ||
4779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetDefAttr",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttr, |
4781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4782 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
4783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4784 | { |
4785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4786 | (arg1)->SetDefAttr(arg2); | |
4787 | ||
4788 | wxPyEndAllowThreads(__tstate); | |
4789 | if (PyErr_Occurred()) SWIG_fail; | |
4790 | } | |
4791 | Py_INCREF(Py_None); resultobj = Py_None; | |
4792 | return resultobj; | |
4793 | fail: | |
4794 | return NULL; | |
4795 | } | |
4796 | ||
4797 | ||
4798 | static PyObject * GridCellAttr_swigregister(PyObject *self, PyObject *args) { | |
4799 | PyObject *obj; | |
4800 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4801 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttr, obj); | |
4802 | Py_INCREF(obj); | |
4803 | return Py_BuildValue((char *)""); | |
4804 | } | |
4805 | static PyObject *_wrap_new_GridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4806 | PyObject *resultobj; | |
4807 | wxGridCellAttrProvider *result; | |
4808 | char *kwnames[] = { | |
4809 | NULL | |
4810 | }; | |
4811 | ||
4812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAttrProvider",kwnames)) goto fail; | |
4813 | { | |
4814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4815 | result = (wxGridCellAttrProvider *)new wxGridCellAttrProvider(); | |
4816 | ||
4817 | wxPyEndAllowThreads(__tstate); | |
4818 | if (PyErr_Occurred()) SWIG_fail; | |
4819 | } | |
4820 | { | |
4821 | resultobj = wxPyMake_wxGridCellAttrProvider(result); | |
4822 | } | |
4823 | return resultobj; | |
4824 | fail: | |
4825 | return NULL; | |
4826 | } | |
4827 | ||
4828 | ||
4829 | static PyObject *_wrap_GridCellAttrProvider__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4830 | PyObject *resultobj; | |
4831 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4832 | PyObject *arg2 = (PyObject *) 0 ; | |
4833 | PyObject * obj0 = 0 ; | |
4834 | PyObject * obj1 = 0 ; | |
4835 | char *kwnames[] = { | |
4836 | (char *) "self",(char *) "_self", NULL | |
4837 | }; | |
4838 | ||
4839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttrProvider__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
4841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4842 | arg2 = obj1; |
4843 | { | |
4844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4845 | wxGridCellAttrProvider__setOORInfo(arg1,arg2); | |
4846 | ||
4847 | wxPyEndAllowThreads(__tstate); | |
4848 | if (PyErr_Occurred()) SWIG_fail; | |
4849 | } | |
4850 | Py_INCREF(Py_None); resultobj = Py_None; | |
4851 | return resultobj; | |
4852 | fail: | |
4853 | return NULL; | |
4854 | } | |
4855 | ||
4856 | ||
4857 | static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4858 | PyObject *resultobj; | |
4859 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4860 | int arg2 ; | |
4861 | int arg3 ; | |
4862 | int arg4 ; | |
4863 | wxGridCellAttr *result; | |
4864 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4865 | PyObject * obj1 = 0 ; |
4866 | PyObject * obj2 = 0 ; | |
4867 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4868 | char *kwnames[] = { |
4869 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
4870 | }; | |
4871 | ||
994141e6 | 4872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
4873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
4874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4875 | arg2 = (int) SWIG_AsInt(obj1); | |
4876 | if (PyErr_Occurred()) SWIG_fail; | |
4877 | arg3 = (int) SWIG_AsInt(obj2); | |
4878 | if (PyErr_Occurred()) SWIG_fail; | |
4879 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3); | |
4880 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4881 | { |
4882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4883 | result = (wxGridCellAttr *)((wxGridCellAttrProvider const *)arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
4884 | ||
4885 | wxPyEndAllowThreads(__tstate); | |
4886 | if (PyErr_Occurred()) SWIG_fail; | |
4887 | } | |
4888 | { | |
4889 | resultobj = wxPyMake_wxGridCellAttr(result); | |
4890 | } | |
4891 | return resultobj; | |
4892 | fail: | |
4893 | return NULL; | |
4894 | } | |
4895 | ||
4896 | ||
4897 | static PyObject *_wrap_GridCellAttrProvider_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4898 | PyObject *resultobj; | |
4899 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4900 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4901 | int arg3 ; | |
4902 | int arg4 ; | |
4903 | PyObject * obj0 = 0 ; | |
4904 | PyObject * obj1 = 0 ; | |
994141e6 RD |
4905 | PyObject * obj2 = 0 ; |
4906 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4907 | char *kwnames[] = { |
4908 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
4909 | }; | |
4910 | ||
994141e6 | 4911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
4912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
4913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4914 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
4915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4916 | arg3 = (int) SWIG_AsInt(obj2); | |
4917 | if (PyErr_Occurred()) SWIG_fail; | |
4918 | arg4 = (int) SWIG_AsInt(obj3); | |
4919 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4920 | { |
4921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4922 | (arg1)->SetAttr(arg2,arg3,arg4); | |
4923 | ||
4924 | wxPyEndAllowThreads(__tstate); | |
4925 | if (PyErr_Occurred()) SWIG_fail; | |
4926 | } | |
4927 | Py_INCREF(Py_None); resultobj = Py_None; | |
4928 | return resultobj; | |
4929 | fail: | |
4930 | return NULL; | |
4931 | } | |
4932 | ||
4933 | ||
4934 | static PyObject *_wrap_GridCellAttrProvider_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4935 | PyObject *resultobj; | |
4936 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4937 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4938 | int arg3 ; | |
4939 | PyObject * obj0 = 0 ; | |
4940 | PyObject * obj1 = 0 ; | |
994141e6 | 4941 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4942 | char *kwnames[] = { |
4943 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
4944 | }; | |
4945 | ||
994141e6 | 4946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
4948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
4950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4951 | arg3 = (int) SWIG_AsInt(obj2); | |
4952 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4953 | { |
4954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4955 | (arg1)->SetRowAttr(arg2,arg3); | |
4956 | ||
4957 | wxPyEndAllowThreads(__tstate); | |
4958 | if (PyErr_Occurred()) SWIG_fail; | |
4959 | } | |
4960 | Py_INCREF(Py_None); resultobj = Py_None; | |
4961 | return resultobj; | |
4962 | fail: | |
4963 | return NULL; | |
4964 | } | |
4965 | ||
4966 | ||
4967 | static PyObject *_wrap_GridCellAttrProvider_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4968 | PyObject *resultobj; | |
4969 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
4970 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
4971 | int arg3 ; | |
4972 | PyObject * obj0 = 0 ; | |
4973 | PyObject * obj1 = 0 ; | |
994141e6 | 4974 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4975 | char *kwnames[] = { |
4976 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
4977 | }; | |
4978 | ||
994141e6 | 4979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
4981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4982 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
4983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4984 | arg3 = (int) SWIG_AsInt(obj2); | |
4985 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4986 | { |
4987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4988 | (arg1)->SetColAttr(arg2,arg3); | |
4989 | ||
4990 | wxPyEndAllowThreads(__tstate); | |
4991 | if (PyErr_Occurred()) SWIG_fail; | |
4992 | } | |
4993 | Py_INCREF(Py_None); resultobj = Py_None; | |
4994 | return resultobj; | |
4995 | fail: | |
4996 | return NULL; | |
4997 | } | |
4998 | ||
4999 | ||
5000 | static PyObject *_wrap_GridCellAttrProvider_UpdateAttrRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5001 | PyObject *resultobj; | |
5002 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
5003 | size_t arg2 ; | |
5004 | int arg3 ; | |
5005 | PyObject * obj0 = 0 ; | |
5006 | PyObject * obj1 = 0 ; | |
994141e6 | 5007 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5008 | char *kwnames[] = { |
5009 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
5010 | }; | |
5011 | ||
994141e6 | 5012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrRows",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
5014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5015 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
5016 | if (PyErr_Occurred()) SWIG_fail; | |
5017 | arg3 = (int) SWIG_AsInt(obj2); | |
5018 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5019 | { |
5020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5021 | (arg1)->UpdateAttrRows(arg2,arg3); | |
5022 | ||
5023 | wxPyEndAllowThreads(__tstate); | |
5024 | if (PyErr_Occurred()) SWIG_fail; | |
5025 | } | |
5026 | Py_INCREF(Py_None); resultobj = Py_None; | |
5027 | return resultobj; | |
5028 | fail: | |
5029 | return NULL; | |
5030 | } | |
5031 | ||
5032 | ||
5033 | static PyObject *_wrap_GridCellAttrProvider_UpdateAttrCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5034 | PyObject *resultobj; | |
5035 | wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ; | |
5036 | size_t arg2 ; | |
5037 | int arg3 ; | |
5038 | PyObject * obj0 = 0 ; | |
5039 | PyObject * obj1 = 0 ; | |
994141e6 | 5040 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5041 | char *kwnames[] = { |
5042 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
5043 | }; | |
5044 | ||
994141e6 | 5045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellAttrProvider, |
5047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5048 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
5049 | if (PyErr_Occurred()) SWIG_fail; | |
5050 | arg3 = (int) SWIG_AsInt(obj2); | |
5051 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5052 | { |
5053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5054 | (arg1)->UpdateAttrCols(arg2,arg3); | |
5055 | ||
5056 | wxPyEndAllowThreads(__tstate); | |
5057 | if (PyErr_Occurred()) SWIG_fail; | |
5058 | } | |
5059 | Py_INCREF(Py_None); resultobj = Py_None; | |
5060 | return resultobj; | |
5061 | fail: | |
5062 | return NULL; | |
5063 | } | |
5064 | ||
5065 | ||
5066 | static PyObject * GridCellAttrProvider_swigregister(PyObject *self, PyObject *args) { | |
5067 | PyObject *obj; | |
5068 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5069 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttrProvider, obj); | |
5070 | Py_INCREF(obj); | |
5071 | return Py_BuildValue((char *)""); | |
5072 | } | |
5073 | static PyObject *_wrap_new_PyGridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5074 | PyObject *resultobj; | |
5075 | wxPyGridCellAttrProvider *result; | |
5076 | char *kwnames[] = { | |
5077 | NULL | |
5078 | }; | |
5079 | ||
5080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellAttrProvider",kwnames)) goto fail; | |
5081 | { | |
5082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5083 | result = (wxPyGridCellAttrProvider *)new wxPyGridCellAttrProvider(); | |
5084 | ||
5085 | wxPyEndAllowThreads(__tstate); | |
5086 | if (PyErr_Occurred()) SWIG_fail; | |
5087 | } | |
15afbcd0 | 5088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridCellAttrProvider, 1); |
d14a1e28 RD |
5089 | return resultobj; |
5090 | fail: | |
5091 | return NULL; | |
5092 | } | |
5093 | ||
5094 | ||
5095 | static PyObject *_wrap_PyGridCellAttrProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5096 | PyObject *resultobj; | |
5097 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5098 | PyObject *arg2 = (PyObject *) 0 ; | |
5099 | PyObject *arg3 = (PyObject *) 0 ; | |
5100 | PyObject * obj0 = 0 ; | |
5101 | PyObject * obj1 = 0 ; | |
5102 | PyObject * obj2 = 0 ; | |
5103 | char *kwnames[] = { | |
5104 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5105 | }; | |
5106 | ||
5107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
5108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
5109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5110 | arg2 = obj1; |
5111 | arg3 = obj2; | |
5112 | { | |
5113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5114 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5115 | ||
5116 | wxPyEndAllowThreads(__tstate); | |
5117 | if (PyErr_Occurred()) SWIG_fail; | |
5118 | } | |
5119 | Py_INCREF(Py_None); resultobj = Py_None; | |
5120 | return resultobj; | |
5121 | fail: | |
5122 | return NULL; | |
5123 | } | |
5124 | ||
5125 | ||
5126 | static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5127 | PyObject *resultobj; | |
5128 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5129 | int arg2 ; | |
5130 | int arg3 ; | |
5131 | int arg4 ; | |
5132 | wxGridCellAttr *result; | |
5133 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5134 | PyObject * obj1 = 0 ; |
5135 | PyObject * obj2 = 0 ; | |
5136 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5137 | char *kwnames[] = { |
5138 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
5139 | }; | |
5140 | ||
994141e6 | 5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
5143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5144 | arg2 = (int) SWIG_AsInt(obj1); | |
5145 | if (PyErr_Occurred()) SWIG_fail; | |
5146 | arg3 = (int) SWIG_AsInt(obj2); | |
5147 | if (PyErr_Occurred()) SWIG_fail; | |
5148 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3); | |
5149 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5150 | { |
5151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5152 | result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
5153 | ||
5154 | wxPyEndAllowThreads(__tstate); | |
5155 | if (PyErr_Occurred()) SWIG_fail; | |
5156 | } | |
5157 | { | |
5158 | resultobj = wxPyMake_wxGridCellAttr(result); | |
5159 | } | |
5160 | return resultobj; | |
5161 | fail: | |
5162 | return NULL; | |
5163 | } | |
5164 | ||
5165 | ||
5166 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5167 | PyObject *resultobj; | |
5168 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5169 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5170 | int arg3 ; | |
5171 | int arg4 ; | |
5172 | PyObject * obj0 = 0 ; | |
5173 | PyObject * obj1 = 0 ; | |
994141e6 RD |
5174 | PyObject * obj2 = 0 ; |
5175 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5176 | char *kwnames[] = { |
5177 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
5178 | }; | |
5179 | ||
994141e6 | 5180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
5182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
5184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5185 | arg3 = (int) SWIG_AsInt(obj2); | |
5186 | if (PyErr_Occurred()) SWIG_fail; | |
5187 | arg4 = (int) SWIG_AsInt(obj3); | |
5188 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5189 | { |
5190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5191 | (arg1)->base_SetAttr(arg2,arg3,arg4); | |
5192 | ||
5193 | wxPyEndAllowThreads(__tstate); | |
5194 | if (PyErr_Occurred()) SWIG_fail; | |
5195 | } | |
5196 | Py_INCREF(Py_None); resultobj = Py_None; | |
5197 | return resultobj; | |
5198 | fail: | |
5199 | return NULL; | |
5200 | } | |
5201 | ||
5202 | ||
5203 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5204 | PyObject *resultobj; | |
5205 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5206 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5207 | int arg3 ; | |
5208 | PyObject * obj0 = 0 ; | |
5209 | PyObject * obj1 = 0 ; | |
994141e6 | 5210 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5211 | char *kwnames[] = { |
5212 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
5213 | }; | |
5214 | ||
994141e6 | 5215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
5217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5218 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
5219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5220 | arg3 = (int) SWIG_AsInt(obj2); | |
5221 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5222 | { |
5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5224 | (arg1)->base_SetRowAttr(arg2,arg3); | |
5225 | ||
5226 | wxPyEndAllowThreads(__tstate); | |
5227 | if (PyErr_Occurred()) SWIG_fail; | |
5228 | } | |
5229 | Py_INCREF(Py_None); resultobj = Py_None; | |
5230 | return resultobj; | |
5231 | fail: | |
5232 | return NULL; | |
5233 | } | |
5234 | ||
5235 | ||
5236 | static PyObject *_wrap_PyGridCellAttrProvider_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5237 | PyObject *resultobj; | |
5238 | wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ; | |
5239 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
5240 | int arg3 ; | |
5241 | PyObject * obj0 = 0 ; | |
5242 | PyObject * obj1 = 0 ; | |
994141e6 | 5243 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5244 | char *kwnames[] = { |
5245 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
5246 | }; | |
5247 | ||
994141e6 | 5248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridCellAttrProvider, |
5250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5251 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
5252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5253 | arg3 = (int) SWIG_AsInt(obj2); | |
5254 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5255 | { |
5256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5257 | (arg1)->base_SetColAttr(arg2,arg3); | |
5258 | ||
5259 | wxPyEndAllowThreads(__tstate); | |
5260 | if (PyErr_Occurred()) SWIG_fail; | |
5261 | } | |
5262 | Py_INCREF(Py_None); resultobj = Py_None; | |
5263 | return resultobj; | |
5264 | fail: | |
5265 | return NULL; | |
5266 | } | |
5267 | ||
5268 | ||
5269 | static PyObject * PyGridCellAttrProvider_swigregister(PyObject *self, PyObject *args) { | |
5270 | PyObject *obj; | |
5271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5272 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellAttrProvider, obj); | |
5273 | Py_INCREF(obj); | |
5274 | return Py_BuildValue((char *)""); | |
5275 | } | |
5276 | static PyObject *_wrap_GridTableBase__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5277 | PyObject *resultobj; | |
5278 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5279 | PyObject *arg2 = (PyObject *) 0 ; | |
5280 | PyObject * obj0 = 0 ; | |
5281 | PyObject * obj1 = 0 ; | |
5282 | char *kwnames[] = { | |
5283 | (char *) "self",(char *) "_self", NULL | |
5284 | }; | |
5285 | ||
5286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5289 | arg2 = obj1; |
5290 | { | |
5291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5292 | wxGridTableBase__setOORInfo(arg1,arg2); | |
5293 | ||
5294 | wxPyEndAllowThreads(__tstate); | |
5295 | if (PyErr_Occurred()) SWIG_fail; | |
5296 | } | |
5297 | Py_INCREF(Py_None); resultobj = Py_None; | |
5298 | return resultobj; | |
5299 | fail: | |
5300 | return NULL; | |
5301 | } | |
5302 | ||
5303 | ||
5304 | static PyObject *_wrap_GridTableBase_SetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5305 | PyObject *resultobj; | |
5306 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5307 | wxGridCellAttrProvider *arg2 = (wxGridCellAttrProvider *) 0 ; | |
5308 | PyObject * obj0 = 0 ; | |
5309 | PyObject * obj1 = 0 ; | |
5310 | char *kwnames[] = { | |
5311 | (char *) "self",(char *) "attrProvider", NULL | |
5312 | }; | |
5313 | ||
5314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetAttrProvider",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5317 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttrProvider, | |
5318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5319 | { |
5320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5321 | (arg1)->SetAttrProvider(arg2); | |
5322 | ||
5323 | wxPyEndAllowThreads(__tstate); | |
5324 | if (PyErr_Occurred()) SWIG_fail; | |
5325 | } | |
5326 | Py_INCREF(Py_None); resultobj = Py_None; | |
5327 | return resultobj; | |
5328 | fail: | |
5329 | return NULL; | |
5330 | } | |
5331 | ||
5332 | ||
5333 | static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5334 | PyObject *resultobj; | |
5335 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5336 | wxGridCellAttrProvider *result; | |
5337 | PyObject * obj0 = 0 ; | |
5338 | char *kwnames[] = { | |
5339 | (char *) "self", NULL | |
5340 | }; | |
5341 | ||
5342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetAttrProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5345 | { |
5346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5347 | result = (wxGridCellAttrProvider *)((wxGridTableBase const *)arg1)->GetAttrProvider(); | |
5348 | ||
5349 | wxPyEndAllowThreads(__tstate); | |
5350 | if (PyErr_Occurred()) SWIG_fail; | |
5351 | } | |
5352 | { | |
5353 | resultobj = wxPyMake_wxGridCellAttrProvider(result); | |
5354 | } | |
5355 | return resultobj; | |
5356 | fail: | |
5357 | return NULL; | |
5358 | } | |
5359 | ||
5360 | ||
5361 | static PyObject *_wrap_GridTableBase_SetView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5362 | PyObject *resultobj; | |
5363 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5364 | wxGrid *arg2 = (wxGrid *) 0 ; | |
5365 | PyObject * obj0 = 0 ; | |
5366 | PyObject * obj1 = 0 ; | |
5367 | char *kwnames[] = { | |
5368 | (char *) "self",(char *) "grid", NULL | |
5369 | }; | |
5370 | ||
5371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetView",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5374 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGrid, | |
5375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5376 | { |
5377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5378 | (arg1)->SetView(arg2); | |
5379 | ||
5380 | wxPyEndAllowThreads(__tstate); | |
5381 | if (PyErr_Occurred()) SWIG_fail; | |
5382 | } | |
5383 | Py_INCREF(Py_None); resultobj = Py_None; | |
5384 | return resultobj; | |
5385 | fail: | |
5386 | return NULL; | |
5387 | } | |
5388 | ||
5389 | ||
5390 | static PyObject *_wrap_GridTableBase_GetView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5391 | PyObject *resultobj; | |
5392 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5393 | wxGrid *result; | |
5394 | PyObject * obj0 = 0 ; | |
5395 | char *kwnames[] = { | |
5396 | (char *) "self", NULL | |
5397 | }; | |
5398 | ||
5399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetView",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5402 | { |
5403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5404 | result = (wxGrid *)((wxGridTableBase const *)arg1)->GetView(); | |
5405 | ||
5406 | wxPyEndAllowThreads(__tstate); | |
5407 | if (PyErr_Occurred()) SWIG_fail; | |
5408 | } | |
5409 | { | |
5410 | resultobj = wxPyMake_wxObject(result); | |
5411 | } | |
5412 | return resultobj; | |
5413 | fail: | |
5414 | return NULL; | |
5415 | } | |
5416 | ||
5417 | ||
5418 | static PyObject *_wrap_GridTableBase_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5419 | PyObject *resultobj; | |
5420 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5421 | int result; | |
5422 | PyObject * obj0 = 0 ; | |
5423 | char *kwnames[] = { | |
5424 | (char *) "self", NULL | |
5425 | }; | |
5426 | ||
5427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5430 | { |
5431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5432 | result = (int)(arg1)->GetNumberRows(); | |
5433 | ||
5434 | wxPyEndAllowThreads(__tstate); | |
5435 | if (PyErr_Occurred()) SWIG_fail; | |
5436 | } | |
15afbcd0 | 5437 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5438 | return resultobj; |
5439 | fail: | |
5440 | return NULL; | |
5441 | } | |
5442 | ||
5443 | ||
5444 | static PyObject *_wrap_GridTableBase_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5445 | PyObject *resultobj; | |
5446 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5447 | int result; | |
5448 | PyObject * obj0 = 0 ; | |
5449 | char *kwnames[] = { | |
5450 | (char *) "self", NULL | |
5451 | }; | |
5452 | ||
5453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5456 | { |
5457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5458 | result = (int)(arg1)->GetNumberCols(); | |
5459 | ||
5460 | wxPyEndAllowThreads(__tstate); | |
5461 | if (PyErr_Occurred()) SWIG_fail; | |
5462 | } | |
15afbcd0 | 5463 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5464 | return resultobj; |
5465 | fail: | |
5466 | return NULL; | |
5467 | } | |
5468 | ||
5469 | ||
5470 | static PyObject *_wrap_GridTableBase_IsEmptyCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5471 | PyObject *resultobj; | |
5472 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5473 | int arg2 ; | |
5474 | int arg3 ; | |
5475 | bool result; | |
5476 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5477 | PyObject * obj1 = 0 ; |
5478 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5479 | char *kwnames[] = { |
5480 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5481 | }; | |
5482 | ||
994141e6 | 5483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_IsEmptyCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5486 | arg2 = (int) SWIG_AsInt(obj1); | |
5487 | if (PyErr_Occurred()) SWIG_fail; | |
5488 | arg3 = (int) SWIG_AsInt(obj2); | |
5489 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5490 | { |
5491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5492 | result = (bool)(arg1)->IsEmptyCell(arg2,arg3); | |
5493 | ||
5494 | wxPyEndAllowThreads(__tstate); | |
5495 | if (PyErr_Occurred()) SWIG_fail; | |
5496 | } | |
4f89f6a3 RD |
5497 | { |
5498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5499 | } | |
d14a1e28 RD |
5500 | return resultobj; |
5501 | fail: | |
5502 | return NULL; | |
5503 | } | |
5504 | ||
5505 | ||
5506 | static PyObject *_wrap_GridTableBase_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5507 | PyObject *resultobj; | |
5508 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5509 | int arg2 ; | |
5510 | int arg3 ; | |
5511 | wxString result; | |
5512 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5513 | PyObject * obj1 = 0 ; |
5514 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5515 | char *kwnames[] = { |
5516 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5517 | }; | |
5518 | ||
994141e6 | 5519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5522 | arg2 = (int) SWIG_AsInt(obj1); | |
5523 | if (PyErr_Occurred()) SWIG_fail; | |
5524 | arg3 = (int) SWIG_AsInt(obj2); | |
5525 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5526 | { |
5527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5528 | result = (arg1)->GetValue(arg2,arg3); | |
5529 | ||
5530 | wxPyEndAllowThreads(__tstate); | |
5531 | if (PyErr_Occurred()) SWIG_fail; | |
5532 | } | |
5533 | { | |
5534 | #if wxUSE_UNICODE | |
5535 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5536 | #else | |
5537 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5538 | #endif | |
5539 | } | |
5540 | return resultobj; | |
5541 | fail: | |
5542 | return NULL; | |
5543 | } | |
5544 | ||
5545 | ||
5546 | static PyObject *_wrap_GridTableBase_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5547 | PyObject *resultobj; | |
5548 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5549 | int arg2 ; | |
5550 | int arg3 ; | |
5551 | wxString *arg4 = 0 ; | |
e811c8ce | 5552 | bool temp4 = False ; |
d14a1e28 | 5553 | PyObject * obj0 = 0 ; |
994141e6 RD |
5554 | PyObject * obj1 = 0 ; |
5555 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5556 | PyObject * obj3 = 0 ; |
5557 | char *kwnames[] = { | |
5558 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5559 | }; | |
5560 | ||
994141e6 | 5561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5564 | arg2 = (int) SWIG_AsInt(obj1); | |
5565 | if (PyErr_Occurred()) SWIG_fail; | |
5566 | arg3 = (int) SWIG_AsInt(obj2); | |
5567 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5568 | { |
5569 | arg4 = wxString_in_helper(obj3); | |
5570 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 5571 | temp4 = True; |
d14a1e28 RD |
5572 | } |
5573 | { | |
5574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5575 | (arg1)->SetValue(arg2,arg3,(wxString const &)*arg4); | |
5576 | ||
5577 | wxPyEndAllowThreads(__tstate); | |
5578 | if (PyErr_Occurred()) SWIG_fail; | |
5579 | } | |
5580 | Py_INCREF(Py_None); resultobj = Py_None; | |
5581 | { | |
5582 | if (temp4) | |
5583 | delete arg4; | |
5584 | } | |
5585 | return resultobj; | |
5586 | fail: | |
5587 | { | |
5588 | if (temp4) | |
5589 | delete arg4; | |
5590 | } | |
5591 | return NULL; | |
5592 | } | |
5593 | ||
5594 | ||
5595 | static PyObject *_wrap_GridTableBase_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5596 | PyObject *resultobj; | |
5597 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5598 | int arg2 ; | |
5599 | int arg3 ; | |
5600 | wxString result; | |
5601 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5602 | PyObject * obj1 = 0 ; |
5603 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5604 | char *kwnames[] = { |
5605 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5606 | }; | |
5607 | ||
994141e6 | 5608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5611 | arg2 = (int) SWIG_AsInt(obj1); | |
5612 | if (PyErr_Occurred()) SWIG_fail; | |
5613 | arg3 = (int) SWIG_AsInt(obj2); | |
5614 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5615 | { |
5616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5617 | result = (arg1)->GetTypeName(arg2,arg3); | |
5618 | ||
5619 | wxPyEndAllowThreads(__tstate); | |
5620 | if (PyErr_Occurred()) SWIG_fail; | |
5621 | } | |
5622 | { | |
5623 | #if wxUSE_UNICODE | |
5624 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5625 | #else | |
5626 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5627 | #endif | |
5628 | } | |
5629 | return resultobj; | |
5630 | fail: | |
5631 | return NULL; | |
5632 | } | |
5633 | ||
5634 | ||
5635 | static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5636 | PyObject *resultobj; | |
5637 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5638 | int arg2 ; | |
5639 | int arg3 ; | |
5640 | wxString *arg4 = 0 ; | |
5641 | bool result; | |
e811c8ce | 5642 | bool temp4 = False ; |
d14a1e28 | 5643 | PyObject * obj0 = 0 ; |
994141e6 RD |
5644 | PyObject * obj1 = 0 ; |
5645 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5646 | PyObject * obj3 = 0 ; |
5647 | char *kwnames[] = { | |
5648 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
5649 | }; | |
5650 | ||
994141e6 | 5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5654 | arg2 = (int) SWIG_AsInt(obj1); | |
5655 | if (PyErr_Occurred()) SWIG_fail; | |
5656 | arg3 = (int) SWIG_AsInt(obj2); | |
5657 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5658 | { |
5659 | arg4 = wxString_in_helper(obj3); | |
5660 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 5661 | temp4 = True; |
d14a1e28 RD |
5662 | } |
5663 | { | |
5664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5665 | result = (bool)(arg1)->CanGetValueAs(arg2,arg3,(wxString const &)*arg4); | |
5666 | ||
5667 | wxPyEndAllowThreads(__tstate); | |
5668 | if (PyErr_Occurred()) SWIG_fail; | |
5669 | } | |
4f89f6a3 RD |
5670 | { |
5671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5672 | } | |
d14a1e28 RD |
5673 | { |
5674 | if (temp4) | |
5675 | delete arg4; | |
5676 | } | |
5677 | return resultobj; | |
5678 | fail: | |
5679 | { | |
5680 | if (temp4) | |
5681 | delete arg4; | |
5682 | } | |
5683 | return NULL; | |
5684 | } | |
5685 | ||
5686 | ||
5687 | static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5688 | PyObject *resultobj; | |
5689 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5690 | int arg2 ; | |
5691 | int arg3 ; | |
5692 | wxString *arg4 = 0 ; | |
5693 | bool result; | |
e811c8ce | 5694 | bool temp4 = False ; |
d14a1e28 | 5695 | PyObject * obj0 = 0 ; |
994141e6 RD |
5696 | PyObject * obj1 = 0 ; |
5697 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5698 | PyObject * obj3 = 0 ; |
5699 | char *kwnames[] = { | |
5700 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
5701 | }; | |
5702 | ||
994141e6 | 5703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5706 | arg2 = (int) SWIG_AsInt(obj1); | |
5707 | if (PyErr_Occurred()) SWIG_fail; | |
5708 | arg3 = (int) SWIG_AsInt(obj2); | |
5709 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5710 | { |
5711 | arg4 = wxString_in_helper(obj3); | |
5712 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 5713 | temp4 = True; |
d14a1e28 RD |
5714 | } |
5715 | { | |
5716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5717 | result = (bool)(arg1)->CanSetValueAs(arg2,arg3,(wxString const &)*arg4); | |
5718 | ||
5719 | wxPyEndAllowThreads(__tstate); | |
5720 | if (PyErr_Occurred()) SWIG_fail; | |
5721 | } | |
4f89f6a3 RD |
5722 | { |
5723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5724 | } | |
d14a1e28 RD |
5725 | { |
5726 | if (temp4) | |
5727 | delete arg4; | |
5728 | } | |
5729 | return resultobj; | |
5730 | fail: | |
5731 | { | |
5732 | if (temp4) | |
5733 | delete arg4; | |
5734 | } | |
5735 | return NULL; | |
5736 | } | |
5737 | ||
5738 | ||
5739 | static PyObject *_wrap_GridTableBase_GetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5740 | PyObject *resultobj; | |
5741 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5742 | int arg2 ; | |
5743 | int arg3 ; | |
5744 | long result; | |
5745 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5746 | PyObject * obj1 = 0 ; |
5747 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5748 | char *kwnames[] = { |
5749 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5750 | }; | |
5751 | ||
994141e6 | 5752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsLong",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5755 | arg2 = (int) SWIG_AsInt(obj1); | |
5756 | if (PyErr_Occurred()) SWIG_fail; | |
5757 | arg3 = (int) SWIG_AsInt(obj2); | |
5758 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5759 | { |
5760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5761 | result = (long)(arg1)->GetValueAsLong(arg2,arg3); | |
5762 | ||
5763 | wxPyEndAllowThreads(__tstate); | |
5764 | if (PyErr_Occurred()) SWIG_fail; | |
5765 | } | |
15afbcd0 | 5766 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
5767 | return resultobj; |
5768 | fail: | |
5769 | return NULL; | |
5770 | } | |
5771 | ||
5772 | ||
5773 | static PyObject *_wrap_GridTableBase_GetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5774 | PyObject *resultobj; | |
5775 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5776 | int arg2 ; | |
5777 | int arg3 ; | |
5778 | double result; | |
5779 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5780 | PyObject * obj1 = 0 ; |
5781 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5782 | char *kwnames[] = { |
5783 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5784 | }; | |
5785 | ||
994141e6 | 5786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsDouble",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5789 | arg2 = (int) SWIG_AsInt(obj1); | |
5790 | if (PyErr_Occurred()) SWIG_fail; | |
5791 | arg3 = (int) SWIG_AsInt(obj2); | |
5792 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5793 | { |
5794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5795 | result = (double)(arg1)->GetValueAsDouble(arg2,arg3); | |
5796 | ||
5797 | wxPyEndAllowThreads(__tstate); | |
5798 | if (PyErr_Occurred()) SWIG_fail; | |
5799 | } | |
15afbcd0 | 5800 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5801 | return resultobj; |
5802 | fail: | |
5803 | return NULL; | |
5804 | } | |
5805 | ||
5806 | ||
5807 | static PyObject *_wrap_GridTableBase_GetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5808 | PyObject *resultobj; | |
5809 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5810 | int arg2 ; | |
5811 | int arg3 ; | |
5812 | bool result; | |
5813 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5814 | PyObject * obj1 = 0 ; |
5815 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5816 | char *kwnames[] = { |
5817 | (char *) "self",(char *) "row",(char *) "col", NULL | |
5818 | }; | |
5819 | ||
994141e6 | 5820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsBool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5823 | arg2 = (int) SWIG_AsInt(obj1); | |
5824 | if (PyErr_Occurred()) SWIG_fail; | |
5825 | arg3 = (int) SWIG_AsInt(obj2); | |
5826 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5827 | { |
5828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5829 | result = (bool)(arg1)->GetValueAsBool(arg2,arg3); | |
5830 | ||
5831 | wxPyEndAllowThreads(__tstate); | |
5832 | if (PyErr_Occurred()) SWIG_fail; | |
5833 | } | |
4f89f6a3 RD |
5834 | { |
5835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5836 | } | |
d14a1e28 RD |
5837 | return resultobj; |
5838 | fail: | |
5839 | return NULL; | |
5840 | } | |
5841 | ||
5842 | ||
5843 | static PyObject *_wrap_GridTableBase_SetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5844 | PyObject *resultobj; | |
5845 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5846 | int arg2 ; | |
5847 | int arg3 ; | |
5848 | long arg4 ; | |
5849 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5850 | PyObject * obj1 = 0 ; |
5851 | PyObject * obj2 = 0 ; | |
5852 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5853 | char *kwnames[] = { |
5854 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5855 | }; | |
5856 | ||
994141e6 | 5857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsLong",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5860 | arg2 = (int) SWIG_AsInt(obj1); | |
5861 | if (PyErr_Occurred()) SWIG_fail; | |
5862 | arg3 = (int) SWIG_AsInt(obj2); | |
5863 | if (PyErr_Occurred()) SWIG_fail; | |
5864 | arg4 = (long) SWIG_AsLong(obj3); | |
5865 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5866 | { |
5867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5868 | (arg1)->SetValueAsLong(arg2,arg3,arg4); | |
5869 | ||
5870 | wxPyEndAllowThreads(__tstate); | |
5871 | if (PyErr_Occurred()) SWIG_fail; | |
5872 | } | |
5873 | Py_INCREF(Py_None); resultobj = Py_None; | |
5874 | return resultobj; | |
5875 | fail: | |
5876 | return NULL; | |
5877 | } | |
5878 | ||
5879 | ||
5880 | static PyObject *_wrap_GridTableBase_SetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5881 | PyObject *resultobj; | |
5882 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5883 | int arg2 ; | |
5884 | int arg3 ; | |
5885 | double arg4 ; | |
5886 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5887 | PyObject * obj1 = 0 ; |
5888 | PyObject * obj2 = 0 ; | |
5889 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5890 | char *kwnames[] = { |
5891 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5892 | }; | |
5893 | ||
994141e6 | 5894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsDouble",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5897 | arg2 = (int) SWIG_AsInt(obj1); | |
5898 | if (PyErr_Occurred()) SWIG_fail; | |
5899 | arg3 = (int) SWIG_AsInt(obj2); | |
5900 | if (PyErr_Occurred()) SWIG_fail; | |
5901 | arg4 = (double) SWIG_AsDouble(obj3); | |
5902 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5903 | { |
5904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5905 | (arg1)->SetValueAsDouble(arg2,arg3,arg4); | |
5906 | ||
5907 | wxPyEndAllowThreads(__tstate); | |
5908 | if (PyErr_Occurred()) SWIG_fail; | |
5909 | } | |
5910 | Py_INCREF(Py_None); resultobj = Py_None; | |
5911 | return resultobj; | |
5912 | fail: | |
5913 | return NULL; | |
5914 | } | |
5915 | ||
5916 | ||
5917 | static PyObject *_wrap_GridTableBase_SetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5918 | PyObject *resultobj; | |
5919 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5920 | int arg2 ; | |
5921 | int arg3 ; | |
5922 | bool arg4 ; | |
5923 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5924 | PyObject * obj1 = 0 ; |
5925 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5926 | PyObject * obj3 = 0 ; |
5927 | char *kwnames[] = { | |
5928 | (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL | |
5929 | }; | |
5930 | ||
994141e6 | 5931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsBool",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5934 | arg2 = (int) SWIG_AsInt(obj1); | |
5935 | if (PyErr_Occurred()) SWIG_fail; | |
5936 | arg3 = (int) SWIG_AsInt(obj2); | |
5937 | if (PyErr_Occurred()) SWIG_fail; | |
5938 | arg4 = (bool) SWIG_AsBool(obj3); | |
5939 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5940 | { |
5941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5942 | (arg1)->SetValueAsBool(arg2,arg3,arg4); | |
5943 | ||
5944 | wxPyEndAllowThreads(__tstate); | |
5945 | if (PyErr_Occurred()) SWIG_fail; | |
5946 | } | |
5947 | Py_INCREF(Py_None); resultobj = Py_None; | |
5948 | return resultobj; | |
5949 | fail: | |
5950 | return NULL; | |
5951 | } | |
5952 | ||
5953 | ||
5954 | static PyObject *_wrap_GridTableBase_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5955 | PyObject *resultobj; | |
5956 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5957 | PyObject * obj0 = 0 ; | |
5958 | char *kwnames[] = { | |
5959 | (char *) "self", NULL | |
5960 | }; | |
5961 | ||
5962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5965 | { |
5966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5967 | (arg1)->Clear(); | |
5968 | ||
5969 | wxPyEndAllowThreads(__tstate); | |
5970 | if (PyErr_Occurred()) SWIG_fail; | |
5971 | } | |
5972 | Py_INCREF(Py_None); resultobj = Py_None; | |
5973 | return resultobj; | |
5974 | fail: | |
5975 | return NULL; | |
5976 | } | |
5977 | ||
5978 | ||
5979 | static PyObject *_wrap_GridTableBase_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5980 | PyObject *resultobj; | |
5981 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
5982 | size_t arg2 = (size_t) 0 ; | |
5983 | size_t arg3 = (size_t) 1 ; | |
5984 | bool result; | |
5985 | PyObject * obj0 = 0 ; | |
5986 | PyObject * obj1 = 0 ; | |
5987 | PyObject * obj2 = 0 ; | |
5988 | char *kwnames[] = { | |
5989 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
5990 | }; | |
5991 | ||
5992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
5993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
5994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 5995 | if (obj1) { |
15afbcd0 RD |
5996 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
5997 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5998 | } |
5999 | if (obj2) { | |
15afbcd0 RD |
6000 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
6001 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6002 | } |
6003 | { | |
6004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6005 | result = (bool)(arg1)->InsertRows(arg2,arg3); | |
6006 | ||
6007 | wxPyEndAllowThreads(__tstate); | |
6008 | if (PyErr_Occurred()) SWIG_fail; | |
6009 | } | |
4f89f6a3 RD |
6010 | { |
6011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6012 | } | |
d14a1e28 RD |
6013 | return resultobj; |
6014 | fail: | |
6015 | return NULL; | |
6016 | } | |
6017 | ||
6018 | ||
6019 | static PyObject *_wrap_GridTableBase_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6020 | PyObject *resultobj; | |
6021 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6022 | size_t arg2 = (size_t) 1 ; | |
6023 | bool result; | |
6024 | PyObject * obj0 = 0 ; | |
6025 | PyObject * obj1 = 0 ; | |
6026 | char *kwnames[] = { | |
6027 | (char *) "self",(char *) "numRows", NULL | |
6028 | }; | |
6029 | ||
6030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendRows",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6033 | if (obj1) { |
15afbcd0 RD |
6034 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6035 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6036 | } |
6037 | { | |
6038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6039 | result = (bool)(arg1)->AppendRows(arg2); | |
6040 | ||
6041 | wxPyEndAllowThreads(__tstate); | |
6042 | if (PyErr_Occurred()) SWIG_fail; | |
6043 | } | |
4f89f6a3 RD |
6044 | { |
6045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6046 | } | |
d14a1e28 RD |
6047 | return resultobj; |
6048 | fail: | |
6049 | return NULL; | |
6050 | } | |
6051 | ||
6052 | ||
6053 | static PyObject *_wrap_GridTableBase_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6054 | PyObject *resultobj; | |
6055 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6056 | size_t arg2 = (size_t) 0 ; | |
6057 | size_t arg3 = (size_t) 1 ; | |
6058 | bool result; | |
6059 | PyObject * obj0 = 0 ; | |
6060 | PyObject * obj1 = 0 ; | |
6061 | PyObject * obj2 = 0 ; | |
6062 | char *kwnames[] = { | |
6063 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6064 | }; | |
6065 | ||
6066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6069 | if (obj1) { |
15afbcd0 RD |
6070 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6071 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6072 | } |
6073 | if (obj2) { | |
15afbcd0 RD |
6074 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
6075 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6076 | } |
6077 | { | |
6078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6079 | result = (bool)(arg1)->DeleteRows(arg2,arg3); | |
6080 | ||
6081 | wxPyEndAllowThreads(__tstate); | |
6082 | if (PyErr_Occurred()) SWIG_fail; | |
6083 | } | |
4f89f6a3 RD |
6084 | { |
6085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6086 | } | |
d14a1e28 RD |
6087 | return resultobj; |
6088 | fail: | |
6089 | return NULL; | |
6090 | } | |
6091 | ||
6092 | ||
6093 | static PyObject *_wrap_GridTableBase_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6094 | PyObject *resultobj; | |
6095 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6096 | size_t arg2 = (size_t) 0 ; | |
6097 | size_t arg3 = (size_t) 1 ; | |
6098 | bool result; | |
6099 | PyObject * obj0 = 0 ; | |
6100 | PyObject * obj1 = 0 ; | |
6101 | PyObject * obj2 = 0 ; | |
6102 | char *kwnames[] = { | |
6103 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6104 | }; | |
6105 | ||
6106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6109 | if (obj1) { |
15afbcd0 RD |
6110 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6111 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6112 | } |
6113 | if (obj2) { | |
15afbcd0 RD |
6114 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
6115 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6116 | } |
6117 | { | |
6118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6119 | result = (bool)(arg1)->InsertCols(arg2,arg3); | |
6120 | ||
6121 | wxPyEndAllowThreads(__tstate); | |
6122 | if (PyErr_Occurred()) SWIG_fail; | |
6123 | } | |
4f89f6a3 RD |
6124 | { |
6125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6126 | } | |
d14a1e28 RD |
6127 | return resultobj; |
6128 | fail: | |
6129 | return NULL; | |
6130 | } | |
6131 | ||
6132 | ||
6133 | static PyObject *_wrap_GridTableBase_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6134 | PyObject *resultobj; | |
6135 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6136 | size_t arg2 = (size_t) 1 ; | |
6137 | bool result; | |
6138 | PyObject * obj0 = 0 ; | |
6139 | PyObject * obj1 = 0 ; | |
6140 | char *kwnames[] = { | |
6141 | (char *) "self",(char *) "numCols", NULL | |
6142 | }; | |
6143 | ||
6144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendCols",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6147 | if (obj1) { |
15afbcd0 RD |
6148 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6149 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6150 | } |
6151 | { | |
6152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6153 | result = (bool)(arg1)->AppendCols(arg2); | |
6154 | ||
6155 | wxPyEndAllowThreads(__tstate); | |
6156 | if (PyErr_Occurred()) SWIG_fail; | |
6157 | } | |
4f89f6a3 RD |
6158 | { |
6159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6160 | } | |
d14a1e28 RD |
6161 | return resultobj; |
6162 | fail: | |
6163 | return NULL; | |
6164 | } | |
6165 | ||
6166 | ||
6167 | static PyObject *_wrap_GridTableBase_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6168 | PyObject *resultobj; | |
6169 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6170 | size_t arg2 = (size_t) 0 ; | |
6171 | size_t arg3 = (size_t) 1 ; | |
6172 | bool result; | |
6173 | PyObject * obj0 = 0 ; | |
6174 | PyObject * obj1 = 0 ; | |
6175 | PyObject * obj2 = 0 ; | |
6176 | char *kwnames[] = { | |
6177 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6178 | }; | |
6179 | ||
6180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6183 | if (obj1) { |
15afbcd0 RD |
6184 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6185 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6186 | } |
6187 | if (obj2) { | |
15afbcd0 RD |
6188 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
6189 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6190 | } |
6191 | { | |
6192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6193 | result = (bool)(arg1)->DeleteCols(arg2,arg3); | |
6194 | ||
6195 | wxPyEndAllowThreads(__tstate); | |
6196 | if (PyErr_Occurred()) SWIG_fail; | |
6197 | } | |
4f89f6a3 RD |
6198 | { |
6199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6200 | } | |
d14a1e28 RD |
6201 | return resultobj; |
6202 | fail: | |
6203 | return NULL; | |
6204 | } | |
6205 | ||
6206 | ||
6207 | static PyObject *_wrap_GridTableBase_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6208 | PyObject *resultobj; | |
6209 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6210 | int arg2 ; | |
6211 | wxString result; | |
6212 | PyObject * obj0 = 0 ; | |
994141e6 | 6213 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6214 | char *kwnames[] = { |
6215 | (char *) "self",(char *) "row", NULL | |
6216 | }; | |
6217 | ||
994141e6 | 6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6221 | arg2 = (int) SWIG_AsInt(obj1); | |
6222 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6223 | { |
6224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6225 | result = (arg1)->GetRowLabelValue(arg2); | |
6226 | ||
6227 | wxPyEndAllowThreads(__tstate); | |
6228 | if (PyErr_Occurred()) SWIG_fail; | |
6229 | } | |
6230 | { | |
6231 | #if wxUSE_UNICODE | |
6232 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6233 | #else | |
6234 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6235 | #endif | |
6236 | } | |
6237 | return resultobj; | |
6238 | fail: | |
6239 | return NULL; | |
6240 | } | |
6241 | ||
6242 | ||
6243 | static PyObject *_wrap_GridTableBase_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6244 | PyObject *resultobj; | |
6245 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6246 | int arg2 ; | |
6247 | wxString result; | |
6248 | PyObject * obj0 = 0 ; | |
994141e6 | 6249 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6250 | char *kwnames[] = { |
6251 | (char *) "self",(char *) "col", NULL | |
6252 | }; | |
6253 | ||
994141e6 | 6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6257 | arg2 = (int) SWIG_AsInt(obj1); | |
6258 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6259 | { |
6260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6261 | result = (arg1)->GetColLabelValue(arg2); | |
6262 | ||
6263 | wxPyEndAllowThreads(__tstate); | |
6264 | if (PyErr_Occurred()) SWIG_fail; | |
6265 | } | |
6266 | { | |
6267 | #if wxUSE_UNICODE | |
6268 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6269 | #else | |
6270 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6271 | #endif | |
6272 | } | |
6273 | return resultobj; | |
6274 | fail: | |
6275 | return NULL; | |
6276 | } | |
6277 | ||
6278 | ||
6279 | static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6280 | PyObject *resultobj; | |
6281 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6282 | int arg2 ; | |
6283 | wxString *arg3 = 0 ; | |
e811c8ce | 6284 | bool temp3 = False ; |
d14a1e28 | 6285 | PyObject * obj0 = 0 ; |
994141e6 | 6286 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6287 | PyObject * obj2 = 0 ; |
6288 | char *kwnames[] = { | |
6289 | (char *) "self",(char *) "row",(char *) "value", NULL | |
6290 | }; | |
6291 | ||
994141e6 | 6292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6295 | arg2 = (int) SWIG_AsInt(obj1); | |
6296 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6297 | { |
6298 | arg3 = wxString_in_helper(obj2); | |
6299 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6300 | temp3 = True; |
d14a1e28 RD |
6301 | } |
6302 | { | |
6303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6304 | (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3); | |
6305 | ||
6306 | wxPyEndAllowThreads(__tstate); | |
6307 | if (PyErr_Occurred()) SWIG_fail; | |
6308 | } | |
6309 | Py_INCREF(Py_None); resultobj = Py_None; | |
6310 | { | |
6311 | if (temp3) | |
6312 | delete arg3; | |
6313 | } | |
6314 | return resultobj; | |
6315 | fail: | |
6316 | { | |
6317 | if (temp3) | |
6318 | delete arg3; | |
6319 | } | |
6320 | return NULL; | |
6321 | } | |
6322 | ||
6323 | ||
6324 | static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6325 | PyObject *resultobj; | |
6326 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6327 | int arg2 ; | |
6328 | wxString *arg3 = 0 ; | |
e811c8ce | 6329 | bool temp3 = False ; |
d14a1e28 | 6330 | PyObject * obj0 = 0 ; |
994141e6 | 6331 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6332 | PyObject * obj2 = 0 ; |
6333 | char *kwnames[] = { | |
6334 | (char *) "self",(char *) "col",(char *) "value", NULL | |
6335 | }; | |
6336 | ||
994141e6 | 6337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6340 | arg2 = (int) SWIG_AsInt(obj1); | |
6341 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6342 | { |
6343 | arg3 = wxString_in_helper(obj2); | |
6344 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6345 | temp3 = True; |
d14a1e28 RD |
6346 | } |
6347 | { | |
6348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6349 | (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3); | |
6350 | ||
6351 | wxPyEndAllowThreads(__tstate); | |
6352 | if (PyErr_Occurred()) SWIG_fail; | |
6353 | } | |
6354 | Py_INCREF(Py_None); resultobj = Py_None; | |
6355 | { | |
6356 | if (temp3) | |
6357 | delete arg3; | |
6358 | } | |
6359 | return resultobj; | |
6360 | fail: | |
6361 | { | |
6362 | if (temp3) | |
6363 | delete arg3; | |
6364 | } | |
6365 | return NULL; | |
6366 | } | |
6367 | ||
6368 | ||
6369 | static PyObject *_wrap_GridTableBase_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6370 | PyObject *resultobj; | |
6371 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6372 | bool result; | |
6373 | PyObject * obj0 = 0 ; | |
6374 | char *kwnames[] = { | |
6375 | (char *) "self", NULL | |
6376 | }; | |
6377 | ||
6378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_CanHaveAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6381 | { |
6382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6383 | result = (bool)(arg1)->CanHaveAttributes(); | |
6384 | ||
6385 | wxPyEndAllowThreads(__tstate); | |
6386 | if (PyErr_Occurred()) SWIG_fail; | |
6387 | } | |
4f89f6a3 RD |
6388 | { |
6389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6390 | } | |
d14a1e28 RD |
6391 | return resultobj; |
6392 | fail: | |
6393 | return NULL; | |
6394 | } | |
6395 | ||
6396 | ||
6397 | static PyObject *_wrap_GridTableBase_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6398 | PyObject *resultobj; | |
6399 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6400 | int arg2 ; | |
6401 | int arg3 ; | |
6402 | int arg4 ; | |
6403 | wxGridCellAttr *result; | |
6404 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6405 | PyObject * obj1 = 0 ; |
6406 | PyObject * obj2 = 0 ; | |
6407 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
6408 | char *kwnames[] = { |
6409 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
6410 | }; | |
6411 | ||
994141e6 | 6412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
6413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6415 | arg2 = (int) SWIG_AsInt(obj1); | |
6416 | if (PyErr_Occurred()) SWIG_fail; | |
6417 | arg3 = (int) SWIG_AsInt(obj2); | |
6418 | if (PyErr_Occurred()) SWIG_fail; | |
6419 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3); | |
6420 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6421 | { |
6422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6423 | result = (wxGridCellAttr *)(arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
6424 | ||
6425 | wxPyEndAllowThreads(__tstate); | |
6426 | if (PyErr_Occurred()) SWIG_fail; | |
6427 | } | |
6428 | { | |
6429 | resultobj = wxPyMake_wxGridCellAttr(result); | |
6430 | } | |
6431 | return resultobj; | |
6432 | fail: | |
6433 | return NULL; | |
6434 | } | |
6435 | ||
6436 | ||
6437 | static PyObject *_wrap_GridTableBase_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6438 | PyObject *resultobj; | |
6439 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6440 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6441 | int arg3 ; | |
6442 | int arg4 ; | |
6443 | PyObject * obj0 = 0 ; | |
6444 | PyObject * obj1 = 0 ; | |
994141e6 RD |
6445 | PyObject * obj2 = 0 ; |
6446 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
6447 | char *kwnames[] = { |
6448 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
6449 | }; | |
6450 | ||
994141e6 | 6451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
6452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6454 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
6455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6456 | arg3 = (int) SWIG_AsInt(obj2); | |
6457 | if (PyErr_Occurred()) SWIG_fail; | |
6458 | arg4 = (int) SWIG_AsInt(obj3); | |
6459 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6460 | { |
6461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6462 | (arg1)->SetAttr(arg2,arg3,arg4); | |
6463 | ||
6464 | wxPyEndAllowThreads(__tstate); | |
6465 | if (PyErr_Occurred()) SWIG_fail; | |
6466 | } | |
6467 | Py_INCREF(Py_None); resultobj = Py_None; | |
6468 | return resultobj; | |
6469 | fail: | |
6470 | return NULL; | |
6471 | } | |
6472 | ||
6473 | ||
6474 | static PyObject *_wrap_GridTableBase_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6475 | PyObject *resultobj; | |
6476 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6477 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6478 | int arg3 ; | |
6479 | PyObject * obj0 = 0 ; | |
6480 | PyObject * obj1 = 0 ; | |
994141e6 | 6481 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6482 | char *kwnames[] = { |
6483 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
6484 | }; | |
6485 | ||
994141e6 | 6486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6489 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
6490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6491 | arg3 = (int) SWIG_AsInt(obj2); | |
6492 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6493 | { |
6494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6495 | (arg1)->SetRowAttr(arg2,arg3); | |
6496 | ||
6497 | wxPyEndAllowThreads(__tstate); | |
6498 | if (PyErr_Occurred()) SWIG_fail; | |
6499 | } | |
6500 | Py_INCREF(Py_None); resultobj = Py_None; | |
6501 | return resultobj; | |
6502 | fail: | |
6503 | return NULL; | |
6504 | } | |
6505 | ||
6506 | ||
6507 | static PyObject *_wrap_GridTableBase_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6508 | PyObject *resultobj; | |
6509 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
6510 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
6511 | int arg3 ; | |
6512 | PyObject * obj0 = 0 ; | |
6513 | PyObject * obj1 = 0 ; | |
994141e6 | 6514 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6515 | char *kwnames[] = { |
6516 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
6517 | }; | |
6518 | ||
994141e6 | 6519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
6521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
6523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6524 | arg3 = (int) SWIG_AsInt(obj2); | |
6525 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6526 | { |
6527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6528 | (arg1)->SetColAttr(arg2,arg3); | |
6529 | ||
6530 | wxPyEndAllowThreads(__tstate); | |
6531 | if (PyErr_Occurred()) SWIG_fail; | |
6532 | } | |
6533 | Py_INCREF(Py_None); resultobj = Py_None; | |
6534 | return resultobj; | |
6535 | fail: | |
6536 | return NULL; | |
6537 | } | |
6538 | ||
6539 | ||
6540 | static PyObject * GridTableBase_swigregister(PyObject *self, PyObject *args) { | |
6541 | PyObject *obj; | |
6542 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6543 | SWIG_TypeClientData(SWIGTYPE_p_wxGridTableBase, obj); | |
6544 | Py_INCREF(obj); | |
6545 | return Py_BuildValue((char *)""); | |
6546 | } | |
6547 | static PyObject *_wrap_new_PyGridTableBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6548 | PyObject *resultobj; | |
6549 | wxPyGridTableBase *result; | |
6550 | char *kwnames[] = { | |
6551 | NULL | |
6552 | }; | |
6553 | ||
6554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridTableBase",kwnames)) goto fail; | |
6555 | { | |
6556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6557 | result = (wxPyGridTableBase *)new wxPyGridTableBase(); | |
6558 | ||
6559 | wxPyEndAllowThreads(__tstate); | |
6560 | if (PyErr_Occurred()) SWIG_fail; | |
6561 | } | |
15afbcd0 | 6562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyGridTableBase, 1); |
d14a1e28 RD |
6563 | return resultobj; |
6564 | fail: | |
6565 | return NULL; | |
6566 | } | |
6567 | ||
6568 | ||
6569 | static PyObject *_wrap_PyGridTableBase__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6570 | PyObject *resultobj; | |
6571 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6572 | PyObject *arg2 = (PyObject *) 0 ; | |
6573 | PyObject *arg3 = (PyObject *) 0 ; | |
6574 | PyObject * obj0 = 0 ; | |
6575 | PyObject * obj1 = 0 ; | |
6576 | PyObject * obj2 = 0 ; | |
6577 | char *kwnames[] = { | |
6578 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6579 | }; | |
6580 | ||
6581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6584 | arg2 = obj1; |
6585 | arg3 = obj2; | |
6586 | { | |
6587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6588 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6589 | ||
6590 | wxPyEndAllowThreads(__tstate); | |
6591 | if (PyErr_Occurred()) SWIG_fail; | |
6592 | } | |
6593 | Py_INCREF(Py_None); resultobj = Py_None; | |
6594 | return resultobj; | |
6595 | fail: | |
6596 | return NULL; | |
6597 | } | |
6598 | ||
6599 | ||
6600 | static PyObject *_wrap_PyGridTableBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6601 | PyObject *resultobj; | |
6602 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6603 | PyObject * obj0 = 0 ; | |
6604 | char *kwnames[] = { | |
6605 | (char *) "self", NULL | |
6606 | }; | |
6607 | ||
6608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6611 | { |
6612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6613 | wxPyGridTableBase_Destroy(arg1); | |
6614 | ||
6615 | wxPyEndAllowThreads(__tstate); | |
6616 | if (PyErr_Occurred()) SWIG_fail; | |
6617 | } | |
6618 | Py_INCREF(Py_None); resultobj = Py_None; | |
6619 | return resultobj; | |
6620 | fail: | |
6621 | return NULL; | |
6622 | } | |
6623 | ||
6624 | ||
6625 | static PyObject *_wrap_PyGridTableBase_base_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6626 | PyObject *resultobj; | |
6627 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6628 | int arg2 ; | |
6629 | int arg3 ; | |
6630 | wxString result; | |
6631 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6632 | PyObject * obj1 = 0 ; |
6633 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6634 | char *kwnames[] = { |
6635 | (char *) "self",(char *) "row",(char *) "col", NULL | |
6636 | }; | |
6637 | ||
994141e6 | 6638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6641 | arg2 = (int) SWIG_AsInt(obj1); | |
6642 | if (PyErr_Occurred()) SWIG_fail; | |
6643 | arg3 = (int) SWIG_AsInt(obj2); | |
6644 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6645 | { |
6646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6647 | result = (arg1)->base_GetTypeName(arg2,arg3); | |
6648 | ||
6649 | wxPyEndAllowThreads(__tstate); | |
6650 | if (PyErr_Occurred()) SWIG_fail; | |
6651 | } | |
6652 | { | |
6653 | #if wxUSE_UNICODE | |
6654 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6655 | #else | |
6656 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6657 | #endif | |
6658 | } | |
6659 | return resultobj; | |
6660 | fail: | |
6661 | return NULL; | |
6662 | } | |
6663 | ||
6664 | ||
6665 | static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6666 | PyObject *resultobj; | |
6667 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6668 | int arg2 ; | |
6669 | int arg3 ; | |
6670 | wxString *arg4 = 0 ; | |
6671 | bool result; | |
e811c8ce | 6672 | bool temp4 = False ; |
d14a1e28 | 6673 | PyObject * obj0 = 0 ; |
994141e6 RD |
6674 | PyObject * obj1 = 0 ; |
6675 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6676 | PyObject * obj3 = 0 ; |
6677 | char *kwnames[] = { | |
6678 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
6679 | }; | |
6680 | ||
994141e6 | 6681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
6682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6684 | arg2 = (int) SWIG_AsInt(obj1); | |
6685 | if (PyErr_Occurred()) SWIG_fail; | |
6686 | arg3 = (int) SWIG_AsInt(obj2); | |
6687 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6688 | { |
6689 | arg4 = wxString_in_helper(obj3); | |
6690 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 6691 | temp4 = True; |
d14a1e28 RD |
6692 | } |
6693 | { | |
6694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6695 | result = (bool)(arg1)->base_CanGetValueAs(arg2,arg3,(wxString const &)*arg4); | |
6696 | ||
6697 | wxPyEndAllowThreads(__tstate); | |
6698 | if (PyErr_Occurred()) SWIG_fail; | |
6699 | } | |
4f89f6a3 RD |
6700 | { |
6701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6702 | } | |
d14a1e28 RD |
6703 | { |
6704 | if (temp4) | |
6705 | delete arg4; | |
6706 | } | |
6707 | return resultobj; | |
6708 | fail: | |
6709 | { | |
6710 | if (temp4) | |
6711 | delete arg4; | |
6712 | } | |
6713 | return NULL; | |
6714 | } | |
6715 | ||
6716 | ||
6717 | static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6718 | PyObject *resultobj; | |
6719 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6720 | int arg2 ; | |
6721 | int arg3 ; | |
6722 | wxString *arg4 = 0 ; | |
6723 | bool result; | |
e811c8ce | 6724 | bool temp4 = False ; |
d14a1e28 | 6725 | PyObject * obj0 = 0 ; |
994141e6 RD |
6726 | PyObject * obj1 = 0 ; |
6727 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6728 | PyObject * obj3 = 0 ; |
6729 | char *kwnames[] = { | |
6730 | (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL | |
6731 | }; | |
6732 | ||
994141e6 | 6733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
6734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6736 | arg2 = (int) SWIG_AsInt(obj1); | |
6737 | if (PyErr_Occurred()) SWIG_fail; | |
6738 | arg3 = (int) SWIG_AsInt(obj2); | |
6739 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6740 | { |
6741 | arg4 = wxString_in_helper(obj3); | |
6742 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 6743 | temp4 = True; |
d14a1e28 RD |
6744 | } |
6745 | { | |
6746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6747 | result = (bool)(arg1)->base_CanSetValueAs(arg2,arg3,(wxString const &)*arg4); | |
6748 | ||
6749 | wxPyEndAllowThreads(__tstate); | |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
6751 | } | |
4f89f6a3 RD |
6752 | { |
6753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6754 | } | |
d14a1e28 RD |
6755 | { |
6756 | if (temp4) | |
6757 | delete arg4; | |
6758 | } | |
6759 | return resultobj; | |
6760 | fail: | |
6761 | { | |
6762 | if (temp4) | |
6763 | delete arg4; | |
6764 | } | |
6765 | return NULL; | |
6766 | } | |
6767 | ||
6768 | ||
6769 | static PyObject *_wrap_PyGridTableBase_base_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6770 | PyObject *resultobj; | |
6771 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6772 | PyObject * obj0 = 0 ; | |
6773 | char *kwnames[] = { | |
6774 | (char *) "self", NULL | |
6775 | }; | |
6776 | ||
6777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6780 | { |
6781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6782 | (arg1)->base_Clear(); | |
6783 | ||
6784 | wxPyEndAllowThreads(__tstate); | |
6785 | if (PyErr_Occurred()) SWIG_fail; | |
6786 | } | |
6787 | Py_INCREF(Py_None); resultobj = Py_None; | |
6788 | return resultobj; | |
6789 | fail: | |
6790 | return NULL; | |
6791 | } | |
6792 | ||
6793 | ||
6794 | static PyObject *_wrap_PyGridTableBase_base_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6795 | PyObject *resultobj; | |
6796 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6797 | size_t arg2 = (size_t) 0 ; | |
6798 | size_t arg3 = (size_t) 1 ; | |
6799 | bool result; | |
6800 | PyObject * obj0 = 0 ; | |
6801 | PyObject * obj1 = 0 ; | |
6802 | PyObject * obj2 = 0 ; | |
6803 | char *kwnames[] = { | |
6804 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6805 | }; | |
6806 | ||
6807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6810 | if (obj1) { |
15afbcd0 RD |
6811 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6812 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6813 | } |
6814 | if (obj2) { | |
15afbcd0 RD |
6815 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
6816 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6817 | } |
6818 | { | |
6819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6820 | result = (bool)(arg1)->base_InsertRows(arg2,arg3); | |
6821 | ||
6822 | wxPyEndAllowThreads(__tstate); | |
6823 | if (PyErr_Occurred()) SWIG_fail; | |
6824 | } | |
4f89f6a3 RD |
6825 | { |
6826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6827 | } | |
d14a1e28 RD |
6828 | return resultobj; |
6829 | fail: | |
6830 | return NULL; | |
6831 | } | |
6832 | ||
6833 | ||
6834 | static PyObject *_wrap_PyGridTableBase_base_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6835 | PyObject *resultobj; | |
6836 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6837 | size_t arg2 = (size_t) 1 ; | |
6838 | bool result; | |
6839 | PyObject * obj0 = 0 ; | |
6840 | PyObject * obj1 = 0 ; | |
6841 | char *kwnames[] = { | |
6842 | (char *) "self",(char *) "numRows", NULL | |
6843 | }; | |
6844 | ||
6845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendRows",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6848 | if (obj1) { |
15afbcd0 RD |
6849 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6850 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6851 | } |
6852 | { | |
6853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6854 | result = (bool)(arg1)->base_AppendRows(arg2); | |
6855 | ||
6856 | wxPyEndAllowThreads(__tstate); | |
6857 | if (PyErr_Occurred()) SWIG_fail; | |
6858 | } | |
4f89f6a3 RD |
6859 | { |
6860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6861 | } | |
d14a1e28 RD |
6862 | return resultobj; |
6863 | fail: | |
6864 | return NULL; | |
6865 | } | |
6866 | ||
6867 | ||
6868 | static PyObject *_wrap_PyGridTableBase_base_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6869 | PyObject *resultobj; | |
6870 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6871 | size_t arg2 = (size_t) 0 ; | |
6872 | size_t arg3 = (size_t) 1 ; | |
6873 | bool result; | |
6874 | PyObject * obj0 = 0 ; | |
6875 | PyObject * obj1 = 0 ; | |
6876 | PyObject * obj2 = 0 ; | |
6877 | char *kwnames[] = { | |
6878 | (char *) "self",(char *) "pos",(char *) "numRows", NULL | |
6879 | }; | |
6880 | ||
6881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6884 | if (obj1) { |
15afbcd0 RD |
6885 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6886 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6887 | } |
6888 | if (obj2) { | |
15afbcd0 RD |
6889 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
6890 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6891 | } |
6892 | { | |
6893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6894 | result = (bool)(arg1)->base_DeleteRows(arg2,arg3); | |
6895 | ||
6896 | wxPyEndAllowThreads(__tstate); | |
6897 | if (PyErr_Occurred()) SWIG_fail; | |
6898 | } | |
4f89f6a3 RD |
6899 | { |
6900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6901 | } | |
d14a1e28 RD |
6902 | return resultobj; |
6903 | fail: | |
6904 | return NULL; | |
6905 | } | |
6906 | ||
6907 | ||
6908 | static PyObject *_wrap_PyGridTableBase_base_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6909 | PyObject *resultobj; | |
6910 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6911 | size_t arg2 = (size_t) 0 ; | |
6912 | size_t arg3 = (size_t) 1 ; | |
6913 | bool result; | |
6914 | PyObject * obj0 = 0 ; | |
6915 | PyObject * obj1 = 0 ; | |
6916 | PyObject * obj2 = 0 ; | |
6917 | char *kwnames[] = { | |
6918 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6919 | }; | |
6920 | ||
6921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6924 | if (obj1) { |
15afbcd0 RD |
6925 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6926 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6927 | } |
6928 | if (obj2) { | |
15afbcd0 RD |
6929 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
6930 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6931 | } |
6932 | { | |
6933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6934 | result = (bool)(arg1)->base_InsertCols(arg2,arg3); | |
6935 | ||
6936 | wxPyEndAllowThreads(__tstate); | |
6937 | if (PyErr_Occurred()) SWIG_fail; | |
6938 | } | |
4f89f6a3 RD |
6939 | { |
6940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6941 | } | |
d14a1e28 RD |
6942 | return resultobj; |
6943 | fail: | |
6944 | return NULL; | |
6945 | } | |
6946 | ||
6947 | ||
6948 | static PyObject *_wrap_PyGridTableBase_base_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6949 | PyObject *resultobj; | |
6950 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6951 | size_t arg2 = (size_t) 1 ; | |
6952 | bool result; | |
6953 | PyObject * obj0 = 0 ; | |
6954 | PyObject * obj1 = 0 ; | |
6955 | char *kwnames[] = { | |
6956 | (char *) "self",(char *) "numCols", NULL | |
6957 | }; | |
6958 | ||
6959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendCols",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6962 | if (obj1) { |
15afbcd0 RD |
6963 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6964 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6965 | } |
6966 | { | |
6967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6968 | result = (bool)(arg1)->base_AppendCols(arg2); | |
6969 | ||
6970 | wxPyEndAllowThreads(__tstate); | |
6971 | if (PyErr_Occurred()) SWIG_fail; | |
6972 | } | |
4f89f6a3 RD |
6973 | { |
6974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6975 | } | |
d14a1e28 RD |
6976 | return resultobj; |
6977 | fail: | |
6978 | return NULL; | |
6979 | } | |
6980 | ||
6981 | ||
6982 | static PyObject *_wrap_PyGridTableBase_base_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6983 | PyObject *resultobj; | |
6984 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
6985 | size_t arg2 = (size_t) 0 ; | |
6986 | size_t arg3 = (size_t) 1 ; | |
6987 | bool result; | |
6988 | PyObject * obj0 = 0 ; | |
6989 | PyObject * obj1 = 0 ; | |
6990 | PyObject * obj2 = 0 ; | |
6991 | char *kwnames[] = { | |
6992 | (char *) "self",(char *) "pos",(char *) "numCols", NULL | |
6993 | }; | |
6994 | ||
6995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
6997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6998 | if (obj1) { |
15afbcd0 RD |
6999 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
7000 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7001 | } |
7002 | if (obj2) { | |
15afbcd0 RD |
7003 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
7004 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7005 | } |
7006 | { | |
7007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7008 | result = (bool)(arg1)->base_DeleteCols(arg2,arg3); | |
7009 | ||
7010 | wxPyEndAllowThreads(__tstate); | |
7011 | if (PyErr_Occurred()) SWIG_fail; | |
7012 | } | |
4f89f6a3 RD |
7013 | { |
7014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7015 | } | |
d14a1e28 RD |
7016 | return resultobj; |
7017 | fail: | |
7018 | return NULL; | |
7019 | } | |
7020 | ||
7021 | ||
7022 | static PyObject *_wrap_PyGridTableBase_base_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7023 | PyObject *resultobj; | |
7024 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7025 | int arg2 ; | |
7026 | wxString result; | |
7027 | PyObject * obj0 = 0 ; | |
994141e6 | 7028 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7029 | char *kwnames[] = { |
7030 | (char *) "self",(char *) "row", NULL | |
7031 | }; | |
7032 | ||
994141e6 | 7033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7036 | arg2 = (int) SWIG_AsInt(obj1); | |
7037 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7038 | { |
7039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7040 | result = (arg1)->base_GetRowLabelValue(arg2); | |
7041 | ||
7042 | wxPyEndAllowThreads(__tstate); | |
7043 | if (PyErr_Occurred()) SWIG_fail; | |
7044 | } | |
7045 | { | |
7046 | #if wxUSE_UNICODE | |
7047 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7048 | #else | |
7049 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7050 | #endif | |
7051 | } | |
7052 | return resultobj; | |
7053 | fail: | |
7054 | return NULL; | |
7055 | } | |
7056 | ||
7057 | ||
7058 | static PyObject *_wrap_PyGridTableBase_base_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7059 | PyObject *resultobj; | |
7060 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7061 | int arg2 ; | |
7062 | wxString result; | |
7063 | PyObject * obj0 = 0 ; | |
994141e6 | 7064 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7065 | char *kwnames[] = { |
7066 | (char *) "self",(char *) "col", NULL | |
7067 | }; | |
7068 | ||
994141e6 | 7069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7072 | arg2 = (int) SWIG_AsInt(obj1); | |
7073 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7074 | { |
7075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7076 | result = (arg1)->base_GetColLabelValue(arg2); | |
7077 | ||
7078 | wxPyEndAllowThreads(__tstate); | |
7079 | if (PyErr_Occurred()) SWIG_fail; | |
7080 | } | |
7081 | { | |
7082 | #if wxUSE_UNICODE | |
7083 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7084 | #else | |
7085 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7086 | #endif | |
7087 | } | |
7088 | return resultobj; | |
7089 | fail: | |
7090 | return NULL; | |
7091 | } | |
7092 | ||
7093 | ||
7094 | static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7095 | PyObject *resultobj; | |
7096 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7097 | int arg2 ; | |
7098 | wxString *arg3 = 0 ; | |
e811c8ce | 7099 | bool temp3 = False ; |
d14a1e28 | 7100 | PyObject * obj0 = 0 ; |
994141e6 | 7101 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7102 | PyObject * obj2 = 0 ; |
7103 | char *kwnames[] = { | |
7104 | (char *) "self",(char *) "row",(char *) "value", NULL | |
7105 | }; | |
7106 | ||
994141e6 | 7107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7110 | arg2 = (int) SWIG_AsInt(obj1); | |
7111 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7112 | { |
7113 | arg3 = wxString_in_helper(obj2); | |
7114 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7115 | temp3 = True; |
d14a1e28 RD |
7116 | } |
7117 | { | |
7118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7119 | (arg1)->base_SetRowLabelValue(arg2,(wxString const &)*arg3); | |
7120 | ||
7121 | wxPyEndAllowThreads(__tstate); | |
7122 | if (PyErr_Occurred()) SWIG_fail; | |
7123 | } | |
7124 | Py_INCREF(Py_None); resultobj = Py_None; | |
7125 | { | |
7126 | if (temp3) | |
7127 | delete arg3; | |
7128 | } | |
7129 | return resultobj; | |
7130 | fail: | |
7131 | { | |
7132 | if (temp3) | |
7133 | delete arg3; | |
7134 | } | |
7135 | return NULL; | |
7136 | } | |
7137 | ||
7138 | ||
7139 | static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7140 | PyObject *resultobj; | |
7141 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7142 | int arg2 ; | |
7143 | wxString *arg3 = 0 ; | |
e811c8ce | 7144 | bool temp3 = False ; |
d14a1e28 | 7145 | PyObject * obj0 = 0 ; |
994141e6 | 7146 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7147 | PyObject * obj2 = 0 ; |
7148 | char *kwnames[] = { | |
7149 | (char *) "self",(char *) "col",(char *) "value", NULL | |
7150 | }; | |
7151 | ||
994141e6 | 7152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7155 | arg2 = (int) SWIG_AsInt(obj1); | |
7156 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7157 | { |
7158 | arg3 = wxString_in_helper(obj2); | |
7159 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7160 | temp3 = True; |
d14a1e28 RD |
7161 | } |
7162 | { | |
7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7164 | (arg1)->base_SetColLabelValue(arg2,(wxString const &)*arg3); | |
7165 | ||
7166 | wxPyEndAllowThreads(__tstate); | |
7167 | if (PyErr_Occurred()) SWIG_fail; | |
7168 | } | |
7169 | Py_INCREF(Py_None); resultobj = Py_None; | |
7170 | { | |
7171 | if (temp3) | |
7172 | delete arg3; | |
7173 | } | |
7174 | return resultobj; | |
7175 | fail: | |
7176 | { | |
7177 | if (temp3) | |
7178 | delete arg3; | |
7179 | } | |
7180 | return NULL; | |
7181 | } | |
7182 | ||
7183 | ||
7184 | static PyObject *_wrap_PyGridTableBase_base_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7185 | PyObject *resultobj; | |
7186 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7187 | bool result; | |
7188 | PyObject * obj0 = 0 ; | |
7189 | char *kwnames[] = { | |
7190 | (char *) "self", NULL | |
7191 | }; | |
7192 | ||
7193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_CanHaveAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7196 | { |
7197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7198 | result = (bool)(arg1)->base_CanHaveAttributes(); | |
7199 | ||
7200 | wxPyEndAllowThreads(__tstate); | |
7201 | if (PyErr_Occurred()) SWIG_fail; | |
7202 | } | |
4f89f6a3 RD |
7203 | { |
7204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7205 | } | |
d14a1e28 RD |
7206 | return resultobj; |
7207 | fail: | |
7208 | return NULL; | |
7209 | } | |
7210 | ||
7211 | ||
7212 | static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7213 | PyObject *resultobj; | |
7214 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7215 | int arg2 ; | |
7216 | int arg3 ; | |
7217 | int arg4 ; | |
7218 | wxGridCellAttr *result; | |
7219 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7220 | PyObject * obj1 = 0 ; |
7221 | PyObject * obj2 = 0 ; | |
7222 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7223 | char *kwnames[] = { |
7224 | (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL | |
7225 | }; | |
7226 | ||
994141e6 | 7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
7228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7230 | arg2 = (int) SWIG_AsInt(obj1); | |
7231 | if (PyErr_Occurred()) SWIG_fail; | |
7232 | arg3 = (int) SWIG_AsInt(obj2); | |
7233 | if (PyErr_Occurred()) SWIG_fail; | |
7234 | arg4 = (wxGridCellAttr::wxAttrKind) SWIG_AsInt(obj3); | |
7235 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7236 | { |
7237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7238 | result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4); | |
7239 | ||
7240 | wxPyEndAllowThreads(__tstate); | |
7241 | if (PyErr_Occurred()) SWIG_fail; | |
7242 | } | |
7243 | { | |
7244 | resultobj = wxPyMake_wxGridCellAttr(result); | |
7245 | } | |
7246 | return resultobj; | |
7247 | fail: | |
7248 | return NULL; | |
7249 | } | |
7250 | ||
7251 | ||
7252 | static PyObject *_wrap_PyGridTableBase_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7253 | PyObject *resultobj; | |
7254 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7255 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7256 | int arg3 ; | |
7257 | int arg4 ; | |
7258 | PyObject * obj0 = 0 ; | |
7259 | PyObject * obj1 = 0 ; | |
994141e6 RD |
7260 | PyObject * obj2 = 0 ; |
7261 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7262 | char *kwnames[] = { |
7263 | (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL | |
7264 | }; | |
7265 | ||
994141e6 | 7266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
7267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
7270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7271 | arg3 = (int) SWIG_AsInt(obj2); | |
7272 | if (PyErr_Occurred()) SWIG_fail; | |
7273 | arg4 = (int) SWIG_AsInt(obj3); | |
7274 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7275 | { |
7276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7277 | (arg1)->base_SetAttr(arg2,arg3,arg4); | |
7278 | ||
7279 | wxPyEndAllowThreads(__tstate); | |
7280 | if (PyErr_Occurred()) SWIG_fail; | |
7281 | } | |
7282 | Py_INCREF(Py_None); resultobj = Py_None; | |
7283 | return resultobj; | |
7284 | fail: | |
7285 | return NULL; | |
7286 | } | |
7287 | ||
7288 | ||
7289 | static PyObject *_wrap_PyGridTableBase_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7290 | PyObject *resultobj; | |
7291 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7292 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7293 | int arg3 ; | |
7294 | PyObject * obj0 = 0 ; | |
7295 | PyObject * obj1 = 0 ; | |
994141e6 | 7296 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7297 | char *kwnames[] = { |
7298 | (char *) "self",(char *) "attr",(char *) "row", NULL | |
7299 | }; | |
7300 | ||
994141e6 | 7301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7304 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
7305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7306 | arg3 = (int) SWIG_AsInt(obj2); | |
7307 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7308 | { |
7309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7310 | (arg1)->base_SetRowAttr(arg2,arg3); | |
7311 | ||
7312 | wxPyEndAllowThreads(__tstate); | |
7313 | if (PyErr_Occurred()) SWIG_fail; | |
7314 | } | |
7315 | Py_INCREF(Py_None); resultobj = Py_None; | |
7316 | return resultobj; | |
7317 | fail: | |
7318 | return NULL; | |
7319 | } | |
7320 | ||
7321 | ||
7322 | static PyObject *_wrap_PyGridTableBase_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7323 | PyObject *resultobj; | |
7324 | wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ; | |
7325 | wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ; | |
7326 | int arg3 ; | |
7327 | PyObject * obj0 = 0 ; | |
7328 | PyObject * obj1 = 0 ; | |
994141e6 | 7329 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7330 | char *kwnames[] = { |
7331 | (char *) "self",(char *) "attr",(char *) "col", NULL | |
7332 | }; | |
7333 | ||
994141e6 | 7334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyGridTableBase, |
7336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellAttr, | |
7338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7339 | arg3 = (int) SWIG_AsInt(obj2); | |
7340 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7341 | { |
7342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7343 | (arg1)->base_SetColAttr(arg2,arg3); | |
7344 | ||
7345 | wxPyEndAllowThreads(__tstate); | |
7346 | if (PyErr_Occurred()) SWIG_fail; | |
7347 | } | |
7348 | Py_INCREF(Py_None); resultobj = Py_None; | |
7349 | return resultobj; | |
7350 | fail: | |
7351 | return NULL; | |
7352 | } | |
7353 | ||
7354 | ||
7355 | static PyObject * PyGridTableBase_swigregister(PyObject *self, PyObject *args) { | |
7356 | PyObject *obj; | |
7357 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7358 | SWIG_TypeClientData(SWIGTYPE_p_wxPyGridTableBase, obj); | |
7359 | Py_INCREF(obj); | |
7360 | return Py_BuildValue((char *)""); | |
7361 | } | |
7362 | static PyObject *_wrap_new_GridStringTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7363 | PyObject *resultobj; | |
7364 | int arg1 = (int) 0 ; | |
7365 | int arg2 = (int) 0 ; | |
7366 | wxGridStringTable *result; | |
994141e6 RD |
7367 | PyObject * obj0 = 0 ; |
7368 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
7369 | char *kwnames[] = { |
7370 | (char *) "numRows",(char *) "numCols", NULL | |
7371 | }; | |
7372 | ||
994141e6 RD |
7373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridStringTable",kwnames,&obj0,&obj1)) goto fail; |
7374 | if (obj0) { | |
15afbcd0 RD |
7375 | arg1 = (int) SWIG_AsInt(obj0); |
7376 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
7377 | } |
7378 | if (obj1) { | |
15afbcd0 RD |
7379 | arg2 = (int) SWIG_AsInt(obj1); |
7380 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7381 | } |
d14a1e28 RD |
7382 | { |
7383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7384 | result = (wxGridStringTable *)new wxGridStringTable(arg1,arg2); | |
7385 | ||
7386 | wxPyEndAllowThreads(__tstate); | |
7387 | if (PyErr_Occurred()) SWIG_fail; | |
7388 | } | |
15afbcd0 | 7389 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridStringTable, 1); |
d14a1e28 RD |
7390 | return resultobj; |
7391 | fail: | |
7392 | return NULL; | |
7393 | } | |
7394 | ||
7395 | ||
7396 | static PyObject * GridStringTable_swigregister(PyObject *self, PyObject *args) { | |
7397 | PyObject *obj; | |
7398 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7399 | SWIG_TypeClientData(SWIGTYPE_p_wxGridStringTable, obj); | |
7400 | Py_INCREF(obj); | |
7401 | return Py_BuildValue((char *)""); | |
7402 | } | |
7403 | static PyObject *_wrap_new_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7404 | PyObject *resultobj; | |
7405 | wxGridTableBase *arg1 = (wxGridTableBase *) 0 ; | |
7406 | int arg2 ; | |
7407 | int arg3 = (int) -1 ; | |
7408 | int arg4 = (int) -1 ; | |
7409 | wxGridTableMessage *result; | |
7410 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7411 | PyObject * obj1 = 0 ; |
7412 | PyObject * obj2 = 0 ; | |
7413 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7414 | char *kwnames[] = { |
7415 | (char *) "table",(char *) "id",(char *) "comInt1",(char *) "comInt2", NULL | |
7416 | }; | |
7417 | ||
994141e6 | 7418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GridTableMessage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
7419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableBase, |
7420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7421 | arg2 = (int) SWIG_AsInt(obj1); | |
7422 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7423 | if (obj2) { |
15afbcd0 RD |
7424 | arg3 = (int) SWIG_AsInt(obj2); |
7425 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
7426 | } |
7427 | if (obj3) { | |
15afbcd0 RD |
7428 | arg4 = (int) SWIG_AsInt(obj3); |
7429 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7430 | } |
d14a1e28 RD |
7431 | { |
7432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7433 | result = (wxGridTableMessage *)new wxGridTableMessage(arg1,arg2,arg3,arg4); | |
7434 | ||
7435 | wxPyEndAllowThreads(__tstate); | |
7436 | if (PyErr_Occurred()) SWIG_fail; | |
7437 | } | |
15afbcd0 | 7438 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridTableMessage, 1); |
d14a1e28 RD |
7439 | return resultobj; |
7440 | fail: | |
7441 | return NULL; | |
7442 | } | |
7443 | ||
7444 | ||
7445 | static PyObject *_wrap_delete_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7446 | PyObject *resultobj; | |
7447 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7448 | PyObject * obj0 = 0 ; | |
7449 | char *kwnames[] = { | |
7450 | (char *) "self", NULL | |
7451 | }; | |
7452 | ||
7453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridTableMessage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7456 | { |
7457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7458 | delete arg1; | |
7459 | ||
7460 | wxPyEndAllowThreads(__tstate); | |
7461 | if (PyErr_Occurred()) SWIG_fail; | |
7462 | } | |
7463 | Py_INCREF(Py_None); resultobj = Py_None; | |
7464 | return resultobj; | |
7465 | fail: | |
7466 | return NULL; | |
7467 | } | |
7468 | ||
7469 | ||
7470 | static PyObject *_wrap_GridTableMessage_SetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7471 | PyObject *resultobj; | |
7472 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7473 | wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; | |
7474 | PyObject * obj0 = 0 ; | |
7475 | PyObject * obj1 = 0 ; | |
7476 | char *kwnames[] = { | |
7477 | (char *) "self",(char *) "table", NULL | |
7478 | }; | |
7479 | ||
7480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetTableObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7483 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableBase, | |
7484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7485 | { |
7486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7487 | (arg1)->SetTableObject(arg2); | |
7488 | ||
7489 | wxPyEndAllowThreads(__tstate); | |
7490 | if (PyErr_Occurred()) SWIG_fail; | |
7491 | } | |
7492 | Py_INCREF(Py_None); resultobj = Py_None; | |
7493 | return resultobj; | |
7494 | fail: | |
7495 | return NULL; | |
7496 | } | |
7497 | ||
7498 | ||
7499 | static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7500 | PyObject *resultobj; | |
7501 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7502 | wxGridTableBase *result; | |
7503 | PyObject * obj0 = 0 ; | |
7504 | char *kwnames[] = { | |
7505 | (char *) "self", NULL | |
7506 | }; | |
7507 | ||
7508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetTableObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7511 | { |
7512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7513 | result = (wxGridTableBase *)((wxGridTableMessage const *)arg1)->GetTableObject(); | |
7514 | ||
7515 | wxPyEndAllowThreads(__tstate); | |
7516 | if (PyErr_Occurred()) SWIG_fail; | |
7517 | } | |
7518 | { | |
7519 | resultobj = wxPyMake_wxGridTableBase(result); | |
7520 | } | |
7521 | return resultobj; | |
7522 | fail: | |
7523 | return NULL; | |
7524 | } | |
7525 | ||
7526 | ||
7527 | static PyObject *_wrap_GridTableMessage_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7528 | PyObject *resultobj; | |
7529 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7530 | int arg2 ; | |
7531 | PyObject * obj0 = 0 ; | |
994141e6 | 7532 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7533 | char *kwnames[] = { |
7534 | (char *) "self",(char *) "id", NULL | |
7535 | }; | |
7536 | ||
994141e6 | 7537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7540 | arg2 = (int) SWIG_AsInt(obj1); | |
7541 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7542 | { |
7543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7544 | (arg1)->SetId(arg2); | |
7545 | ||
7546 | wxPyEndAllowThreads(__tstate); | |
7547 | if (PyErr_Occurred()) SWIG_fail; | |
7548 | } | |
7549 | Py_INCREF(Py_None); resultobj = Py_None; | |
7550 | return resultobj; | |
7551 | fail: | |
7552 | return NULL; | |
7553 | } | |
7554 | ||
7555 | ||
7556 | static PyObject *_wrap_GridTableMessage_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7557 | PyObject *resultobj; | |
7558 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7559 | int result; | |
7560 | PyObject * obj0 = 0 ; | |
7561 | char *kwnames[] = { | |
7562 | (char *) "self", NULL | |
7563 | }; | |
7564 | ||
7565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7568 | { |
7569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7570 | result = (int)(arg1)->GetId(); | |
7571 | ||
7572 | wxPyEndAllowThreads(__tstate); | |
7573 | if (PyErr_Occurred()) SWIG_fail; | |
7574 | } | |
15afbcd0 | 7575 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7576 | return resultobj; |
7577 | fail: | |
7578 | return NULL; | |
7579 | } | |
7580 | ||
7581 | ||
7582 | static PyObject *_wrap_GridTableMessage_SetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7583 | PyObject *resultobj; | |
7584 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7585 | int arg2 ; | |
7586 | PyObject * obj0 = 0 ; | |
994141e6 | 7587 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7588 | char *kwnames[] = { |
7589 | (char *) "self",(char *) "comInt1", NULL | |
7590 | }; | |
7591 | ||
994141e6 | 7592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7595 | arg2 = (int) SWIG_AsInt(obj1); | |
7596 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7597 | { |
7598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7599 | (arg1)->SetCommandInt(arg2); | |
7600 | ||
7601 | wxPyEndAllowThreads(__tstate); | |
7602 | if (PyErr_Occurred()) SWIG_fail; | |
7603 | } | |
7604 | Py_INCREF(Py_None); resultobj = Py_None; | |
7605 | return resultobj; | |
7606 | fail: | |
7607 | return NULL; | |
7608 | } | |
7609 | ||
7610 | ||
7611 | static PyObject *_wrap_GridTableMessage_GetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7612 | PyObject *resultobj; | |
7613 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7614 | int result; | |
7615 | PyObject * obj0 = 0 ; | |
7616 | char *kwnames[] = { | |
7617 | (char *) "self", NULL | |
7618 | }; | |
7619 | ||
7620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7623 | { |
7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7625 | result = (int)(arg1)->GetCommandInt(); | |
7626 | ||
7627 | wxPyEndAllowThreads(__tstate); | |
7628 | if (PyErr_Occurred()) SWIG_fail; | |
7629 | } | |
15afbcd0 | 7630 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7631 | return resultobj; |
7632 | fail: | |
7633 | return NULL; | |
7634 | } | |
7635 | ||
7636 | ||
7637 | static PyObject *_wrap_GridTableMessage_SetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7638 | PyObject *resultobj; | |
7639 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7640 | int arg2 ; | |
7641 | PyObject * obj0 = 0 ; | |
994141e6 | 7642 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7643 | char *kwnames[] = { |
7644 | (char *) "self",(char *) "comInt2", NULL | |
7645 | }; | |
7646 | ||
994141e6 | 7647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt2",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7650 | arg2 = (int) SWIG_AsInt(obj1); | |
7651 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7652 | { |
7653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7654 | (arg1)->SetCommandInt2(arg2); | |
7655 | ||
7656 | wxPyEndAllowThreads(__tstate); | |
7657 | if (PyErr_Occurred()) SWIG_fail; | |
7658 | } | |
7659 | Py_INCREF(Py_None); resultobj = Py_None; | |
7660 | return resultobj; | |
7661 | fail: | |
7662 | return NULL; | |
7663 | } | |
7664 | ||
7665 | ||
7666 | static PyObject *_wrap_GridTableMessage_GetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7667 | PyObject *resultobj; | |
7668 | wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ; | |
7669 | int result; | |
7670 | PyObject * obj0 = 0 ; | |
7671 | char *kwnames[] = { | |
7672 | (char *) "self", NULL | |
7673 | }; | |
7674 | ||
7675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt2",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridTableMessage, |
7677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7678 | { |
7679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7680 | result = (int)(arg1)->GetCommandInt2(); | |
7681 | ||
7682 | wxPyEndAllowThreads(__tstate); | |
7683 | if (PyErr_Occurred()) SWIG_fail; | |
7684 | } | |
15afbcd0 | 7685 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7686 | return resultobj; |
7687 | fail: | |
7688 | return NULL; | |
7689 | } | |
7690 | ||
7691 | ||
7692 | static PyObject * GridTableMessage_swigregister(PyObject *self, PyObject *args) { | |
7693 | PyObject *obj; | |
7694 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7695 | SWIG_TypeClientData(SWIGTYPE_p_wxGridTableMessage, obj); | |
7696 | Py_INCREF(obj); | |
7697 | return Py_BuildValue((char *)""); | |
7698 | } | |
7699 | static PyObject *_wrap_new_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7700 | PyObject *resultobj; | |
7701 | int arg1 = (int) -1 ; | |
7702 | int arg2 = (int) -1 ; | |
7703 | wxGridCellCoords *result; | |
994141e6 RD |
7704 | PyObject * obj0 = 0 ; |
7705 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
7706 | char *kwnames[] = { |
7707 | (char *) "r",(char *) "c", NULL | |
7708 | }; | |
7709 | ||
994141e6 RD |
7710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellCoords",kwnames,&obj0,&obj1)) goto fail; |
7711 | if (obj0) { | |
15afbcd0 RD |
7712 | arg1 = (int) SWIG_AsInt(obj0); |
7713 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
7714 | } |
7715 | if (obj1) { | |
15afbcd0 RD |
7716 | arg2 = (int) SWIG_AsInt(obj1); |
7717 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7718 | } |
d14a1e28 RD |
7719 | { |
7720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7721 | result = (wxGridCellCoords *)new wxGridCellCoords(arg1,arg2); | |
7722 | ||
7723 | wxPyEndAllowThreads(__tstate); | |
7724 | if (PyErr_Occurred()) SWIG_fail; | |
7725 | } | |
15afbcd0 | 7726 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridCellCoords, 1); |
d14a1e28 RD |
7727 | return resultobj; |
7728 | fail: | |
7729 | return NULL; | |
7730 | } | |
7731 | ||
7732 | ||
7733 | static PyObject *_wrap_delete_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7734 | PyObject *resultobj; | |
7735 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7736 | PyObject * obj0 = 0 ; | |
7737 | char *kwnames[] = { | |
7738 | (char *) "self", NULL | |
7739 | }; | |
7740 | ||
7741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridCellCoords",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7744 | { |
7745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7746 | delete arg1; | |
7747 | ||
7748 | wxPyEndAllowThreads(__tstate); | |
7749 | if (PyErr_Occurred()) SWIG_fail; | |
7750 | } | |
7751 | Py_INCREF(Py_None); resultobj = Py_None; | |
7752 | return resultobj; | |
7753 | fail: | |
7754 | return NULL; | |
7755 | } | |
7756 | ||
7757 | ||
7758 | static PyObject *_wrap_GridCellCoords_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7759 | PyObject *resultobj; | |
7760 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7761 | int result; | |
7762 | PyObject * obj0 = 0 ; | |
7763 | char *kwnames[] = { | |
7764 | (char *) "self", NULL | |
7765 | }; | |
7766 | ||
7767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetRow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7770 | { |
7771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7772 | result = (int)((wxGridCellCoords const *)arg1)->GetRow(); | |
7773 | ||
7774 | wxPyEndAllowThreads(__tstate); | |
7775 | if (PyErr_Occurred()) SWIG_fail; | |
7776 | } | |
15afbcd0 | 7777 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7778 | return resultobj; |
7779 | fail: | |
7780 | return NULL; | |
7781 | } | |
7782 | ||
7783 | ||
7784 | static PyObject *_wrap_GridCellCoords_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7785 | PyObject *resultobj; | |
7786 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7787 | int arg2 ; | |
7788 | PyObject * obj0 = 0 ; | |
994141e6 | 7789 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7790 | char *kwnames[] = { |
7791 | (char *) "self",(char *) "n", NULL | |
7792 | }; | |
7793 | ||
994141e6 | 7794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetRow",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7797 | arg2 = (int) SWIG_AsInt(obj1); | |
7798 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7799 | { |
7800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7801 | (arg1)->SetRow(arg2); | |
7802 | ||
7803 | wxPyEndAllowThreads(__tstate); | |
7804 | if (PyErr_Occurred()) SWIG_fail; | |
7805 | } | |
7806 | Py_INCREF(Py_None); resultobj = Py_None; | |
7807 | return resultobj; | |
7808 | fail: | |
7809 | return NULL; | |
7810 | } | |
7811 | ||
7812 | ||
7813 | static PyObject *_wrap_GridCellCoords_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7814 | PyObject *resultobj; | |
7815 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7816 | int result; | |
7817 | PyObject * obj0 = 0 ; | |
7818 | char *kwnames[] = { | |
7819 | (char *) "self", NULL | |
7820 | }; | |
7821 | ||
7822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetCol",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7825 | { |
7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7827 | result = (int)((wxGridCellCoords const *)arg1)->GetCol(); | |
7828 | ||
7829 | wxPyEndAllowThreads(__tstate); | |
7830 | if (PyErr_Occurred()) SWIG_fail; | |
7831 | } | |
15afbcd0 | 7832 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7833 | return resultobj; |
7834 | fail: | |
7835 | return NULL; | |
7836 | } | |
7837 | ||
7838 | ||
7839 | static PyObject *_wrap_GridCellCoords_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7840 | PyObject *resultobj; | |
7841 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7842 | int arg2 ; | |
7843 | PyObject * obj0 = 0 ; | |
994141e6 | 7844 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7845 | char *kwnames[] = { |
7846 | (char *) "self",(char *) "n", NULL | |
7847 | }; | |
7848 | ||
994141e6 | 7849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetCol",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7852 | arg2 = (int) SWIG_AsInt(obj1); | |
7853 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7854 | { |
7855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7856 | (arg1)->SetCol(arg2); | |
7857 | ||
7858 | wxPyEndAllowThreads(__tstate); | |
7859 | if (PyErr_Occurred()) SWIG_fail; | |
7860 | } | |
7861 | Py_INCREF(Py_None); resultobj = Py_None; | |
7862 | return resultobj; | |
7863 | fail: | |
7864 | return NULL; | |
7865 | } | |
7866 | ||
7867 | ||
7868 | static PyObject *_wrap_GridCellCoords_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7869 | PyObject *resultobj; | |
7870 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7871 | int arg2 ; | |
7872 | int arg3 ; | |
7873 | PyObject * obj0 = 0 ; | |
994141e6 RD |
7874 | PyObject * obj1 = 0 ; |
7875 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7876 | char *kwnames[] = { |
7877 | (char *) "self",(char *) "row",(char *) "col", NULL | |
7878 | }; | |
7879 | ||
994141e6 | 7880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellCoords_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7883 | arg2 = (int) SWIG_AsInt(obj1); | |
7884 | if (PyErr_Occurred()) SWIG_fail; | |
7885 | arg3 = (int) SWIG_AsInt(obj2); | |
7886 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7887 | { |
7888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7889 | (arg1)->Set(arg2,arg3); | |
7890 | ||
7891 | wxPyEndAllowThreads(__tstate); | |
7892 | if (PyErr_Occurred()) SWIG_fail; | |
7893 | } | |
7894 | Py_INCREF(Py_None); resultobj = Py_None; | |
7895 | return resultobj; | |
7896 | fail: | |
7897 | return NULL; | |
7898 | } | |
7899 | ||
7900 | ||
7901 | static PyObject *_wrap_GridCellCoords___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7902 | PyObject *resultobj; | |
7903 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7904 | wxGridCellCoords *arg2 = 0 ; | |
7905 | bool result; | |
22faec7d | 7906 | wxGridCellCoords temp2 ; |
d14a1e28 RD |
7907 | PyObject * obj0 = 0 ; |
7908 | PyObject * obj1 = 0 ; | |
7909 | char *kwnames[] = { | |
7910 | (char *) "self",(char *) "other", NULL | |
7911 | }; | |
7912 | ||
7913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22faec7d RD |
7916 | { |
7917 | arg2 = &temp2; | |
7918 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 RD |
7919 | } |
7920 | { | |
7921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7922 | result = (bool)((wxGridCellCoords const *)arg1)->operator ==((wxGridCellCoords const &)*arg2); | |
7923 | ||
7924 | wxPyEndAllowThreads(__tstate); | |
7925 | if (PyErr_Occurred()) SWIG_fail; | |
7926 | } | |
4f89f6a3 RD |
7927 | { |
7928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7929 | } | |
d14a1e28 RD |
7930 | return resultobj; |
7931 | fail: | |
7932 | return NULL; | |
7933 | } | |
7934 | ||
7935 | ||
7936 | static PyObject *_wrap_GridCellCoords___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7937 | PyObject *resultobj; | |
7938 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7939 | wxGridCellCoords *arg2 = 0 ; | |
7940 | bool result; | |
22faec7d | 7941 | wxGridCellCoords temp2 ; |
d14a1e28 RD |
7942 | PyObject * obj0 = 0 ; |
7943 | PyObject * obj1 = 0 ; | |
7944 | char *kwnames[] = { | |
7945 | (char *) "self",(char *) "other", NULL | |
7946 | }; | |
7947 | ||
7948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22faec7d RD |
7951 | { |
7952 | arg2 = &temp2; | |
7953 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 RD |
7954 | } |
7955 | { | |
7956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7957 | result = (bool)((wxGridCellCoords const *)arg1)->operator !=((wxGridCellCoords const &)*arg2); | |
7958 | ||
7959 | wxPyEndAllowThreads(__tstate); | |
7960 | if (PyErr_Occurred()) SWIG_fail; | |
7961 | } | |
4f89f6a3 RD |
7962 | { |
7963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7964 | } | |
d14a1e28 RD |
7965 | return resultobj; |
7966 | fail: | |
7967 | return NULL; | |
7968 | } | |
7969 | ||
7970 | ||
7971 | static PyObject *_wrap_GridCellCoords_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7972 | PyObject *resultobj; | |
7973 | wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ; | |
7974 | PyObject *result; | |
7975 | PyObject * obj0 = 0 ; | |
7976 | char *kwnames[] = { | |
7977 | (char *) "self", NULL | |
7978 | }; | |
7979 | ||
7980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_asTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords, |
7982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7983 | { |
7984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7985 | result = (PyObject *)wxGridCellCoords_asTuple(arg1); | |
7986 | ||
7987 | wxPyEndAllowThreads(__tstate); | |
7988 | if (PyErr_Occurred()) SWIG_fail; | |
7989 | } | |
7990 | resultobj = result; | |
7991 | return resultobj; | |
7992 | fail: | |
7993 | return NULL; | |
7994 | } | |
7995 | ||
7996 | ||
7997 | static PyObject * GridCellCoords_swigregister(PyObject *self, PyObject *args) { | |
7998 | PyObject *obj; | |
7999 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8000 | SWIG_TypeClientData(SWIGTYPE_p_wxGridCellCoords, obj); | |
8001 | Py_INCREF(obj); | |
8002 | return Py_BuildValue((char *)""); | |
8003 | } | |
8004 | static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8005 | PyObject *resultobj; | |
8006 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 8007 | int arg2 ; |
d14a1e28 RD |
8008 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8009 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8010 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8011 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8012 | long arg5 = (long) wxWANTS_CHARS ; | |
8013 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
8014 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8015 | wxGrid *result; | |
8016 | wxPoint temp3 ; | |
8017 | wxSize temp4 ; | |
e811c8ce | 8018 | bool temp6 = False ; |
d14a1e28 | 8019 | PyObject * obj0 = 0 ; |
994141e6 | 8020 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8021 | PyObject * obj2 = 0 ; |
8022 | PyObject * obj3 = 0 ; | |
994141e6 | 8023 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
8024 | PyObject * obj5 = 0 ; |
8025 | char *kwnames[] = { | |
8026 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8027 | }; | |
8028 | ||
994141e6 | 8029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Grid",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
8030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
8031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8032 | arg2 = (int) SWIG_AsInt(obj1); | |
8033 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8034 | if (obj2) { |
8035 | { | |
8036 | arg3 = &temp3; | |
8037 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8038 | } | |
8039 | } | |
8040 | if (obj3) { | |
8041 | { | |
8042 | arg4 = &temp4; | |
8043 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8044 | } | |
8045 | } | |
994141e6 | 8046 | if (obj4) { |
15afbcd0 RD |
8047 | arg5 = (long) SWIG_AsLong(obj4); |
8048 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8049 | } |
d14a1e28 RD |
8050 | if (obj5) { |
8051 | { | |
8052 | arg6 = wxString_in_helper(obj5); | |
8053 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 8054 | temp6 = True; |
d14a1e28 RD |
8055 | } |
8056 | } | |
8057 | { | |
8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8059 | result = (wxGrid *)new wxGrid(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8060 | ||
8061 | wxPyEndAllowThreads(__tstate); | |
8062 | if (PyErr_Occurred()) SWIG_fail; | |
8063 | } | |
8064 | { | |
8065 | resultobj = wxPyMake_wxObject(result); | |
8066 | } | |
8067 | { | |
8068 | if (temp6) | |
8069 | delete arg6; | |
8070 | } | |
8071 | return resultobj; | |
8072 | fail: | |
8073 | { | |
8074 | if (temp6) | |
8075 | delete arg6; | |
8076 | } | |
8077 | return NULL; | |
8078 | } | |
8079 | ||
8080 | ||
8081 | static PyObject *_wrap_Grid_CreateGrid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8082 | PyObject *resultobj; | |
8083 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8084 | int arg2 ; | |
8085 | int arg3 ; | |
8086 | WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; | |
8087 | bool result; | |
8088 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8089 | PyObject * obj1 = 0 ; |
8090 | PyObject * obj2 = 0 ; | |
8091 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
8092 | char *kwnames[] = { |
8093 | (char *) "self",(char *) "numRows",(char *) "numCols",(char *) "selmode", NULL | |
8094 | }; | |
8095 | ||
994141e6 | 8096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_CreateGrid",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8099 | arg2 = (int) SWIG_AsInt(obj1); | |
8100 | if (PyErr_Occurred()) SWIG_fail; | |
8101 | arg3 = (int) SWIG_AsInt(obj2); | |
8102 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8103 | if (obj3) { |
15afbcd0 RD |
8104 | arg4 = (WXGRIDSELECTIONMODES) SWIG_AsInt(obj3); |
8105 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8106 | } |
d14a1e28 RD |
8107 | { |
8108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8109 | result = (bool)(arg1)->CreateGrid(arg2,arg3,arg4); | |
8110 | ||
8111 | wxPyEndAllowThreads(__tstate); | |
8112 | if (PyErr_Occurred()) SWIG_fail; | |
8113 | } | |
4f89f6a3 RD |
8114 | { |
8115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8116 | } | |
d14a1e28 RD |
8117 | return resultobj; |
8118 | fail: | |
8119 | return NULL; | |
8120 | } | |
8121 | ||
8122 | ||
8123 | static PyObject *_wrap_Grid_SetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8124 | PyObject *resultobj; | |
8125 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8126 | WXGRIDSELECTIONMODES arg2 ; | |
8127 | PyObject * obj0 = 0 ; | |
994141e6 | 8128 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8129 | char *kwnames[] = { |
8130 | (char *) "self",(char *) "selmode", NULL | |
8131 | }; | |
8132 | ||
994141e6 | 8133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8136 | arg2 = (WXGRIDSELECTIONMODES) SWIG_AsInt(obj1); | |
8137 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8138 | { |
8139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8140 | (arg1)->SetSelectionMode(arg2); | |
8141 | ||
8142 | wxPyEndAllowThreads(__tstate); | |
8143 | if (PyErr_Occurred()) SWIG_fail; | |
8144 | } | |
8145 | Py_INCREF(Py_None); resultobj = Py_None; | |
8146 | return resultobj; | |
8147 | fail: | |
8148 | return NULL; | |
8149 | } | |
8150 | ||
8151 | ||
8152 | static PyObject *_wrap_Grid_GetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8153 | PyObject *resultobj; | |
8154 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8155 | WXGRIDSELECTIONMODES result; | |
8156 | PyObject * obj0 = 0 ; | |
8157 | char *kwnames[] = { | |
8158 | (char *) "self", NULL | |
8159 | }; | |
8160 | ||
8161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8164 | { |
8165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8166 | result = (WXGRIDSELECTIONMODES)(arg1)->GetSelectionMode(); | |
8167 | ||
8168 | wxPyEndAllowThreads(__tstate); | |
8169 | if (PyErr_Occurred()) SWIG_fail; | |
8170 | } | |
15afbcd0 | 8171 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8172 | return resultobj; |
8173 | fail: | |
8174 | return NULL; | |
8175 | } | |
8176 | ||
8177 | ||
8178 | static PyObject *_wrap_Grid_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8179 | PyObject *resultobj; | |
8180 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8181 | int result; | |
8182 | PyObject * obj0 = 0 ; | |
8183 | char *kwnames[] = { | |
8184 | (char *) "self", NULL | |
8185 | }; | |
8186 | ||
8187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8190 | { |
8191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8192 | result = (int)(arg1)->GetNumberRows(); | |
8193 | ||
8194 | wxPyEndAllowThreads(__tstate); | |
8195 | if (PyErr_Occurred()) SWIG_fail; | |
8196 | } | |
15afbcd0 | 8197 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8198 | return resultobj; |
8199 | fail: | |
8200 | return NULL; | |
8201 | } | |
8202 | ||
8203 | ||
8204 | static PyObject *_wrap_Grid_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8205 | PyObject *resultobj; | |
8206 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8207 | int result; | |
8208 | PyObject * obj0 = 0 ; | |
8209 | char *kwnames[] = { | |
8210 | (char *) "self", NULL | |
8211 | }; | |
8212 | ||
8213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8216 | { |
8217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8218 | result = (int)(arg1)->GetNumberCols(); | |
8219 | ||
8220 | wxPyEndAllowThreads(__tstate); | |
8221 | if (PyErr_Occurred()) SWIG_fail; | |
8222 | } | |
15afbcd0 | 8223 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8224 | return resultobj; |
8225 | fail: | |
8226 | return NULL; | |
8227 | } | |
8228 | ||
8229 | ||
8230 | static PyObject *_wrap_Grid_ProcessTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8231 | PyObject *resultobj; | |
8232 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8233 | wxGridTableMessage *arg2 = 0 ; | |
8234 | bool result; | |
8235 | PyObject * obj0 = 0 ; | |
8236 | PyObject * obj1 = 0 ; | |
8237 | char *kwnames[] = { | |
8238 | (char *) "self","arg2", NULL | |
8239 | }; | |
8240 | ||
8241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_ProcessTableMessage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8244 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableMessage, | |
8245 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8246 | SWIG_fail; | |
d14a1e28 | 8247 | if (arg2 == NULL) { |
15afbcd0 RD |
8248 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8249 | SWIG_fail; | |
d14a1e28 RD |
8250 | } |
8251 | { | |
8252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8253 | result = (bool)(arg1)->ProcessTableMessage(*arg2); | |
8254 | ||
8255 | wxPyEndAllowThreads(__tstate); | |
8256 | if (PyErr_Occurred()) SWIG_fail; | |
8257 | } | |
4f89f6a3 RD |
8258 | { |
8259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8260 | } | |
d14a1e28 RD |
8261 | return resultobj; |
8262 | fail: | |
8263 | return NULL; | |
8264 | } | |
8265 | ||
8266 | ||
8267 | static PyObject *_wrap_Grid_GetTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8268 | PyObject *resultobj; | |
8269 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8270 | wxGridTableBase *result; | |
8271 | PyObject * obj0 = 0 ; | |
8272 | char *kwnames[] = { | |
8273 | (char *) "self", NULL | |
8274 | }; | |
8275 | ||
8276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetTable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8279 | { |
8280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8281 | result = (wxGridTableBase *)((wxGrid const *)arg1)->GetTable(); | |
8282 | ||
8283 | wxPyEndAllowThreads(__tstate); | |
8284 | if (PyErr_Occurred()) SWIG_fail; | |
8285 | } | |
8286 | { | |
8287 | resultobj = wxPyMake_wxGridTableBase(result); | |
8288 | } | |
8289 | return resultobj; | |
8290 | fail: | |
8291 | return NULL; | |
8292 | } | |
8293 | ||
8294 | ||
8295 | static PyObject *_wrap_Grid_SetTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8296 | PyObject *resultobj; | |
8297 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8298 | wxGridTableBase *arg2 = (wxGridTableBase *) 0 ; | |
e811c8ce | 8299 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8300 | WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ; |
8301 | bool result; | |
8302 | PyObject * obj0 = 0 ; | |
8303 | PyObject * obj1 = 0 ; | |
8304 | PyObject * obj2 = 0 ; | |
994141e6 | 8305 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
8306 | char *kwnames[] = { |
8307 | (char *) "self",(char *) "table",(char *) "takeOwnership",(char *) "selmode", NULL | |
8308 | }; | |
8309 | ||
994141e6 | 8310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetTable",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8313 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridTableBase, | |
8314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8315 | if (obj2) { |
15afbcd0 RD |
8316 | arg3 = (bool) SWIG_AsBool(obj2); |
8317 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8318 | } |
8319 | if (obj3) { | |
15afbcd0 RD |
8320 | arg4 = (WXGRIDSELECTIONMODES) SWIG_AsInt(obj3); |
8321 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8322 | } |
8323 | { | |
8324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8325 | result = (bool)(arg1)->SetTable(arg2,arg3,arg4); | |
8326 | ||
8327 | wxPyEndAllowThreads(__tstate); | |
8328 | if (PyErr_Occurred()) SWIG_fail; | |
8329 | } | |
4f89f6a3 RD |
8330 | { |
8331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8332 | } | |
d14a1e28 RD |
8333 | return resultobj; |
8334 | fail: | |
8335 | return NULL; | |
8336 | } | |
8337 | ||
8338 | ||
8339 | static PyObject *_wrap_Grid_ClearGrid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8340 | PyObject *resultobj; | |
8341 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8342 | PyObject * obj0 = 0 ; | |
8343 | char *kwnames[] = { | |
8344 | (char *) "self", NULL | |
8345 | }; | |
8346 | ||
8347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearGrid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8350 | { |
8351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8352 | (arg1)->ClearGrid(); | |
8353 | ||
8354 | wxPyEndAllowThreads(__tstate); | |
8355 | if (PyErr_Occurred()) SWIG_fail; | |
8356 | } | |
8357 | Py_INCREF(Py_None); resultobj = Py_None; | |
8358 | return resultobj; | |
8359 | fail: | |
8360 | return NULL; | |
8361 | } | |
8362 | ||
8363 | ||
8364 | static PyObject *_wrap_Grid_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8365 | PyObject *resultobj; | |
8366 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8367 | int arg2 = (int) 0 ; | |
8368 | int arg3 = (int) 1 ; | |
e811c8ce | 8369 | bool arg4 = (bool) True ; |
d14a1e28 RD |
8370 | bool result; |
8371 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8372 | PyObject * obj1 = 0 ; |
8373 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8374 | PyObject * obj3 = 0 ; |
8375 | char *kwnames[] = { | |
8376 | (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL | |
8377 | }; | |
8378 | ||
994141e6 | 8379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 8382 | if (obj1) { |
15afbcd0 RD |
8383 | arg2 = (int) SWIG_AsInt(obj1); |
8384 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8385 | } |
8386 | if (obj2) { | |
15afbcd0 RD |
8387 | arg3 = (int) SWIG_AsInt(obj2); |
8388 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8389 | } |
d14a1e28 | 8390 | if (obj3) { |
15afbcd0 RD |
8391 | arg4 = (bool) SWIG_AsBool(obj3); |
8392 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8393 | } |
8394 | { | |
8395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8396 | result = (bool)(arg1)->InsertRows(arg2,arg3,arg4); | |
8397 | ||
8398 | wxPyEndAllowThreads(__tstate); | |
8399 | if (PyErr_Occurred()) SWIG_fail; | |
8400 | } | |
4f89f6a3 RD |
8401 | { |
8402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8403 | } | |
d14a1e28 RD |
8404 | return resultobj; |
8405 | fail: | |
8406 | return NULL; | |
8407 | } | |
8408 | ||
8409 | ||
8410 | static PyObject *_wrap_Grid_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8411 | PyObject *resultobj; | |
8412 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8413 | int arg2 = (int) 1 ; | |
e811c8ce | 8414 | bool arg3 = (bool) True ; |
d14a1e28 RD |
8415 | bool result; |
8416 | PyObject * obj0 = 0 ; | |
994141e6 | 8417 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8418 | PyObject * obj2 = 0 ; |
8419 | char *kwnames[] = { | |
8420 | (char *) "self",(char *) "numRows",(char *) "updateLabels", NULL | |
8421 | }; | |
8422 | ||
994141e6 | 8423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendRows",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 8426 | if (obj1) { |
15afbcd0 RD |
8427 | arg2 = (int) SWIG_AsInt(obj1); |
8428 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8429 | } |
d14a1e28 | 8430 | if (obj2) { |
15afbcd0 RD |
8431 | arg3 = (bool) SWIG_AsBool(obj2); |
8432 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8433 | } |
8434 | { | |
8435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8436 | result = (bool)(arg1)->AppendRows(arg2,arg3); | |
8437 | ||
8438 | wxPyEndAllowThreads(__tstate); | |
8439 | if (PyErr_Occurred()) SWIG_fail; | |
8440 | } | |
4f89f6a3 RD |
8441 | { |
8442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8443 | } | |
d14a1e28 RD |
8444 | return resultobj; |
8445 | fail: | |
8446 | return NULL; | |
8447 | } | |
8448 | ||
8449 | ||
8450 | static PyObject *_wrap_Grid_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8451 | PyObject *resultobj; | |
8452 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8453 | int arg2 = (int) 0 ; | |
8454 | int arg3 = (int) 1 ; | |
e811c8ce | 8455 | bool arg4 = (bool) True ; |
d14a1e28 RD |
8456 | bool result; |
8457 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8458 | PyObject * obj1 = 0 ; |
8459 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8460 | PyObject * obj3 = 0 ; |
8461 | char *kwnames[] = { | |
8462 | (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL | |
8463 | }; | |
8464 | ||
994141e6 | 8465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 8468 | if (obj1) { |
15afbcd0 RD |
8469 | arg2 = (int) SWIG_AsInt(obj1); |
8470 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8471 | } |
8472 | if (obj2) { | |
15afbcd0 RD |
8473 | arg3 = (int) SWIG_AsInt(obj2); |
8474 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8475 | } |
d14a1e28 | 8476 | if (obj3) { |
15afbcd0 RD |
8477 | arg4 = (bool) SWIG_AsBool(obj3); |
8478 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8479 | } |
8480 | { | |
8481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8482 | result = (bool)(arg1)->DeleteRows(arg2,arg3,arg4); | |
8483 | ||
8484 | wxPyEndAllowThreads(__tstate); | |
8485 | if (PyErr_Occurred()) SWIG_fail; | |
8486 | } | |
4f89f6a3 RD |
8487 | { |
8488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8489 | } | |
d14a1e28 RD |
8490 | return resultobj; |
8491 | fail: | |
8492 | return NULL; | |
8493 | } | |
8494 | ||
8495 | ||
8496 | static PyObject *_wrap_Grid_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8497 | PyObject *resultobj; | |
8498 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8499 | int arg2 = (int) 0 ; | |
8500 | int arg3 = (int) 1 ; | |
e811c8ce | 8501 | bool arg4 = (bool) True ; |
d14a1e28 RD |
8502 | bool result; |
8503 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8504 | PyObject * obj1 = 0 ; |
8505 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8506 | PyObject * obj3 = 0 ; |
8507 | char *kwnames[] = { | |
8508 | (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL | |
8509 | }; | |
8510 | ||
994141e6 | 8511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 8514 | if (obj1) { |
15afbcd0 RD |
8515 | arg2 = (int) SWIG_AsInt(obj1); |
8516 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8517 | } |
8518 | if (obj2) { | |
15afbcd0 RD |
8519 | arg3 = (int) SWIG_AsInt(obj2); |
8520 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8521 | } |
d14a1e28 | 8522 | if (obj3) { |
15afbcd0 RD |
8523 | arg4 = (bool) SWIG_AsBool(obj3); |
8524 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8525 | } |
8526 | { | |
8527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8528 | result = (bool)(arg1)->InsertCols(arg2,arg3,arg4); | |
8529 | ||
8530 | wxPyEndAllowThreads(__tstate); | |
8531 | if (PyErr_Occurred()) SWIG_fail; | |
8532 | } | |
4f89f6a3 RD |
8533 | { |
8534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8535 | } | |
d14a1e28 RD |
8536 | return resultobj; |
8537 | fail: | |
8538 | return NULL; | |
8539 | } | |
8540 | ||
8541 | ||
8542 | static PyObject *_wrap_Grid_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8543 | PyObject *resultobj; | |
8544 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8545 | int arg2 = (int) 1 ; | |
e811c8ce | 8546 | bool arg3 = (bool) True ; |
d14a1e28 RD |
8547 | bool result; |
8548 | PyObject * obj0 = 0 ; | |
994141e6 | 8549 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8550 | PyObject * obj2 = 0 ; |
8551 | char *kwnames[] = { | |
8552 | (char *) "self",(char *) "numCols",(char *) "updateLabels", NULL | |
8553 | }; | |
8554 | ||
994141e6 | 8555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 8558 | if (obj1) { |
15afbcd0 RD |
8559 | arg2 = (int) SWIG_AsInt(obj1); |
8560 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8561 | } |
d14a1e28 | 8562 | if (obj2) { |
15afbcd0 RD |
8563 | arg3 = (bool) SWIG_AsBool(obj2); |
8564 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8565 | } |
8566 | { | |
8567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8568 | result = (bool)(arg1)->AppendCols(arg2,arg3); | |
8569 | ||
8570 | wxPyEndAllowThreads(__tstate); | |
8571 | if (PyErr_Occurred()) SWIG_fail; | |
8572 | } | |
4f89f6a3 RD |
8573 | { |
8574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8575 | } | |
d14a1e28 RD |
8576 | return resultobj; |
8577 | fail: | |
8578 | return NULL; | |
8579 | } | |
8580 | ||
8581 | ||
8582 | static PyObject *_wrap_Grid_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8583 | PyObject *resultobj; | |
8584 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8585 | int arg2 = (int) 0 ; | |
8586 | int arg3 = (int) 1 ; | |
e811c8ce | 8587 | bool arg4 = (bool) True ; |
d14a1e28 RD |
8588 | bool result; |
8589 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8590 | PyObject * obj1 = 0 ; |
8591 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8592 | PyObject * obj3 = 0 ; |
8593 | char *kwnames[] = { | |
8594 | (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL | |
8595 | }; | |
8596 | ||
994141e6 | 8597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 8600 | if (obj1) { |
15afbcd0 RD |
8601 | arg2 = (int) SWIG_AsInt(obj1); |
8602 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8603 | } |
8604 | if (obj2) { | |
15afbcd0 RD |
8605 | arg3 = (int) SWIG_AsInt(obj2); |
8606 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8607 | } |
d14a1e28 | 8608 | if (obj3) { |
15afbcd0 RD |
8609 | arg4 = (bool) SWIG_AsBool(obj3); |
8610 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8611 | } |
8612 | { | |
8613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8614 | result = (bool)(arg1)->DeleteCols(arg2,arg3,arg4); | |
8615 | ||
8616 | wxPyEndAllowThreads(__tstate); | |
8617 | if (PyErr_Occurred()) SWIG_fail; | |
8618 | } | |
4f89f6a3 RD |
8619 | { |
8620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8621 | } | |
d14a1e28 RD |
8622 | return resultobj; |
8623 | fail: | |
8624 | return NULL; | |
8625 | } | |
8626 | ||
8627 | ||
8628 | static PyObject *_wrap_Grid_DrawCellHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8629 | PyObject *resultobj; | |
8630 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8631 | wxDC *arg2 = 0 ; | |
8632 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
8633 | PyObject * obj0 = 0 ; | |
8634 | PyObject * obj1 = 0 ; | |
8635 | PyObject * obj2 = 0 ; | |
8636 | char *kwnames[] = { | |
8637 | (char *) "self",(char *) "dc",(char *) "attr", NULL | |
8638 | }; | |
8639 | ||
8640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DrawCellHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8643 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8644 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8645 | SWIG_fail; | |
d14a1e28 | 8646 | if (arg2 == NULL) { |
15afbcd0 RD |
8647 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8648 | SWIG_fail; | |
d14a1e28 | 8649 | } |
15afbcd0 RD |
8650 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, |
8651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8652 | { |
8653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8654 | (arg1)->DrawCellHighlight(*arg2,(wxGridCellAttr const *)arg3); | |
8655 | ||
8656 | wxPyEndAllowThreads(__tstate); | |
8657 | if (PyErr_Occurred()) SWIG_fail; | |
8658 | } | |
8659 | Py_INCREF(Py_None); resultobj = Py_None; | |
8660 | return resultobj; | |
8661 | fail: | |
8662 | return NULL; | |
8663 | } | |
8664 | ||
8665 | ||
8666 | static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8667 | PyObject *resultobj; | |
8668 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8669 | wxDC *arg2 = 0 ; | |
8670 | wxString *arg3 = 0 ; | |
8671 | wxRect *arg4 = 0 ; | |
8672 | int arg5 = (int) wxLEFT ; | |
8673 | int arg6 = (int) wxTOP ; | |
8674 | int arg7 = (int) wxHORIZONTAL ; | |
e811c8ce | 8675 | bool temp3 = False ; |
d14a1e28 RD |
8676 | wxRect temp4 ; |
8677 | PyObject * obj0 = 0 ; | |
8678 | PyObject * obj1 = 0 ; | |
8679 | PyObject * obj2 = 0 ; | |
8680 | PyObject * obj3 = 0 ; | |
994141e6 RD |
8681 | PyObject * obj4 = 0 ; |
8682 | PyObject * obj5 = 0 ; | |
8683 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
8684 | char *kwnames[] = { |
8685 | (char *) "self",(char *) "dc","arg3","arg4",(char *) "horizontalAlignment",(char *) "verticalAlignment",(char *) "textOrientation", NULL | |
8686 | }; | |
8687 | ||
994141e6 | 8688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:Grid_DrawTextRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
8689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8691 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8692 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8693 | SWIG_fail; | |
d14a1e28 | 8694 | if (arg2 == NULL) { |
15afbcd0 RD |
8695 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8696 | SWIG_fail; | |
d14a1e28 RD |
8697 | } |
8698 | { | |
8699 | arg3 = wxString_in_helper(obj2); | |
8700 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8701 | temp3 = True; |
d14a1e28 RD |
8702 | } |
8703 | { | |
8704 | arg4 = &temp4; | |
8705 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
8706 | } | |
994141e6 | 8707 | if (obj4) { |
15afbcd0 RD |
8708 | arg5 = (int) SWIG_AsInt(obj4); |
8709 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8710 | } |
8711 | if (obj5) { | |
15afbcd0 RD |
8712 | arg6 = (int) SWIG_AsInt(obj5); |
8713 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8714 | } |
8715 | if (obj6) { | |
15afbcd0 RD |
8716 | arg7 = (int) SWIG_AsInt(obj6); |
8717 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8718 | } |
d14a1e28 RD |
8719 | { |
8720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8721 | (arg1)->DrawTextRectangle(*arg2,(wxString const &)*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); | |
8722 | ||
8723 | wxPyEndAllowThreads(__tstate); | |
8724 | if (PyErr_Occurred()) SWIG_fail; | |
8725 | } | |
8726 | Py_INCREF(Py_None); resultobj = Py_None; | |
8727 | { | |
8728 | if (temp3) | |
8729 | delete arg3; | |
8730 | } | |
8731 | return resultobj; | |
8732 | fail: | |
8733 | { | |
8734 | if (temp3) | |
8735 | delete arg3; | |
8736 | } | |
8737 | return NULL; | |
8738 | } | |
8739 | ||
8740 | ||
8741 | static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8742 | PyObject *resultobj; | |
8743 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8744 | wxDC *arg2 = 0 ; | |
8745 | wxArrayString *arg3 = 0 ; | |
8746 | long *arg4 = (long *) 0 ; | |
8747 | long *arg5 = (long *) 0 ; | |
3adfb63b | 8748 | bool temp3 = False ; |
d14a1e28 RD |
8749 | long temp4 ; |
8750 | long temp5 ; | |
8751 | PyObject * obj0 = 0 ; | |
8752 | PyObject * obj1 = 0 ; | |
8753 | PyObject * obj2 = 0 ; | |
8754 | char *kwnames[] = { | |
8755 | (char *) "self",(char *) "dc",(char *) "lines", NULL | |
8756 | }; | |
8757 | ||
8758 | arg4 = &temp4; | |
8759 | arg5 = &temp5; | |
8760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetTextBoxSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
8764 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8765 | SWIG_fail; | |
d14a1e28 | 8766 | if (arg2 == NULL) { |
15afbcd0 RD |
8767 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8768 | SWIG_fail; | |
d14a1e28 RD |
8769 | } |
8770 | { | |
8771 | if (! PySequence_Check(obj2)) { | |
8772 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8773 | SWIG_fail; | |
8774 | } | |
8775 | arg3 = new wxArrayString; | |
3adfb63b | 8776 | temp3 = True; |
d14a1e28 RD |
8777 | int i, len=PySequence_Length(obj2); |
8778 | for (i=0; i<len; i++) { | |
8779 | PyObject* item = PySequence_GetItem(obj2, i); | |
8780 | #if wxUSE_UNICODE | |
8781 | PyObject* str = PyObject_Unicode(item); | |
8782 | #else | |
8783 | PyObject* str = PyObject_Str(item); | |
8784 | #endif | |
8785 | arg3->Add(Py2wxString(str)); | |
8786 | Py_DECREF(item); | |
8787 | Py_DECREF(str); | |
8788 | } | |
8789 | } | |
8790 | { | |
8791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8792 | (arg1)->GetTextBoxSize(*arg2,*arg3,arg4,arg5); | |
8793 | ||
8794 | wxPyEndAllowThreads(__tstate); | |
8795 | if (PyErr_Occurred()) SWIG_fail; | |
8796 | } | |
8797 | Py_INCREF(Py_None); resultobj = Py_None; | |
8798 | { | |
8799 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8800 | resultobj = t_output_helper(resultobj,o); | |
8801 | } | |
8802 | { | |
8803 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
8804 | resultobj = t_output_helper(resultobj,o); | |
8805 | } | |
8806 | { | |
3adfb63b | 8807 | if (temp3) delete arg3; |
d14a1e28 RD |
8808 | } |
8809 | return resultobj; | |
8810 | fail: | |
8811 | { | |
3adfb63b | 8812 | if (temp3) delete arg3; |
d14a1e28 RD |
8813 | } |
8814 | return NULL; | |
8815 | } | |
8816 | ||
8817 | ||
8818 | static PyObject *_wrap_Grid_BeginBatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8819 | PyObject *resultobj; | |
8820 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8821 | PyObject * obj0 = 0 ; | |
8822 | char *kwnames[] = { | |
8823 | (char *) "self", NULL | |
8824 | }; | |
8825 | ||
8826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_BeginBatch",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8829 | { |
8830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8831 | (arg1)->BeginBatch(); | |
8832 | ||
8833 | wxPyEndAllowThreads(__tstate); | |
8834 | if (PyErr_Occurred()) SWIG_fail; | |
8835 | } | |
8836 | Py_INCREF(Py_None); resultobj = Py_None; | |
8837 | return resultobj; | |
8838 | fail: | |
8839 | return NULL; | |
8840 | } | |
8841 | ||
8842 | ||
8843 | static PyObject *_wrap_Grid_EndBatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8844 | PyObject *resultobj; | |
8845 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8846 | PyObject * obj0 = 0 ; | |
8847 | char *kwnames[] = { | |
8848 | (char *) "self", NULL | |
8849 | }; | |
8850 | ||
8851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_EndBatch",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8854 | { |
8855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8856 | (arg1)->EndBatch(); | |
8857 | ||
8858 | wxPyEndAllowThreads(__tstate); | |
8859 | if (PyErr_Occurred()) SWIG_fail; | |
8860 | } | |
8861 | Py_INCREF(Py_None); resultobj = Py_None; | |
8862 | return resultobj; | |
8863 | fail: | |
8864 | return NULL; | |
8865 | } | |
8866 | ||
8867 | ||
8868 | static PyObject *_wrap_Grid_GetBatchCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8869 | PyObject *resultobj; | |
8870 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8871 | int result; | |
8872 | PyObject * obj0 = 0 ; | |
8873 | char *kwnames[] = { | |
8874 | (char *) "self", NULL | |
8875 | }; | |
8876 | ||
8877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetBatchCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8880 | { |
8881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8882 | result = (int)(arg1)->GetBatchCount(); | |
8883 | ||
8884 | wxPyEndAllowThreads(__tstate); | |
8885 | if (PyErr_Occurred()) SWIG_fail; | |
8886 | } | |
15afbcd0 | 8887 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8888 | return resultobj; |
8889 | fail: | |
8890 | return NULL; | |
8891 | } | |
8892 | ||
8893 | ||
8894 | static PyObject *_wrap_Grid_ForceRefresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8895 | PyObject *resultobj; | |
8896 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8897 | PyObject * obj0 = 0 ; | |
8898 | char *kwnames[] = { | |
8899 | (char *) "self", NULL | |
8900 | }; | |
8901 | ||
8902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ForceRefresh",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8905 | { |
8906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8907 | (arg1)->ForceRefresh(); | |
8908 | ||
8909 | wxPyEndAllowThreads(__tstate); | |
8910 | if (PyErr_Occurred()) SWIG_fail; | |
8911 | } | |
8912 | Py_INCREF(Py_None); resultobj = Py_None; | |
8913 | return resultobj; | |
8914 | fail: | |
8915 | return NULL; | |
8916 | } | |
8917 | ||
8918 | ||
d14a1e28 RD |
8919 | static PyObject *_wrap_Grid_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8920 | PyObject *resultobj; | |
8921 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8922 | bool result; | |
8923 | PyObject * obj0 = 0 ; | |
8924 | char *kwnames[] = { | |
8925 | (char *) "self", NULL | |
8926 | }; | |
8927 | ||
8928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsEditable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8931 | { |
8932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8933 | result = (bool)(arg1)->IsEditable(); | |
8934 | ||
8935 | wxPyEndAllowThreads(__tstate); | |
8936 | if (PyErr_Occurred()) SWIG_fail; | |
8937 | } | |
4f89f6a3 RD |
8938 | { |
8939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8940 | } | |
d14a1e28 RD |
8941 | return resultobj; |
8942 | fail: | |
8943 | return NULL; | |
8944 | } | |
8945 | ||
8946 | ||
8947 | static PyObject *_wrap_Grid_EnableEditing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8948 | PyObject *resultobj; | |
8949 | wxGrid *arg1 = (wxGrid *) 0 ; | |
8950 | bool arg2 ; | |
8951 | PyObject * obj0 = 0 ; | |
8952 | PyObject * obj1 = 0 ; | |
8953 | char *kwnames[] = { | |
8954 | (char *) "self",(char *) "edit", NULL | |
8955 | }; | |
8956 | ||
8957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_EnableEditing",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8960 | arg2 = (bool) SWIG_AsBool(obj1); | |
8961 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8962 | { |
8963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8964 | (arg1)->EnableEditing(arg2); | |
8965 | ||
8966 | wxPyEndAllowThreads(__tstate); | |
8967 | if (PyErr_Occurred()) SWIG_fail; | |
8968 | } | |
8969 | Py_INCREF(Py_None); resultobj = Py_None; | |
8970 | return resultobj; | |
8971 | fail: | |
8972 | return NULL; | |
8973 | } | |
8974 | ||
8975 | ||
8976 | static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8977 | PyObject *resultobj; | |
8978 | wxGrid *arg1 = (wxGrid *) 0 ; | |
e811c8ce | 8979 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8980 | PyObject * obj0 = 0 ; |
8981 | PyObject * obj1 = 0 ; | |
8982 | char *kwnames[] = { | |
8983 | (char *) "self",(char *) "enable", NULL | |
8984 | }; | |
8985 | ||
8986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableCellEditControl",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
8988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8989 | if (obj1) { |
15afbcd0 RD |
8990 | arg2 = (bool) SWIG_AsBool(obj1); |
8991 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8992 | } |
8993 | { | |
8994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8995 | (arg1)->EnableCellEditControl(arg2); | |
8996 | ||
8997 | wxPyEndAllowThreads(__tstate); | |
8998 | if (PyErr_Occurred()) SWIG_fail; | |
8999 | } | |
9000 | Py_INCREF(Py_None); resultobj = Py_None; | |
9001 | return resultobj; | |
9002 | fail: | |
9003 | return NULL; | |
9004 | } | |
9005 | ||
9006 | ||
9007 | static PyObject *_wrap_Grid_DisableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9008 | PyObject *resultobj; | |
9009 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9010 | PyObject * obj0 = 0 ; | |
9011 | char *kwnames[] = { | |
9012 | (char *) "self", NULL | |
9013 | }; | |
9014 | ||
9015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableCellEditControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9018 | { |
9019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9020 | (arg1)->DisableCellEditControl(); | |
9021 | ||
9022 | wxPyEndAllowThreads(__tstate); | |
9023 | if (PyErr_Occurred()) SWIG_fail; | |
9024 | } | |
9025 | Py_INCREF(Py_None); resultobj = Py_None; | |
9026 | return resultobj; | |
9027 | fail: | |
9028 | return NULL; | |
9029 | } | |
9030 | ||
9031 | ||
9032 | static PyObject *_wrap_Grid_CanEnableCellControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9033 | PyObject *resultobj; | |
9034 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9035 | bool result; | |
9036 | PyObject * obj0 = 0 ; | |
9037 | char *kwnames[] = { | |
9038 | (char *) "self", NULL | |
9039 | }; | |
9040 | ||
9041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanEnableCellControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9044 | { |
9045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9046 | result = (bool)((wxGrid const *)arg1)->CanEnableCellControl(); | |
9047 | ||
9048 | wxPyEndAllowThreads(__tstate); | |
9049 | if (PyErr_Occurred()) SWIG_fail; | |
9050 | } | |
4f89f6a3 RD |
9051 | { |
9052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9053 | } | |
d14a1e28 RD |
9054 | return resultobj; |
9055 | fail: | |
9056 | return NULL; | |
9057 | } | |
9058 | ||
9059 | ||
9060 | static PyObject *_wrap_Grid_IsCellEditControlEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9061 | PyObject *resultobj; | |
9062 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9063 | bool result; | |
9064 | PyObject * obj0 = 0 ; | |
9065 | char *kwnames[] = { | |
9066 | (char *) "self", NULL | |
9067 | }; | |
9068 | ||
9069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9072 | { |
9073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9074 | result = (bool)((wxGrid const *)arg1)->IsCellEditControlEnabled(); | |
9075 | ||
9076 | wxPyEndAllowThreads(__tstate); | |
9077 | if (PyErr_Occurred()) SWIG_fail; | |
9078 | } | |
4f89f6a3 RD |
9079 | { |
9080 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9081 | } | |
d14a1e28 RD |
9082 | return resultobj; |
9083 | fail: | |
9084 | return NULL; | |
9085 | } | |
9086 | ||
9087 | ||
9088 | static PyObject *_wrap_Grid_IsCellEditControlShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9089 | PyObject *resultobj; | |
9090 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9091 | bool result; | |
9092 | PyObject * obj0 = 0 ; | |
9093 | char *kwnames[] = { | |
9094 | (char *) "self", NULL | |
9095 | }; | |
9096 | ||
9097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlShown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9100 | { |
9101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9102 | result = (bool)((wxGrid const *)arg1)->IsCellEditControlShown(); | |
9103 | ||
9104 | wxPyEndAllowThreads(__tstate); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | } | |
4f89f6a3 RD |
9107 | { |
9108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9109 | } | |
d14a1e28 RD |
9110 | return resultobj; |
9111 | fail: | |
9112 | return NULL; | |
9113 | } | |
9114 | ||
9115 | ||
9116 | static PyObject *_wrap_Grid_IsCurrentCellReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9117 | PyObject *resultobj; | |
9118 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9119 | bool result; | |
9120 | PyObject * obj0 = 0 ; | |
9121 | char *kwnames[] = { | |
9122 | (char *) "self", NULL | |
9123 | }; | |
9124 | ||
9125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCurrentCellReadOnly",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9128 | { |
9129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9130 | result = (bool)((wxGrid const *)arg1)->IsCurrentCellReadOnly(); | |
9131 | ||
9132 | wxPyEndAllowThreads(__tstate); | |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
9134 | } | |
4f89f6a3 RD |
9135 | { |
9136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9137 | } | |
d14a1e28 RD |
9138 | return resultobj; |
9139 | fail: | |
9140 | return NULL; | |
9141 | } | |
9142 | ||
9143 | ||
9144 | static PyObject *_wrap_Grid_ShowCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9145 | PyObject *resultobj; | |
9146 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9147 | PyObject * obj0 = 0 ; | |
9148 | char *kwnames[] = { | |
9149 | (char *) "self", NULL | |
9150 | }; | |
9151 | ||
9152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ShowCellEditControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9155 | { |
9156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9157 | (arg1)->ShowCellEditControl(); | |
9158 | ||
9159 | wxPyEndAllowThreads(__tstate); | |
9160 | if (PyErr_Occurred()) SWIG_fail; | |
9161 | } | |
9162 | Py_INCREF(Py_None); resultobj = Py_None; | |
9163 | return resultobj; | |
9164 | fail: | |
9165 | return NULL; | |
9166 | } | |
9167 | ||
9168 | ||
9169 | static PyObject *_wrap_Grid_HideCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9170 | PyObject *resultobj; | |
9171 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9172 | PyObject * obj0 = 0 ; | |
9173 | char *kwnames[] = { | |
9174 | (char *) "self", NULL | |
9175 | }; | |
9176 | ||
9177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_HideCellEditControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9180 | { |
9181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9182 | (arg1)->HideCellEditControl(); | |
9183 | ||
9184 | wxPyEndAllowThreads(__tstate); | |
9185 | if (PyErr_Occurred()) SWIG_fail; | |
9186 | } | |
9187 | Py_INCREF(Py_None); resultobj = Py_None; | |
9188 | return resultobj; | |
9189 | fail: | |
9190 | return NULL; | |
9191 | } | |
9192 | ||
9193 | ||
9194 | static PyObject *_wrap_Grid_SaveEditControlValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9195 | PyObject *resultobj; | |
9196 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9197 | PyObject * obj0 = 0 ; | |
9198 | char *kwnames[] = { | |
9199 | (char *) "self", NULL | |
9200 | }; | |
9201 | ||
9202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SaveEditControlValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9205 | { |
9206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9207 | (arg1)->SaveEditControlValue(); | |
9208 | ||
9209 | wxPyEndAllowThreads(__tstate); | |
9210 | if (PyErr_Occurred()) SWIG_fail; | |
9211 | } | |
9212 | Py_INCREF(Py_None); resultobj = Py_None; | |
9213 | return resultobj; | |
9214 | fail: | |
9215 | return NULL; | |
9216 | } | |
9217 | ||
9218 | ||
9219 | static PyObject *_wrap_Grid_XYToCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9220 | PyObject *resultobj; | |
9221 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9222 | int arg2 ; | |
9223 | int arg3 ; | |
9224 | wxGridCellCoords result; | |
9225 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9226 | PyObject * obj1 = 0 ; |
9227 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9228 | char *kwnames[] = { |
9229 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9230 | }; | |
9231 | ||
994141e6 | 9232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_XYToCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9235 | arg2 = (int) SWIG_AsInt(obj1); | |
9236 | if (PyErr_Occurred()) SWIG_fail; | |
9237 | arg3 = (int) SWIG_AsInt(obj2); | |
9238 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9239 | { |
9240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9241 | result = wxGrid_XYToCell(arg1,arg2,arg3); | |
9242 | ||
9243 | wxPyEndAllowThreads(__tstate); | |
9244 | if (PyErr_Occurred()) SWIG_fail; | |
9245 | } | |
9246 | { | |
9247 | wxGridCellCoords * resultptr; | |
9248 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
15afbcd0 | 9249 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1); |
d14a1e28 RD |
9250 | } |
9251 | return resultobj; | |
9252 | fail: | |
9253 | return NULL; | |
9254 | } | |
9255 | ||
9256 | ||
9257 | static PyObject *_wrap_Grid_YToRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9258 | PyObject *resultobj; | |
9259 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9260 | int arg2 ; | |
9261 | int result; | |
9262 | PyObject * obj0 = 0 ; | |
994141e6 | 9263 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9264 | char *kwnames[] = { |
9265 | (char *) "self",(char *) "y", NULL | |
9266 | }; | |
9267 | ||
994141e6 | 9268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToRow",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9271 | arg2 = (int) SWIG_AsInt(obj1); | |
9272 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9273 | { |
9274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9275 | result = (int)(arg1)->YToRow(arg2); | |
9276 | ||
9277 | wxPyEndAllowThreads(__tstate); | |
9278 | if (PyErr_Occurred()) SWIG_fail; | |
9279 | } | |
15afbcd0 | 9280 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9281 | return resultobj; |
9282 | fail: | |
9283 | return NULL; | |
9284 | } | |
9285 | ||
9286 | ||
9287 | static PyObject *_wrap_Grid_XToCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9288 | PyObject *resultobj; | |
9289 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9290 | int arg2 ; | |
9291 | int result; | |
9292 | PyObject * obj0 = 0 ; | |
994141e6 | 9293 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9294 | char *kwnames[] = { |
9295 | (char *) "self",(char *) "x", NULL | |
9296 | }; | |
9297 | ||
994141e6 | 9298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToCol",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9301 | arg2 = (int) SWIG_AsInt(obj1); | |
9302 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9303 | { |
9304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9305 | result = (int)(arg1)->XToCol(arg2); | |
9306 | ||
9307 | wxPyEndAllowThreads(__tstate); | |
9308 | if (PyErr_Occurred()) SWIG_fail; | |
9309 | } | |
15afbcd0 | 9310 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9311 | return resultobj; |
9312 | fail: | |
9313 | return NULL; | |
9314 | } | |
9315 | ||
9316 | ||
9317 | static PyObject *_wrap_Grid_YToEdgeOfRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9318 | PyObject *resultobj; | |
9319 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9320 | int arg2 ; | |
9321 | int result; | |
9322 | PyObject * obj0 = 0 ; | |
994141e6 | 9323 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9324 | char *kwnames[] = { |
9325 | (char *) "self",(char *) "y", NULL | |
9326 | }; | |
9327 | ||
994141e6 | 9328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToEdgeOfRow",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9331 | arg2 = (int) SWIG_AsInt(obj1); | |
9332 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9333 | { |
9334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9335 | result = (int)(arg1)->YToEdgeOfRow(arg2); | |
9336 | ||
9337 | wxPyEndAllowThreads(__tstate); | |
9338 | if (PyErr_Occurred()) SWIG_fail; | |
9339 | } | |
15afbcd0 | 9340 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9341 | return resultobj; |
9342 | fail: | |
9343 | return NULL; | |
9344 | } | |
9345 | ||
9346 | ||
9347 | static PyObject *_wrap_Grid_XToEdgeOfCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9348 | PyObject *resultobj; | |
9349 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9350 | int arg2 ; | |
9351 | int result; | |
9352 | PyObject * obj0 = 0 ; | |
994141e6 | 9353 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9354 | char *kwnames[] = { |
9355 | (char *) "self",(char *) "x", NULL | |
9356 | }; | |
9357 | ||
994141e6 | 9358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToEdgeOfCol",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9361 | arg2 = (int) SWIG_AsInt(obj1); | |
9362 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9363 | { |
9364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9365 | result = (int)(arg1)->XToEdgeOfCol(arg2); | |
9366 | ||
9367 | wxPyEndAllowThreads(__tstate); | |
9368 | if (PyErr_Occurred()) SWIG_fail; | |
9369 | } | |
15afbcd0 | 9370 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9371 | return resultobj; |
9372 | fail: | |
9373 | return NULL; | |
9374 | } | |
9375 | ||
9376 | ||
9377 | static PyObject *_wrap_Grid_CellToRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9378 | PyObject *resultobj; | |
9379 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9380 | int arg2 ; | |
9381 | int arg3 ; | |
9382 | wxRect result; | |
9383 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9384 | PyObject * obj1 = 0 ; |
9385 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9386 | char *kwnames[] = { |
9387 | (char *) "self",(char *) "row",(char *) "col", NULL | |
15afbcd0 RD |
9388 | }; |
9389 | ||
9390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_CellToRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
9392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9393 | arg2 = (int) SWIG_AsInt(obj1); | |
9394 | if (PyErr_Occurred()) SWIG_fail; | |
9395 | arg3 = (int) SWIG_AsInt(obj2); | |
9396 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9397 | { |
9398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9399 | result = (arg1)->CellToRect(arg2,arg3); | |
9400 | ||
9401 | wxPyEndAllowThreads(__tstate); | |
9402 | if (PyErr_Occurred()) SWIG_fail; | |
9403 | } | |
9404 | { | |
9405 | wxRect * resultptr; | |
9406 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 9407 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
9408 | } |
9409 | return resultobj; | |
9410 | fail: | |
9411 | return NULL; | |
9412 | } | |
9413 | ||
9414 | ||
9415 | static PyObject *_wrap_Grid_GetGridCursorRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9416 | PyObject *resultobj; | |
9417 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9418 | int result; | |
9419 | PyObject * obj0 = 0 ; | |
9420 | char *kwnames[] = { | |
9421 | (char *) "self", NULL | |
9422 | }; | |
9423 | ||
9424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorRow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9427 | { |
9428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9429 | result = (int)(arg1)->GetGridCursorRow(); | |
9430 | ||
9431 | wxPyEndAllowThreads(__tstate); | |
9432 | if (PyErr_Occurred()) SWIG_fail; | |
9433 | } | |
15afbcd0 | 9434 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9435 | return resultobj; |
9436 | fail: | |
9437 | return NULL; | |
9438 | } | |
9439 | ||
9440 | ||
9441 | static PyObject *_wrap_Grid_GetGridCursorCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9442 | PyObject *resultobj; | |
9443 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9444 | int result; | |
9445 | PyObject * obj0 = 0 ; | |
9446 | char *kwnames[] = { | |
9447 | (char *) "self", NULL | |
9448 | }; | |
9449 | ||
9450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorCol",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9453 | { |
9454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9455 | result = (int)(arg1)->GetGridCursorCol(); | |
9456 | ||
9457 | wxPyEndAllowThreads(__tstate); | |
9458 | if (PyErr_Occurred()) SWIG_fail; | |
9459 | } | |
15afbcd0 | 9460 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9461 | return resultobj; |
9462 | fail: | |
9463 | return NULL; | |
9464 | } | |
9465 | ||
9466 | ||
9467 | static PyObject *_wrap_Grid_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9468 | PyObject *resultobj; | |
9469 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9470 | int arg2 ; | |
9471 | int arg3 ; | |
e811c8ce | 9472 | bool arg4 = (bool) True ; |
d14a1e28 RD |
9473 | bool result; |
9474 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9475 | PyObject * obj1 = 0 ; |
9476 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9477 | PyObject * obj3 = 0 ; |
9478 | char *kwnames[] = { | |
9479 | (char *) "self",(char *) "row",(char *) "col",(char *) "wholeCellVisible", NULL | |
9480 | }; | |
9481 | ||
994141e6 | 9482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_IsVisible",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9485 | arg2 = (int) SWIG_AsInt(obj1); | |
9486 | if (PyErr_Occurred()) SWIG_fail; | |
9487 | arg3 = (int) SWIG_AsInt(obj2); | |
9488 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 9489 | if (obj3) { |
15afbcd0 RD |
9490 | arg4 = (bool) SWIG_AsBool(obj3); |
9491 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9492 | } |
9493 | { | |
9494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9495 | result = (bool)(arg1)->IsVisible(arg2,arg3,arg4); | |
9496 | ||
9497 | wxPyEndAllowThreads(__tstate); | |
9498 | if (PyErr_Occurred()) SWIG_fail; | |
9499 | } | |
4f89f6a3 RD |
9500 | { |
9501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9502 | } | |
d14a1e28 RD |
9503 | return resultobj; |
9504 | fail: | |
9505 | return NULL; | |
9506 | } | |
9507 | ||
9508 | ||
9509 | static PyObject *_wrap_Grid_MakeCellVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9510 | PyObject *resultobj; | |
9511 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9512 | int arg2 ; | |
9513 | int arg3 ; | |
9514 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9515 | PyObject * obj1 = 0 ; |
9516 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9517 | char *kwnames[] = { |
9518 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9519 | }; | |
9520 | ||
994141e6 | 9521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_MakeCellVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9524 | arg2 = (int) SWIG_AsInt(obj1); | |
9525 | if (PyErr_Occurred()) SWIG_fail; | |
9526 | arg3 = (int) SWIG_AsInt(obj2); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9528 | { |
9529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9530 | (arg1)->MakeCellVisible(arg2,arg3); | |
9531 | ||
9532 | wxPyEndAllowThreads(__tstate); | |
9533 | if (PyErr_Occurred()) SWIG_fail; | |
9534 | } | |
9535 | Py_INCREF(Py_None); resultobj = Py_None; | |
9536 | return resultobj; | |
9537 | fail: | |
9538 | return NULL; | |
9539 | } | |
9540 | ||
9541 | ||
9542 | static PyObject *_wrap_Grid_SetGridCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9543 | PyObject *resultobj; | |
9544 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9545 | int arg2 ; | |
9546 | int arg3 ; | |
9547 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9548 | PyObject * obj1 = 0 ; |
9549 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9550 | char *kwnames[] = { |
9551 | (char *) "self",(char *) "row",(char *) "col", NULL | |
9552 | }; | |
9553 | ||
994141e6 | 9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetGridCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9557 | arg2 = (int) SWIG_AsInt(obj1); | |
9558 | if (PyErr_Occurred()) SWIG_fail; | |
9559 | arg3 = (int) SWIG_AsInt(obj2); | |
9560 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9561 | { |
9562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9563 | (arg1)->SetGridCursor(arg2,arg3); | |
9564 | ||
9565 | wxPyEndAllowThreads(__tstate); | |
9566 | if (PyErr_Occurred()) SWIG_fail; | |
9567 | } | |
9568 | Py_INCREF(Py_None); resultobj = Py_None; | |
9569 | return resultobj; | |
9570 | fail: | |
9571 | return NULL; | |
9572 | } | |
9573 | ||
9574 | ||
9575 | static PyObject *_wrap_Grid_MoveCursorUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9576 | PyObject *resultobj; | |
9577 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9578 | bool arg2 ; | |
9579 | bool result; | |
9580 | PyObject * obj0 = 0 ; | |
9581 | PyObject * obj1 = 0 ; | |
9582 | char *kwnames[] = { | |
9583 | (char *) "self",(char *) "expandSelection", NULL | |
9584 | }; | |
9585 | ||
9586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9589 | arg2 = (bool) SWIG_AsBool(obj1); | |
9590 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9591 | { |
9592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9593 | result = (bool)(arg1)->MoveCursorUp(arg2); | |
9594 | ||
9595 | wxPyEndAllowThreads(__tstate); | |
9596 | if (PyErr_Occurred()) SWIG_fail; | |
9597 | } | |
4f89f6a3 RD |
9598 | { |
9599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9600 | } | |
d14a1e28 RD |
9601 | return resultobj; |
9602 | fail: | |
9603 | return NULL; | |
9604 | } | |
9605 | ||
9606 | ||
9607 | static PyObject *_wrap_Grid_MoveCursorDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9608 | PyObject *resultobj; | |
9609 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9610 | bool arg2 ; | |
9611 | bool result; | |
9612 | PyObject * obj0 = 0 ; | |
9613 | PyObject * obj1 = 0 ; | |
9614 | char *kwnames[] = { | |
9615 | (char *) "self",(char *) "expandSelection", NULL | |
9616 | }; | |
9617 | ||
9618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDown",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9621 | arg2 = (bool) SWIG_AsBool(obj1); | |
9622 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9623 | { |
9624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9625 | result = (bool)(arg1)->MoveCursorDown(arg2); | |
9626 | ||
9627 | wxPyEndAllowThreads(__tstate); | |
9628 | if (PyErr_Occurred()) SWIG_fail; | |
9629 | } | |
4f89f6a3 RD |
9630 | { |
9631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9632 | } | |
d14a1e28 RD |
9633 | return resultobj; |
9634 | fail: | |
9635 | return NULL; | |
9636 | } | |
9637 | ||
9638 | ||
9639 | static PyObject *_wrap_Grid_MoveCursorLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9640 | PyObject *resultobj; | |
9641 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9642 | bool arg2 ; | |
9643 | bool result; | |
9644 | PyObject * obj0 = 0 ; | |
9645 | PyObject * obj1 = 0 ; | |
9646 | char *kwnames[] = { | |
9647 | (char *) "self",(char *) "expandSelection", NULL | |
9648 | }; | |
9649 | ||
9650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeft",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9653 | arg2 = (bool) SWIG_AsBool(obj1); | |
9654 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9655 | { |
9656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9657 | result = (bool)(arg1)->MoveCursorLeft(arg2); | |
9658 | ||
9659 | wxPyEndAllowThreads(__tstate); | |
9660 | if (PyErr_Occurred()) SWIG_fail; | |
9661 | } | |
4f89f6a3 RD |
9662 | { |
9663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9664 | } | |
d14a1e28 RD |
9665 | return resultobj; |
9666 | fail: | |
9667 | return NULL; | |
9668 | } | |
9669 | ||
9670 | ||
9671 | static PyObject *_wrap_Grid_MoveCursorRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9672 | PyObject *resultobj; | |
9673 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9674 | bool arg2 ; | |
9675 | bool result; | |
9676 | PyObject * obj0 = 0 ; | |
9677 | PyObject * obj1 = 0 ; | |
9678 | char *kwnames[] = { | |
9679 | (char *) "self",(char *) "expandSelection", NULL | |
9680 | }; | |
9681 | ||
9682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRight",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9685 | arg2 = (bool) SWIG_AsBool(obj1); | |
9686 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9687 | { |
9688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9689 | result = (bool)(arg1)->MoveCursorRight(arg2); | |
9690 | ||
9691 | wxPyEndAllowThreads(__tstate); | |
9692 | if (PyErr_Occurred()) SWIG_fail; | |
9693 | } | |
4f89f6a3 RD |
9694 | { |
9695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9696 | } | |
d14a1e28 RD |
9697 | return resultobj; |
9698 | fail: | |
9699 | return NULL; | |
9700 | } | |
9701 | ||
9702 | ||
9703 | static PyObject *_wrap_Grid_MovePageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9704 | PyObject *resultobj; | |
9705 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9706 | bool result; | |
9707 | PyObject * obj0 = 0 ; | |
9708 | char *kwnames[] = { | |
9709 | (char *) "self", NULL | |
9710 | }; | |
9711 | ||
9712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9715 | { |
9716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9717 | result = (bool)(arg1)->MovePageDown(); | |
9718 | ||
9719 | wxPyEndAllowThreads(__tstate); | |
9720 | if (PyErr_Occurred()) SWIG_fail; | |
9721 | } | |
4f89f6a3 RD |
9722 | { |
9723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9724 | } | |
d14a1e28 RD |
9725 | return resultobj; |
9726 | fail: | |
9727 | return NULL; | |
9728 | } | |
9729 | ||
9730 | ||
9731 | static PyObject *_wrap_Grid_MovePageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9732 | PyObject *resultobj; | |
9733 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9734 | bool result; | |
9735 | PyObject * obj0 = 0 ; | |
9736 | char *kwnames[] = { | |
9737 | (char *) "self", NULL | |
9738 | }; | |
9739 | ||
9740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9743 | { |
9744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9745 | result = (bool)(arg1)->MovePageUp(); | |
9746 | ||
9747 | wxPyEndAllowThreads(__tstate); | |
9748 | if (PyErr_Occurred()) SWIG_fail; | |
9749 | } | |
4f89f6a3 RD |
9750 | { |
9751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9752 | } | |
d14a1e28 RD |
9753 | return resultobj; |
9754 | fail: | |
9755 | return NULL; | |
9756 | } | |
9757 | ||
9758 | ||
9759 | static PyObject *_wrap_Grid_MoveCursorUpBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9760 | PyObject *resultobj; | |
9761 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9762 | bool arg2 ; | |
9763 | bool result; | |
9764 | PyObject * obj0 = 0 ; | |
9765 | PyObject * obj1 = 0 ; | |
9766 | char *kwnames[] = { | |
9767 | (char *) "self",(char *) "expandSelection", NULL | |
9768 | }; | |
9769 | ||
9770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUpBlock",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9773 | arg2 = (bool) SWIG_AsBool(obj1); | |
9774 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9775 | { |
9776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9777 | result = (bool)(arg1)->MoveCursorUpBlock(arg2); | |
9778 | ||
9779 | wxPyEndAllowThreads(__tstate); | |
9780 | if (PyErr_Occurred()) SWIG_fail; | |
9781 | } | |
4f89f6a3 RD |
9782 | { |
9783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9784 | } | |
d14a1e28 RD |
9785 | return resultobj; |
9786 | fail: | |
9787 | return NULL; | |
9788 | } | |
9789 | ||
9790 | ||
9791 | static PyObject *_wrap_Grid_MoveCursorDownBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9792 | PyObject *resultobj; | |
9793 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9794 | bool arg2 ; | |
9795 | bool result; | |
9796 | PyObject * obj0 = 0 ; | |
9797 | PyObject * obj1 = 0 ; | |
9798 | char *kwnames[] = { | |
9799 | (char *) "self",(char *) "expandSelection", NULL | |
9800 | }; | |
9801 | ||
9802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDownBlock",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9805 | arg2 = (bool) SWIG_AsBool(obj1); | |
9806 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9807 | { |
9808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9809 | result = (bool)(arg1)->MoveCursorDownBlock(arg2); | |
9810 | ||
9811 | wxPyEndAllowThreads(__tstate); | |
9812 | if (PyErr_Occurred()) SWIG_fail; | |
9813 | } | |
4f89f6a3 RD |
9814 | { |
9815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9816 | } | |
d14a1e28 RD |
9817 | return resultobj; |
9818 | fail: | |
9819 | return NULL; | |
9820 | } | |
9821 | ||
9822 | ||
9823 | static PyObject *_wrap_Grid_MoveCursorLeftBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9824 | PyObject *resultobj; | |
9825 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9826 | bool arg2 ; | |
9827 | bool result; | |
9828 | PyObject * obj0 = 0 ; | |
9829 | PyObject * obj1 = 0 ; | |
9830 | char *kwnames[] = { | |
9831 | (char *) "self",(char *) "expandSelection", NULL | |
9832 | }; | |
9833 | ||
9834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeftBlock",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9837 | arg2 = (bool) SWIG_AsBool(obj1); | |
9838 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9839 | { |
9840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9841 | result = (bool)(arg1)->MoveCursorLeftBlock(arg2); | |
9842 | ||
9843 | wxPyEndAllowThreads(__tstate); | |
9844 | if (PyErr_Occurred()) SWIG_fail; | |
9845 | } | |
4f89f6a3 RD |
9846 | { |
9847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9848 | } | |
d14a1e28 RD |
9849 | return resultobj; |
9850 | fail: | |
9851 | return NULL; | |
9852 | } | |
9853 | ||
9854 | ||
9855 | static PyObject *_wrap_Grid_MoveCursorRightBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9856 | PyObject *resultobj; | |
9857 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9858 | bool arg2 ; | |
9859 | bool result; | |
9860 | PyObject * obj0 = 0 ; | |
9861 | PyObject * obj1 = 0 ; | |
9862 | char *kwnames[] = { | |
9863 | (char *) "self",(char *) "expandSelection", NULL | |
9864 | }; | |
9865 | ||
9866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRightBlock",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9869 | arg2 = (bool) SWIG_AsBool(obj1); | |
9870 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9871 | { |
9872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9873 | result = (bool)(arg1)->MoveCursorRightBlock(arg2); | |
9874 | ||
9875 | wxPyEndAllowThreads(__tstate); | |
9876 | if (PyErr_Occurred()) SWIG_fail; | |
9877 | } | |
4f89f6a3 RD |
9878 | { |
9879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9880 | } | |
d14a1e28 RD |
9881 | return resultobj; |
9882 | fail: | |
9883 | return NULL; | |
9884 | } | |
9885 | ||
9886 | ||
9887 | static PyObject *_wrap_Grid_GetDefaultRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9888 | PyObject *resultobj; | |
9889 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9890 | int result; | |
9891 | PyObject * obj0 = 0 ; | |
9892 | char *kwnames[] = { | |
9893 | (char *) "self", NULL | |
9894 | }; | |
9895 | ||
9896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowLabelSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9899 | { |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9901 | result = (int)(arg1)->GetDefaultRowLabelSize(); | |
9902 | ||
9903 | wxPyEndAllowThreads(__tstate); | |
9904 | if (PyErr_Occurred()) SWIG_fail; | |
9905 | } | |
15afbcd0 | 9906 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9907 | return resultobj; |
9908 | fail: | |
9909 | return NULL; | |
9910 | } | |
9911 | ||
9912 | ||
9913 | static PyObject *_wrap_Grid_GetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9914 | PyObject *resultobj; | |
9915 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9916 | int result; | |
9917 | PyObject * obj0 = 0 ; | |
9918 | char *kwnames[] = { | |
9919 | (char *) "self", NULL | |
9920 | }; | |
9921 | ||
9922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9925 | { |
9926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9927 | result = (int)(arg1)->GetRowLabelSize(); | |
9928 | ||
9929 | wxPyEndAllowThreads(__tstate); | |
9930 | if (PyErr_Occurred()) SWIG_fail; | |
9931 | } | |
15afbcd0 | 9932 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9933 | return resultobj; |
9934 | fail: | |
9935 | return NULL; | |
9936 | } | |
9937 | ||
9938 | ||
9939 | static PyObject *_wrap_Grid_GetDefaultColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9940 | PyObject *resultobj; | |
9941 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9942 | int result; | |
9943 | PyObject * obj0 = 0 ; | |
9944 | char *kwnames[] = { | |
9945 | (char *) "self", NULL | |
9946 | }; | |
9947 | ||
9948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColLabelSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9951 | { |
9952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9953 | result = (int)(arg1)->GetDefaultColLabelSize(); | |
9954 | ||
9955 | wxPyEndAllowThreads(__tstate); | |
9956 | if (PyErr_Occurred()) SWIG_fail; | |
9957 | } | |
15afbcd0 | 9958 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9959 | return resultobj; |
9960 | fail: | |
9961 | return NULL; | |
9962 | } | |
9963 | ||
9964 | ||
9965 | static PyObject *_wrap_Grid_GetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9966 | PyObject *resultobj; | |
9967 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9968 | int result; | |
9969 | PyObject * obj0 = 0 ; | |
9970 | char *kwnames[] = { | |
9971 | (char *) "self", NULL | |
9972 | }; | |
9973 | ||
9974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
9976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9977 | { |
9978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9979 | result = (int)(arg1)->GetColLabelSize(); | |
9980 | ||
9981 | wxPyEndAllowThreads(__tstate); | |
9982 | if (PyErr_Occurred()) SWIG_fail; | |
9983 | } | |
15afbcd0 | 9984 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9985 | return resultobj; |
9986 | fail: | |
9987 | return NULL; | |
9988 | } | |
9989 | ||
9990 | ||
9991 | static PyObject *_wrap_Grid_GetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9992 | PyObject *resultobj; | |
9993 | wxGrid *arg1 = (wxGrid *) 0 ; | |
9994 | wxColour result; | |
9995 | PyObject * obj0 = 0 ; | |
9996 | char *kwnames[] = { | |
9997 | (char *) "self", NULL | |
9998 | }; | |
9999 | ||
10000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10003 | { |
10004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10005 | result = (arg1)->GetLabelBackgroundColour(); | |
10006 | ||
10007 | wxPyEndAllowThreads(__tstate); | |
10008 | if (PyErr_Occurred()) SWIG_fail; | |
10009 | } | |
10010 | { | |
10011 | wxColour * resultptr; | |
10012 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 10013 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10014 | } |
10015 | return resultobj; | |
10016 | fail: | |
10017 | return NULL; | |
10018 | } | |
10019 | ||
10020 | ||
10021 | static PyObject *_wrap_Grid_GetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10022 | PyObject *resultobj; | |
10023 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10024 | wxColour result; | |
10025 | PyObject * obj0 = 0 ; | |
10026 | char *kwnames[] = { | |
10027 | (char *) "self", NULL | |
10028 | }; | |
10029 | ||
10030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10033 | { |
10034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10035 | result = (arg1)->GetLabelTextColour(); | |
10036 | ||
10037 | wxPyEndAllowThreads(__tstate); | |
10038 | if (PyErr_Occurred()) SWIG_fail; | |
10039 | } | |
10040 | { | |
10041 | wxColour * resultptr; | |
10042 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 10043 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10044 | } |
10045 | return resultobj; | |
10046 | fail: | |
10047 | return NULL; | |
10048 | } | |
10049 | ||
10050 | ||
10051 | static PyObject *_wrap_Grid_GetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10052 | PyObject *resultobj; | |
10053 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10054 | wxFont result; | |
10055 | PyObject * obj0 = 0 ; | |
10056 | char *kwnames[] = { | |
10057 | (char *) "self", NULL | |
10058 | }; | |
10059 | ||
10060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10063 | { |
10064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10065 | result = (arg1)->GetLabelFont(); | |
10066 | ||
10067 | wxPyEndAllowThreads(__tstate); | |
10068 | if (PyErr_Occurred()) SWIG_fail; | |
10069 | } | |
10070 | { | |
10071 | wxFont * resultptr; | |
10072 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 10073 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
10074 | } |
10075 | return resultobj; | |
10076 | fail: | |
10077 | return NULL; | |
10078 | } | |
10079 | ||
10080 | ||
10081 | static PyObject *_wrap_Grid_GetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10082 | PyObject *resultobj; | |
10083 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10084 | int *arg2 = (int *) 0 ; | |
10085 | int *arg3 = (int *) 0 ; | |
10086 | int temp2 ; | |
10087 | int temp3 ; | |
10088 | PyObject * obj0 = 0 ; | |
10089 | char *kwnames[] = { | |
10090 | (char *) "self", NULL | |
10091 | }; | |
10092 | ||
10093 | arg2 = &temp2; | |
10094 | arg3 = &temp3; | |
10095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10098 | { |
10099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10100 | (arg1)->GetRowLabelAlignment(arg2,arg3); | |
10101 | ||
10102 | wxPyEndAllowThreads(__tstate); | |
10103 | if (PyErr_Occurred()) SWIG_fail; | |
10104 | } | |
10105 | Py_INCREF(Py_None); resultobj = Py_None; | |
10106 | { | |
10107 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
10108 | resultobj = t_output_helper(resultobj,o); | |
10109 | } | |
10110 | { | |
10111 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
10112 | resultobj = t_output_helper(resultobj,o); | |
10113 | } | |
10114 | return resultobj; | |
10115 | fail: | |
10116 | return NULL; | |
10117 | } | |
10118 | ||
10119 | ||
10120 | static PyObject *_wrap_Grid_GetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10121 | PyObject *resultobj; | |
10122 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10123 | int *arg2 = (int *) 0 ; | |
10124 | int *arg3 = (int *) 0 ; | |
10125 | int temp2 ; | |
10126 | int temp3 ; | |
10127 | PyObject * obj0 = 0 ; | |
10128 | char *kwnames[] = { | |
10129 | (char *) "self", NULL | |
10130 | }; | |
10131 | ||
10132 | arg2 = &temp2; | |
10133 | arg3 = &temp3; | |
10134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10137 | { |
10138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10139 | (arg1)->GetColLabelAlignment(arg2,arg3); | |
10140 | ||
10141 | wxPyEndAllowThreads(__tstate); | |
10142 | if (PyErr_Occurred()) SWIG_fail; | |
10143 | } | |
10144 | Py_INCREF(Py_None); resultobj = Py_None; | |
10145 | { | |
10146 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
10147 | resultobj = t_output_helper(resultobj,o); | |
10148 | } | |
10149 | { | |
10150 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
10151 | resultobj = t_output_helper(resultobj,o); | |
10152 | } | |
10153 | return resultobj; | |
10154 | fail: | |
10155 | return NULL; | |
10156 | } | |
10157 | ||
10158 | ||
10159 | static PyObject *_wrap_Grid_GetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10160 | PyObject *resultobj; | |
10161 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10162 | int result; | |
10163 | PyObject * obj0 = 0 ; | |
10164 | char *kwnames[] = { | |
10165 | (char *) "self", NULL | |
10166 | }; | |
10167 | ||
10168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelTextOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10171 | { |
10172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10173 | result = (int)(arg1)->GetColLabelTextOrientation(); | |
10174 | ||
10175 | wxPyEndAllowThreads(__tstate); | |
10176 | if (PyErr_Occurred()) SWIG_fail; | |
10177 | } | |
15afbcd0 | 10178 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10179 | return resultobj; |
10180 | fail: | |
10181 | return NULL; | |
10182 | } | |
10183 | ||
10184 | ||
10185 | static PyObject *_wrap_Grid_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10186 | PyObject *resultobj; | |
10187 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10188 | int arg2 ; | |
10189 | wxString result; | |
10190 | PyObject * obj0 = 0 ; | |
994141e6 | 10191 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10192 | char *kwnames[] = { |
10193 | (char *) "self",(char *) "row", NULL | |
10194 | }; | |
10195 | ||
994141e6 | 10196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10199 | arg2 = (int) SWIG_AsInt(obj1); | |
10200 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10201 | { |
10202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10203 | result = (arg1)->GetRowLabelValue(arg2); | |
10204 | ||
10205 | wxPyEndAllowThreads(__tstate); | |
10206 | if (PyErr_Occurred()) SWIG_fail; | |
10207 | } | |
10208 | { | |
10209 | #if wxUSE_UNICODE | |
10210 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10211 | #else | |
10212 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10213 | #endif | |
10214 | } | |
10215 | return resultobj; | |
10216 | fail: | |
10217 | return NULL; | |
10218 | } | |
10219 | ||
10220 | ||
10221 | static PyObject *_wrap_Grid_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10222 | PyObject *resultobj; | |
10223 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10224 | int arg2 ; | |
10225 | wxString result; | |
10226 | PyObject * obj0 = 0 ; | |
994141e6 | 10227 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10228 | char *kwnames[] = { |
10229 | (char *) "self",(char *) "col", NULL | |
10230 | }; | |
10231 | ||
994141e6 | 10232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10235 | arg2 = (int) SWIG_AsInt(obj1); | |
10236 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10237 | { |
10238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10239 | result = (arg1)->GetColLabelValue(arg2); | |
10240 | ||
10241 | wxPyEndAllowThreads(__tstate); | |
10242 | if (PyErr_Occurred()) SWIG_fail; | |
10243 | } | |
10244 | { | |
10245 | #if wxUSE_UNICODE | |
10246 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10247 | #else | |
10248 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10249 | #endif | |
10250 | } | |
10251 | return resultobj; | |
10252 | fail: | |
10253 | return NULL; | |
10254 | } | |
10255 | ||
10256 | ||
10257 | static PyObject *_wrap_Grid_GetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10258 | PyObject *resultobj; | |
10259 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10260 | wxColour result; | |
10261 | PyObject * obj0 = 0 ; | |
10262 | char *kwnames[] = { | |
10263 | (char *) "self", NULL | |
10264 | }; | |
10265 | ||
10266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridLineColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10269 | { |
10270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10271 | result = (arg1)->GetGridLineColour(); | |
10272 | ||
10273 | wxPyEndAllowThreads(__tstate); | |
10274 | if (PyErr_Occurred()) SWIG_fail; | |
10275 | } | |
10276 | { | |
10277 | wxColour * resultptr; | |
10278 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 10279 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10280 | } |
10281 | return resultobj; | |
10282 | fail: | |
10283 | return NULL; | |
10284 | } | |
10285 | ||
10286 | ||
10287 | static PyObject *_wrap_Grid_GetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10288 | PyObject *resultobj; | |
10289 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10290 | wxColour result; | |
10291 | PyObject * obj0 = 0 ; | |
10292 | char *kwnames[] = { | |
10293 | (char *) "self", NULL | |
10294 | }; | |
10295 | ||
10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10299 | { |
10300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10301 | result = (arg1)->GetCellHighlightColour(); | |
10302 | ||
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) SWIG_fail; | |
10305 | } | |
10306 | { | |
10307 | wxColour * resultptr; | |
10308 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 10309 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10310 | } |
10311 | return resultobj; | |
10312 | fail: | |
10313 | return NULL; | |
10314 | } | |
10315 | ||
10316 | ||
10317 | static PyObject *_wrap_Grid_GetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10318 | PyObject *resultobj; | |
10319 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10320 | int result; | |
10321 | PyObject * obj0 = 0 ; | |
10322 | char *kwnames[] = { | |
10323 | (char *) "self", NULL | |
10324 | }; | |
10325 | ||
10326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightPenWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10329 | { |
10330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10331 | result = (int)(arg1)->GetCellHighlightPenWidth(); | |
10332 | ||
10333 | wxPyEndAllowThreads(__tstate); | |
10334 | if (PyErr_Occurred()) SWIG_fail; | |
10335 | } | |
15afbcd0 | 10336 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10337 | return resultobj; |
10338 | fail: | |
10339 | return NULL; | |
10340 | } | |
10341 | ||
10342 | ||
10343 | static PyObject *_wrap_Grid_GetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10344 | PyObject *resultobj; | |
10345 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10346 | int result; | |
10347 | PyObject * obj0 = 0 ; | |
10348 | char *kwnames[] = { | |
10349 | (char *) "self", NULL | |
10350 | }; | |
10351 | ||
10352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightROPenWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10355 | { |
10356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10357 | result = (int)(arg1)->GetCellHighlightROPenWidth(); | |
10358 | ||
10359 | wxPyEndAllowThreads(__tstate); | |
10360 | if (PyErr_Occurred()) SWIG_fail; | |
10361 | } | |
15afbcd0 | 10362 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10363 | return resultobj; |
10364 | fail: | |
10365 | return NULL; | |
10366 | } | |
10367 | ||
10368 | ||
10369 | static PyObject *_wrap_Grid_SetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10370 | PyObject *resultobj; | |
10371 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10372 | int arg2 ; | |
10373 | PyObject * obj0 = 0 ; | |
994141e6 | 10374 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10375 | char *kwnames[] = { |
10376 | (char *) "self",(char *) "width", NULL | |
10377 | }; | |
10378 | ||
994141e6 | 10379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowLabelSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10382 | arg2 = (int) SWIG_AsInt(obj1); | |
10383 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10384 | { |
10385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10386 | (arg1)->SetRowLabelSize(arg2); | |
10387 | ||
10388 | wxPyEndAllowThreads(__tstate); | |
10389 | if (PyErr_Occurred()) SWIG_fail; | |
10390 | } | |
10391 | Py_INCREF(Py_None); resultobj = Py_None; | |
10392 | return resultobj; | |
10393 | fail: | |
10394 | return NULL; | |
10395 | } | |
10396 | ||
10397 | ||
10398 | static PyObject *_wrap_Grid_SetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10399 | PyObject *resultobj; | |
10400 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10401 | int arg2 ; | |
10402 | PyObject * obj0 = 0 ; | |
994141e6 | 10403 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10404 | char *kwnames[] = { |
10405 | (char *) "self",(char *) "height", NULL | |
10406 | }; | |
10407 | ||
994141e6 | 10408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10411 | arg2 = (int) SWIG_AsInt(obj1); | |
10412 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10413 | { |
10414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10415 | (arg1)->SetColLabelSize(arg2); | |
10416 | ||
10417 | wxPyEndAllowThreads(__tstate); | |
10418 | if (PyErr_Occurred()) SWIG_fail; | |
10419 | } | |
10420 | Py_INCREF(Py_None); resultobj = Py_None; | |
10421 | return resultobj; | |
10422 | fail: | |
10423 | return NULL; | |
10424 | } | |
10425 | ||
10426 | ||
10427 | static PyObject *_wrap_Grid_SetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10428 | PyObject *resultobj; | |
10429 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10430 | wxColour *arg2 = 0 ; | |
10431 | wxColour temp2 ; | |
10432 | PyObject * obj0 = 0 ; | |
10433 | PyObject * obj1 = 0 ; | |
10434 | char *kwnames[] = { | |
10435 | (char *) "self","arg2", NULL | |
10436 | }; | |
10437 | ||
10438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10441 | { |
10442 | arg2 = &temp2; | |
10443 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10444 | } | |
10445 | { | |
10446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10447 | (arg1)->SetLabelBackgroundColour((wxColour const &)*arg2); | |
10448 | ||
10449 | wxPyEndAllowThreads(__tstate); | |
10450 | if (PyErr_Occurred()) SWIG_fail; | |
10451 | } | |
10452 | Py_INCREF(Py_None); resultobj = Py_None; | |
10453 | return resultobj; | |
10454 | fail: | |
10455 | return NULL; | |
10456 | } | |
10457 | ||
10458 | ||
10459 | static PyObject *_wrap_Grid_SetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10460 | PyObject *resultobj; | |
10461 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10462 | wxColour *arg2 = 0 ; | |
10463 | wxColour temp2 ; | |
10464 | PyObject * obj0 = 0 ; | |
10465 | PyObject * obj1 = 0 ; | |
10466 | char *kwnames[] = { | |
10467 | (char *) "self","arg2", NULL | |
10468 | }; | |
10469 | ||
10470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10473 | { |
10474 | arg2 = &temp2; | |
10475 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10476 | } | |
10477 | { | |
10478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10479 | (arg1)->SetLabelTextColour((wxColour const &)*arg2); | |
10480 | ||
10481 | wxPyEndAllowThreads(__tstate); | |
10482 | if (PyErr_Occurred()) SWIG_fail; | |
10483 | } | |
10484 | Py_INCREF(Py_None); resultobj = Py_None; | |
10485 | return resultobj; | |
10486 | fail: | |
10487 | return NULL; | |
10488 | } | |
10489 | ||
10490 | ||
10491 | static PyObject *_wrap_Grid_SetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10492 | PyObject *resultobj; | |
10493 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10494 | wxFont *arg2 = 0 ; | |
10495 | PyObject * obj0 = 0 ; | |
10496 | PyObject * obj1 = 0 ; | |
10497 | char *kwnames[] = { | |
10498 | (char *) "self","arg2", NULL | |
10499 | }; | |
10500 | ||
10501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10504 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
10505 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10506 | SWIG_fail; | |
d14a1e28 | 10507 | if (arg2 == NULL) { |
15afbcd0 RD |
10508 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10509 | SWIG_fail; | |
d14a1e28 RD |
10510 | } |
10511 | { | |
10512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10513 | (arg1)->SetLabelFont((wxFont const &)*arg2); | |
10514 | ||
10515 | wxPyEndAllowThreads(__tstate); | |
10516 | if (PyErr_Occurred()) SWIG_fail; | |
10517 | } | |
10518 | Py_INCREF(Py_None); resultobj = Py_None; | |
10519 | return resultobj; | |
10520 | fail: | |
10521 | return NULL; | |
10522 | } | |
10523 | ||
10524 | ||
10525 | static PyObject *_wrap_Grid_SetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10526 | PyObject *resultobj; | |
10527 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10528 | int arg2 ; | |
10529 | int arg3 ; | |
10530 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10531 | PyObject * obj1 = 0 ; |
10532 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10533 | char *kwnames[] = { |
10534 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
10535 | }; | |
10536 | ||
994141e6 | 10537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10540 | arg2 = (int) SWIG_AsInt(obj1); | |
10541 | if (PyErr_Occurred()) SWIG_fail; | |
10542 | arg3 = (int) SWIG_AsInt(obj2); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10544 | { |
10545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10546 | (arg1)->SetRowLabelAlignment(arg2,arg3); | |
10547 | ||
10548 | wxPyEndAllowThreads(__tstate); | |
10549 | if (PyErr_Occurred()) SWIG_fail; | |
10550 | } | |
10551 | Py_INCREF(Py_None); resultobj = Py_None; | |
10552 | return resultobj; | |
10553 | fail: | |
10554 | return NULL; | |
10555 | } | |
10556 | ||
10557 | ||
10558 | static PyObject *_wrap_Grid_SetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10559 | PyObject *resultobj; | |
10560 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10561 | int arg2 ; | |
10562 | int arg3 ; | |
10563 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10564 | PyObject * obj1 = 0 ; |
10565 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10566 | char *kwnames[] = { |
10567 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
10568 | }; | |
10569 | ||
994141e6 | 10570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10573 | arg2 = (int) SWIG_AsInt(obj1); | |
10574 | if (PyErr_Occurred()) SWIG_fail; | |
10575 | arg3 = (int) SWIG_AsInt(obj2); | |
10576 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10577 | { |
10578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10579 | (arg1)->SetColLabelAlignment(arg2,arg3); | |
10580 | ||
10581 | wxPyEndAllowThreads(__tstate); | |
10582 | if (PyErr_Occurred()) SWIG_fail; | |
10583 | } | |
10584 | Py_INCREF(Py_None); resultobj = Py_None; | |
10585 | return resultobj; | |
10586 | fail: | |
10587 | return NULL; | |
10588 | } | |
10589 | ||
10590 | ||
10591 | static PyObject *_wrap_Grid_SetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10592 | PyObject *resultobj; | |
10593 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10594 | int arg2 ; | |
10595 | PyObject * obj0 = 0 ; | |
994141e6 | 10596 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10597 | char *kwnames[] = { |
10598 | (char *) "self",(char *) "textOrientation", NULL | |
10599 | }; | |
10600 | ||
994141e6 | 10601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelTextOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10604 | arg2 = (int) SWIG_AsInt(obj1); | |
10605 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10606 | { |
10607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10608 | (arg1)->SetColLabelTextOrientation(arg2); | |
10609 | ||
10610 | wxPyEndAllowThreads(__tstate); | |
10611 | if (PyErr_Occurred()) SWIG_fail; | |
10612 | } | |
10613 | Py_INCREF(Py_None); resultobj = Py_None; | |
10614 | return resultobj; | |
10615 | fail: | |
10616 | return NULL; | |
10617 | } | |
10618 | ||
10619 | ||
10620 | static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10621 | PyObject *resultobj; | |
10622 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10623 | int arg2 ; | |
10624 | wxString *arg3 = 0 ; | |
e811c8ce | 10625 | bool temp3 = False ; |
d14a1e28 | 10626 | PyObject * obj0 = 0 ; |
994141e6 | 10627 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10628 | PyObject * obj2 = 0 ; |
10629 | char *kwnames[] = { | |
10630 | (char *) "self",(char *) "row","arg3", NULL | |
10631 | }; | |
10632 | ||
994141e6 | 10633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10636 | arg2 = (int) SWIG_AsInt(obj1); | |
10637 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10638 | { |
10639 | arg3 = wxString_in_helper(obj2); | |
10640 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10641 | temp3 = True; |
d14a1e28 RD |
10642 | } |
10643 | { | |
10644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10645 | (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3); | |
10646 | ||
10647 | wxPyEndAllowThreads(__tstate); | |
10648 | if (PyErr_Occurred()) SWIG_fail; | |
10649 | } | |
10650 | Py_INCREF(Py_None); resultobj = Py_None; | |
10651 | { | |
10652 | if (temp3) | |
10653 | delete arg3; | |
10654 | } | |
10655 | return resultobj; | |
10656 | fail: | |
10657 | { | |
10658 | if (temp3) | |
10659 | delete arg3; | |
10660 | } | |
10661 | return NULL; | |
10662 | } | |
10663 | ||
10664 | ||
10665 | static PyObject *_wrap_Grid_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10666 | PyObject *resultobj; | |
10667 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10668 | int arg2 ; | |
10669 | wxString *arg3 = 0 ; | |
e811c8ce | 10670 | bool temp3 = False ; |
d14a1e28 | 10671 | PyObject * obj0 = 0 ; |
994141e6 | 10672 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10673 | PyObject * obj2 = 0 ; |
10674 | char *kwnames[] = { | |
10675 | (char *) "self",(char *) "col","arg3", NULL | |
10676 | }; | |
10677 | ||
994141e6 | 10678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10681 | arg2 = (int) SWIG_AsInt(obj1); | |
10682 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10683 | { |
10684 | arg3 = wxString_in_helper(obj2); | |
10685 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10686 | temp3 = True; |
d14a1e28 RD |
10687 | } |
10688 | { | |
10689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10690 | (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3); | |
10691 | ||
10692 | wxPyEndAllowThreads(__tstate); | |
10693 | if (PyErr_Occurred()) SWIG_fail; | |
10694 | } | |
10695 | Py_INCREF(Py_None); resultobj = Py_None; | |
10696 | { | |
10697 | if (temp3) | |
10698 | delete arg3; | |
10699 | } | |
10700 | return resultobj; | |
10701 | fail: | |
10702 | { | |
10703 | if (temp3) | |
10704 | delete arg3; | |
10705 | } | |
10706 | return NULL; | |
10707 | } | |
10708 | ||
10709 | ||
10710 | static PyObject *_wrap_Grid_SetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10711 | PyObject *resultobj; | |
10712 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10713 | wxColour *arg2 = 0 ; | |
10714 | wxColour temp2 ; | |
10715 | PyObject * obj0 = 0 ; | |
10716 | PyObject * obj1 = 0 ; | |
10717 | char *kwnames[] = { | |
10718 | (char *) "self","arg2", NULL | |
10719 | }; | |
10720 | ||
10721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetGridLineColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10724 | { |
10725 | arg2 = &temp2; | |
10726 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10727 | } | |
10728 | { | |
10729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10730 | (arg1)->SetGridLineColour((wxColour const &)*arg2); | |
10731 | ||
10732 | wxPyEndAllowThreads(__tstate); | |
10733 | if (PyErr_Occurred()) SWIG_fail; | |
10734 | } | |
10735 | Py_INCREF(Py_None); resultobj = Py_None; | |
10736 | return resultobj; | |
10737 | fail: | |
10738 | return NULL; | |
10739 | } | |
10740 | ||
10741 | ||
10742 | static PyObject *_wrap_Grid_SetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10743 | PyObject *resultobj; | |
10744 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10745 | wxColour *arg2 = 0 ; | |
10746 | wxColour temp2 ; | |
10747 | PyObject * obj0 = 0 ; | |
10748 | PyObject * obj1 = 0 ; | |
10749 | char *kwnames[] = { | |
10750 | (char *) "self","arg2", NULL | |
10751 | }; | |
10752 | ||
10753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10756 | { |
10757 | arg2 = &temp2; | |
10758 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10759 | } | |
10760 | { | |
10761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10762 | (arg1)->SetCellHighlightColour((wxColour const &)*arg2); | |
10763 | ||
10764 | wxPyEndAllowThreads(__tstate); | |
10765 | if (PyErr_Occurred()) SWIG_fail; | |
10766 | } | |
10767 | Py_INCREF(Py_None); resultobj = Py_None; | |
10768 | return resultobj; | |
10769 | fail: | |
10770 | return NULL; | |
10771 | } | |
10772 | ||
10773 | ||
10774 | static PyObject *_wrap_Grid_SetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10775 | PyObject *resultobj; | |
10776 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10777 | int arg2 ; | |
10778 | PyObject * obj0 = 0 ; | |
994141e6 | 10779 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10780 | char *kwnames[] = { |
10781 | (char *) "self",(char *) "width", NULL | |
10782 | }; | |
10783 | ||
994141e6 | 10784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightPenWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10787 | arg2 = (int) SWIG_AsInt(obj1); | |
10788 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10789 | { |
10790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10791 | (arg1)->SetCellHighlightPenWidth(arg2); | |
10792 | ||
10793 | wxPyEndAllowThreads(__tstate); | |
10794 | if (PyErr_Occurred()) SWIG_fail; | |
10795 | } | |
10796 | Py_INCREF(Py_None); resultobj = Py_None; | |
10797 | return resultobj; | |
10798 | fail: | |
10799 | return NULL; | |
10800 | } | |
10801 | ||
10802 | ||
10803 | static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10804 | PyObject *resultobj; | |
10805 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10806 | int arg2 ; | |
10807 | PyObject * obj0 = 0 ; | |
994141e6 | 10808 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10809 | char *kwnames[] = { |
10810 | (char *) "self",(char *) "width", NULL | |
10811 | }; | |
10812 | ||
994141e6 | 10813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightROPenWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10816 | arg2 = (int) SWIG_AsInt(obj1); | |
10817 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10818 | { |
10819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10820 | (arg1)->SetCellHighlightROPenWidth(arg2); | |
10821 | ||
10822 | wxPyEndAllowThreads(__tstate); | |
10823 | if (PyErr_Occurred()) SWIG_fail; | |
10824 | } | |
10825 | Py_INCREF(Py_None); resultobj = Py_None; | |
10826 | return resultobj; | |
10827 | fail: | |
10828 | return NULL; | |
10829 | } | |
10830 | ||
10831 | ||
10832 | static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10833 | PyObject *resultobj; | |
10834 | wxGrid *arg1 = (wxGrid *) 0 ; | |
e811c8ce | 10835 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10836 | PyObject * obj0 = 0 ; |
10837 | PyObject * obj1 = 0 ; | |
10838 | char *kwnames[] = { | |
10839 | (char *) "self",(char *) "enable", NULL | |
10840 | }; | |
10841 | ||
10842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragRowSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10845 | if (obj1) { |
15afbcd0 RD |
10846 | arg2 = (bool) SWIG_AsBool(obj1); |
10847 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10848 | } |
10849 | { | |
10850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10851 | (arg1)->EnableDragRowSize(arg2); | |
10852 | ||
10853 | wxPyEndAllowThreads(__tstate); | |
10854 | if (PyErr_Occurred()) SWIG_fail; | |
10855 | } | |
10856 | Py_INCREF(Py_None); resultobj = Py_None; | |
10857 | return resultobj; | |
10858 | fail: | |
10859 | return NULL; | |
10860 | } | |
10861 | ||
10862 | ||
10863 | static PyObject *_wrap_Grid_DisableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10864 | PyObject *resultobj; | |
10865 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10866 | PyObject * obj0 = 0 ; | |
10867 | char *kwnames[] = { | |
10868 | (char *) "self", NULL | |
10869 | }; | |
10870 | ||
10871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragRowSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10874 | { |
10875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10876 | (arg1)->DisableDragRowSize(); | |
10877 | ||
10878 | wxPyEndAllowThreads(__tstate); | |
10879 | if (PyErr_Occurred()) SWIG_fail; | |
10880 | } | |
10881 | Py_INCREF(Py_None); resultobj = Py_None; | |
10882 | return resultobj; | |
10883 | fail: | |
10884 | return NULL; | |
10885 | } | |
10886 | ||
10887 | ||
10888 | static PyObject *_wrap_Grid_CanDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10889 | PyObject *resultobj; | |
10890 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10891 | bool result; | |
10892 | PyObject * obj0 = 0 ; | |
10893 | char *kwnames[] = { | |
10894 | (char *) "self", NULL | |
10895 | }; | |
10896 | ||
10897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragRowSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10900 | { |
10901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10902 | result = (bool)(arg1)->CanDragRowSize(); | |
10903 | ||
10904 | wxPyEndAllowThreads(__tstate); | |
10905 | if (PyErr_Occurred()) SWIG_fail; | |
10906 | } | |
4f89f6a3 RD |
10907 | { |
10908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10909 | } | |
d14a1e28 RD |
10910 | return resultobj; |
10911 | fail: | |
10912 | return NULL; | |
10913 | } | |
10914 | ||
10915 | ||
10916 | static PyObject *_wrap_Grid_EnableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10917 | PyObject *resultobj; | |
10918 | wxGrid *arg1 = (wxGrid *) 0 ; | |
e811c8ce | 10919 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10920 | PyObject * obj0 = 0 ; |
10921 | PyObject * obj1 = 0 ; | |
10922 | char *kwnames[] = { | |
10923 | (char *) "self",(char *) "enable", NULL | |
10924 | }; | |
10925 | ||
10926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragColSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10929 | if (obj1) { |
15afbcd0 RD |
10930 | arg2 = (bool) SWIG_AsBool(obj1); |
10931 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10932 | } |
10933 | { | |
10934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10935 | (arg1)->EnableDragColSize(arg2); | |
10936 | ||
10937 | wxPyEndAllowThreads(__tstate); | |
10938 | if (PyErr_Occurred()) SWIG_fail; | |
10939 | } | |
10940 | Py_INCREF(Py_None); resultobj = Py_None; | |
10941 | return resultobj; | |
10942 | fail: | |
10943 | return NULL; | |
10944 | } | |
10945 | ||
10946 | ||
10947 | static PyObject *_wrap_Grid_DisableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10948 | PyObject *resultobj; | |
10949 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10950 | PyObject * obj0 = 0 ; | |
10951 | char *kwnames[] = { | |
10952 | (char *) "self", NULL | |
10953 | }; | |
10954 | ||
10955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragColSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10958 | { |
10959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10960 | (arg1)->DisableDragColSize(); | |
10961 | ||
10962 | wxPyEndAllowThreads(__tstate); | |
10963 | if (PyErr_Occurred()) SWIG_fail; | |
10964 | } | |
10965 | Py_INCREF(Py_None); resultobj = Py_None; | |
10966 | return resultobj; | |
10967 | fail: | |
10968 | return NULL; | |
10969 | } | |
10970 | ||
10971 | ||
10972 | static PyObject *_wrap_Grid_CanDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10973 | PyObject *resultobj; | |
10974 | wxGrid *arg1 = (wxGrid *) 0 ; | |
10975 | bool result; | |
10976 | PyObject * obj0 = 0 ; | |
10977 | char *kwnames[] = { | |
10978 | (char *) "self", NULL | |
10979 | }; | |
10980 | ||
10981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragColSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
10983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10984 | { |
10985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10986 | result = (bool)(arg1)->CanDragColSize(); | |
10987 | ||
10988 | wxPyEndAllowThreads(__tstate); | |
10989 | if (PyErr_Occurred()) SWIG_fail; | |
10990 | } | |
4f89f6a3 RD |
10991 | { |
10992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10993 | } | |
d14a1e28 RD |
10994 | return resultobj; |
10995 | fail: | |
10996 | return NULL; | |
10997 | } | |
10998 | ||
10999 | ||
11000 | static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11001 | PyObject *resultobj; | |
11002 | wxGrid *arg1 = (wxGrid *) 0 ; | |
e811c8ce | 11003 | bool arg2 = (bool) True ; |
d14a1e28 RD |
11004 | PyObject * obj0 = 0 ; |
11005 | PyObject * obj1 = 0 ; | |
11006 | char *kwnames[] = { | |
11007 | (char *) "self",(char *) "enable", NULL | |
11008 | }; | |
11009 | ||
11010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragGridSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11013 | if (obj1) { |
15afbcd0 RD |
11014 | arg2 = (bool) SWIG_AsBool(obj1); |
11015 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11016 | } |
11017 | { | |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11019 | (arg1)->EnableDragGridSize(arg2); | |
11020 | ||
11021 | wxPyEndAllowThreads(__tstate); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
11024 | Py_INCREF(Py_None); resultobj = Py_None; | |
11025 | return resultobj; | |
11026 | fail: | |
11027 | return NULL; | |
11028 | } | |
11029 | ||
11030 | ||
11031 | static PyObject *_wrap_Grid_DisableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11032 | PyObject *resultobj; | |
11033 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11034 | PyObject * obj0 = 0 ; | |
11035 | char *kwnames[] = { | |
11036 | (char *) "self", NULL | |
11037 | }; | |
11038 | ||
11039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragGridSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11042 | { |
11043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11044 | (arg1)->DisableDragGridSize(); | |
11045 | ||
11046 | wxPyEndAllowThreads(__tstate); | |
11047 | if (PyErr_Occurred()) SWIG_fail; | |
11048 | } | |
11049 | Py_INCREF(Py_None); resultobj = Py_None; | |
11050 | return resultobj; | |
11051 | fail: | |
11052 | return NULL; | |
11053 | } | |
11054 | ||
11055 | ||
11056 | static PyObject *_wrap_Grid_CanDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11057 | PyObject *resultobj; | |
11058 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11059 | bool result; | |
11060 | PyObject * obj0 = 0 ; | |
11061 | char *kwnames[] = { | |
11062 | (char *) "self", NULL | |
11063 | }; | |
11064 | ||
11065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragGridSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11068 | { |
11069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11070 | result = (bool)(arg1)->CanDragGridSize(); | |
11071 | ||
11072 | wxPyEndAllowThreads(__tstate); | |
11073 | if (PyErr_Occurred()) SWIG_fail; | |
11074 | } | |
4f89f6a3 RD |
11075 | { |
11076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11077 | } | |
d14a1e28 RD |
11078 | return resultobj; |
11079 | fail: | |
11080 | return NULL; | |
11081 | } | |
11082 | ||
11083 | ||
11084 | static PyObject *_wrap_Grid_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11085 | PyObject *resultobj; | |
11086 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11087 | int arg2 ; | |
11088 | int arg3 ; | |
11089 | wxGridCellAttr *arg4 = (wxGridCellAttr *) 0 ; | |
11090 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11091 | PyObject * obj1 = 0 ; |
11092 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11093 | PyObject * obj3 = 0 ; |
11094 | char *kwnames[] = { | |
11095 | (char *) "self",(char *) "row",(char *) "col",(char *) "attr", NULL | |
11096 | }; | |
11097 | ||
994141e6 | 11098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11101 | arg2 = (int) SWIG_AsInt(obj1); | |
11102 | if (PyErr_Occurred()) SWIG_fail; | |
11103 | arg3 = (int) SWIG_AsInt(obj2); | |
11104 | if (PyErr_Occurred()) SWIG_fail; | |
11105 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellAttr, | |
11106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11107 | { |
11108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11109 | (arg1)->SetAttr(arg2,arg3,arg4); | |
11110 | ||
11111 | wxPyEndAllowThreads(__tstate); | |
11112 | if (PyErr_Occurred()) SWIG_fail; | |
11113 | } | |
11114 | Py_INCREF(Py_None); resultobj = Py_None; | |
11115 | return resultobj; | |
11116 | fail: | |
11117 | return NULL; | |
11118 | } | |
11119 | ||
11120 | ||
11121 | static PyObject *_wrap_Grid_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11122 | PyObject *resultobj; | |
11123 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11124 | int arg2 ; | |
11125 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
11126 | PyObject * obj0 = 0 ; | |
994141e6 | 11127 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11128 | PyObject * obj2 = 0 ; |
11129 | char *kwnames[] = { | |
11130 | (char *) "self",(char *) "row",(char *) "attr", NULL | |
11131 | }; | |
11132 | ||
994141e6 | 11133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11136 | arg2 = (int) SWIG_AsInt(obj1); | |
11137 | if (PyErr_Occurred()) SWIG_fail; | |
11138 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
11139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11140 | { |
11141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11142 | (arg1)->SetRowAttr(arg2,arg3); | |
11143 | ||
11144 | wxPyEndAllowThreads(__tstate); | |
11145 | if (PyErr_Occurred()) SWIG_fail; | |
11146 | } | |
11147 | Py_INCREF(Py_None); resultobj = Py_None; | |
11148 | return resultobj; | |
11149 | fail: | |
11150 | return NULL; | |
11151 | } | |
11152 | ||
11153 | ||
11154 | static PyObject *_wrap_Grid_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11155 | PyObject *resultobj; | |
11156 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11157 | int arg2 ; | |
11158 | wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ; | |
11159 | PyObject * obj0 = 0 ; | |
994141e6 | 11160 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11161 | PyObject * obj2 = 0 ; |
11162 | char *kwnames[] = { | |
11163 | (char *) "self",(char *) "col",(char *) "attr", NULL | |
11164 | }; | |
11165 | ||
994141e6 | 11166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11169 | arg2 = (int) SWIG_AsInt(obj1); | |
11170 | if (PyErr_Occurred()) SWIG_fail; | |
11171 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellAttr, | |
11172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11173 | { |
11174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11175 | (arg1)->SetColAttr(arg2,arg3); | |
11176 | ||
11177 | wxPyEndAllowThreads(__tstate); | |
11178 | if (PyErr_Occurred()) SWIG_fail; | |
11179 | } | |
11180 | Py_INCREF(Py_None); resultobj = Py_None; | |
11181 | return resultobj; | |
11182 | fail: | |
11183 | return NULL; | |
11184 | } | |
11185 | ||
11186 | ||
11187 | static PyObject *_wrap_Grid_SetColFormatBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11188 | PyObject *resultobj; | |
11189 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11190 | int arg2 ; | |
11191 | PyObject * obj0 = 0 ; | |
994141e6 | 11192 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11193 | char *kwnames[] = { |
11194 | (char *) "self",(char *) "col", NULL | |
11195 | }; | |
11196 | ||
994141e6 | 11197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatBool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11200 | arg2 = (int) SWIG_AsInt(obj1); | |
11201 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11202 | { |
11203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11204 | (arg1)->SetColFormatBool(arg2); | |
11205 | ||
11206 | wxPyEndAllowThreads(__tstate); | |
11207 | if (PyErr_Occurred()) SWIG_fail; | |
11208 | } | |
11209 | Py_INCREF(Py_None); resultobj = Py_None; | |
11210 | return resultobj; | |
11211 | fail: | |
11212 | return NULL; | |
11213 | } | |
11214 | ||
11215 | ||
11216 | static PyObject *_wrap_Grid_SetColFormatNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11217 | PyObject *resultobj; | |
11218 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11219 | int arg2 ; | |
11220 | PyObject * obj0 = 0 ; | |
994141e6 | 11221 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11222 | char *kwnames[] = { |
11223 | (char *) "self",(char *) "col", NULL | |
11224 | }; | |
11225 | ||
994141e6 | 11226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatNumber",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11229 | arg2 = (int) SWIG_AsInt(obj1); | |
11230 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11231 | { |
11232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11233 | (arg1)->SetColFormatNumber(arg2); | |
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 | ||
11245 | static PyObject *_wrap_Grid_SetColFormatFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11246 | PyObject *resultobj; | |
11247 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11248 | int arg2 ; | |
11249 | int arg3 = (int) -1 ; | |
11250 | int arg4 = (int) -1 ; | |
11251 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11252 | PyObject * obj1 = 0 ; |
11253 | PyObject * obj2 = 0 ; | |
11254 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11255 | char *kwnames[] = { |
11256 | (char *) "self",(char *) "col",(char *) "width",(char *) "precision", NULL | |
11257 | }; | |
11258 | ||
994141e6 | 11259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetColFormatFloat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11262 | arg2 = (int) SWIG_AsInt(obj1); | |
11263 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11264 | if (obj2) { |
15afbcd0 RD |
11265 | arg3 = (int) SWIG_AsInt(obj2); |
11266 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11267 | } |
11268 | if (obj3) { | |
15afbcd0 RD |
11269 | arg4 = (int) SWIG_AsInt(obj3); |
11270 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11271 | } |
d14a1e28 RD |
11272 | { |
11273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11274 | (arg1)->SetColFormatFloat(arg2,arg3,arg4); | |
11275 | ||
11276 | wxPyEndAllowThreads(__tstate); | |
11277 | if (PyErr_Occurred()) SWIG_fail; | |
11278 | } | |
11279 | Py_INCREF(Py_None); resultobj = Py_None; | |
11280 | return resultobj; | |
11281 | fail: | |
11282 | return NULL; | |
11283 | } | |
11284 | ||
11285 | ||
11286 | static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11287 | PyObject *resultobj; | |
11288 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11289 | int arg2 ; | |
11290 | wxString *arg3 = 0 ; | |
e811c8ce | 11291 | bool temp3 = False ; |
d14a1e28 | 11292 | PyObject * obj0 = 0 ; |
994141e6 | 11293 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11294 | PyObject * obj2 = 0 ; |
11295 | char *kwnames[] = { | |
11296 | (char *) "self",(char *) "col",(char *) "typeName", NULL | |
11297 | }; | |
11298 | ||
994141e6 | 11299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColFormatCustom",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11302 | arg2 = (int) SWIG_AsInt(obj1); | |
11303 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11304 | { |
11305 | arg3 = wxString_in_helper(obj2); | |
11306 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11307 | temp3 = True; |
d14a1e28 RD |
11308 | } |
11309 | { | |
11310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11311 | (arg1)->SetColFormatCustom(arg2,(wxString const &)*arg3); | |
11312 | ||
11313 | wxPyEndAllowThreads(__tstate); | |
11314 | if (PyErr_Occurred()) SWIG_fail; | |
11315 | } | |
11316 | Py_INCREF(Py_None); resultobj = Py_None; | |
11317 | { | |
11318 | if (temp3) | |
11319 | delete arg3; | |
11320 | } | |
11321 | return resultobj; | |
11322 | fail: | |
11323 | { | |
11324 | if (temp3) | |
11325 | delete arg3; | |
11326 | } | |
11327 | return NULL; | |
11328 | } | |
11329 | ||
11330 | ||
11331 | static PyObject *_wrap_Grid_EnableGridLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11332 | PyObject *resultobj; | |
11333 | wxGrid *arg1 = (wxGrid *) 0 ; | |
e811c8ce | 11334 | bool arg2 = (bool) True ; |
d14a1e28 RD |
11335 | PyObject * obj0 = 0 ; |
11336 | PyObject * obj1 = 0 ; | |
11337 | char *kwnames[] = { | |
11338 | (char *) "self",(char *) "enable", NULL | |
11339 | }; | |
11340 | ||
11341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableGridLines",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11344 | if (obj1) { |
15afbcd0 RD |
11345 | arg2 = (bool) SWIG_AsBool(obj1); |
11346 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11347 | } |
11348 | { | |
11349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11350 | (arg1)->EnableGridLines(arg2); | |
11351 | ||
11352 | wxPyEndAllowThreads(__tstate); | |
11353 | if (PyErr_Occurred()) SWIG_fail; | |
11354 | } | |
11355 | Py_INCREF(Py_None); resultobj = Py_None; | |
11356 | return resultobj; | |
11357 | fail: | |
11358 | return NULL; | |
11359 | } | |
11360 | ||
11361 | ||
11362 | static PyObject *_wrap_Grid_GridLinesEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11363 | PyObject *resultobj; | |
11364 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11365 | bool result; | |
11366 | PyObject * obj0 = 0 ; | |
11367 | char *kwnames[] = { | |
11368 | (char *) "self", NULL | |
11369 | }; | |
11370 | ||
11371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GridLinesEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11374 | { |
11375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11376 | result = (bool)(arg1)->GridLinesEnabled(); | |
11377 | ||
11378 | wxPyEndAllowThreads(__tstate); | |
11379 | if (PyErr_Occurred()) SWIG_fail; | |
11380 | } | |
4f89f6a3 RD |
11381 | { |
11382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11383 | } | |
d14a1e28 RD |
11384 | return resultobj; |
11385 | fail: | |
11386 | return NULL; | |
11387 | } | |
11388 | ||
11389 | ||
11390 | static PyObject *_wrap_Grid_GetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11391 | PyObject *resultobj; | |
11392 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11393 | int result; | |
11394 | PyObject * obj0 = 0 ; | |
11395 | char *kwnames[] = { | |
11396 | (char *) "self", NULL | |
11397 | }; | |
11398 | ||
11399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11402 | { |
11403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11404 | result = (int)(arg1)->GetDefaultRowSize(); | |
11405 | ||
11406 | wxPyEndAllowThreads(__tstate); | |
11407 | if (PyErr_Occurred()) SWIG_fail; | |
11408 | } | |
15afbcd0 | 11409 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11410 | return resultobj; |
11411 | fail: | |
11412 | return NULL; | |
11413 | } | |
11414 | ||
11415 | ||
11416 | static PyObject *_wrap_Grid_GetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11417 | PyObject *resultobj; | |
11418 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11419 | int arg2 ; | |
11420 | int result; | |
11421 | PyObject * obj0 = 0 ; | |
994141e6 | 11422 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11423 | char *kwnames[] = { |
11424 | (char *) "self",(char *) "row", NULL | |
11425 | }; | |
11426 | ||
994141e6 | 11427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11430 | arg2 = (int) SWIG_AsInt(obj1); | |
11431 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11432 | { |
11433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11434 | result = (int)(arg1)->GetRowSize(arg2); | |
11435 | ||
11436 | wxPyEndAllowThreads(__tstate); | |
11437 | if (PyErr_Occurred()) SWIG_fail; | |
11438 | } | |
15afbcd0 | 11439 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11440 | return resultobj; |
11441 | fail: | |
11442 | return NULL; | |
11443 | } | |
11444 | ||
11445 | ||
11446 | static PyObject *_wrap_Grid_GetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11447 | PyObject *resultobj; | |
11448 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11449 | int result; | |
11450 | PyObject * obj0 = 0 ; | |
11451 | char *kwnames[] = { | |
11452 | (char *) "self", NULL | |
11453 | }; | |
11454 | ||
11455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11458 | { |
11459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11460 | result = (int)(arg1)->GetDefaultColSize(); | |
11461 | ||
11462 | wxPyEndAllowThreads(__tstate); | |
11463 | if (PyErr_Occurred()) SWIG_fail; | |
11464 | } | |
15afbcd0 | 11465 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11466 | return resultobj; |
11467 | fail: | |
11468 | return NULL; | |
11469 | } | |
11470 | ||
11471 | ||
11472 | static PyObject *_wrap_Grid_GetColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11473 | PyObject *resultobj; | |
11474 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11475 | int arg2 ; | |
11476 | int result; | |
11477 | PyObject * obj0 = 0 ; | |
994141e6 | 11478 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11479 | char *kwnames[] = { |
11480 | (char *) "self",(char *) "col", NULL | |
11481 | }; | |
11482 | ||
994141e6 | 11483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11486 | arg2 = (int) SWIG_AsInt(obj1); | |
11487 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11488 | { |
11489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11490 | result = (int)(arg1)->GetColSize(arg2); | |
11491 | ||
11492 | wxPyEndAllowThreads(__tstate); | |
11493 | if (PyErr_Occurred()) SWIG_fail; | |
11494 | } | |
15afbcd0 | 11495 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11496 | return resultobj; |
11497 | fail: | |
11498 | return NULL; | |
11499 | } | |
11500 | ||
11501 | ||
11502 | static PyObject *_wrap_Grid_GetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11503 | PyObject *resultobj; | |
11504 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11505 | wxColour result; | |
11506 | PyObject * obj0 = 0 ; | |
11507 | char *kwnames[] = { | |
11508 | (char *) "self", NULL | |
11509 | }; | |
11510 | ||
11511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11514 | { |
11515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11516 | result = (arg1)->GetDefaultCellBackgroundColour(); | |
11517 | ||
11518 | wxPyEndAllowThreads(__tstate); | |
11519 | if (PyErr_Occurred()) SWIG_fail; | |
11520 | } | |
11521 | { | |
11522 | wxColour * resultptr; | |
11523 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 11524 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
11525 | } |
11526 | return resultobj; | |
11527 | fail: | |
11528 | return NULL; | |
11529 | } | |
11530 | ||
11531 | ||
11532 | static PyObject *_wrap_Grid_GetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11533 | PyObject *resultobj; | |
11534 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11535 | int arg2 ; | |
11536 | int arg3 ; | |
11537 | wxColour result; | |
11538 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11539 | PyObject * obj1 = 0 ; |
11540 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11541 | char *kwnames[] = { |
11542 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11543 | }; | |
11544 | ||
994141e6 | 11545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11548 | arg2 = (int) SWIG_AsInt(obj1); | |
11549 | if (PyErr_Occurred()) SWIG_fail; | |
11550 | arg3 = (int) SWIG_AsInt(obj2); | |
11551 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11552 | { |
11553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11554 | result = (arg1)->GetCellBackgroundColour(arg2,arg3); | |
11555 | ||
11556 | wxPyEndAllowThreads(__tstate); | |
11557 | if (PyErr_Occurred()) SWIG_fail; | |
11558 | } | |
11559 | { | |
11560 | wxColour * resultptr; | |
11561 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 11562 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
11563 | } |
11564 | return resultobj; | |
11565 | fail: | |
11566 | return NULL; | |
11567 | } | |
11568 | ||
11569 | ||
11570 | static PyObject *_wrap_Grid_GetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11571 | PyObject *resultobj; | |
11572 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11573 | wxColour result; | |
11574 | PyObject * obj0 = 0 ; | |
11575 | char *kwnames[] = { | |
11576 | (char *) "self", NULL | |
11577 | }; | |
11578 | ||
11579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11582 | { |
11583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11584 | result = (arg1)->GetDefaultCellTextColour(); | |
11585 | ||
11586 | wxPyEndAllowThreads(__tstate); | |
11587 | if (PyErr_Occurred()) SWIG_fail; | |
11588 | } | |
11589 | { | |
11590 | wxColour * resultptr; | |
11591 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 11592 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
11593 | } |
11594 | return resultobj; | |
11595 | fail: | |
11596 | return NULL; | |
11597 | } | |
11598 | ||
11599 | ||
11600 | static PyObject *_wrap_Grid_GetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11601 | PyObject *resultobj; | |
11602 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11603 | int arg2 ; | |
11604 | int arg3 ; | |
11605 | wxColour result; | |
11606 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11607 | PyObject * obj1 = 0 ; |
11608 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11609 | char *kwnames[] = { |
11610 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11611 | }; | |
11612 | ||
994141e6 | 11613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11616 | arg2 = (int) SWIG_AsInt(obj1); | |
11617 | if (PyErr_Occurred()) SWIG_fail; | |
11618 | arg3 = (int) SWIG_AsInt(obj2); | |
11619 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11620 | { |
11621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11622 | result = (arg1)->GetCellTextColour(arg2,arg3); | |
11623 | ||
11624 | wxPyEndAllowThreads(__tstate); | |
11625 | if (PyErr_Occurred()) SWIG_fail; | |
11626 | } | |
11627 | { | |
11628 | wxColour * resultptr; | |
11629 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 11630 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
11631 | } |
11632 | return resultobj; | |
11633 | fail: | |
11634 | return NULL; | |
11635 | } | |
11636 | ||
11637 | ||
11638 | static PyObject *_wrap_Grid_GetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11639 | PyObject *resultobj; | |
11640 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11641 | wxFont result; | |
11642 | PyObject * obj0 = 0 ; | |
11643 | char *kwnames[] = { | |
11644 | (char *) "self", NULL | |
11645 | }; | |
11646 | ||
11647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11650 | { |
11651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11652 | result = (arg1)->GetDefaultCellFont(); | |
11653 | ||
11654 | wxPyEndAllowThreads(__tstate); | |
11655 | if (PyErr_Occurred()) SWIG_fail; | |
11656 | } | |
11657 | { | |
11658 | wxFont * resultptr; | |
11659 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 11660 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
11661 | } |
11662 | return resultobj; | |
11663 | fail: | |
11664 | return NULL; | |
11665 | } | |
11666 | ||
11667 | ||
11668 | static PyObject *_wrap_Grid_GetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11669 | PyObject *resultobj; | |
11670 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11671 | int arg2 ; | |
11672 | int arg3 ; | |
11673 | wxFont result; | |
11674 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11675 | PyObject * obj1 = 0 ; |
11676 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11677 | char *kwnames[] = { |
11678 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11679 | }; | |
11680 | ||
994141e6 | 11681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11684 | arg2 = (int) SWIG_AsInt(obj1); | |
11685 | if (PyErr_Occurred()) SWIG_fail; | |
11686 | arg3 = (int) SWIG_AsInt(obj2); | |
11687 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11688 | { |
11689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11690 | result = (arg1)->GetCellFont(arg2,arg3); | |
11691 | ||
11692 | wxPyEndAllowThreads(__tstate); | |
11693 | if (PyErr_Occurred()) SWIG_fail; | |
11694 | } | |
11695 | { | |
11696 | wxFont * resultptr; | |
11697 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 11698 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
11699 | } |
11700 | return resultobj; | |
11701 | fail: | |
11702 | return NULL; | |
11703 | } | |
11704 | ||
11705 | ||
11706 | static PyObject *_wrap_Grid_GetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11707 | PyObject *resultobj; | |
11708 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11709 | int *arg2 = (int *) 0 ; | |
11710 | int *arg3 = (int *) 0 ; | |
11711 | int temp2 ; | |
11712 | int temp3 ; | |
11713 | PyObject * obj0 = 0 ; | |
11714 | char *kwnames[] = { | |
11715 | (char *) "self", NULL | |
11716 | }; | |
11717 | ||
11718 | arg2 = &temp2; | |
11719 | arg3 = &temp3; | |
11720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11723 | { |
11724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11725 | (arg1)->GetDefaultCellAlignment(arg2,arg3); | |
11726 | ||
11727 | wxPyEndAllowThreads(__tstate); | |
11728 | if (PyErr_Occurred()) SWIG_fail; | |
11729 | } | |
11730 | Py_INCREF(Py_None); resultobj = Py_None; | |
11731 | { | |
11732 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11733 | resultobj = t_output_helper(resultobj,o); | |
11734 | } | |
11735 | { | |
11736 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11737 | resultobj = t_output_helper(resultobj,o); | |
11738 | } | |
11739 | return resultobj; | |
11740 | fail: | |
11741 | return NULL; | |
11742 | } | |
11743 | ||
11744 | ||
11745 | static PyObject *_wrap_Grid_GetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11746 | PyObject *resultobj; | |
11747 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11748 | int arg2 ; | |
11749 | int arg3 ; | |
11750 | int *arg4 = (int *) 0 ; | |
11751 | int *arg5 = (int *) 0 ; | |
11752 | int temp4 ; | |
11753 | int temp5 ; | |
11754 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11755 | PyObject * obj1 = 0 ; |
11756 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11757 | char *kwnames[] = { |
11758 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11759 | }; | |
11760 | ||
11761 | arg4 = &temp4; | |
11762 | arg5 = &temp5; | |
994141e6 | 11763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11766 | arg2 = (int) SWIG_AsInt(obj1); | |
11767 | if (PyErr_Occurred()) SWIG_fail; | |
11768 | arg3 = (int) SWIG_AsInt(obj2); | |
11769 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11770 | { |
11771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11772 | (arg1)->GetCellAlignment(arg2,arg3,arg4,arg5); | |
11773 | ||
11774 | wxPyEndAllowThreads(__tstate); | |
11775 | if (PyErr_Occurred()) SWIG_fail; | |
11776 | } | |
11777 | Py_INCREF(Py_None); resultobj = Py_None; | |
11778 | { | |
11779 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11780 | resultobj = t_output_helper(resultobj,o); | |
11781 | } | |
11782 | { | |
11783 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11784 | resultobj = t_output_helper(resultobj,o); | |
11785 | } | |
11786 | return resultobj; | |
11787 | fail: | |
11788 | return NULL; | |
11789 | } | |
11790 | ||
11791 | ||
11792 | static PyObject *_wrap_Grid_GetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11793 | PyObject *resultobj; | |
11794 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11795 | bool result; | |
11796 | PyObject * obj0 = 0 ; | |
11797 | char *kwnames[] = { | |
11798 | (char *) "self", NULL | |
11799 | }; | |
11800 | ||
11801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellOverflow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11804 | { |
11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11806 | result = (bool)(arg1)->GetDefaultCellOverflow(); | |
11807 | ||
11808 | wxPyEndAllowThreads(__tstate); | |
11809 | if (PyErr_Occurred()) SWIG_fail; | |
11810 | } | |
4f89f6a3 RD |
11811 | { |
11812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11813 | } | |
d14a1e28 RD |
11814 | return resultobj; |
11815 | fail: | |
11816 | return NULL; | |
11817 | } | |
11818 | ||
11819 | ||
11820 | static PyObject *_wrap_Grid_GetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11821 | PyObject *resultobj; | |
11822 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11823 | int arg2 ; | |
11824 | int arg3 ; | |
11825 | bool result; | |
11826 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11827 | PyObject * obj1 = 0 ; |
11828 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11829 | char *kwnames[] = { |
11830 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11831 | }; | |
11832 | ||
994141e6 | 11833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellOverflow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11836 | arg2 = (int) SWIG_AsInt(obj1); | |
11837 | if (PyErr_Occurred()) SWIG_fail; | |
11838 | arg3 = (int) SWIG_AsInt(obj2); | |
11839 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11840 | { |
11841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11842 | result = (bool)(arg1)->GetCellOverflow(arg2,arg3); | |
11843 | ||
11844 | wxPyEndAllowThreads(__tstate); | |
11845 | if (PyErr_Occurred()) SWIG_fail; | |
11846 | } | |
4f89f6a3 RD |
11847 | { |
11848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11849 | } | |
d14a1e28 RD |
11850 | return resultobj; |
11851 | fail: | |
11852 | return NULL; | |
11853 | } | |
11854 | ||
11855 | ||
11856 | static PyObject *_wrap_Grid_GetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11857 | PyObject *resultobj; | |
11858 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11859 | int arg2 ; | |
11860 | int arg3 ; | |
11861 | int *arg4 = (int *) 0 ; | |
11862 | int *arg5 = (int *) 0 ; | |
11863 | int temp4 ; | |
11864 | int temp5 ; | |
11865 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11866 | PyObject * obj1 = 0 ; |
11867 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11868 | char *kwnames[] = { |
11869 | (char *) "self",(char *) "row",(char *) "col", NULL | |
11870 | }; | |
11871 | ||
11872 | arg4 = &temp4; | |
11873 | arg5 = &temp5; | |
994141e6 | 11874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11877 | arg2 = (int) SWIG_AsInt(obj1); | |
11878 | if (PyErr_Occurred()) SWIG_fail; | |
11879 | arg3 = (int) SWIG_AsInt(obj2); | |
11880 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11881 | { |
11882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11883 | (arg1)->GetCellSize(arg2,arg3,arg4,arg5); | |
11884 | ||
11885 | wxPyEndAllowThreads(__tstate); | |
11886 | if (PyErr_Occurred()) SWIG_fail; | |
11887 | } | |
11888 | Py_INCREF(Py_None); resultobj = Py_None; | |
11889 | { | |
11890 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11891 | resultobj = t_output_helper(resultobj,o); | |
11892 | } | |
11893 | { | |
11894 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11895 | resultobj = t_output_helper(resultobj,o); | |
11896 | } | |
11897 | return resultobj; | |
11898 | fail: | |
11899 | return NULL; | |
11900 | } | |
11901 | ||
11902 | ||
11903 | static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11904 | PyObject *resultobj; | |
11905 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11906 | int arg2 ; | |
e811c8ce | 11907 | bool arg3 = (bool) False ; |
d14a1e28 | 11908 | PyObject * obj0 = 0 ; |
994141e6 | 11909 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11910 | PyObject * obj2 = 0 ; |
11911 | char *kwnames[] = { | |
11912 | (char *) "self",(char *) "height",(char *) "resizeExistingRows", NULL | |
11913 | }; | |
11914 | ||
994141e6 | 11915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11918 | arg2 = (int) SWIG_AsInt(obj1); | |
11919 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11920 | if (obj2) { |
15afbcd0 RD |
11921 | arg3 = (bool) SWIG_AsBool(obj2); |
11922 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11923 | } |
11924 | { | |
11925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11926 | (arg1)->SetDefaultRowSize(arg2,arg3); | |
11927 | ||
11928 | wxPyEndAllowThreads(__tstate); | |
11929 | if (PyErr_Occurred()) SWIG_fail; | |
11930 | } | |
11931 | Py_INCREF(Py_None); resultobj = Py_None; | |
11932 | return resultobj; | |
11933 | fail: | |
11934 | return NULL; | |
11935 | } | |
11936 | ||
11937 | ||
11938 | static PyObject *_wrap_Grid_SetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11939 | PyObject *resultobj; | |
11940 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11941 | int arg2 ; | |
11942 | int arg3 ; | |
11943 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11944 | PyObject * obj1 = 0 ; |
11945 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11946 | char *kwnames[] = { |
11947 | (char *) "self",(char *) "row",(char *) "height", NULL | |
11948 | }; | |
11949 | ||
994141e6 | 11950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11953 | arg2 = (int) SWIG_AsInt(obj1); | |
11954 | if (PyErr_Occurred()) SWIG_fail; | |
11955 | arg3 = (int) SWIG_AsInt(obj2); | |
11956 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11957 | { |
11958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11959 | (arg1)->SetRowSize(arg2,arg3); | |
11960 | ||
11961 | wxPyEndAllowThreads(__tstate); | |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
11963 | } | |
11964 | Py_INCREF(Py_None); resultobj = Py_None; | |
11965 | return resultobj; | |
11966 | fail: | |
11967 | return NULL; | |
11968 | } | |
11969 | ||
11970 | ||
11971 | static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11972 | PyObject *resultobj; | |
11973 | wxGrid *arg1 = (wxGrid *) 0 ; | |
11974 | int arg2 ; | |
e811c8ce | 11975 | bool arg3 = (bool) False ; |
d14a1e28 | 11976 | PyObject * obj0 = 0 ; |
994141e6 | 11977 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11978 | PyObject * obj2 = 0 ; |
11979 | char *kwnames[] = { | |
11980 | (char *) "self",(char *) "width",(char *) "resizeExistingCols", NULL | |
11981 | }; | |
11982 | ||
994141e6 | 11983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultColSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
11985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11986 | arg2 = (int) SWIG_AsInt(obj1); | |
11987 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11988 | if (obj2) { |
15afbcd0 RD |
11989 | arg3 = (bool) SWIG_AsBool(obj2); |
11990 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11991 | } |
11992 | { | |
11993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11994 | (arg1)->SetDefaultColSize(arg2,arg3); | |
11995 | ||
11996 | wxPyEndAllowThreads(__tstate); | |
11997 | if (PyErr_Occurred()) SWIG_fail; | |
11998 | } | |
11999 | Py_INCREF(Py_None); resultobj = Py_None; | |
12000 | return resultobj; | |
12001 | fail: | |
12002 | return NULL; | |
12003 | } | |
12004 | ||
12005 | ||
12006 | static PyObject *_wrap_Grid_SetColSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12007 | PyObject *resultobj; | |
12008 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12009 | int arg2 ; | |
12010 | int arg3 ; | |
12011 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12012 | PyObject * obj1 = 0 ; |
12013 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12014 | char *kwnames[] = { |
12015 | (char *) "self",(char *) "col",(char *) "width", NULL | |
12016 | }; | |
12017 | ||
994141e6 | 12018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12021 | arg2 = (int) SWIG_AsInt(obj1); | |
12022 | if (PyErr_Occurred()) SWIG_fail; | |
12023 | arg3 = (int) SWIG_AsInt(obj2); | |
12024 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12025 | { |
12026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12027 | (arg1)->SetColSize(arg2,arg3); | |
12028 | ||
12029 | wxPyEndAllowThreads(__tstate); | |
12030 | if (PyErr_Occurred()) SWIG_fail; | |
12031 | } | |
12032 | Py_INCREF(Py_None); resultobj = Py_None; | |
12033 | return resultobj; | |
12034 | fail: | |
12035 | return NULL; | |
12036 | } | |
12037 | ||
12038 | ||
12039 | static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12040 | PyObject *resultobj; | |
12041 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12042 | int arg2 ; | |
e811c8ce | 12043 | bool arg3 = (bool) True ; |
d14a1e28 | 12044 | PyObject * obj0 = 0 ; |
994141e6 | 12045 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12046 | PyObject * obj2 = 0 ; |
12047 | char *kwnames[] = { | |
12048 | (char *) "self",(char *) "col",(char *) "setAsMin", NULL | |
12049 | }; | |
12050 | ||
994141e6 | 12051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12054 | arg2 = (int) SWIG_AsInt(obj1); | |
12055 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 12056 | if (obj2) { |
15afbcd0 RD |
12057 | arg3 = (bool) SWIG_AsBool(obj2); |
12058 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12059 | } |
12060 | { | |
12061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12062 | (arg1)->AutoSizeColumn(arg2,arg3); | |
12063 | ||
12064 | wxPyEndAllowThreads(__tstate); | |
12065 | if (PyErr_Occurred()) SWIG_fail; | |
12066 | } | |
12067 | Py_INCREF(Py_None); resultobj = Py_None; | |
12068 | return resultobj; | |
12069 | fail: | |
12070 | return NULL; | |
12071 | } | |
12072 | ||
12073 | ||
12074 | static PyObject *_wrap_Grid_AutoSizeRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12075 | PyObject *resultobj; | |
12076 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12077 | int arg2 ; | |
e811c8ce | 12078 | bool arg3 = (bool) True ; |
d14a1e28 | 12079 | PyObject * obj0 = 0 ; |
994141e6 | 12080 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12081 | PyObject * obj2 = 0 ; |
12082 | char *kwnames[] = { | |
12083 | (char *) "self",(char *) "row",(char *) "setAsMin", NULL | |
12084 | }; | |
12085 | ||
994141e6 | 12086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12089 | arg2 = (int) SWIG_AsInt(obj1); | |
12090 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 12091 | if (obj2) { |
15afbcd0 RD |
12092 | arg3 = (bool) SWIG_AsBool(obj2); |
12093 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12094 | } |
12095 | { | |
12096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12097 | (arg1)->AutoSizeRow(arg2,arg3); | |
12098 | ||
12099 | wxPyEndAllowThreads(__tstate); | |
12100 | if (PyErr_Occurred()) SWIG_fail; | |
12101 | } | |
12102 | Py_INCREF(Py_None); resultobj = Py_None; | |
12103 | return resultobj; | |
12104 | fail: | |
12105 | return NULL; | |
12106 | } | |
12107 | ||
12108 | ||
12109 | static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12110 | PyObject *resultobj; | |
12111 | wxGrid *arg1 = (wxGrid *) 0 ; | |
e811c8ce | 12112 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12113 | PyObject * obj0 = 0 ; |
12114 | PyObject * obj1 = 0 ; | |
12115 | char *kwnames[] = { | |
12116 | (char *) "self",(char *) "setAsMin", NULL | |
12117 | }; | |
12118 | ||
12119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeColumns",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12122 | if (obj1) { |
15afbcd0 RD |
12123 | arg2 = (bool) SWIG_AsBool(obj1); |
12124 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12125 | } |
12126 | { | |
12127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12128 | (arg1)->AutoSizeColumns(arg2); | |
12129 | ||
12130 | wxPyEndAllowThreads(__tstate); | |
12131 | if (PyErr_Occurred()) SWIG_fail; | |
12132 | } | |
12133 | Py_INCREF(Py_None); resultobj = Py_None; | |
12134 | return resultobj; | |
12135 | fail: | |
12136 | return NULL; | |
12137 | } | |
12138 | ||
12139 | ||
12140 | static PyObject *_wrap_Grid_AutoSizeRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12141 | PyObject *resultobj; | |
12142 | wxGrid *arg1 = (wxGrid *) 0 ; | |
e811c8ce | 12143 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12144 | PyObject * obj0 = 0 ; |
12145 | PyObject * obj1 = 0 ; | |
12146 | char *kwnames[] = { | |
12147 | (char *) "self",(char *) "setAsMin", NULL | |
12148 | }; | |
12149 | ||
12150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeRows",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12153 | if (obj1) { |
15afbcd0 RD |
12154 | arg2 = (bool) SWIG_AsBool(obj1); |
12155 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12156 | } |
12157 | { | |
12158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12159 | (arg1)->AutoSizeRows(arg2); | |
12160 | ||
12161 | wxPyEndAllowThreads(__tstate); | |
12162 | if (PyErr_Occurred()) SWIG_fail; | |
12163 | } | |
12164 | Py_INCREF(Py_None); resultobj = Py_None; | |
12165 | return resultobj; | |
12166 | fail: | |
12167 | return NULL; | |
12168 | } | |
12169 | ||
12170 | ||
12171 | static PyObject *_wrap_Grid_AutoSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12172 | PyObject *resultobj; | |
12173 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12174 | PyObject * obj0 = 0 ; | |
12175 | char *kwnames[] = { | |
12176 | (char *) "self", NULL | |
12177 | }; | |
12178 | ||
12179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_AutoSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12182 | { |
12183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12184 | (arg1)->AutoSize(); | |
12185 | ||
12186 | wxPyEndAllowThreads(__tstate); | |
12187 | if (PyErr_Occurred()) SWIG_fail; | |
12188 | } | |
12189 | Py_INCREF(Py_None); resultobj = Py_None; | |
12190 | return resultobj; | |
12191 | fail: | |
12192 | return NULL; | |
12193 | } | |
12194 | ||
12195 | ||
12196 | static PyObject *_wrap_Grid_AutoSizeRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12197 | PyObject *resultobj; | |
12198 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12199 | int arg2 ; | |
12200 | PyObject * obj0 = 0 ; | |
994141e6 | 12201 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12202 | char *kwnames[] = { |
12203 | (char *) "self",(char *) "row", NULL | |
12204 | }; | |
12205 | ||
994141e6 | 12206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeRowLabelSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12209 | arg2 = (int) SWIG_AsInt(obj1); | |
12210 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12211 | { |
12212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12213 | (arg1)->AutoSizeRowLabelSize(arg2); | |
12214 | ||
12215 | wxPyEndAllowThreads(__tstate); | |
12216 | if (PyErr_Occurred()) SWIG_fail; | |
12217 | } | |
12218 | Py_INCREF(Py_None); resultobj = Py_None; | |
12219 | return resultobj; | |
12220 | fail: | |
12221 | return NULL; | |
12222 | } | |
12223 | ||
12224 | ||
12225 | static PyObject *_wrap_Grid_AutoSizeColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12226 | PyObject *resultobj; | |
12227 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12228 | int arg2 ; | |
12229 | PyObject * obj0 = 0 ; | |
994141e6 | 12230 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12231 | char *kwnames[] = { |
12232 | (char *) "self",(char *) "col", NULL | |
12233 | }; | |
12234 | ||
994141e6 | 12235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeColLabelSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12238 | arg2 = (int) SWIG_AsInt(obj1); | |
12239 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12240 | { |
12241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12242 | (arg1)->AutoSizeColLabelSize(arg2); | |
12243 | ||
12244 | wxPyEndAllowThreads(__tstate); | |
12245 | if (PyErr_Occurred()) SWIG_fail; | |
12246 | } | |
12247 | Py_INCREF(Py_None); resultobj = Py_None; | |
12248 | return resultobj; | |
12249 | fail: | |
12250 | return NULL; | |
12251 | } | |
12252 | ||
12253 | ||
12254 | static PyObject *_wrap_Grid_SetColMinimalWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12255 | PyObject *resultobj; | |
12256 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12257 | int arg2 ; | |
12258 | int arg3 ; | |
12259 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12260 | PyObject * obj1 = 0 ; |
12261 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12262 | char *kwnames[] = { |
12263 | (char *) "self",(char *) "col",(char *) "width", NULL | |
12264 | }; | |
12265 | ||
994141e6 | 12266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColMinimalWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12269 | arg2 = (int) SWIG_AsInt(obj1); | |
12270 | if (PyErr_Occurred()) SWIG_fail; | |
12271 | arg3 = (int) SWIG_AsInt(obj2); | |
12272 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12273 | { |
12274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12275 | (arg1)->SetColMinimalWidth(arg2,arg3); | |
12276 | ||
12277 | wxPyEndAllowThreads(__tstate); | |
12278 | if (PyErr_Occurred()) SWIG_fail; | |
12279 | } | |
12280 | Py_INCREF(Py_None); resultobj = Py_None; | |
12281 | return resultobj; | |
12282 | fail: | |
12283 | return NULL; | |
12284 | } | |
12285 | ||
12286 | ||
12287 | static PyObject *_wrap_Grid_SetRowMinimalHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12288 | PyObject *resultobj; | |
12289 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12290 | int arg2 ; | |
12291 | int arg3 ; | |
12292 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12293 | PyObject * obj1 = 0 ; |
12294 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12295 | char *kwnames[] = { |
12296 | (char *) "self",(char *) "row",(char *) "width", NULL | |
12297 | }; | |
12298 | ||
994141e6 | 12299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowMinimalHeight",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12302 | arg2 = (int) SWIG_AsInt(obj1); | |
12303 | if (PyErr_Occurred()) SWIG_fail; | |
12304 | arg3 = (int) SWIG_AsInt(obj2); | |
12305 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12306 | { |
12307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12308 | (arg1)->SetRowMinimalHeight(arg2,arg3); | |
12309 | ||
12310 | wxPyEndAllowThreads(__tstate); | |
12311 | if (PyErr_Occurred()) SWIG_fail; | |
12312 | } | |
12313 | Py_INCREF(Py_None); resultobj = Py_None; | |
12314 | return resultobj; | |
12315 | fail: | |
12316 | return NULL; | |
12317 | } | |
12318 | ||
12319 | ||
12320 | static PyObject *_wrap_Grid_SetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12321 | PyObject *resultobj; | |
12322 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12323 | int arg2 ; | |
12324 | PyObject * obj0 = 0 ; | |
994141e6 | 12325 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12326 | char *kwnames[] = { |
12327 | (char *) "self",(char *) "width", NULL | |
12328 | }; | |
12329 | ||
994141e6 | 12330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColMinimalAcceptableWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12333 | arg2 = (int) SWIG_AsInt(obj1); | |
12334 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12335 | { |
12336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12337 | (arg1)->SetColMinimalAcceptableWidth(arg2); | |
12338 | ||
12339 | wxPyEndAllowThreads(__tstate); | |
12340 | if (PyErr_Occurred()) SWIG_fail; | |
12341 | } | |
12342 | Py_INCREF(Py_None); resultobj = Py_None; | |
12343 | return resultobj; | |
12344 | fail: | |
12345 | return NULL; | |
12346 | } | |
12347 | ||
12348 | ||
12349 | static PyObject *_wrap_Grid_SetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12350 | PyObject *resultobj; | |
12351 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12352 | int arg2 ; | |
12353 | PyObject * obj0 = 0 ; | |
994141e6 | 12354 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12355 | char *kwnames[] = { |
12356 | (char *) "self",(char *) "width", NULL | |
12357 | }; | |
12358 | ||
994141e6 | 12359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowMinimalAcceptableHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12362 | arg2 = (int) SWIG_AsInt(obj1); | |
12363 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12364 | { |
12365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12366 | (arg1)->SetRowMinimalAcceptableHeight(arg2); | |
12367 | ||
12368 | wxPyEndAllowThreads(__tstate); | |
12369 | if (PyErr_Occurred()) SWIG_fail; | |
12370 | } | |
12371 | Py_INCREF(Py_None); resultobj = Py_None; | |
12372 | return resultobj; | |
12373 | fail: | |
12374 | return NULL; | |
12375 | } | |
12376 | ||
12377 | ||
12378 | static PyObject *_wrap_Grid_GetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12379 | PyObject *resultobj; | |
12380 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12381 | int result; | |
12382 | PyObject * obj0 = 0 ; | |
12383 | char *kwnames[] = { | |
12384 | (char *) "self", NULL | |
12385 | }; | |
12386 | ||
12387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColMinimalAcceptableWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12390 | { |
12391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12392 | result = (int)((wxGrid const *)arg1)->GetColMinimalAcceptableWidth(); | |
12393 | ||
12394 | wxPyEndAllowThreads(__tstate); | |
12395 | if (PyErr_Occurred()) SWIG_fail; | |
12396 | } | |
15afbcd0 | 12397 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12398 | return resultobj; |
12399 | fail: | |
12400 | return NULL; | |
12401 | } | |
12402 | ||
12403 | ||
12404 | static PyObject *_wrap_Grid_GetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12405 | PyObject *resultobj; | |
12406 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12407 | int result; | |
12408 | PyObject * obj0 = 0 ; | |
12409 | char *kwnames[] = { | |
12410 | (char *) "self", NULL | |
12411 | }; | |
12412 | ||
12413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowMinimalAcceptableHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12416 | { |
12417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12418 | result = (int)((wxGrid const *)arg1)->GetRowMinimalAcceptableHeight(); | |
12419 | ||
12420 | wxPyEndAllowThreads(__tstate); | |
12421 | if (PyErr_Occurred()) SWIG_fail; | |
12422 | } | |
15afbcd0 | 12423 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12424 | return resultobj; |
12425 | fail: | |
12426 | return NULL; | |
12427 | } | |
12428 | ||
12429 | ||
12430 | static PyObject *_wrap_Grid_SetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12431 | PyObject *resultobj; | |
12432 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12433 | wxColour *arg2 = 0 ; | |
12434 | wxColour temp2 ; | |
12435 | PyObject * obj0 = 0 ; | |
12436 | PyObject * obj1 = 0 ; | |
12437 | char *kwnames[] = { | |
12438 | (char *) "self","arg2", NULL | |
12439 | }; | |
12440 | ||
12441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12444 | { |
12445 | arg2 = &temp2; | |
12446 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12447 | } | |
12448 | { | |
12449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12450 | (arg1)->SetDefaultCellBackgroundColour((wxColour const &)*arg2); | |
12451 | ||
12452 | wxPyEndAllowThreads(__tstate); | |
12453 | if (PyErr_Occurred()) SWIG_fail; | |
12454 | } | |
12455 | Py_INCREF(Py_None); resultobj = Py_None; | |
12456 | return resultobj; | |
12457 | fail: | |
12458 | return NULL; | |
12459 | } | |
12460 | ||
12461 | ||
12462 | static PyObject *_wrap_Grid_SetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12463 | PyObject *resultobj; | |
12464 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12465 | int arg2 ; | |
12466 | int arg3 ; | |
12467 | wxColour *arg4 = 0 ; | |
12468 | wxColour temp4 ; | |
12469 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12470 | PyObject * obj1 = 0 ; |
12471 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12472 | PyObject * obj3 = 0 ; |
12473 | char *kwnames[] = { | |
12474 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12475 | }; | |
12476 | ||
994141e6 | 12477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12480 | arg2 = (int) SWIG_AsInt(obj1); | |
12481 | if (PyErr_Occurred()) SWIG_fail; | |
12482 | arg3 = (int) SWIG_AsInt(obj2); | |
12483 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12484 | { |
12485 | arg4 = &temp4; | |
12486 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12487 | } | |
12488 | { | |
12489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12490 | (arg1)->SetCellBackgroundColour(arg2,arg3,(wxColour const &)*arg4); | |
12491 | ||
12492 | wxPyEndAllowThreads(__tstate); | |
12493 | if (PyErr_Occurred()) SWIG_fail; | |
12494 | } | |
12495 | Py_INCREF(Py_None); resultobj = Py_None; | |
12496 | return resultobj; | |
12497 | fail: | |
12498 | return NULL; | |
12499 | } | |
12500 | ||
12501 | ||
12502 | static PyObject *_wrap_Grid_SetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12503 | PyObject *resultobj; | |
12504 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12505 | wxColour *arg2 = 0 ; | |
12506 | wxColour temp2 ; | |
12507 | PyObject * obj0 = 0 ; | |
12508 | PyObject * obj1 = 0 ; | |
12509 | char *kwnames[] = { | |
12510 | (char *) "self","arg2", NULL | |
12511 | }; | |
12512 | ||
12513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12516 | { |
12517 | arg2 = &temp2; | |
12518 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12519 | } | |
12520 | { | |
12521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12522 | (arg1)->SetDefaultCellTextColour((wxColour const &)*arg2); | |
12523 | ||
12524 | wxPyEndAllowThreads(__tstate); | |
12525 | if (PyErr_Occurred()) SWIG_fail; | |
12526 | } | |
12527 | Py_INCREF(Py_None); resultobj = Py_None; | |
12528 | return resultobj; | |
12529 | fail: | |
12530 | return NULL; | |
12531 | } | |
12532 | ||
12533 | ||
12534 | static PyObject *_wrap_Grid_SetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12535 | PyObject *resultobj; | |
12536 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12537 | int arg2 ; | |
12538 | int arg3 ; | |
12539 | wxColour *arg4 = 0 ; | |
12540 | wxColour temp4 ; | |
12541 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12542 | PyObject * obj1 = 0 ; |
12543 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12544 | PyObject * obj3 = 0 ; |
12545 | char *kwnames[] = { | |
12546 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12547 | }; | |
12548 | ||
994141e6 | 12549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellTextColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12552 | arg2 = (int) SWIG_AsInt(obj1); | |
12553 | if (PyErr_Occurred()) SWIG_fail; | |
12554 | arg3 = (int) SWIG_AsInt(obj2); | |
12555 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12556 | { |
12557 | arg4 = &temp4; | |
12558 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
12559 | } | |
12560 | { | |
12561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12562 | (arg1)->SetCellTextColour(arg2,arg3,(wxColour const &)*arg4); | |
12563 | ||
12564 | wxPyEndAllowThreads(__tstate); | |
12565 | if (PyErr_Occurred()) SWIG_fail; | |
12566 | } | |
12567 | Py_INCREF(Py_None); resultobj = Py_None; | |
12568 | return resultobj; | |
12569 | fail: | |
12570 | return NULL; | |
12571 | } | |
12572 | ||
12573 | ||
12574 | static PyObject *_wrap_Grid_SetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12575 | PyObject *resultobj; | |
12576 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12577 | wxFont *arg2 = 0 ; | |
12578 | PyObject * obj0 = 0 ; | |
12579 | PyObject * obj1 = 0 ; | |
12580 | char *kwnames[] = { | |
12581 | (char *) "self","arg2", NULL | |
12582 | }; | |
12583 | ||
12584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
12588 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12589 | SWIG_fail; | |
d14a1e28 | 12590 | if (arg2 == NULL) { |
15afbcd0 RD |
12591 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12592 | SWIG_fail; | |
d14a1e28 RD |
12593 | } |
12594 | { | |
12595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12596 | (arg1)->SetDefaultCellFont((wxFont const &)*arg2); | |
12597 | ||
12598 | wxPyEndAllowThreads(__tstate); | |
12599 | if (PyErr_Occurred()) SWIG_fail; | |
12600 | } | |
12601 | Py_INCREF(Py_None); resultobj = Py_None; | |
12602 | return resultobj; | |
12603 | fail: | |
12604 | return NULL; | |
12605 | } | |
12606 | ||
12607 | ||
12608 | static PyObject *_wrap_Grid_SetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12609 | PyObject *resultobj; | |
12610 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12611 | int arg2 ; | |
12612 | int arg3 ; | |
12613 | wxFont *arg4 = 0 ; | |
12614 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12615 | PyObject * obj1 = 0 ; |
12616 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12617 | PyObject * obj3 = 0 ; |
12618 | char *kwnames[] = { | |
12619 | (char *) "self",(char *) "row",(char *) "col","arg4", NULL | |
12620 | }; | |
12621 | ||
15afbcd0 RD |
12622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellFont",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, | |
12624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12625 | arg2 = (int) SWIG_AsInt(obj1); | |
12626 | if (PyErr_Occurred()) SWIG_fail; | |
12627 | arg3 = (int) SWIG_AsInt(obj2); | |
12628 | if (PyErr_Occurred()) SWIG_fail; | |
12629 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxFont, | |
12630 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12631 | SWIG_fail; | |
d14a1e28 | 12632 | if (arg4 == NULL) { |
15afbcd0 RD |
12633 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12634 | SWIG_fail; | |
d14a1e28 RD |
12635 | } |
12636 | { | |
12637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12638 | (arg1)->SetCellFont(arg2,arg3,(wxFont const &)*arg4); | |
12639 | ||
12640 | wxPyEndAllowThreads(__tstate); | |
12641 | if (PyErr_Occurred()) SWIG_fail; | |
12642 | } | |
12643 | Py_INCREF(Py_None); resultobj = Py_None; | |
12644 | return resultobj; | |
12645 | fail: | |
12646 | return NULL; | |
12647 | } | |
12648 | ||
12649 | ||
12650 | static PyObject *_wrap_Grid_SetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12651 | PyObject *resultobj; | |
12652 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12653 | int arg2 ; | |
12654 | int arg3 ; | |
12655 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12656 | PyObject * obj1 = 0 ; |
12657 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12658 | char *kwnames[] = { |
12659 | (char *) "self",(char *) "horiz",(char *) "vert", NULL | |
12660 | }; | |
12661 | ||
994141e6 | 12662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetDefaultCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12665 | arg2 = (int) SWIG_AsInt(obj1); | |
12666 | if (PyErr_Occurred()) SWIG_fail; | |
12667 | arg3 = (int) SWIG_AsInt(obj2); | |
12668 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12669 | { |
12670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12671 | (arg1)->SetDefaultCellAlignment(arg2,arg3); | |
12672 | ||
12673 | wxPyEndAllowThreads(__tstate); | |
12674 | if (PyErr_Occurred()) SWIG_fail; | |
12675 | } | |
12676 | Py_INCREF(Py_None); resultobj = Py_None; | |
12677 | return resultobj; | |
12678 | fail: | |
12679 | return NULL; | |
12680 | } | |
12681 | ||
12682 | ||
12683 | static PyObject *_wrap_Grid_SetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12684 | PyObject *resultobj; | |
12685 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12686 | int arg2 ; | |
12687 | int arg3 ; | |
12688 | int arg4 ; | |
12689 | int arg5 ; | |
12690 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12691 | PyObject * obj1 = 0 ; |
12692 | PyObject * obj2 = 0 ; | |
12693 | PyObject * obj3 = 0 ; | |
12694 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12695 | char *kwnames[] = { |
12696 | (char *) "self",(char *) "row",(char *) "col",(char *) "horiz",(char *) "vert", NULL | |
12697 | }; | |
12698 | ||
994141e6 | 12699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellAlignment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
12700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12702 | arg2 = (int) SWIG_AsInt(obj1); | |
12703 | if (PyErr_Occurred()) SWIG_fail; | |
12704 | arg3 = (int) SWIG_AsInt(obj2); | |
12705 | if (PyErr_Occurred()) SWIG_fail; | |
12706 | arg4 = (int) SWIG_AsInt(obj3); | |
12707 | if (PyErr_Occurred()) SWIG_fail; | |
12708 | arg5 = (int) SWIG_AsInt(obj4); | |
12709 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12710 | { |
12711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12712 | (arg1)->SetCellAlignment(arg2,arg3,arg4,arg5); | |
12713 | ||
12714 | wxPyEndAllowThreads(__tstate); | |
12715 | if (PyErr_Occurred()) SWIG_fail; | |
12716 | } | |
12717 | Py_INCREF(Py_None); resultobj = Py_None; | |
12718 | return resultobj; | |
12719 | fail: | |
12720 | return NULL; | |
12721 | } | |
12722 | ||
12723 | ||
12724 | static PyObject *_wrap_Grid_SetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12725 | PyObject *resultobj; | |
12726 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12727 | bool arg2 ; | |
12728 | PyObject * obj0 = 0 ; | |
12729 | PyObject * obj1 = 0 ; | |
12730 | char *kwnames[] = { | |
12731 | (char *) "self",(char *) "allow", NULL | |
12732 | }; | |
12733 | ||
12734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellOverflow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12737 | arg2 = (bool) SWIG_AsBool(obj1); | |
12738 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12739 | { |
12740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12741 | (arg1)->SetDefaultCellOverflow(arg2); | |
12742 | ||
12743 | wxPyEndAllowThreads(__tstate); | |
12744 | if (PyErr_Occurred()) SWIG_fail; | |
12745 | } | |
12746 | Py_INCREF(Py_None); resultobj = Py_None; | |
12747 | return resultobj; | |
12748 | fail: | |
12749 | return NULL; | |
12750 | } | |
12751 | ||
12752 | ||
12753 | static PyObject *_wrap_Grid_SetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12754 | PyObject *resultobj; | |
12755 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12756 | int arg2 ; | |
12757 | int arg3 ; | |
12758 | bool arg4 ; | |
12759 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12760 | PyObject * obj1 = 0 ; |
12761 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12762 | PyObject * obj3 = 0 ; |
12763 | char *kwnames[] = { | |
12764 | (char *) "self",(char *) "row",(char *) "col",(char *) "allow", NULL | |
12765 | }; | |
12766 | ||
994141e6 | 12767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellOverflow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12770 | arg2 = (int) SWIG_AsInt(obj1); | |
12771 | if (PyErr_Occurred()) SWIG_fail; | |
12772 | arg3 = (int) SWIG_AsInt(obj2); | |
12773 | if (PyErr_Occurred()) SWIG_fail; | |
12774 | arg4 = (bool) SWIG_AsBool(obj3); | |
12775 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12776 | { |
12777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12778 | (arg1)->SetCellOverflow(arg2,arg3,arg4); | |
12779 | ||
12780 | wxPyEndAllowThreads(__tstate); | |
12781 | if (PyErr_Occurred()) SWIG_fail; | |
12782 | } | |
12783 | Py_INCREF(Py_None); resultobj = Py_None; | |
12784 | return resultobj; | |
12785 | fail: | |
12786 | return NULL; | |
12787 | } | |
12788 | ||
12789 | ||
12790 | static PyObject *_wrap_Grid_SetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12791 | PyObject *resultobj; | |
12792 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12793 | int arg2 ; | |
12794 | int arg3 ; | |
12795 | int arg4 ; | |
12796 | int arg5 ; | |
12797 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12798 | PyObject * obj1 = 0 ; |
12799 | PyObject * obj2 = 0 ; | |
12800 | PyObject * obj3 = 0 ; | |
12801 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12802 | char *kwnames[] = { |
12803 | (char *) "self",(char *) "row",(char *) "col",(char *) "num_rows",(char *) "num_cols", NULL | |
12804 | }; | |
12805 | ||
994141e6 | 12806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
12807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12809 | arg2 = (int) SWIG_AsInt(obj1); | |
12810 | if (PyErr_Occurred()) SWIG_fail; | |
12811 | arg3 = (int) SWIG_AsInt(obj2); | |
12812 | if (PyErr_Occurred()) SWIG_fail; | |
12813 | arg4 = (int) SWIG_AsInt(obj3); | |
12814 | if (PyErr_Occurred()) SWIG_fail; | |
12815 | arg5 = (int) SWIG_AsInt(obj4); | |
12816 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12817 | { |
12818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12819 | (arg1)->SetCellSize(arg2,arg3,arg4,arg5); | |
12820 | ||
12821 | wxPyEndAllowThreads(__tstate); | |
12822 | if (PyErr_Occurred()) SWIG_fail; | |
12823 | } | |
12824 | Py_INCREF(Py_None); resultobj = Py_None; | |
12825 | return resultobj; | |
12826 | fail: | |
12827 | return NULL; | |
12828 | } | |
12829 | ||
12830 | ||
12831 | static PyObject *_wrap_Grid_SetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12832 | PyObject *resultobj; | |
12833 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12834 | wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ; | |
12835 | PyObject * obj0 = 0 ; | |
12836 | PyObject * obj1 = 0 ; | |
12837 | char *kwnames[] = { | |
12838 | (char *) "self",(char *) "renderer", NULL | |
12839 | }; | |
12840 | ||
12841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultRenderer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12844 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridCellRenderer, | |
12845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12846 | { |
12847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12848 | (arg1)->SetDefaultRenderer(arg2); | |
12849 | ||
12850 | wxPyEndAllowThreads(__tstate); | |
12851 | if (PyErr_Occurred()) SWIG_fail; | |
12852 | } | |
12853 | Py_INCREF(Py_None); resultobj = Py_None; | |
12854 | return resultobj; | |
12855 | fail: | |
12856 | return NULL; | |
12857 | } | |
12858 | ||
12859 | ||
12860 | static PyObject *_wrap_Grid_SetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12861 | PyObject *resultobj; | |
12862 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12863 | int arg2 ; | |
12864 | int arg3 ; | |
12865 | wxGridCellRenderer *arg4 = (wxGridCellRenderer *) 0 ; | |
12866 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12867 | PyObject * obj1 = 0 ; |
12868 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12869 | PyObject * obj3 = 0 ; |
12870 | char *kwnames[] = { | |
12871 | (char *) "self",(char *) "row",(char *) "col",(char *) "renderer", NULL | |
12872 | }; | |
12873 | ||
994141e6 | 12874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12877 | arg2 = (int) SWIG_AsInt(obj1); | |
12878 | if (PyErr_Occurred()) SWIG_fail; | |
12879 | arg3 = (int) SWIG_AsInt(obj2); | |
12880 | if (PyErr_Occurred()) SWIG_fail; | |
12881 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellRenderer, | |
12882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12883 | { |
12884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12885 | (arg1)->SetCellRenderer(arg2,arg3,arg4); | |
12886 | ||
12887 | wxPyEndAllowThreads(__tstate); | |
12888 | if (PyErr_Occurred()) SWIG_fail; | |
12889 | } | |
12890 | Py_INCREF(Py_None); resultobj = Py_None; | |
12891 | return resultobj; | |
12892 | fail: | |
12893 | return NULL; | |
12894 | } | |
12895 | ||
12896 | ||
12897 | static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12898 | PyObject *resultobj; | |
12899 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12900 | wxGridCellRenderer *result; | |
12901 | PyObject * obj0 = 0 ; | |
12902 | char *kwnames[] = { | |
12903 | (char *) "self", NULL | |
12904 | }; | |
12905 | ||
12906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRenderer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12909 | { |
12910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12911 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRenderer(); | |
12912 | ||
12913 | wxPyEndAllowThreads(__tstate); | |
12914 | if (PyErr_Occurred()) SWIG_fail; | |
12915 | } | |
12916 | { | |
12917 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
12918 | } | |
12919 | return resultobj; | |
12920 | fail: | |
12921 | return NULL; | |
12922 | } | |
12923 | ||
12924 | ||
12925 | static PyObject *_wrap_Grid_GetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12926 | PyObject *resultobj; | |
12927 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12928 | int arg2 ; | |
12929 | int arg3 ; | |
12930 | wxGridCellRenderer *result; | |
12931 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12932 | PyObject * obj1 = 0 ; |
12933 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12934 | char *kwnames[] = { |
12935 | (char *) "self",(char *) "row",(char *) "col", NULL | |
12936 | }; | |
12937 | ||
994141e6 | 12938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellRenderer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
12940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12941 | arg2 = (int) SWIG_AsInt(obj1); | |
12942 | if (PyErr_Occurred()) SWIG_fail; | |
12943 | arg3 = (int) SWIG_AsInt(obj2); | |
12944 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12945 | { |
12946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12947 | result = (wxGridCellRenderer *)(arg1)->GetCellRenderer(arg2,arg3); | |
12948 | ||
12949 | wxPyEndAllowThreads(__tstate); | |
12950 | if (PyErr_Occurred()) SWIG_fail; | |
12951 | } | |
12952 | { | |
12953 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
12954 | } | |
12955 | return resultobj; | |
12956 | fail: | |
12957 | return NULL; | |
12958 | } | |
12959 | ||
12960 | ||
12961 | static PyObject *_wrap_Grid_SetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12962 | PyObject *resultobj; | |
12963 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12964 | wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ; | |
12965 | PyObject * obj0 = 0 ; | |
12966 | PyObject * obj1 = 0 ; | |
12967 | char *kwnames[] = { | |
12968 | (char *) "self",(char *) "editor", NULL | |
12969 | }; | |
12970 | ||
12971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultEditor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 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_wxGridCellEditor, | |
12975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12976 | { |
12977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12978 | (arg1)->SetDefaultEditor(arg2); | |
12979 | ||
12980 | wxPyEndAllowThreads(__tstate); | |
12981 | if (PyErr_Occurred()) SWIG_fail; | |
12982 | } | |
12983 | Py_INCREF(Py_None); resultobj = Py_None; | |
12984 | return resultobj; | |
12985 | fail: | |
12986 | return NULL; | |
12987 | } | |
12988 | ||
12989 | ||
12990 | static PyObject *_wrap_Grid_SetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12991 | PyObject *resultobj; | |
12992 | wxGrid *arg1 = (wxGrid *) 0 ; | |
12993 | int arg2 ; | |
12994 | int arg3 ; | |
12995 | wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; | |
12996 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12997 | PyObject * obj1 = 0 ; |
12998 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12999 | PyObject * obj3 = 0 ; |
13000 | char *kwnames[] = { | |
13001 | (char *) "self",(char *) "row",(char *) "col",(char *) "editor", NULL | |
13002 | }; | |
13003 | ||
994141e6 | 13004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
13005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13007 | arg2 = (int) SWIG_AsInt(obj1); | |
13008 | if (PyErr_Occurred()) SWIG_fail; | |
13009 | arg3 = (int) SWIG_AsInt(obj2); | |
13010 | if (PyErr_Occurred()) SWIG_fail; | |
13011 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellEditor, | |
13012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13013 | { |
13014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13015 | (arg1)->SetCellEditor(arg2,arg3,arg4); | |
13016 | ||
13017 | wxPyEndAllowThreads(__tstate); | |
13018 | if (PyErr_Occurred()) SWIG_fail; | |
13019 | } | |
13020 | Py_INCREF(Py_None); resultobj = Py_None; | |
13021 | return resultobj; | |
13022 | fail: | |
13023 | return NULL; | |
13024 | } | |
13025 | ||
13026 | ||
13027 | static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13028 | PyObject *resultobj; | |
13029 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13030 | wxGridCellEditor *result; | |
13031 | PyObject * obj0 = 0 ; | |
13032 | char *kwnames[] = { | |
13033 | (char *) "self", NULL | |
13034 | }; | |
13035 | ||
13036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultEditor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13039 | { |
13040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13041 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditor(); | |
13042 | ||
13043 | wxPyEndAllowThreads(__tstate); | |
13044 | if (PyErr_Occurred()) SWIG_fail; | |
13045 | } | |
13046 | { | |
13047 | resultobj = wxPyMake_wxGridCellEditor(result); | |
13048 | } | |
13049 | return resultobj; | |
13050 | fail: | |
13051 | return NULL; | |
13052 | } | |
13053 | ||
13054 | ||
13055 | static PyObject *_wrap_Grid_GetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13056 | PyObject *resultobj; | |
13057 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13058 | int arg2 ; | |
13059 | int arg3 ; | |
13060 | wxGridCellEditor *result; | |
13061 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13062 | PyObject * obj1 = 0 ; |
13063 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13064 | char *kwnames[] = { |
13065 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13066 | }; | |
13067 | ||
994141e6 | 13068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellEditor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13071 | arg2 = (int) SWIG_AsInt(obj1); | |
13072 | if (PyErr_Occurred()) SWIG_fail; | |
13073 | arg3 = (int) SWIG_AsInt(obj2); | |
13074 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13075 | { |
13076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13077 | result = (wxGridCellEditor *)(arg1)->GetCellEditor(arg2,arg3); | |
13078 | ||
13079 | wxPyEndAllowThreads(__tstate); | |
13080 | if (PyErr_Occurred()) SWIG_fail; | |
13081 | } | |
13082 | { | |
13083 | resultobj = wxPyMake_wxGridCellEditor(result); | |
13084 | } | |
13085 | return resultobj; | |
13086 | fail: | |
13087 | return NULL; | |
13088 | } | |
13089 | ||
13090 | ||
13091 | static PyObject *_wrap_Grid_GetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13092 | PyObject *resultobj; | |
13093 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13094 | int arg2 ; | |
13095 | int arg3 ; | |
13096 | wxString result; | |
13097 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13098 | PyObject * obj1 = 0 ; |
13099 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13100 | char *kwnames[] = { |
13101 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13102 | }; | |
13103 | ||
994141e6 | 13104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellValue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13107 | arg2 = (int) SWIG_AsInt(obj1); | |
13108 | if (PyErr_Occurred()) SWIG_fail; | |
13109 | arg3 = (int) SWIG_AsInt(obj2); | |
13110 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13111 | { |
13112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13113 | result = (arg1)->GetCellValue(arg2,arg3); | |
13114 | ||
13115 | wxPyEndAllowThreads(__tstate); | |
13116 | if (PyErr_Occurred()) SWIG_fail; | |
13117 | } | |
13118 | { | |
13119 | #if wxUSE_UNICODE | |
13120 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13121 | #else | |
13122 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13123 | #endif | |
13124 | } | |
13125 | return resultobj; | |
13126 | fail: | |
13127 | return NULL; | |
13128 | } | |
13129 | ||
13130 | ||
13131 | static PyObject *_wrap_Grid_SetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13132 | PyObject *resultobj; | |
13133 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13134 | int arg2 ; | |
13135 | int arg3 ; | |
13136 | wxString *arg4 = 0 ; | |
e811c8ce | 13137 | bool temp4 = False ; |
d14a1e28 | 13138 | PyObject * obj0 = 0 ; |
994141e6 RD |
13139 | PyObject * obj1 = 0 ; |
13140 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13141 | PyObject * obj3 = 0 ; |
13142 | char *kwnames[] = { | |
13143 | (char *) "self",(char *) "row",(char *) "col",(char *) "s", NULL | |
13144 | }; | |
13145 | ||
994141e6 | 13146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
13147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13149 | arg2 = (int) SWIG_AsInt(obj1); | |
13150 | if (PyErr_Occurred()) SWIG_fail; | |
13151 | arg3 = (int) SWIG_AsInt(obj2); | |
13152 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13153 | { |
13154 | arg4 = wxString_in_helper(obj3); | |
13155 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 13156 | temp4 = True; |
d14a1e28 RD |
13157 | } |
13158 | { | |
13159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13160 | (arg1)->SetCellValue(arg2,arg3,(wxString const &)*arg4); | |
13161 | ||
13162 | wxPyEndAllowThreads(__tstate); | |
13163 | if (PyErr_Occurred()) SWIG_fail; | |
13164 | } | |
13165 | Py_INCREF(Py_None); resultobj = Py_None; | |
13166 | { | |
13167 | if (temp4) | |
13168 | delete arg4; | |
13169 | } | |
13170 | return resultobj; | |
13171 | fail: | |
13172 | { | |
13173 | if (temp4) | |
13174 | delete arg4; | |
13175 | } | |
13176 | return NULL; | |
13177 | } | |
13178 | ||
13179 | ||
13180 | static PyObject *_wrap_Grid_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13181 | PyObject *resultobj; | |
13182 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13183 | int arg2 ; | |
13184 | int arg3 ; | |
13185 | bool result; | |
13186 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13187 | PyObject * obj1 = 0 ; |
13188 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13189 | char *kwnames[] = { |
13190 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13191 | }; | |
13192 | ||
994141e6 | 13193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsReadOnly",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13196 | arg2 = (int) SWIG_AsInt(obj1); | |
13197 | if (PyErr_Occurred()) SWIG_fail; | |
13198 | arg3 = (int) SWIG_AsInt(obj2); | |
13199 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13200 | { |
13201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13202 | result = (bool)((wxGrid const *)arg1)->IsReadOnly(arg2,arg3); | |
13203 | ||
13204 | wxPyEndAllowThreads(__tstate); | |
13205 | if (PyErr_Occurred()) SWIG_fail; | |
13206 | } | |
4f89f6a3 RD |
13207 | { |
13208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13209 | } | |
d14a1e28 RD |
13210 | return resultobj; |
13211 | fail: | |
13212 | return NULL; | |
13213 | } | |
13214 | ||
13215 | ||
13216 | static PyObject *_wrap_Grid_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13217 | PyObject *resultobj; | |
13218 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13219 | int arg2 ; | |
13220 | int arg3 ; | |
e811c8ce | 13221 | bool arg4 = (bool) True ; |
d14a1e28 | 13222 | PyObject * obj0 = 0 ; |
994141e6 RD |
13223 | PyObject * obj1 = 0 ; |
13224 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13225 | PyObject * obj3 = 0 ; |
13226 | char *kwnames[] = { | |
13227 | (char *) "self",(char *) "row",(char *) "col",(char *) "isReadOnly", NULL | |
13228 | }; | |
13229 | ||
994141e6 | 13230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_SetReadOnly",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
13231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13233 | arg2 = (int) SWIG_AsInt(obj1); | |
13234 | if (PyErr_Occurred()) SWIG_fail; | |
13235 | arg3 = (int) SWIG_AsInt(obj2); | |
13236 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 13237 | if (obj3) { |
15afbcd0 RD |
13238 | arg4 = (bool) SWIG_AsBool(obj3); |
13239 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13240 | } |
13241 | { | |
13242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13243 | (arg1)->SetReadOnly(arg2,arg3,arg4); | |
13244 | ||
13245 | wxPyEndAllowThreads(__tstate); | |
13246 | if (PyErr_Occurred()) SWIG_fail; | |
13247 | } | |
13248 | Py_INCREF(Py_None); resultobj = Py_None; | |
13249 | return resultobj; | |
13250 | fail: | |
13251 | return NULL; | |
13252 | } | |
13253 | ||
13254 | ||
13255 | static PyObject *_wrap_Grid_SelectRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13256 | PyObject *resultobj; | |
13257 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13258 | int arg2 ; | |
e811c8ce | 13259 | bool arg3 = (bool) False ; |
d14a1e28 | 13260 | PyObject * obj0 = 0 ; |
994141e6 | 13261 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13262 | PyObject * obj2 = 0 ; |
13263 | char *kwnames[] = { | |
13264 | (char *) "self",(char *) "row",(char *) "addToSelected", NULL | |
13265 | }; | |
13266 | ||
994141e6 | 13267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13270 | arg2 = (int) SWIG_AsInt(obj1); | |
13271 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 13272 | if (obj2) { |
15afbcd0 RD |
13273 | arg3 = (bool) SWIG_AsBool(obj2); |
13274 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13275 | } |
13276 | { | |
13277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13278 | (arg1)->SelectRow(arg2,arg3); | |
13279 | ||
13280 | wxPyEndAllowThreads(__tstate); | |
13281 | if (PyErr_Occurred()) SWIG_fail; | |
13282 | } | |
13283 | Py_INCREF(Py_None); resultobj = Py_None; | |
13284 | return resultobj; | |
13285 | fail: | |
13286 | return NULL; | |
13287 | } | |
13288 | ||
13289 | ||
13290 | static PyObject *_wrap_Grid_SelectCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13291 | PyObject *resultobj; | |
13292 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13293 | int arg2 ; | |
e811c8ce | 13294 | bool arg3 = (bool) False ; |
d14a1e28 | 13295 | PyObject * obj0 = 0 ; |
994141e6 | 13296 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13297 | PyObject * obj2 = 0 ; |
13298 | char *kwnames[] = { | |
13299 | (char *) "self",(char *) "col",(char *) "addToSelected", NULL | |
13300 | }; | |
13301 | ||
994141e6 | 13302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13305 | arg2 = (int) SWIG_AsInt(obj1); | |
13306 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 13307 | if (obj2) { |
15afbcd0 RD |
13308 | arg3 = (bool) SWIG_AsBool(obj2); |
13309 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13310 | } |
13311 | { | |
13312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13313 | (arg1)->SelectCol(arg2,arg3); | |
13314 | ||
13315 | wxPyEndAllowThreads(__tstate); | |
13316 | if (PyErr_Occurred()) SWIG_fail; | |
13317 | } | |
13318 | Py_INCREF(Py_None); resultobj = Py_None; | |
13319 | return resultobj; | |
13320 | fail: | |
13321 | return NULL; | |
13322 | } | |
13323 | ||
13324 | ||
13325 | static PyObject *_wrap_Grid_SelectBlock(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13326 | PyObject *resultobj; | |
13327 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13328 | int arg2 ; | |
13329 | int arg3 ; | |
13330 | int arg4 ; | |
13331 | int arg5 ; | |
e811c8ce | 13332 | bool arg6 = (bool) False ; |
d14a1e28 | 13333 | PyObject * obj0 = 0 ; |
994141e6 RD |
13334 | PyObject * obj1 = 0 ; |
13335 | PyObject * obj2 = 0 ; | |
13336 | PyObject * obj3 = 0 ; | |
13337 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
13338 | PyObject * obj5 = 0 ; |
13339 | char *kwnames[] = { | |
13340 | (char *) "self",(char *) "topRow",(char *) "leftCol",(char *) "bottomRow",(char *) "rightCol",(char *) "addToSelected", NULL | |
13341 | }; | |
13342 | ||
994141e6 | 13343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Grid_SelectBlock",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
13344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13346 | arg2 = (int) SWIG_AsInt(obj1); | |
13347 | if (PyErr_Occurred()) SWIG_fail; | |
13348 | arg3 = (int) SWIG_AsInt(obj2); | |
13349 | if (PyErr_Occurred()) SWIG_fail; | |
13350 | arg4 = (int) SWIG_AsInt(obj3); | |
13351 | if (PyErr_Occurred()) SWIG_fail; | |
13352 | arg5 = (int) SWIG_AsInt(obj4); | |
13353 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 13354 | if (obj5) { |
15afbcd0 RD |
13355 | arg6 = (bool) SWIG_AsBool(obj5); |
13356 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13357 | } |
13358 | { | |
13359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13360 | (arg1)->SelectBlock(arg2,arg3,arg4,arg5,arg6); | |
13361 | ||
13362 | wxPyEndAllowThreads(__tstate); | |
13363 | if (PyErr_Occurred()) SWIG_fail; | |
13364 | } | |
13365 | Py_INCREF(Py_None); resultobj = Py_None; | |
13366 | return resultobj; | |
13367 | fail: | |
13368 | return NULL; | |
13369 | } | |
13370 | ||
13371 | ||
13372 | static PyObject *_wrap_Grid_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13373 | PyObject *resultobj; | |
13374 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13375 | PyObject * obj0 = 0 ; | |
13376 | char *kwnames[] = { | |
13377 | (char *) "self", NULL | |
13378 | }; | |
13379 | ||
13380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SelectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13383 | { |
13384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13385 | (arg1)->SelectAll(); | |
13386 | ||
13387 | wxPyEndAllowThreads(__tstate); | |
13388 | if (PyErr_Occurred()) SWIG_fail; | |
13389 | } | |
13390 | Py_INCREF(Py_None); resultobj = Py_None; | |
13391 | return resultobj; | |
13392 | fail: | |
13393 | return NULL; | |
13394 | } | |
13395 | ||
13396 | ||
13397 | static PyObject *_wrap_Grid_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13398 | PyObject *resultobj; | |
13399 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13400 | bool result; | |
13401 | PyObject * obj0 = 0 ; | |
13402 | char *kwnames[] = { | |
13403 | (char *) "self", NULL | |
13404 | }; | |
13405 | ||
13406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13409 | { |
13410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13411 | result = (bool)(arg1)->IsSelection(); | |
13412 | ||
13413 | wxPyEndAllowThreads(__tstate); | |
13414 | if (PyErr_Occurred()) SWIG_fail; | |
13415 | } | |
4f89f6a3 RD |
13416 | { |
13417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13418 | } | |
d14a1e28 RD |
13419 | return resultobj; |
13420 | fail: | |
13421 | return NULL; | |
13422 | } | |
13423 | ||
13424 | ||
13425 | static PyObject *_wrap_Grid_ClearSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13426 | PyObject *resultobj; | |
13427 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13428 | PyObject * obj0 = 0 ; | |
13429 | char *kwnames[] = { | |
13430 | (char *) "self", NULL | |
13431 | }; | |
13432 | ||
13433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13436 | { |
13437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13438 | (arg1)->ClearSelection(); | |
13439 | ||
13440 | wxPyEndAllowThreads(__tstate); | |
13441 | if (PyErr_Occurred()) SWIG_fail; | |
13442 | } | |
13443 | Py_INCREF(Py_None); resultobj = Py_None; | |
13444 | return resultobj; | |
13445 | fail: | |
13446 | return NULL; | |
13447 | } | |
13448 | ||
13449 | ||
13450 | static PyObject *_wrap_Grid_IsInSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13451 | PyObject *resultobj; | |
13452 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13453 | int arg2 ; | |
13454 | int arg3 ; | |
13455 | bool result; | |
13456 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13457 | PyObject * obj1 = 0 ; |
13458 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13459 | char *kwnames[] = { |
13460 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13461 | }; | |
13462 | ||
994141e6 | 13463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsInSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13466 | arg2 = (int) SWIG_AsInt(obj1); | |
13467 | if (PyErr_Occurred()) SWIG_fail; | |
13468 | arg3 = (int) SWIG_AsInt(obj2); | |
13469 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13470 | { |
13471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13472 | result = (bool)(arg1)->IsInSelection(arg2,arg3); | |
13473 | ||
13474 | wxPyEndAllowThreads(__tstate); | |
13475 | if (PyErr_Occurred()) SWIG_fail; | |
13476 | } | |
4f89f6a3 RD |
13477 | { |
13478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13479 | } | |
d14a1e28 RD |
13480 | return resultobj; |
13481 | fail: | |
13482 | return NULL; | |
13483 | } | |
13484 | ||
13485 | ||
13486 | static PyObject *_wrap_Grid_GetSelectedCells(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13487 | PyObject *resultobj; | |
13488 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13489 | wxGridCellCoordsArray result; | |
13490 | PyObject * obj0 = 0 ; | |
13491 | char *kwnames[] = { | |
13492 | (char *) "self", NULL | |
13493 | }; | |
13494 | ||
13495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCells",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13498 | { |
13499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13500 | result = ((wxGrid const *)arg1)->GetSelectedCells(); | |
13501 | ||
13502 | wxPyEndAllowThreads(__tstate); | |
13503 | if (PyErr_Occurred()) SWIG_fail; | |
13504 | } | |
13505 | { | |
13506 | resultobj = wxGridCellCoordsArray_helper(result); | |
13507 | } | |
13508 | return resultobj; | |
13509 | fail: | |
13510 | return NULL; | |
13511 | } | |
13512 | ||
13513 | ||
13514 | static PyObject *_wrap_Grid_GetSelectionBlockTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13515 | PyObject *resultobj; | |
13516 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13517 | wxGridCellCoordsArray result; | |
13518 | PyObject * obj0 = 0 ; | |
13519 | char *kwnames[] = { | |
13520 | (char *) "self", NULL | |
13521 | }; | |
13522 | ||
13523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockTopLeft",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13526 | { |
13527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13528 | result = ((wxGrid const *)arg1)->GetSelectionBlockTopLeft(); | |
13529 | ||
13530 | wxPyEndAllowThreads(__tstate); | |
13531 | if (PyErr_Occurred()) SWIG_fail; | |
13532 | } | |
13533 | { | |
13534 | resultobj = wxGridCellCoordsArray_helper(result); | |
13535 | } | |
13536 | return resultobj; | |
13537 | fail: | |
13538 | return NULL; | |
13539 | } | |
13540 | ||
13541 | ||
13542 | static PyObject *_wrap_Grid_GetSelectionBlockBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13543 | PyObject *resultobj; | |
13544 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13545 | wxGridCellCoordsArray result; | |
13546 | PyObject * obj0 = 0 ; | |
13547 | char *kwnames[] = { | |
13548 | (char *) "self", NULL | |
13549 | }; | |
13550 | ||
13551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockBottomRight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13554 | { |
13555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13556 | result = ((wxGrid const *)arg1)->GetSelectionBlockBottomRight(); | |
13557 | ||
13558 | wxPyEndAllowThreads(__tstate); | |
13559 | if (PyErr_Occurred()) SWIG_fail; | |
13560 | } | |
13561 | { | |
13562 | resultobj = wxGridCellCoordsArray_helper(result); | |
13563 | } | |
13564 | return resultobj; | |
13565 | fail: | |
13566 | return NULL; | |
13567 | } | |
13568 | ||
13569 | ||
13570 | static PyObject *_wrap_Grid_GetSelectedRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13571 | PyObject *resultobj; | |
13572 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13573 | wxArrayInt result; | |
13574 | PyObject * obj0 = 0 ; | |
13575 | char *kwnames[] = { | |
13576 | (char *) "self", NULL | |
13577 | }; | |
13578 | ||
13579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13582 | { |
13583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13584 | result = ((wxGrid const *)arg1)->GetSelectedRows(); | |
13585 | ||
13586 | wxPyEndAllowThreads(__tstate); | |
13587 | if (PyErr_Occurred()) SWIG_fail; | |
13588 | } | |
13589 | { | |
13590 | resultobj = PyList_New(0); | |
13591 | size_t idx; | |
13592 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13593 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13594 | PyList_Append(resultobj, val); | |
13595 | Py_DECREF(val); | |
13596 | } | |
13597 | } | |
13598 | return resultobj; | |
13599 | fail: | |
13600 | return NULL; | |
13601 | } | |
13602 | ||
13603 | ||
13604 | static PyObject *_wrap_Grid_GetSelectedCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13605 | PyObject *resultobj; | |
13606 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13607 | wxArrayInt result; | |
13608 | PyObject * obj0 = 0 ; | |
13609 | char *kwnames[] = { | |
13610 | (char *) "self", NULL | |
13611 | }; | |
13612 | ||
13613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13616 | { |
13617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13618 | result = ((wxGrid const *)arg1)->GetSelectedCols(); | |
13619 | ||
13620 | wxPyEndAllowThreads(__tstate); | |
13621 | if (PyErr_Occurred()) SWIG_fail; | |
13622 | } | |
13623 | { | |
13624 | resultobj = PyList_New(0); | |
13625 | size_t idx; | |
13626 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13627 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13628 | PyList_Append(resultobj, val); | |
13629 | Py_DECREF(val); | |
13630 | } | |
13631 | } | |
13632 | return resultobj; | |
13633 | fail: | |
13634 | return NULL; | |
13635 | } | |
13636 | ||
13637 | ||
13638 | static PyObject *_wrap_Grid_DeselectRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13639 | PyObject *resultobj; | |
13640 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13641 | int arg2 ; | |
13642 | PyObject * obj0 = 0 ; | |
994141e6 | 13643 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13644 | char *kwnames[] = { |
13645 | (char *) "self",(char *) "row", NULL | |
13646 | }; | |
13647 | ||
994141e6 | 13648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectRow",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13651 | arg2 = (int) SWIG_AsInt(obj1); | |
13652 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13653 | { |
13654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13655 | (arg1)->DeselectRow(arg2); | |
13656 | ||
13657 | wxPyEndAllowThreads(__tstate); | |
13658 | if (PyErr_Occurred()) SWIG_fail; | |
13659 | } | |
13660 | Py_INCREF(Py_None); resultobj = Py_None; | |
13661 | return resultobj; | |
13662 | fail: | |
13663 | return NULL; | |
13664 | } | |
13665 | ||
13666 | ||
13667 | static PyObject *_wrap_Grid_DeselectCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13668 | PyObject *resultobj; | |
13669 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13670 | int arg2 ; | |
13671 | PyObject * obj0 = 0 ; | |
994141e6 | 13672 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13673 | char *kwnames[] = { |
13674 | (char *) "self",(char *) "col", NULL | |
13675 | }; | |
13676 | ||
994141e6 | 13677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectCol",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13680 | arg2 = (int) SWIG_AsInt(obj1); | |
13681 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13682 | { |
13683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13684 | (arg1)->DeselectCol(arg2); | |
13685 | ||
13686 | wxPyEndAllowThreads(__tstate); | |
13687 | if (PyErr_Occurred()) SWIG_fail; | |
13688 | } | |
13689 | Py_INCREF(Py_None); resultobj = Py_None; | |
13690 | return resultobj; | |
13691 | fail: | |
13692 | return NULL; | |
13693 | } | |
13694 | ||
13695 | ||
13696 | static PyObject *_wrap_Grid_DeselectCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13697 | PyObject *resultobj; | |
13698 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13699 | int arg2 ; | |
13700 | int arg3 ; | |
13701 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13702 | PyObject * obj1 = 0 ; |
13703 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13704 | char *kwnames[] = { |
13705 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13706 | }; | |
13707 | ||
994141e6 | 13708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DeselectCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13711 | arg2 = (int) SWIG_AsInt(obj1); | |
13712 | if (PyErr_Occurred()) SWIG_fail; | |
13713 | arg3 = (int) SWIG_AsInt(obj2); | |
13714 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13715 | { |
13716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13717 | (arg1)->DeselectCell(arg2,arg3); | |
13718 | ||
13719 | wxPyEndAllowThreads(__tstate); | |
13720 | if (PyErr_Occurred()) SWIG_fail; | |
13721 | } | |
13722 | Py_INCREF(Py_None); resultobj = Py_None; | |
13723 | return resultobj; | |
13724 | fail: | |
13725 | return NULL; | |
13726 | } | |
13727 | ||
13728 | ||
13729 | static PyObject *_wrap_Grid_BlockToDeviceRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13730 | PyObject *resultobj; | |
13731 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13732 | wxGridCellCoords *arg2 = 0 ; | |
13733 | wxGridCellCoords *arg3 = 0 ; | |
13734 | wxRect result; | |
13735 | wxGridCellCoords temp2 ; | |
13736 | wxGridCellCoords temp3 ; | |
13737 | PyObject * obj0 = 0 ; | |
13738 | PyObject * obj1 = 0 ; | |
13739 | PyObject * obj2 = 0 ; | |
13740 | char *kwnames[] = { | |
13741 | (char *) "self",(char *) "topLeft",(char *) "bottomRight", NULL | |
13742 | }; | |
13743 | ||
13744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_BlockToDeviceRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
13745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13747 | { |
13748 | arg2 = &temp2; | |
13749 | if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail; | |
13750 | } | |
13751 | { | |
13752 | arg3 = &temp3; | |
13753 | if (! wxGridCellCoords_helper(obj2, &arg3)) SWIG_fail; | |
13754 | } | |
13755 | { | |
13756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13757 | result = (arg1)->BlockToDeviceRect((wxGridCellCoords const &)*arg2,(wxGridCellCoords const &)*arg3); | |
13758 | ||
13759 | wxPyEndAllowThreads(__tstate); | |
13760 | if (PyErr_Occurred()) SWIG_fail; | |
13761 | } | |
13762 | { | |
13763 | wxRect * resultptr; | |
13764 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 13765 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
13766 | } |
13767 | return resultobj; | |
13768 | fail: | |
13769 | return NULL; | |
13770 | } | |
13771 | ||
13772 | ||
13773 | static PyObject *_wrap_Grid_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13774 | PyObject *resultobj; | |
13775 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13776 | wxColour result; | |
13777 | PyObject * obj0 = 0 ; | |
13778 | char *kwnames[] = { | |
13779 | (char *) "self", NULL | |
13780 | }; | |
13781 | ||
13782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13785 | { |
13786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13787 | result = ((wxGrid const *)arg1)->GetSelectionBackground(); | |
13788 | ||
13789 | wxPyEndAllowThreads(__tstate); | |
13790 | if (PyErr_Occurred()) SWIG_fail; | |
13791 | } | |
13792 | { | |
13793 | wxColour * resultptr; | |
13794 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 13795 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
13796 | } |
13797 | return resultobj; | |
13798 | fail: | |
13799 | return NULL; | |
13800 | } | |
13801 | ||
13802 | ||
13803 | static PyObject *_wrap_Grid_GetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13804 | PyObject *resultobj; | |
13805 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13806 | wxColour result; | |
13807 | PyObject * obj0 = 0 ; | |
13808 | char *kwnames[] = { | |
13809 | (char *) "self", NULL | |
13810 | }; | |
13811 | ||
13812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionForeground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13815 | { |
13816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13817 | result = ((wxGrid const *)arg1)->GetSelectionForeground(); | |
13818 | ||
13819 | wxPyEndAllowThreads(__tstate); | |
13820 | if (PyErr_Occurred()) SWIG_fail; | |
13821 | } | |
13822 | { | |
13823 | wxColour * resultptr; | |
13824 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 13825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
13826 | } |
13827 | return resultobj; | |
13828 | fail: | |
13829 | return NULL; | |
13830 | } | |
13831 | ||
13832 | ||
13833 | static PyObject *_wrap_Grid_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13834 | PyObject *resultobj; | |
13835 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13836 | wxColour *arg2 = 0 ; | |
13837 | wxColour temp2 ; | |
13838 | PyObject * obj0 = 0 ; | |
13839 | PyObject * obj1 = 0 ; | |
13840 | char *kwnames[] = { | |
13841 | (char *) "self",(char *) "c", NULL | |
13842 | }; | |
13843 | ||
13844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13847 | { |
13848 | arg2 = &temp2; | |
13849 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13850 | } | |
13851 | { | |
13852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13853 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
13854 | ||
13855 | wxPyEndAllowThreads(__tstate); | |
13856 | if (PyErr_Occurred()) SWIG_fail; | |
13857 | } | |
13858 | Py_INCREF(Py_None); resultobj = Py_None; | |
13859 | return resultobj; | |
13860 | fail: | |
13861 | return NULL; | |
13862 | } | |
13863 | ||
13864 | ||
13865 | static PyObject *_wrap_Grid_SetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13866 | PyObject *resultobj; | |
13867 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13868 | wxColour *arg2 = 0 ; | |
13869 | wxColour temp2 ; | |
13870 | PyObject * obj0 = 0 ; | |
13871 | PyObject * obj1 = 0 ; | |
13872 | char *kwnames[] = { | |
13873 | (char *) "self",(char *) "c", NULL | |
13874 | }; | |
13875 | ||
13876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionForeground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13879 | { |
13880 | arg2 = &temp2; | |
13881 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13882 | } | |
13883 | { | |
13884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13885 | (arg1)->SetSelectionForeground((wxColour const &)*arg2); | |
13886 | ||
13887 | wxPyEndAllowThreads(__tstate); | |
13888 | if (PyErr_Occurred()) SWIG_fail; | |
13889 | } | |
13890 | Py_INCREF(Py_None); resultobj = Py_None; | |
13891 | return resultobj; | |
13892 | fail: | |
13893 | return NULL; | |
13894 | } | |
13895 | ||
13896 | ||
13897 | static PyObject *_wrap_Grid_RegisterDataType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13898 | PyObject *resultobj; | |
13899 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13900 | wxString *arg2 = 0 ; | |
13901 | wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ; | |
13902 | wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ; | |
e811c8ce | 13903 | bool temp2 = False ; |
d14a1e28 RD |
13904 | PyObject * obj0 = 0 ; |
13905 | PyObject * obj1 = 0 ; | |
13906 | PyObject * obj2 = 0 ; | |
13907 | PyObject * obj3 = 0 ; | |
13908 | char *kwnames[] = { | |
13909 | (char *) "self",(char *) "typeName",(char *) "renderer",(char *) "editor", NULL | |
13910 | }; | |
13911 | ||
13912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_RegisterDataType",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
13913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13915 | { |
13916 | arg2 = wxString_in_helper(obj1); | |
13917 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13918 | temp2 = True; |
d14a1e28 | 13919 | } |
15afbcd0 RD |
13920 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGridCellRenderer, |
13921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13922 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGridCellEditor, | |
13923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13924 | { |
13925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13926 | (arg1)->RegisterDataType((wxString const &)*arg2,arg3,arg4); | |
13927 | ||
13928 | wxPyEndAllowThreads(__tstate); | |
13929 | if (PyErr_Occurred()) SWIG_fail; | |
13930 | } | |
13931 | Py_INCREF(Py_None); resultobj = Py_None; | |
13932 | { | |
13933 | if (temp2) | |
13934 | delete arg2; | |
13935 | } | |
13936 | return resultobj; | |
13937 | fail: | |
13938 | { | |
13939 | if (temp2) | |
13940 | delete arg2; | |
13941 | } | |
13942 | return NULL; | |
13943 | } | |
13944 | ||
13945 | ||
13946 | static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13947 | PyObject *resultobj; | |
13948 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13949 | int arg2 ; | |
13950 | int arg3 ; | |
13951 | wxGridCellEditor *result; | |
13952 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13953 | PyObject * obj1 = 0 ; |
13954 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13955 | char *kwnames[] = { |
13956 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13957 | }; | |
13958 | ||
994141e6 | 13959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultEditorForCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13962 | arg2 = (int) SWIG_AsInt(obj1); | |
13963 | if (PyErr_Occurred()) SWIG_fail; | |
13964 | arg3 = (int) SWIG_AsInt(obj2); | |
13965 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13966 | { |
13967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13968 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForCell(arg2,arg3); | |
13969 | ||
13970 | wxPyEndAllowThreads(__tstate); | |
13971 | if (PyErr_Occurred()) SWIG_fail; | |
13972 | } | |
13973 | { | |
13974 | resultobj = wxPyMake_wxGridCellEditor(result); | |
13975 | } | |
13976 | return resultobj; | |
13977 | fail: | |
13978 | return NULL; | |
13979 | } | |
13980 | ||
13981 | ||
13982 | static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13983 | PyObject *resultobj; | |
13984 | wxGrid *arg1 = (wxGrid *) 0 ; | |
13985 | int arg2 ; | |
13986 | int arg3 ; | |
13987 | wxGridCellRenderer *result; | |
13988 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13989 | PyObject * obj1 = 0 ; |
13990 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13991 | char *kwnames[] = { |
13992 | (char *) "self",(char *) "row",(char *) "col", NULL | |
13993 | }; | |
13994 | ||
994141e6 | 13995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultRendererForCell",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
13997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13998 | arg2 = (int) SWIG_AsInt(obj1); | |
13999 | if (PyErr_Occurred()) SWIG_fail; | |
14000 | arg3 = (int) SWIG_AsInt(obj2); | |
14001 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14002 | { |
14003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14004 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForCell(arg2,arg3); | |
14005 | ||
14006 | wxPyEndAllowThreads(__tstate); | |
14007 | if (PyErr_Occurred()) SWIG_fail; | |
14008 | } | |
14009 | { | |
14010 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
14011 | } | |
14012 | return resultobj; | |
14013 | fail: | |
14014 | return NULL; | |
14015 | } | |
14016 | ||
14017 | ||
14018 | static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14019 | PyObject *resultobj; | |
14020 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14021 | wxString *arg2 = 0 ; | |
14022 | wxGridCellEditor *result; | |
e811c8ce | 14023 | bool temp2 = False ; |
d14a1e28 RD |
14024 | PyObject * obj0 = 0 ; |
14025 | PyObject * obj1 = 0 ; | |
14026 | char *kwnames[] = { | |
14027 | (char *) "self",(char *) "typeName", NULL | |
14028 | }; | |
14029 | ||
14030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultEditorForType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14033 | { |
14034 | arg2 = wxString_in_helper(obj1); | |
14035 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14036 | temp2 = True; |
d14a1e28 RD |
14037 | } |
14038 | { | |
14039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14040 | result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForType((wxString const &)*arg2); | |
14041 | ||
14042 | wxPyEndAllowThreads(__tstate); | |
14043 | if (PyErr_Occurred()) SWIG_fail; | |
14044 | } | |
14045 | { | |
14046 | resultobj = wxPyMake_wxGridCellEditor(result); | |
14047 | } | |
14048 | { | |
14049 | if (temp2) | |
14050 | delete arg2; | |
14051 | } | |
14052 | return resultobj; | |
14053 | fail: | |
14054 | { | |
14055 | if (temp2) | |
14056 | delete arg2; | |
14057 | } | |
14058 | return NULL; | |
14059 | } | |
14060 | ||
14061 | ||
14062 | static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14063 | PyObject *resultobj; | |
14064 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14065 | wxString *arg2 = 0 ; | |
14066 | wxGridCellRenderer *result; | |
e811c8ce | 14067 | bool temp2 = False ; |
d14a1e28 RD |
14068 | PyObject * obj0 = 0 ; |
14069 | PyObject * obj1 = 0 ; | |
14070 | char *kwnames[] = { | |
14071 | (char *) "self",(char *) "typeName", NULL | |
14072 | }; | |
14073 | ||
14074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultRendererForType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14077 | { |
14078 | arg2 = wxString_in_helper(obj1); | |
14079 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14080 | temp2 = True; |
d14a1e28 RD |
14081 | } |
14082 | { | |
14083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14084 | result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForType((wxString const &)*arg2); | |
14085 | ||
14086 | wxPyEndAllowThreads(__tstate); | |
14087 | if (PyErr_Occurred()) SWIG_fail; | |
14088 | } | |
14089 | { | |
14090 | resultobj = wxPyMake_wxGridCellRenderer(result); | |
14091 | } | |
14092 | { | |
14093 | if (temp2) | |
14094 | delete arg2; | |
14095 | } | |
14096 | return resultobj; | |
14097 | fail: | |
14098 | { | |
14099 | if (temp2) | |
14100 | delete arg2; | |
14101 | } | |
14102 | return NULL; | |
14103 | } | |
14104 | ||
14105 | ||
14106 | static PyObject *_wrap_Grid_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14107 | PyObject *resultobj; | |
14108 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14109 | int arg2 ; | |
14110 | int arg3 ; | |
14111 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14112 | PyObject * obj1 = 0 ; |
14113 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14114 | char *kwnames[] = { |
14115 | (char *) "self",(char *) "extraWidth",(char *) "extraHeight", NULL | |
14116 | }; | |
14117 | ||
994141e6 | 14118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14121 | arg2 = (int) SWIG_AsInt(obj1); | |
14122 | if (PyErr_Occurred()) SWIG_fail; | |
14123 | arg3 = (int) SWIG_AsInt(obj2); | |
14124 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14125 | { |
14126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14127 | (arg1)->SetMargins(arg2,arg3); | |
14128 | ||
14129 | wxPyEndAllowThreads(__tstate); | |
14130 | if (PyErr_Occurred()) SWIG_fail; | |
14131 | } | |
14132 | Py_INCREF(Py_None); resultobj = Py_None; | |
14133 | return resultobj; | |
14134 | fail: | |
14135 | return NULL; | |
14136 | } | |
14137 | ||
14138 | ||
14139 | static PyObject *_wrap_Grid_GetGridWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14140 | PyObject *resultobj; | |
14141 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14142 | wxWindow *result; | |
14143 | PyObject * obj0 = 0 ; | |
14144 | char *kwnames[] = { | |
14145 | (char *) "self", NULL | |
14146 | }; | |
14147 | ||
14148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14151 | { |
14152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14153 | result = (wxWindow *)(arg1)->GetGridWindow(); | |
14154 | ||
14155 | wxPyEndAllowThreads(__tstate); | |
14156 | if (PyErr_Occurred()) SWIG_fail; | |
14157 | } | |
14158 | { | |
14159 | resultobj = wxPyMake_wxObject(result); | |
14160 | } | |
14161 | return resultobj; | |
14162 | fail: | |
14163 | return NULL; | |
14164 | } | |
14165 | ||
14166 | ||
14167 | static PyObject *_wrap_Grid_GetGridRowLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14168 | PyObject *resultobj; | |
14169 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14170 | wxWindow *result; | |
14171 | PyObject * obj0 = 0 ; | |
14172 | char *kwnames[] = { | |
14173 | (char *) "self", NULL | |
14174 | }; | |
14175 | ||
14176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridRowLabelWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14179 | { |
14180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14181 | result = (wxWindow *)(arg1)->GetGridRowLabelWindow(); | |
14182 | ||
14183 | wxPyEndAllowThreads(__tstate); | |
14184 | if (PyErr_Occurred()) SWIG_fail; | |
14185 | } | |
14186 | { | |
14187 | resultobj = wxPyMake_wxObject(result); | |
14188 | } | |
14189 | return resultobj; | |
14190 | fail: | |
14191 | return NULL; | |
14192 | } | |
14193 | ||
14194 | ||
14195 | static PyObject *_wrap_Grid_GetGridColLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14196 | PyObject *resultobj; | |
14197 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14198 | wxWindow *result; | |
14199 | PyObject * obj0 = 0 ; | |
14200 | char *kwnames[] = { | |
14201 | (char *) "self", NULL | |
14202 | }; | |
14203 | ||
14204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridColLabelWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14207 | { |
14208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14209 | result = (wxWindow *)(arg1)->GetGridColLabelWindow(); | |
14210 | ||
14211 | wxPyEndAllowThreads(__tstate); | |
14212 | if (PyErr_Occurred()) SWIG_fail; | |
14213 | } | |
14214 | { | |
14215 | resultobj = wxPyMake_wxObject(result); | |
14216 | } | |
14217 | return resultobj; | |
14218 | fail: | |
14219 | return NULL; | |
14220 | } | |
14221 | ||
14222 | ||
14223 | static PyObject *_wrap_Grid_GetGridCornerLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14224 | PyObject *resultobj; | |
14225 | wxGrid *arg1 = (wxGrid *) 0 ; | |
14226 | wxWindow *result; | |
14227 | PyObject * obj0 = 0 ; | |
14228 | char *kwnames[] = { | |
14229 | (char *) "self", NULL | |
14230 | }; | |
14231 | ||
14232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCornerLabelWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGrid, |
14234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14235 | { |
14236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14237 | result = (wxWindow *)(arg1)->GetGridCornerLabelWindow(); | |
14238 | ||
14239 | wxPyEndAllowThreads(__tstate); | |
14240 | if (PyErr_Occurred()) SWIG_fail; | |
14241 | } | |
14242 | { | |
14243 | resultobj = wxPyMake_wxObject(result); | |
14244 | } | |
14245 | return resultobj; | |
14246 | fail: | |
14247 | return NULL; | |
14248 | } | |
14249 | ||
14250 | ||
14251 | static PyObject * Grid_swigregister(PyObject *self, PyObject *args) { | |
14252 | PyObject *obj; | |
14253 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14254 | SWIG_TypeClientData(SWIGTYPE_p_wxGrid, obj); | |
14255 | Py_INCREF(obj); | |
14256 | return Py_BuildValue((char *)""); | |
14257 | } | |
14258 | static PyObject *_wrap_new_GridEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14259 | PyObject *resultobj; | |
14260 | int arg1 ; | |
14261 | wxEventType arg2 ; | |
14262 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14263 | int arg4 = (int) -1 ; | |
14264 | int arg5 = (int) -1 ; | |
14265 | int arg6 = (int) -1 ; | |
14266 | int arg7 = (int) -1 ; | |
e811c8ce RD |
14267 | bool arg8 = (bool) True ; |
14268 | bool arg9 = (bool) False ; | |
14269 | bool arg10 = (bool) False ; | |
14270 | bool arg11 = (bool) False ; | |
14271 | bool arg12 = (bool) False ; | |
d14a1e28 | 14272 | wxGridEvent *result; |
994141e6 RD |
14273 | PyObject * obj0 = 0 ; |
14274 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14275 | PyObject * obj2 = 0 ; |
994141e6 RD |
14276 | PyObject * obj3 = 0 ; |
14277 | PyObject * obj4 = 0 ; | |
14278 | PyObject * obj5 = 0 ; | |
14279 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
14280 | PyObject * obj7 = 0 ; |
14281 | PyObject * obj8 = 0 ; | |
14282 | PyObject * obj9 = 0 ; | |
14283 | PyObject * obj10 = 0 ; | |
14284 | PyObject * obj11 = 0 ; | |
14285 | char *kwnames[] = { | |
14286 | (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 | |
14287 | }; | |
14288 | ||
994141e6 | 14289 | 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; |
15afbcd0 RD |
14290 | arg1 = (int) SWIG_AsInt(obj0); |
14291 | if (PyErr_Occurred()) SWIG_fail; | |
14292 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
14293 | if (PyErr_Occurred()) SWIG_fail; | |
14294 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid, | |
14295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 14296 | if (obj3) { |
15afbcd0 RD |
14297 | arg4 = (int) SWIG_AsInt(obj3); |
14298 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14299 | } |
14300 | if (obj4) { | |
15afbcd0 RD |
14301 | arg5 = (int) SWIG_AsInt(obj4); |
14302 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14303 | } |
14304 | if (obj5) { | |
15afbcd0 RD |
14305 | arg6 = (int) SWIG_AsInt(obj5); |
14306 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14307 | } |
14308 | if (obj6) { | |
15afbcd0 RD |
14309 | arg7 = (int) SWIG_AsInt(obj6); |
14310 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 14311 | } |
d14a1e28 | 14312 | if (obj7) { |
15afbcd0 RD |
14313 | arg8 = (bool) SWIG_AsBool(obj7); |
14314 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14315 | } |
14316 | if (obj8) { | |
15afbcd0 RD |
14317 | arg9 = (bool) SWIG_AsBool(obj8); |
14318 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14319 | } |
14320 | if (obj9) { | |
15afbcd0 RD |
14321 | arg10 = (bool) SWIG_AsBool(obj9); |
14322 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14323 | } |
14324 | if (obj10) { | |
15afbcd0 RD |
14325 | arg11 = (bool) SWIG_AsBool(obj10); |
14326 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14327 | } |
14328 | if (obj11) { | |
15afbcd0 RD |
14329 | arg12 = (bool) SWIG_AsBool(obj11); |
14330 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14331 | } |
14332 | { | |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (wxGridEvent *)new wxGridEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
14335 | ||
14336 | wxPyEndAllowThreads(__tstate); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
15afbcd0 | 14339 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridEvent, 1); |
d14a1e28 RD |
14340 | return resultobj; |
14341 | fail: | |
14342 | return NULL; | |
14343 | } | |
14344 | ||
14345 | ||
14346 | static PyObject *_wrap_GridEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14347 | PyObject *resultobj; | |
14348 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14349 | int result; | |
14350 | PyObject * obj0 = 0 ; | |
14351 | char *kwnames[] = { | |
14352 | (char *) "self", NULL | |
14353 | }; | |
14354 | ||
14355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetRow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
14357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14358 | { |
14359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14360 | result = (int)(arg1)->GetRow(); | |
14361 | ||
14362 | wxPyEndAllowThreads(__tstate); | |
14363 | if (PyErr_Occurred()) SWIG_fail; | |
14364 | } | |
15afbcd0 | 14365 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14366 | return resultobj; |
14367 | fail: | |
14368 | return NULL; | |
14369 | } | |
14370 | ||
14371 | ||
14372 | static PyObject *_wrap_GridEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14373 | PyObject *resultobj; | |
14374 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14375 | int result; | |
14376 | PyObject * obj0 = 0 ; | |
14377 | char *kwnames[] = { | |
14378 | (char *) "self", NULL | |
14379 | }; | |
14380 | ||
14381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetCol",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
14383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14384 | { |
14385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14386 | result = (int)(arg1)->GetCol(); | |
14387 | ||
14388 | wxPyEndAllowThreads(__tstate); | |
14389 | if (PyErr_Occurred()) SWIG_fail; | |
14390 | } | |
15afbcd0 | 14391 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14392 | return resultobj; |
14393 | fail: | |
14394 | return NULL; | |
14395 | } | |
14396 | ||
14397 | ||
14398 | static PyObject *_wrap_GridEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14399 | PyObject *resultobj; | |
14400 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14401 | wxPoint result; | |
14402 | PyObject * obj0 = 0 ; | |
14403 | char *kwnames[] = { | |
14404 | (char *) "self", NULL | |
14405 | }; | |
14406 | ||
14407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
14409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14410 | { |
14411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14412 | result = (arg1)->GetPosition(); | |
14413 | ||
14414 | wxPyEndAllowThreads(__tstate); | |
14415 | if (PyErr_Occurred()) SWIG_fail; | |
14416 | } | |
14417 | { | |
14418 | wxPoint * resultptr; | |
14419 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14420 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14421 | } |
14422 | return resultobj; | |
14423 | fail: | |
14424 | return NULL; | |
14425 | } | |
14426 | ||
14427 | ||
14428 | static PyObject *_wrap_GridEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14429 | PyObject *resultobj; | |
14430 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14431 | bool result; | |
14432 | PyObject * obj0 = 0 ; | |
14433 | char *kwnames[] = { | |
14434 | (char *) "self", NULL | |
14435 | }; | |
14436 | ||
14437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_Selecting",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
14439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14440 | { |
14441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14442 | result = (bool)(arg1)->Selecting(); | |
14443 | ||
14444 | wxPyEndAllowThreads(__tstate); | |
14445 | if (PyErr_Occurred()) SWIG_fail; | |
14446 | } | |
4f89f6a3 RD |
14447 | { |
14448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14449 | } | |
d14a1e28 RD |
14450 | return resultobj; |
14451 | fail: | |
14452 | return NULL; | |
14453 | } | |
14454 | ||
14455 | ||
14456 | static PyObject *_wrap_GridEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14457 | PyObject *resultobj; | |
14458 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14459 | bool result; | |
14460 | PyObject * obj0 = 0 ; | |
14461 | char *kwnames[] = { | |
14462 | (char *) "self", NULL | |
14463 | }; | |
14464 | ||
14465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
14467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14468 | { |
14469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14470 | result = (bool)(arg1)->ControlDown(); | |
14471 | ||
14472 | wxPyEndAllowThreads(__tstate); | |
14473 | if (PyErr_Occurred()) SWIG_fail; | |
14474 | } | |
4f89f6a3 RD |
14475 | { |
14476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14477 | } | |
d14a1e28 RD |
14478 | return resultobj; |
14479 | fail: | |
14480 | return NULL; | |
14481 | } | |
14482 | ||
14483 | ||
14484 | static PyObject *_wrap_GridEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14485 | PyObject *resultobj; | |
14486 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14487 | bool result; | |
14488 | PyObject * obj0 = 0 ; | |
14489 | char *kwnames[] = { | |
14490 | (char *) "self", NULL | |
14491 | }; | |
14492 | ||
14493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
14495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14496 | { |
14497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14498 | result = (bool)(arg1)->MetaDown(); | |
14499 | ||
14500 | wxPyEndAllowThreads(__tstate); | |
14501 | if (PyErr_Occurred()) SWIG_fail; | |
14502 | } | |
4f89f6a3 RD |
14503 | { |
14504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14505 | } | |
d14a1e28 RD |
14506 | return resultobj; |
14507 | fail: | |
14508 | return NULL; | |
14509 | } | |
14510 | ||
14511 | ||
14512 | static PyObject *_wrap_GridEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14513 | PyObject *resultobj; | |
14514 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14515 | bool result; | |
14516 | PyObject * obj0 = 0 ; | |
14517 | char *kwnames[] = { | |
14518 | (char *) "self", NULL | |
14519 | }; | |
14520 | ||
14521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
14523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14524 | { |
14525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14526 | result = (bool)(arg1)->ShiftDown(); | |
14527 | ||
14528 | wxPyEndAllowThreads(__tstate); | |
14529 | if (PyErr_Occurred()) SWIG_fail; | |
14530 | } | |
4f89f6a3 RD |
14531 | { |
14532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14533 | } | |
d14a1e28 RD |
14534 | return resultobj; |
14535 | fail: | |
14536 | return NULL; | |
14537 | } | |
14538 | ||
14539 | ||
14540 | static PyObject *_wrap_GridEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14541 | PyObject *resultobj; | |
14542 | wxGridEvent *arg1 = (wxGridEvent *) 0 ; | |
14543 | bool result; | |
14544 | PyObject * obj0 = 0 ; | |
14545 | char *kwnames[] = { | |
14546 | (char *) "self", NULL | |
14547 | }; | |
14548 | ||
14549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEvent, |
14551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14552 | { |
14553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14554 | result = (bool)(arg1)->AltDown(); | |
14555 | ||
14556 | wxPyEndAllowThreads(__tstate); | |
14557 | if (PyErr_Occurred()) SWIG_fail; | |
14558 | } | |
4f89f6a3 RD |
14559 | { |
14560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14561 | } | |
d14a1e28 RD |
14562 | return resultobj; |
14563 | fail: | |
14564 | return NULL; | |
14565 | } | |
14566 | ||
14567 | ||
14568 | static PyObject * GridEvent_swigregister(PyObject *self, PyObject *args) { | |
14569 | PyObject *obj; | |
14570 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14571 | SWIG_TypeClientData(SWIGTYPE_p_wxGridEvent, obj); | |
14572 | Py_INCREF(obj); | |
14573 | return Py_BuildValue((char *)""); | |
14574 | } | |
14575 | static PyObject *_wrap_new_GridSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14576 | PyObject *resultobj; | |
14577 | int arg1 ; | |
14578 | wxEventType arg2 ; | |
14579 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14580 | int arg4 = (int) -1 ; | |
14581 | int arg5 = (int) -1 ; | |
14582 | int arg6 = (int) -1 ; | |
e811c8ce RD |
14583 | bool arg7 = (bool) False ; |
14584 | bool arg8 = (bool) False ; | |
14585 | bool arg9 = (bool) False ; | |
14586 | bool arg10 = (bool) False ; | |
d14a1e28 | 14587 | wxGridSizeEvent *result; |
994141e6 RD |
14588 | PyObject * obj0 = 0 ; |
14589 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14590 | PyObject * obj2 = 0 ; |
994141e6 RD |
14591 | PyObject * obj3 = 0 ; |
14592 | PyObject * obj4 = 0 ; | |
14593 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
14594 | PyObject * obj6 = 0 ; |
14595 | PyObject * obj7 = 0 ; | |
14596 | PyObject * obj8 = 0 ; | |
14597 | PyObject * obj9 = 0 ; | |
14598 | char *kwnames[] = { | |
14599 | (char *) "id",(char *) "type",(char *) "obj",(char *) "rowOrCol",(char *) "x",(char *) "y",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL | |
14600 | }; | |
14601 | ||
994141e6 | 14602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_GridSizeEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
14603 | arg1 = (int) SWIG_AsInt(obj0); |
14604 | if (PyErr_Occurred()) SWIG_fail; | |
14605 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
14606 | if (PyErr_Occurred()) SWIG_fail; | |
14607 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid, | |
14608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 14609 | if (obj3) { |
15afbcd0 RD |
14610 | arg4 = (int) SWIG_AsInt(obj3); |
14611 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14612 | } |
14613 | if (obj4) { | |
15afbcd0 RD |
14614 | arg5 = (int) SWIG_AsInt(obj4); |
14615 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14616 | } |
14617 | if (obj5) { | |
15afbcd0 RD |
14618 | arg6 = (int) SWIG_AsInt(obj5); |
14619 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 14620 | } |
d14a1e28 | 14621 | if (obj6) { |
15afbcd0 RD |
14622 | arg7 = (bool) SWIG_AsBool(obj6); |
14623 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14624 | } |
14625 | if (obj7) { | |
15afbcd0 RD |
14626 | arg8 = (bool) SWIG_AsBool(obj7); |
14627 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14628 | } |
14629 | if (obj8) { | |
15afbcd0 RD |
14630 | arg9 = (bool) SWIG_AsBool(obj8); |
14631 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14632 | } |
14633 | if (obj9) { | |
15afbcd0 RD |
14634 | arg10 = (bool) SWIG_AsBool(obj9); |
14635 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14636 | } |
14637 | { | |
14638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14639 | result = (wxGridSizeEvent *)new wxGridSizeEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
14640 | ||
14641 | wxPyEndAllowThreads(__tstate); | |
14642 | if (PyErr_Occurred()) SWIG_fail; | |
14643 | } | |
15afbcd0 | 14644 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizeEvent, 1); |
d14a1e28 RD |
14645 | return resultobj; |
14646 | fail: | |
14647 | return NULL; | |
14648 | } | |
14649 | ||
14650 | ||
14651 | static PyObject *_wrap_GridSizeEvent_GetRowOrCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14652 | PyObject *resultobj; | |
14653 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14654 | int result; | |
14655 | PyObject * obj0 = 0 ; | |
14656 | char *kwnames[] = { | |
14657 | (char *) "self", NULL | |
14658 | }; | |
14659 | ||
14660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetRowOrCol",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
14662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14663 | { |
14664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14665 | result = (int)(arg1)->GetRowOrCol(); | |
14666 | ||
14667 | wxPyEndAllowThreads(__tstate); | |
14668 | if (PyErr_Occurred()) SWIG_fail; | |
14669 | } | |
15afbcd0 | 14670 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14671 | return resultobj; |
14672 | fail: | |
14673 | return NULL; | |
14674 | } | |
14675 | ||
14676 | ||
14677 | static PyObject *_wrap_GridSizeEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14678 | PyObject *resultobj; | |
14679 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14680 | wxPoint result; | |
14681 | PyObject * obj0 = 0 ; | |
14682 | char *kwnames[] = { | |
14683 | (char *) "self", NULL | |
14684 | }; | |
14685 | ||
14686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
14688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14689 | { |
14690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14691 | result = (arg1)->GetPosition(); | |
14692 | ||
14693 | wxPyEndAllowThreads(__tstate); | |
14694 | if (PyErr_Occurred()) SWIG_fail; | |
14695 | } | |
14696 | { | |
14697 | wxPoint * resultptr; | |
14698 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14699 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14700 | } |
14701 | return resultobj; | |
14702 | fail: | |
14703 | return NULL; | |
14704 | } | |
14705 | ||
14706 | ||
14707 | static PyObject *_wrap_GridSizeEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14708 | PyObject *resultobj; | |
14709 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14710 | bool result; | |
14711 | PyObject * obj0 = 0 ; | |
14712 | char *kwnames[] = { | |
14713 | (char *) "self", NULL | |
14714 | }; | |
14715 | ||
14716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
14718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14719 | { |
14720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14721 | result = (bool)(arg1)->ControlDown(); | |
14722 | ||
14723 | wxPyEndAllowThreads(__tstate); | |
14724 | if (PyErr_Occurred()) SWIG_fail; | |
14725 | } | |
4f89f6a3 RD |
14726 | { |
14727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14728 | } | |
d14a1e28 RD |
14729 | return resultobj; |
14730 | fail: | |
14731 | return NULL; | |
14732 | } | |
14733 | ||
14734 | ||
14735 | static PyObject *_wrap_GridSizeEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14736 | PyObject *resultobj; | |
14737 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14738 | bool result; | |
14739 | PyObject * obj0 = 0 ; | |
14740 | char *kwnames[] = { | |
14741 | (char *) "self", NULL | |
14742 | }; | |
14743 | ||
14744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
14746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14747 | { |
14748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14749 | result = (bool)(arg1)->MetaDown(); | |
14750 | ||
14751 | wxPyEndAllowThreads(__tstate); | |
14752 | if (PyErr_Occurred()) SWIG_fail; | |
14753 | } | |
4f89f6a3 RD |
14754 | { |
14755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14756 | } | |
d14a1e28 RD |
14757 | return resultobj; |
14758 | fail: | |
14759 | return NULL; | |
14760 | } | |
14761 | ||
14762 | ||
14763 | static PyObject *_wrap_GridSizeEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14764 | PyObject *resultobj; | |
14765 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14766 | bool result; | |
14767 | PyObject * obj0 = 0 ; | |
14768 | char *kwnames[] = { | |
14769 | (char *) "self", NULL | |
14770 | }; | |
14771 | ||
14772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
14774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14775 | { |
14776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14777 | result = (bool)(arg1)->ShiftDown(); | |
14778 | ||
14779 | wxPyEndAllowThreads(__tstate); | |
14780 | if (PyErr_Occurred()) SWIG_fail; | |
14781 | } | |
4f89f6a3 RD |
14782 | { |
14783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14784 | } | |
d14a1e28 RD |
14785 | return resultobj; |
14786 | fail: | |
14787 | return NULL; | |
14788 | } | |
14789 | ||
14790 | ||
14791 | static PyObject *_wrap_GridSizeEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14792 | PyObject *resultobj; | |
14793 | wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ; | |
14794 | bool result; | |
14795 | PyObject * obj0 = 0 ; | |
14796 | char *kwnames[] = { | |
14797 | (char *) "self", NULL | |
14798 | }; | |
14799 | ||
14800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizeEvent, |
14802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14803 | { |
14804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14805 | result = (bool)(arg1)->AltDown(); | |
14806 | ||
14807 | wxPyEndAllowThreads(__tstate); | |
14808 | if (PyErr_Occurred()) SWIG_fail; | |
14809 | } | |
4f89f6a3 RD |
14810 | { |
14811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14812 | } | |
d14a1e28 RD |
14813 | return resultobj; |
14814 | fail: | |
14815 | return NULL; | |
14816 | } | |
14817 | ||
14818 | ||
14819 | static PyObject * GridSizeEvent_swigregister(PyObject *self, PyObject *args) { | |
14820 | PyObject *obj; | |
14821 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14822 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizeEvent, obj); | |
14823 | Py_INCREF(obj); | |
14824 | return Py_BuildValue((char *)""); | |
14825 | } | |
14826 | static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14827 | PyObject *resultobj; | |
14828 | int arg1 ; | |
14829 | wxEventType arg2 ; | |
14830 | wxGrid *arg3 = (wxGrid *) 0 ; | |
14831 | wxGridCellCoords *arg4 = 0 ; | |
14832 | wxGridCellCoords *arg5 = 0 ; | |
e811c8ce RD |
14833 | bool arg6 = (bool) True ; |
14834 | bool arg7 = (bool) False ; | |
14835 | bool arg8 = (bool) False ; | |
14836 | bool arg9 = (bool) False ; | |
14837 | bool arg10 = (bool) False ; | |
d14a1e28 RD |
14838 | wxGridRangeSelectEvent *result; |
14839 | wxGridCellCoords temp4 ; | |
14840 | wxGridCellCoords temp5 ; | |
994141e6 RD |
14841 | PyObject * obj0 = 0 ; |
14842 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
14843 | PyObject * obj2 = 0 ; |
14844 | PyObject * obj3 = 0 ; | |
14845 | PyObject * obj4 = 0 ; | |
14846 | PyObject * obj5 = 0 ; | |
14847 | PyObject * obj6 = 0 ; | |
14848 | PyObject * obj7 = 0 ; | |
14849 | PyObject * obj8 = 0 ; | |
14850 | PyObject * obj9 = 0 ; | |
14851 | char *kwnames[] = { | |
14852 | (char *) "id",(char *) "type",(char *) "obj",(char *) "topLeft",(char *) "bottomRight",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL | |
14853 | }; | |
14854 | ||
994141e6 | 14855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_GridRangeSelectEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
14856 | arg1 = (int) SWIG_AsInt(obj0); |
14857 | if (PyErr_Occurred()) SWIG_fail; | |
14858 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
14859 | if (PyErr_Occurred()) SWIG_fail; | |
14860 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGrid, | |
14861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14862 | { |
14863 | arg4 = &temp4; | |
14864 | if (! wxGridCellCoords_helper(obj3, &arg4)) SWIG_fail; | |
14865 | } | |
14866 | { | |
14867 | arg5 = &temp5; | |
14868 | if (! wxGridCellCoords_helper(obj4, &arg5)) SWIG_fail; | |
14869 | } | |
14870 | if (obj5) { | |
15afbcd0 RD |
14871 | arg6 = (bool) SWIG_AsBool(obj5); |
14872 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14873 | } |
14874 | if (obj6) { | |
15afbcd0 RD |
14875 | arg7 = (bool) SWIG_AsBool(obj6); |
14876 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14877 | } |
14878 | if (obj7) { | |
15afbcd0 RD |
14879 | arg8 = (bool) SWIG_AsBool(obj7); |
14880 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14881 | } |
14882 | if (obj8) { | |
15afbcd0 RD |
14883 | arg9 = (bool) SWIG_AsBool(obj8); |
14884 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14885 | } |
14886 | if (obj9) { | |
15afbcd0 RD |
14887 | arg10 = (bool) SWIG_AsBool(obj9); |
14888 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14889 | } |
14890 | { | |
14891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14892 | result = (wxGridRangeSelectEvent *)new wxGridRangeSelectEvent(arg1,arg2,arg3,(wxGridCellCoords const &)*arg4,(wxGridCellCoords const &)*arg5,arg6,arg7,arg8,arg9,arg10); | |
14893 | ||
14894 | wxPyEndAllowThreads(__tstate); | |
14895 | if (PyErr_Occurred()) SWIG_fail; | |
14896 | } | |
15afbcd0 | 14897 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridRangeSelectEvent, 1); |
d14a1e28 RD |
14898 | return resultobj; |
14899 | fail: | |
14900 | return NULL; | |
14901 | } | |
14902 | ||
14903 | ||
14904 | static PyObject *_wrap_GridRangeSelectEvent_GetTopLeftCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14905 | PyObject *resultobj; | |
14906 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14907 | wxGridCellCoords result; | |
14908 | PyObject * obj0 = 0 ; | |
14909 | char *kwnames[] = { | |
14910 | (char *) "self", NULL | |
14911 | }; | |
14912 | ||
14913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopLeftCoords",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
14915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14916 | { |
14917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14918 | result = (arg1)->GetTopLeftCoords(); | |
14919 | ||
14920 | wxPyEndAllowThreads(__tstate); | |
14921 | if (PyErr_Occurred()) SWIG_fail; | |
14922 | } | |
14923 | { | |
14924 | wxGridCellCoords * resultptr; | |
14925 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
15afbcd0 | 14926 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1); |
d14a1e28 RD |
14927 | } |
14928 | return resultobj; | |
14929 | fail: | |
14930 | return NULL; | |
14931 | } | |
14932 | ||
14933 | ||
14934 | static PyObject *_wrap_GridRangeSelectEvent_GetBottomRightCoords(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14935 | PyObject *resultobj; | |
14936 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14937 | wxGridCellCoords result; | |
14938 | PyObject * obj0 = 0 ; | |
14939 | char *kwnames[] = { | |
14940 | (char *) "self", NULL | |
14941 | }; | |
14942 | ||
14943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRightCoords",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
14945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14946 | { |
14947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14948 | result = (arg1)->GetBottomRightCoords(); | |
14949 | ||
14950 | wxPyEndAllowThreads(__tstate); | |
14951 | if (PyErr_Occurred()) SWIG_fail; | |
14952 | } | |
14953 | { | |
14954 | wxGridCellCoords * resultptr; | |
14955 | resultptr = new wxGridCellCoords((wxGridCellCoords &) result); | |
15afbcd0 | 14956 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGridCellCoords, 1); |
d14a1e28 RD |
14957 | } |
14958 | return resultobj; | |
14959 | fail: | |
14960 | return NULL; | |
14961 | } | |
14962 | ||
14963 | ||
14964 | static PyObject *_wrap_GridRangeSelectEvent_GetTopRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14965 | PyObject *resultobj; | |
14966 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14967 | int result; | |
14968 | PyObject * obj0 = 0 ; | |
14969 | char *kwnames[] = { | |
14970 | (char *) "self", NULL | |
14971 | }; | |
14972 | ||
14973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopRow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
14975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14976 | { |
14977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14978 | result = (int)(arg1)->GetTopRow(); | |
14979 | ||
14980 | wxPyEndAllowThreads(__tstate); | |
14981 | if (PyErr_Occurred()) SWIG_fail; | |
14982 | } | |
15afbcd0 | 14983 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14984 | return resultobj; |
14985 | fail: | |
14986 | return NULL; | |
14987 | } | |
14988 | ||
14989 | ||
14990 | static PyObject *_wrap_GridRangeSelectEvent_GetBottomRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14991 | PyObject *resultobj; | |
14992 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
14993 | int result; | |
14994 | PyObject * obj0 = 0 ; | |
14995 | char *kwnames[] = { | |
14996 | (char *) "self", NULL | |
14997 | }; | |
14998 | ||
14999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15002 | { |
15003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15004 | result = (int)(arg1)->GetBottomRow(); | |
15005 | ||
15006 | wxPyEndAllowThreads(__tstate); | |
15007 | if (PyErr_Occurred()) SWIG_fail; | |
15008 | } | |
15afbcd0 | 15009 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15010 | return resultobj; |
15011 | fail: | |
15012 | return NULL; | |
15013 | } | |
15014 | ||
15015 | ||
15016 | static PyObject *_wrap_GridRangeSelectEvent_GetLeftCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15017 | PyObject *resultobj; | |
15018 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15019 | int result; | |
15020 | PyObject * obj0 = 0 ; | |
15021 | char *kwnames[] = { | |
15022 | (char *) "self", NULL | |
15023 | }; | |
15024 | ||
15025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetLeftCol",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15028 | { |
15029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15030 | result = (int)(arg1)->GetLeftCol(); | |
15031 | ||
15032 | wxPyEndAllowThreads(__tstate); | |
15033 | if (PyErr_Occurred()) SWIG_fail; | |
15034 | } | |
15afbcd0 | 15035 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15036 | return resultobj; |
15037 | fail: | |
15038 | return NULL; | |
15039 | } | |
15040 | ||
15041 | ||
15042 | static PyObject *_wrap_GridRangeSelectEvent_GetRightCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15043 | PyObject *resultobj; | |
15044 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15045 | int result; | |
15046 | PyObject * obj0 = 0 ; | |
15047 | char *kwnames[] = { | |
15048 | (char *) "self", NULL | |
15049 | }; | |
15050 | ||
15051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetRightCol",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15054 | { |
15055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15056 | result = (int)(arg1)->GetRightCol(); | |
15057 | ||
15058 | wxPyEndAllowThreads(__tstate); | |
15059 | if (PyErr_Occurred()) SWIG_fail; | |
15060 | } | |
15afbcd0 | 15061 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15062 | return resultobj; |
15063 | fail: | |
15064 | return NULL; | |
15065 | } | |
15066 | ||
15067 | ||
15068 | static PyObject *_wrap_GridRangeSelectEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15069 | PyObject *resultobj; | |
15070 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15071 | bool result; | |
15072 | PyObject * obj0 = 0 ; | |
15073 | char *kwnames[] = { | |
15074 | (char *) "self", NULL | |
15075 | }; | |
15076 | ||
15077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_Selecting",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15080 | { |
15081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15082 | result = (bool)(arg1)->Selecting(); | |
15083 | ||
15084 | wxPyEndAllowThreads(__tstate); | |
15085 | if (PyErr_Occurred()) SWIG_fail; | |
15086 | } | |
4f89f6a3 RD |
15087 | { |
15088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15089 | } | |
d14a1e28 RD |
15090 | return resultobj; |
15091 | fail: | |
15092 | return NULL; | |
15093 | } | |
15094 | ||
15095 | ||
15096 | static PyObject *_wrap_GridRangeSelectEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15097 | PyObject *resultobj; | |
15098 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15099 | bool result; | |
15100 | PyObject * obj0 = 0 ; | |
15101 | char *kwnames[] = { | |
15102 | (char *) "self", NULL | |
15103 | }; | |
15104 | ||
15105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15108 | { |
15109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15110 | result = (bool)(arg1)->ControlDown(); | |
15111 | ||
15112 | wxPyEndAllowThreads(__tstate); | |
15113 | if (PyErr_Occurred()) SWIG_fail; | |
15114 | } | |
4f89f6a3 RD |
15115 | { |
15116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15117 | } | |
d14a1e28 RD |
15118 | return resultobj; |
15119 | fail: | |
15120 | return NULL; | |
15121 | } | |
15122 | ||
15123 | ||
15124 | static PyObject *_wrap_GridRangeSelectEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15125 | PyObject *resultobj; | |
15126 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15127 | bool result; | |
15128 | PyObject * obj0 = 0 ; | |
15129 | char *kwnames[] = { | |
15130 | (char *) "self", NULL | |
15131 | }; | |
15132 | ||
15133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15136 | { |
15137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15138 | result = (bool)(arg1)->MetaDown(); | |
15139 | ||
15140 | wxPyEndAllowThreads(__tstate); | |
15141 | if (PyErr_Occurred()) SWIG_fail; | |
15142 | } | |
4f89f6a3 RD |
15143 | { |
15144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15145 | } | |
d14a1e28 RD |
15146 | return resultobj; |
15147 | fail: | |
15148 | return NULL; | |
15149 | } | |
15150 | ||
15151 | ||
15152 | static PyObject *_wrap_GridRangeSelectEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15153 | PyObject *resultobj; | |
15154 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15155 | bool result; | |
15156 | PyObject * obj0 = 0 ; | |
15157 | char *kwnames[] = { | |
15158 | (char *) "self", NULL | |
15159 | }; | |
15160 | ||
15161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15164 | { |
15165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15166 | result = (bool)(arg1)->ShiftDown(); | |
15167 | ||
15168 | wxPyEndAllowThreads(__tstate); | |
15169 | if (PyErr_Occurred()) SWIG_fail; | |
15170 | } | |
4f89f6a3 RD |
15171 | { |
15172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15173 | } | |
d14a1e28 RD |
15174 | return resultobj; |
15175 | fail: | |
15176 | return NULL; | |
15177 | } | |
15178 | ||
15179 | ||
15180 | static PyObject *_wrap_GridRangeSelectEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15181 | PyObject *resultobj; | |
15182 | wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ; | |
15183 | bool result; | |
15184 | PyObject * obj0 = 0 ; | |
15185 | char *kwnames[] = { | |
15186 | (char *) "self", NULL | |
15187 | }; | |
15188 | ||
15189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridRangeSelectEvent, |
15191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15192 | { |
15193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15194 | result = (bool)(arg1)->AltDown(); | |
15195 | ||
15196 | wxPyEndAllowThreads(__tstate); | |
15197 | if (PyErr_Occurred()) SWIG_fail; | |
15198 | } | |
4f89f6a3 RD |
15199 | { |
15200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15201 | } | |
d14a1e28 RD |
15202 | return resultobj; |
15203 | fail: | |
15204 | return NULL; | |
15205 | } | |
15206 | ||
15207 | ||
15208 | static PyObject * GridRangeSelectEvent_swigregister(PyObject *self, PyObject *args) { | |
15209 | PyObject *obj; | |
15210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15211 | SWIG_TypeClientData(SWIGTYPE_p_wxGridRangeSelectEvent, obj); | |
15212 | Py_INCREF(obj); | |
15213 | return Py_BuildValue((char *)""); | |
15214 | } | |
15215 | static PyObject *_wrap_new_GridEditorCreatedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15216 | PyObject *resultobj; | |
15217 | int arg1 ; | |
15218 | wxEventType arg2 ; | |
15219 | wxObject *arg3 = (wxObject *) 0 ; | |
15220 | int arg4 ; | |
15221 | int arg5 ; | |
15222 | wxControl *arg6 = (wxControl *) 0 ; | |
15223 | wxGridEditorCreatedEvent *result; | |
994141e6 RD |
15224 | PyObject * obj0 = 0 ; |
15225 | PyObject * obj1 = 0 ; | |
d14a1e28 | 15226 | PyObject * obj2 = 0 ; |
994141e6 RD |
15227 | PyObject * obj3 = 0 ; |
15228 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
15229 | PyObject * obj5 = 0 ; |
15230 | char *kwnames[] = { | |
15231 | (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "ctrl", NULL | |
15232 | }; | |
15233 | ||
994141e6 | 15234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GridEditorCreatedEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
15235 | arg1 = (int) SWIG_AsInt(obj0); |
15236 | if (PyErr_Occurred()) SWIG_fail; | |
15237 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
15238 | if (PyErr_Occurred()) SWIG_fail; | |
15239 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxObject, | |
15240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15241 | arg4 = (int) SWIG_AsInt(obj3); | |
15242 | if (PyErr_Occurred()) SWIG_fail; | |
15243 | arg5 = (int) SWIG_AsInt(obj4); | |
15244 | if (PyErr_Occurred()) SWIG_fail; | |
15245 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxControl, | |
15246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15247 | { |
15248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15249 | result = (wxGridEditorCreatedEvent *)new wxGridEditorCreatedEvent(arg1,arg2,arg3,arg4,arg5,arg6); | |
15250 | ||
15251 | wxPyEndAllowThreads(__tstate); | |
15252 | if (PyErr_Occurred()) SWIG_fail; | |
15253 | } | |
15afbcd0 | 15254 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridEditorCreatedEvent, 1); |
d14a1e28 RD |
15255 | return resultobj; |
15256 | fail: | |
15257 | return NULL; | |
15258 | } | |
15259 | ||
15260 | ||
15261 | static PyObject *_wrap_GridEditorCreatedEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15262 | PyObject *resultobj; | |
15263 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15264 | int result; | |
15265 | PyObject * obj0 = 0 ; | |
15266 | char *kwnames[] = { | |
15267 | (char *) "self", NULL | |
15268 | }; | |
15269 | ||
15270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetRow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
15272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15273 | { |
15274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15275 | result = (int)(arg1)->GetRow(); | |
15276 | ||
15277 | wxPyEndAllowThreads(__tstate); | |
15278 | if (PyErr_Occurred()) SWIG_fail; | |
15279 | } | |
15afbcd0 | 15280 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15281 | return resultobj; |
15282 | fail: | |
15283 | return NULL; | |
15284 | } | |
15285 | ||
15286 | ||
15287 | static PyObject *_wrap_GridEditorCreatedEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15288 | PyObject *resultobj; | |
15289 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15290 | int result; | |
15291 | PyObject * obj0 = 0 ; | |
15292 | char *kwnames[] = { | |
15293 | (char *) "self", NULL | |
15294 | }; | |
15295 | ||
15296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetCol",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
15298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15299 | { |
15300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15301 | result = (int)(arg1)->GetCol(); | |
15302 | ||
15303 | wxPyEndAllowThreads(__tstate); | |
15304 | if (PyErr_Occurred()) SWIG_fail; | |
15305 | } | |
15afbcd0 | 15306 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15307 | return resultobj; |
15308 | fail: | |
15309 | return NULL; | |
15310 | } | |
15311 | ||
15312 | ||
15313 | static PyObject *_wrap_GridEditorCreatedEvent_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15314 | PyObject *resultobj; | |
15315 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15316 | wxControl *result; | |
15317 | PyObject * obj0 = 0 ; | |
15318 | char *kwnames[] = { | |
15319 | (char *) "self", NULL | |
15320 | }; | |
15321 | ||
15322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
15324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15325 | { |
15326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15327 | result = (wxControl *)(arg1)->GetControl(); | |
15328 | ||
15329 | wxPyEndAllowThreads(__tstate); | |
15330 | if (PyErr_Occurred()) SWIG_fail; | |
15331 | } | |
15332 | { | |
15333 | resultobj = wxPyMake_wxObject(result); | |
15334 | } | |
15335 | return resultobj; | |
15336 | fail: | |
15337 | return NULL; | |
15338 | } | |
15339 | ||
15340 | ||
15341 | static PyObject *_wrap_GridEditorCreatedEvent_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15342 | PyObject *resultobj; | |
15343 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15344 | int arg2 ; | |
15345 | PyObject * obj0 = 0 ; | |
994141e6 | 15346 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15347 | char *kwnames[] = { |
15348 | (char *) "self",(char *) "row", NULL | |
15349 | }; | |
15350 | ||
994141e6 | 15351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetRow",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
15353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15354 | arg2 = (int) SWIG_AsInt(obj1); | |
15355 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15356 | { |
15357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15358 | (arg1)->SetRow(arg2); | |
15359 | ||
15360 | wxPyEndAllowThreads(__tstate); | |
15361 | if (PyErr_Occurred()) SWIG_fail; | |
15362 | } | |
15363 | Py_INCREF(Py_None); resultobj = Py_None; | |
15364 | return resultobj; | |
15365 | fail: | |
15366 | return NULL; | |
15367 | } | |
15368 | ||
15369 | ||
15370 | static PyObject *_wrap_GridEditorCreatedEvent_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15371 | PyObject *resultobj; | |
15372 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15373 | int arg2 ; | |
15374 | PyObject * obj0 = 0 ; | |
994141e6 | 15375 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15376 | char *kwnames[] = { |
15377 | (char *) "self",(char *) "col", NULL | |
15378 | }; | |
15379 | ||
994141e6 | 15380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetCol",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
15382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15383 | arg2 = (int) SWIG_AsInt(obj1); | |
15384 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15385 | { |
15386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15387 | (arg1)->SetCol(arg2); | |
15388 | ||
15389 | wxPyEndAllowThreads(__tstate); | |
15390 | if (PyErr_Occurred()) SWIG_fail; | |
15391 | } | |
15392 | Py_INCREF(Py_None); resultobj = Py_None; | |
15393 | return resultobj; | |
15394 | fail: | |
15395 | return NULL; | |
15396 | } | |
15397 | ||
15398 | ||
15399 | static PyObject *_wrap_GridEditorCreatedEvent_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15400 | PyObject *resultobj; | |
15401 | wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ; | |
15402 | wxControl *arg2 = (wxControl *) 0 ; | |
15403 | PyObject * obj0 = 0 ; | |
15404 | PyObject * obj1 = 0 ; | |
15405 | char *kwnames[] = { | |
15406 | (char *) "self",(char *) "ctrl", NULL | |
15407 | }; | |
15408 | ||
15409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetControl",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridEditorCreatedEvent, |
15411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15412 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
15413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15414 | { |
15415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15416 | (arg1)->SetControl(arg2); | |
15417 | ||
15418 | wxPyEndAllowThreads(__tstate); | |
15419 | if (PyErr_Occurred()) SWIG_fail; | |
15420 | } | |
15421 | Py_INCREF(Py_None); resultobj = Py_None; | |
15422 | return resultobj; | |
15423 | fail: | |
15424 | return NULL; | |
15425 | } | |
15426 | ||
15427 | ||
15428 | static PyObject * GridEditorCreatedEvent_swigregister(PyObject *self, PyObject *args) { | |
15429 | PyObject *obj; | |
15430 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15431 | SWIG_TypeClientData(SWIGTYPE_p_wxGridEditorCreatedEvent, obj); | |
15432 | Py_INCREF(obj); | |
15433 | return Py_BuildValue((char *)""); | |
15434 | } | |
15435 | static PyMethodDef SwigMethods[] = { | |
15436 | { (char *)"GridCellRenderer__setOORInfo", (PyCFunction) _wrap_GridCellRenderer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15437 | { (char *)"GridCellRenderer_SetParameters", (PyCFunction) _wrap_GridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15438 | { (char *)"GridCellRenderer_IncRef", (PyCFunction) _wrap_GridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS }, | |
15439 | { (char *)"GridCellRenderer_DecRef", (PyCFunction) _wrap_GridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS }, | |
15440 | { (char *)"GridCellRenderer_Draw", (PyCFunction) _wrap_GridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS }, | |
15441 | { (char *)"GridCellRenderer_GetBestSize", (PyCFunction) _wrap_GridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
15442 | { (char *)"GridCellRenderer_Clone", (PyCFunction) _wrap_GridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS }, | |
15443 | { (char *)"GridCellRenderer_swigregister", GridCellRenderer_swigregister, METH_VARARGS }, | |
15444 | { (char *)"new_PyGridCellRenderer", (PyCFunction) _wrap_new_PyGridCellRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15445 | { (char *)"PyGridCellRenderer__setCallbackInfo", (PyCFunction) _wrap_PyGridCellRenderer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15446 | { (char *)"PyGridCellRenderer_base_SetParameters", (PyCFunction) _wrap_PyGridCellRenderer_base_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15447 | { (char *)"PyGridCellRenderer_swigregister", PyGridCellRenderer_swigregister, METH_VARARGS }, | |
15448 | { (char *)"new_GridCellStringRenderer", (PyCFunction) _wrap_new_GridCellStringRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15449 | { (char *)"GridCellStringRenderer_swigregister", GridCellStringRenderer_swigregister, METH_VARARGS }, | |
15450 | { (char *)"new_GridCellNumberRenderer", (PyCFunction) _wrap_new_GridCellNumberRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15451 | { (char *)"GridCellNumberRenderer_swigregister", GridCellNumberRenderer_swigregister, METH_VARARGS }, | |
15452 | { (char *)"new_GridCellFloatRenderer", (PyCFunction) _wrap_new_GridCellFloatRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15453 | { (char *)"GridCellFloatRenderer_GetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15454 | { (char *)"GridCellFloatRenderer_SetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
15455 | { (char *)"GridCellFloatRenderer_GetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_GetPrecision, METH_VARARGS | METH_KEYWORDS }, | |
15456 | { (char *)"GridCellFloatRenderer_SetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_SetPrecision, METH_VARARGS | METH_KEYWORDS }, | |
15457 | { (char *)"GridCellFloatRenderer_swigregister", GridCellFloatRenderer_swigregister, METH_VARARGS }, | |
15458 | { (char *)"new_GridCellBoolRenderer", (PyCFunction) _wrap_new_GridCellBoolRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15459 | { (char *)"GridCellBoolRenderer_swigregister", GridCellBoolRenderer_swigregister, METH_VARARGS }, | |
15460 | { (char *)"new_GridCellDateTimeRenderer", (PyCFunction) _wrap_new_GridCellDateTimeRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15461 | { (char *)"GridCellDateTimeRenderer_swigregister", GridCellDateTimeRenderer_swigregister, METH_VARARGS }, | |
15462 | { (char *)"new_GridCellEnumRenderer", (PyCFunction) _wrap_new_GridCellEnumRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15463 | { (char *)"GridCellEnumRenderer_swigregister", GridCellEnumRenderer_swigregister, METH_VARARGS }, | |
15464 | { (char *)"new_GridCellAutoWrapStringRenderer", (PyCFunction) _wrap_new_GridCellAutoWrapStringRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15465 | { (char *)"GridCellAutoWrapStringRenderer_swigregister", GridCellAutoWrapStringRenderer_swigregister, METH_VARARGS }, | |
15466 | { (char *)"GridCellEditor__setOORInfo", (PyCFunction) _wrap_GridCellEditor__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15467 | { (char *)"GridCellEditor_IsCreated", (PyCFunction) _wrap_GridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS }, | |
15468 | { (char *)"GridCellEditor_GetControl", (PyCFunction) _wrap_GridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
15469 | { (char *)"GridCellEditor_SetControl", (PyCFunction) _wrap_GridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS }, | |
15470 | { (char *)"GridCellEditor_GetCellAttr", (PyCFunction) _wrap_GridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS }, | |
15471 | { (char *)"GridCellEditor_SetCellAttr", (PyCFunction) _wrap_GridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS }, | |
15472 | { (char *)"GridCellEditor_SetParameters", (PyCFunction) _wrap_GridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15473 | { (char *)"GridCellEditor_IncRef", (PyCFunction) _wrap_GridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS }, | |
15474 | { (char *)"GridCellEditor_DecRef", (PyCFunction) _wrap_GridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS }, | |
15475 | { (char *)"GridCellEditor_Create", (PyCFunction) _wrap_GridCellEditor_Create, METH_VARARGS | METH_KEYWORDS }, | |
15476 | { (char *)"GridCellEditor_BeginEdit", (PyCFunction) _wrap_GridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS }, | |
15477 | { (char *)"GridCellEditor_EndEdit", (PyCFunction) _wrap_GridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS }, | |
15478 | { (char *)"GridCellEditor_Reset", (PyCFunction) _wrap_GridCellEditor_Reset, METH_VARARGS | METH_KEYWORDS }, | |
15479 | { (char *)"GridCellEditor_Clone", (PyCFunction) _wrap_GridCellEditor_Clone, METH_VARARGS | METH_KEYWORDS }, | |
15480 | { (char *)"GridCellEditor_SetSize", (PyCFunction) _wrap_GridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
15481 | { (char *)"GridCellEditor_Show", (PyCFunction) _wrap_GridCellEditor_Show, METH_VARARGS | METH_KEYWORDS }, | |
15482 | { (char *)"GridCellEditor_PaintBackground", (PyCFunction) _wrap_GridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS }, | |
15483 | { (char *)"GridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_GridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS }, | |
15484 | { (char *)"GridCellEditor_StartingKey", (PyCFunction) _wrap_GridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS }, | |
15485 | { (char *)"GridCellEditor_StartingClick", (PyCFunction) _wrap_GridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS }, | |
15486 | { (char *)"GridCellEditor_HandleReturn", (PyCFunction) _wrap_GridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS }, | |
15487 | { (char *)"GridCellEditor_Destroy", (PyCFunction) _wrap_GridCellEditor_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
15488 | { (char *)"GridCellEditor_swigregister", GridCellEditor_swigregister, METH_VARARGS }, | |
15489 | { (char *)"new_PyGridCellEditor", (PyCFunction) _wrap_new_PyGridCellEditor, METH_VARARGS | METH_KEYWORDS }, | |
15490 | { (char *)"PyGridCellEditor__setCallbackInfo", (PyCFunction) _wrap_PyGridCellEditor__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15491 | { (char *)"PyGridCellEditor_base_SetSize", (PyCFunction) _wrap_PyGridCellEditor_base_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
15492 | { (char *)"PyGridCellEditor_base_Show", (PyCFunction) _wrap_PyGridCellEditor_base_Show, METH_VARARGS | METH_KEYWORDS }, | |
15493 | { (char *)"PyGridCellEditor_base_PaintBackground", (PyCFunction) _wrap_PyGridCellEditor_base_PaintBackground, METH_VARARGS | METH_KEYWORDS }, | |
15494 | { (char *)"PyGridCellEditor_base_IsAcceptedKey", (PyCFunction) _wrap_PyGridCellEditor_base_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS }, | |
15495 | { (char *)"PyGridCellEditor_base_StartingKey", (PyCFunction) _wrap_PyGridCellEditor_base_StartingKey, METH_VARARGS | METH_KEYWORDS }, | |
15496 | { (char *)"PyGridCellEditor_base_StartingClick", (PyCFunction) _wrap_PyGridCellEditor_base_StartingClick, METH_VARARGS | METH_KEYWORDS }, | |
15497 | { (char *)"PyGridCellEditor_base_HandleReturn", (PyCFunction) _wrap_PyGridCellEditor_base_HandleReturn, METH_VARARGS | METH_KEYWORDS }, | |
15498 | { (char *)"PyGridCellEditor_base_Destroy", (PyCFunction) _wrap_PyGridCellEditor_base_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
15499 | { (char *)"PyGridCellEditor_base_SetParameters", (PyCFunction) _wrap_PyGridCellEditor_base_SetParameters, METH_VARARGS | METH_KEYWORDS }, | |
15500 | { (char *)"PyGridCellEditor_swigregister", PyGridCellEditor_swigregister, METH_VARARGS }, | |
15501 | { (char *)"new_GridCellTextEditor", (PyCFunction) _wrap_new_GridCellTextEditor, METH_VARARGS | METH_KEYWORDS }, | |
15502 | { (char *)"GridCellTextEditor_GetValue", (PyCFunction) _wrap_GridCellTextEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15503 | { (char *)"GridCellTextEditor_swigregister", GridCellTextEditor_swigregister, METH_VARARGS }, | |
15504 | { (char *)"new_GridCellNumberEditor", (PyCFunction) _wrap_new_GridCellNumberEditor, METH_VARARGS | METH_KEYWORDS }, | |
15505 | { (char *)"GridCellNumberEditor_GetValue", (PyCFunction) _wrap_GridCellNumberEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15506 | { (char *)"GridCellNumberEditor_swigregister", GridCellNumberEditor_swigregister, METH_VARARGS }, | |
15507 | { (char *)"new_GridCellFloatEditor", (PyCFunction) _wrap_new_GridCellFloatEditor, METH_VARARGS | METH_KEYWORDS }, | |
15508 | { (char *)"GridCellFloatEditor_GetValue", (PyCFunction) _wrap_GridCellFloatEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15509 | { (char *)"GridCellFloatEditor_swigregister", GridCellFloatEditor_swigregister, METH_VARARGS }, | |
15510 | { (char *)"new_GridCellBoolEditor", (PyCFunction) _wrap_new_GridCellBoolEditor, METH_VARARGS | METH_KEYWORDS }, | |
15511 | { (char *)"GridCellBoolEditor_GetValue", (PyCFunction) _wrap_GridCellBoolEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15512 | { (char *)"GridCellBoolEditor_swigregister", GridCellBoolEditor_swigregister, METH_VARARGS }, | |
15513 | { (char *)"new_GridCellChoiceEditor", (PyCFunction) _wrap_new_GridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS }, | |
15514 | { (char *)"GridCellChoiceEditor_GetValue", (PyCFunction) _wrap_GridCellChoiceEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15515 | { (char *)"GridCellChoiceEditor_swigregister", GridCellChoiceEditor_swigregister, METH_VARARGS }, | |
15516 | { (char *)"new_GridCellEnumEditor", (PyCFunction) _wrap_new_GridCellEnumEditor, METH_VARARGS | METH_KEYWORDS }, | |
15517 | { (char *)"GridCellEnumEditor_GetValue", (PyCFunction) _wrap_GridCellEnumEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15518 | { (char *)"GridCellEnumEditor_swigregister", GridCellEnumEditor_swigregister, METH_VARARGS }, | |
15519 | { (char *)"new_GridCellAutoWrapStringEditor", (PyCFunction) _wrap_new_GridCellAutoWrapStringEditor, METH_VARARGS | METH_KEYWORDS }, | |
15520 | { (char *)"GridCellAutoWrapStringEditor_GetValue", (PyCFunction) _wrap_GridCellAutoWrapStringEditor_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15521 | { (char *)"GridCellAutoWrapStringEditor_swigregister", GridCellAutoWrapStringEditor_swigregister, METH_VARARGS }, | |
15522 | { (char *)"GridCellAttr__setOORInfo", (PyCFunction) _wrap_GridCellAttr__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15523 | { (char *)"new_GridCellAttr", (PyCFunction) _wrap_new_GridCellAttr, METH_VARARGS | METH_KEYWORDS }, | |
15524 | { (char *)"GridCellAttr_Clone", (PyCFunction) _wrap_GridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS }, | |
15525 | { (char *)"GridCellAttr_MergeWith", (PyCFunction) _wrap_GridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS }, | |
15526 | { (char *)"GridCellAttr_IncRef", (PyCFunction) _wrap_GridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS }, | |
15527 | { (char *)"GridCellAttr_DecRef", (PyCFunction) _wrap_GridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS }, | |
15528 | { (char *)"GridCellAttr_SetTextColour", (PyCFunction) _wrap_GridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15529 | { (char *)"GridCellAttr_SetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15530 | { (char *)"GridCellAttr_SetFont", (PyCFunction) _wrap_GridCellAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
15531 | { (char *)"GridCellAttr_SetAlignment", (PyCFunction) _wrap_GridCellAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15532 | { (char *)"GridCellAttr_SetSize", (PyCFunction) _wrap_GridCellAttr_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
15533 | { (char *)"GridCellAttr_SetOverflow", (PyCFunction) _wrap_GridCellAttr_SetOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15534 | { (char *)"GridCellAttr_SetReadOnly", (PyCFunction) _wrap_GridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15535 | { (char *)"GridCellAttr_SetRenderer", (PyCFunction) _wrap_GridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15536 | { (char *)"GridCellAttr_SetEditor", (PyCFunction) _wrap_GridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS }, | |
15537 | { (char *)"GridCellAttr_SetKind", (PyCFunction) _wrap_GridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS }, | |
15538 | { (char *)"GridCellAttr_HasTextColour", (PyCFunction) _wrap_GridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15539 | { (char *)"GridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_GridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15540 | { (char *)"GridCellAttr_HasFont", (PyCFunction) _wrap_GridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
15541 | { (char *)"GridCellAttr_HasAlignment", (PyCFunction) _wrap_GridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15542 | { (char *)"GridCellAttr_HasRenderer", (PyCFunction) _wrap_GridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15543 | { (char *)"GridCellAttr_HasEditor", (PyCFunction) _wrap_GridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS }, | |
15544 | { (char *)"GridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_GridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS }, | |
15545 | { (char *)"GridCellAttr_HasOverflowMode", (PyCFunction) _wrap_GridCellAttr_HasOverflowMode, METH_VARARGS | METH_KEYWORDS }, | |
15546 | { (char *)"GridCellAttr_GetTextColour", (PyCFunction) _wrap_GridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15547 | { (char *)"GridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15548 | { (char *)"GridCellAttr_GetFont", (PyCFunction) _wrap_GridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
15549 | { (char *)"GridCellAttr_GetAlignment", (PyCFunction) _wrap_GridCellAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15550 | { (char *)"GridCellAttr_GetSize", (PyCFunction) _wrap_GridCellAttr_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
15551 | { (char *)"GridCellAttr_GetOverflow", (PyCFunction) _wrap_GridCellAttr_GetOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15552 | { (char *)"GridCellAttr_GetRenderer", (PyCFunction) _wrap_GridCellAttr_GetRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15553 | { (char *)"GridCellAttr_GetEditor", (PyCFunction) _wrap_GridCellAttr_GetEditor, METH_VARARGS | METH_KEYWORDS }, | |
15554 | { (char *)"GridCellAttr_IsReadOnly", (PyCFunction) _wrap_GridCellAttr_IsReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15555 | { (char *)"GridCellAttr_SetDefAttr", (PyCFunction) _wrap_GridCellAttr_SetDefAttr, METH_VARARGS | METH_KEYWORDS }, | |
15556 | { (char *)"GridCellAttr_swigregister", GridCellAttr_swigregister, METH_VARARGS }, | |
15557 | { (char *)"new_GridCellAttrProvider", (PyCFunction) _wrap_new_GridCellAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15558 | { (char *)"GridCellAttrProvider__setOORInfo", (PyCFunction) _wrap_GridCellAttrProvider__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15559 | { (char *)"GridCellAttrProvider_GetAttr", (PyCFunction) _wrap_GridCellAttrProvider_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15560 | { (char *)"GridCellAttrProvider_SetAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15561 | { (char *)"GridCellAttrProvider_SetRowAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15562 | { (char *)"GridCellAttrProvider_SetColAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15563 | { (char *)"GridCellAttrProvider_UpdateAttrRows", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrRows, METH_VARARGS | METH_KEYWORDS }, | |
15564 | { (char *)"GridCellAttrProvider_UpdateAttrCols", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrCols, METH_VARARGS | METH_KEYWORDS }, | |
15565 | { (char *)"GridCellAttrProvider_swigregister", GridCellAttrProvider_swigregister, METH_VARARGS }, | |
15566 | { (char *)"new_PyGridCellAttrProvider", (PyCFunction) _wrap_new_PyGridCellAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15567 | { (char *)"PyGridCellAttrProvider__setCallbackInfo", (PyCFunction) _wrap_PyGridCellAttrProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15568 | { (char *)"PyGridCellAttrProvider_base_GetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15569 | { (char *)"PyGridCellAttrProvider_base_SetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15570 | { (char *)"PyGridCellAttrProvider_base_SetRowAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15571 | { (char *)"PyGridCellAttrProvider_base_SetColAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15572 | { (char *)"PyGridCellAttrProvider_swigregister", PyGridCellAttrProvider_swigregister, METH_VARARGS }, | |
15573 | { (char *)"GridTableBase__setOORInfo", (PyCFunction) _wrap_GridTableBase__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
15574 | { (char *)"GridTableBase_SetAttrProvider", (PyCFunction) _wrap_GridTableBase_SetAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15575 | { (char *)"GridTableBase_GetAttrProvider", (PyCFunction) _wrap_GridTableBase_GetAttrProvider, METH_VARARGS | METH_KEYWORDS }, | |
15576 | { (char *)"GridTableBase_SetView", (PyCFunction) _wrap_GridTableBase_SetView, METH_VARARGS | METH_KEYWORDS }, | |
15577 | { (char *)"GridTableBase_GetView", (PyCFunction) _wrap_GridTableBase_GetView, METH_VARARGS | METH_KEYWORDS }, | |
15578 | { (char *)"GridTableBase_GetNumberRows", (PyCFunction) _wrap_GridTableBase_GetNumberRows, METH_VARARGS | METH_KEYWORDS }, | |
15579 | { (char *)"GridTableBase_GetNumberCols", (PyCFunction) _wrap_GridTableBase_GetNumberCols, METH_VARARGS | METH_KEYWORDS }, | |
15580 | { (char *)"GridTableBase_IsEmptyCell", (PyCFunction) _wrap_GridTableBase_IsEmptyCell, METH_VARARGS | METH_KEYWORDS }, | |
15581 | { (char *)"GridTableBase_GetValue", (PyCFunction) _wrap_GridTableBase_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
15582 | { (char *)"GridTableBase_SetValue", (PyCFunction) _wrap_GridTableBase_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
15583 | { (char *)"GridTableBase_GetTypeName", (PyCFunction) _wrap_GridTableBase_GetTypeName, METH_VARARGS | METH_KEYWORDS }, | |
15584 | { (char *)"GridTableBase_CanGetValueAs", (PyCFunction) _wrap_GridTableBase_CanGetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15585 | { (char *)"GridTableBase_CanSetValueAs", (PyCFunction) _wrap_GridTableBase_CanSetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15586 | { (char *)"GridTableBase_GetValueAsLong", (PyCFunction) _wrap_GridTableBase_GetValueAsLong, METH_VARARGS | METH_KEYWORDS }, | |
15587 | { (char *)"GridTableBase_GetValueAsDouble", (PyCFunction) _wrap_GridTableBase_GetValueAsDouble, METH_VARARGS | METH_KEYWORDS }, | |
15588 | { (char *)"GridTableBase_GetValueAsBool", (PyCFunction) _wrap_GridTableBase_GetValueAsBool, METH_VARARGS | METH_KEYWORDS }, | |
15589 | { (char *)"GridTableBase_SetValueAsLong", (PyCFunction) _wrap_GridTableBase_SetValueAsLong, METH_VARARGS | METH_KEYWORDS }, | |
15590 | { (char *)"GridTableBase_SetValueAsDouble", (PyCFunction) _wrap_GridTableBase_SetValueAsDouble, METH_VARARGS | METH_KEYWORDS }, | |
15591 | { (char *)"GridTableBase_SetValueAsBool", (PyCFunction) _wrap_GridTableBase_SetValueAsBool, METH_VARARGS | METH_KEYWORDS }, | |
15592 | { (char *)"GridTableBase_Clear", (PyCFunction) _wrap_GridTableBase_Clear, METH_VARARGS | METH_KEYWORDS }, | |
15593 | { (char *)"GridTableBase_InsertRows", (PyCFunction) _wrap_GridTableBase_InsertRows, METH_VARARGS | METH_KEYWORDS }, | |
15594 | { (char *)"GridTableBase_AppendRows", (PyCFunction) _wrap_GridTableBase_AppendRows, METH_VARARGS | METH_KEYWORDS }, | |
15595 | { (char *)"GridTableBase_DeleteRows", (PyCFunction) _wrap_GridTableBase_DeleteRows, METH_VARARGS | METH_KEYWORDS }, | |
15596 | { (char *)"GridTableBase_InsertCols", (PyCFunction) _wrap_GridTableBase_InsertCols, METH_VARARGS | METH_KEYWORDS }, | |
15597 | { (char *)"GridTableBase_AppendCols", (PyCFunction) _wrap_GridTableBase_AppendCols, METH_VARARGS | METH_KEYWORDS }, | |
15598 | { (char *)"GridTableBase_DeleteCols", (PyCFunction) _wrap_GridTableBase_DeleteCols, METH_VARARGS | METH_KEYWORDS }, | |
15599 | { (char *)"GridTableBase_GetRowLabelValue", (PyCFunction) _wrap_GridTableBase_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15600 | { (char *)"GridTableBase_GetColLabelValue", (PyCFunction) _wrap_GridTableBase_GetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15601 | { (char *)"GridTableBase_SetRowLabelValue", (PyCFunction) _wrap_GridTableBase_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15602 | { (char *)"GridTableBase_SetColLabelValue", (PyCFunction) _wrap_GridTableBase_SetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15603 | { (char *)"GridTableBase_CanHaveAttributes", (PyCFunction) _wrap_GridTableBase_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS }, | |
15604 | { (char *)"GridTableBase_GetAttr", (PyCFunction) _wrap_GridTableBase_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15605 | { (char *)"GridTableBase_SetAttr", (PyCFunction) _wrap_GridTableBase_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15606 | { (char *)"GridTableBase_SetRowAttr", (PyCFunction) _wrap_GridTableBase_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15607 | { (char *)"GridTableBase_SetColAttr", (PyCFunction) _wrap_GridTableBase_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15608 | { (char *)"GridTableBase_swigregister", GridTableBase_swigregister, METH_VARARGS }, | |
15609 | { (char *)"new_PyGridTableBase", (PyCFunction) _wrap_new_PyGridTableBase, METH_VARARGS | METH_KEYWORDS }, | |
15610 | { (char *)"PyGridTableBase__setCallbackInfo", (PyCFunction) _wrap_PyGridTableBase__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
15611 | { (char *)"PyGridTableBase_Destroy", (PyCFunction) _wrap_PyGridTableBase_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
15612 | { (char *)"PyGridTableBase_base_GetTypeName", (PyCFunction) _wrap_PyGridTableBase_base_GetTypeName, METH_VARARGS | METH_KEYWORDS }, | |
15613 | { (char *)"PyGridTableBase_base_CanGetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanGetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15614 | { (char *)"PyGridTableBase_base_CanSetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanSetValueAs, METH_VARARGS | METH_KEYWORDS }, | |
15615 | { (char *)"PyGridTableBase_base_Clear", (PyCFunction) _wrap_PyGridTableBase_base_Clear, METH_VARARGS | METH_KEYWORDS }, | |
15616 | { (char *)"PyGridTableBase_base_InsertRows", (PyCFunction) _wrap_PyGridTableBase_base_InsertRows, METH_VARARGS | METH_KEYWORDS }, | |
15617 | { (char *)"PyGridTableBase_base_AppendRows", (PyCFunction) _wrap_PyGridTableBase_base_AppendRows, METH_VARARGS | METH_KEYWORDS }, | |
15618 | { (char *)"PyGridTableBase_base_DeleteRows", (PyCFunction) _wrap_PyGridTableBase_base_DeleteRows, METH_VARARGS | METH_KEYWORDS }, | |
15619 | { (char *)"PyGridTableBase_base_InsertCols", (PyCFunction) _wrap_PyGridTableBase_base_InsertCols, METH_VARARGS | METH_KEYWORDS }, | |
15620 | { (char *)"PyGridTableBase_base_AppendCols", (PyCFunction) _wrap_PyGridTableBase_base_AppendCols, METH_VARARGS | METH_KEYWORDS }, | |
15621 | { (char *)"PyGridTableBase_base_DeleteCols", (PyCFunction) _wrap_PyGridTableBase_base_DeleteCols, METH_VARARGS | METH_KEYWORDS }, | |
15622 | { (char *)"PyGridTableBase_base_GetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15623 | { (char *)"PyGridTableBase_base_GetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15624 | { (char *)"PyGridTableBase_base_SetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15625 | { (char *)"PyGridTableBase_base_SetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15626 | { (char *)"PyGridTableBase_base_CanHaveAttributes", (PyCFunction) _wrap_PyGridTableBase_base_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS }, | |
15627 | { (char *)"PyGridTableBase_base_GetAttr", (PyCFunction) _wrap_PyGridTableBase_base_GetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15628 | { (char *)"PyGridTableBase_base_SetAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15629 | { (char *)"PyGridTableBase_base_SetRowAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15630 | { (char *)"PyGridTableBase_base_SetColAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15631 | { (char *)"PyGridTableBase_swigregister", PyGridTableBase_swigregister, METH_VARARGS }, | |
15632 | { (char *)"new_GridStringTable", (PyCFunction) _wrap_new_GridStringTable, METH_VARARGS | METH_KEYWORDS }, | |
15633 | { (char *)"GridStringTable_swigregister", GridStringTable_swigregister, METH_VARARGS }, | |
15634 | { (char *)"new_GridTableMessage", (PyCFunction) _wrap_new_GridTableMessage, METH_VARARGS | METH_KEYWORDS }, | |
15635 | { (char *)"delete_GridTableMessage", (PyCFunction) _wrap_delete_GridTableMessage, METH_VARARGS | METH_KEYWORDS }, | |
15636 | { (char *)"GridTableMessage_SetTableObject", (PyCFunction) _wrap_GridTableMessage_SetTableObject, METH_VARARGS | METH_KEYWORDS }, | |
15637 | { (char *)"GridTableMessage_GetTableObject", (PyCFunction) _wrap_GridTableMessage_GetTableObject, METH_VARARGS | METH_KEYWORDS }, | |
15638 | { (char *)"GridTableMessage_SetId", (PyCFunction) _wrap_GridTableMessage_SetId, METH_VARARGS | METH_KEYWORDS }, | |
15639 | { (char *)"GridTableMessage_GetId", (PyCFunction) _wrap_GridTableMessage_GetId, METH_VARARGS | METH_KEYWORDS }, | |
15640 | { (char *)"GridTableMessage_SetCommandInt", (PyCFunction) _wrap_GridTableMessage_SetCommandInt, METH_VARARGS | METH_KEYWORDS }, | |
15641 | { (char *)"GridTableMessage_GetCommandInt", (PyCFunction) _wrap_GridTableMessage_GetCommandInt, METH_VARARGS | METH_KEYWORDS }, | |
15642 | { (char *)"GridTableMessage_SetCommandInt2", (PyCFunction) _wrap_GridTableMessage_SetCommandInt2, METH_VARARGS | METH_KEYWORDS }, | |
15643 | { (char *)"GridTableMessage_GetCommandInt2", (PyCFunction) _wrap_GridTableMessage_GetCommandInt2, METH_VARARGS | METH_KEYWORDS }, | |
15644 | { (char *)"GridTableMessage_swigregister", GridTableMessage_swigregister, METH_VARARGS }, | |
15645 | { (char *)"new_GridCellCoords", (PyCFunction) _wrap_new_GridCellCoords, METH_VARARGS | METH_KEYWORDS }, | |
15646 | { (char *)"delete_GridCellCoords", (PyCFunction) _wrap_delete_GridCellCoords, METH_VARARGS | METH_KEYWORDS }, | |
15647 | { (char *)"GridCellCoords_GetRow", (PyCFunction) _wrap_GridCellCoords_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
15648 | { (char *)"GridCellCoords_SetRow", (PyCFunction) _wrap_GridCellCoords_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
15649 | { (char *)"GridCellCoords_GetCol", (PyCFunction) _wrap_GridCellCoords_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
15650 | { (char *)"GridCellCoords_SetCol", (PyCFunction) _wrap_GridCellCoords_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
15651 | { (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS }, | |
15652 | { (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS }, | |
15653 | { (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS }, | |
15654 | { (char *)"GridCellCoords_asTuple", (PyCFunction) _wrap_GridCellCoords_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
15655 | { (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS }, | |
15656 | { (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS }, | |
15657 | { (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS }, | |
15658 | { (char *)"Grid_SetSelectionMode", (PyCFunction) _wrap_Grid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS }, | |
15659 | { (char *)"Grid_GetSelectionMode", (PyCFunction) _wrap_Grid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS }, | |
15660 | { (char *)"Grid_GetNumberRows", (PyCFunction) _wrap_Grid_GetNumberRows, METH_VARARGS | METH_KEYWORDS }, | |
15661 | { (char *)"Grid_GetNumberCols", (PyCFunction) _wrap_Grid_GetNumberCols, METH_VARARGS | METH_KEYWORDS }, | |
15662 | { (char *)"Grid_ProcessTableMessage", (PyCFunction) _wrap_Grid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS }, | |
15663 | { (char *)"Grid_GetTable", (PyCFunction) _wrap_Grid_GetTable, METH_VARARGS | METH_KEYWORDS }, | |
15664 | { (char *)"Grid_SetTable", (PyCFunction) _wrap_Grid_SetTable, METH_VARARGS | METH_KEYWORDS }, | |
15665 | { (char *)"Grid_ClearGrid", (PyCFunction) _wrap_Grid_ClearGrid, METH_VARARGS | METH_KEYWORDS }, | |
15666 | { (char *)"Grid_InsertRows", (PyCFunction) _wrap_Grid_InsertRows, METH_VARARGS | METH_KEYWORDS }, | |
15667 | { (char *)"Grid_AppendRows", (PyCFunction) _wrap_Grid_AppendRows, METH_VARARGS | METH_KEYWORDS }, | |
15668 | { (char *)"Grid_DeleteRows", (PyCFunction) _wrap_Grid_DeleteRows, METH_VARARGS | METH_KEYWORDS }, | |
15669 | { (char *)"Grid_InsertCols", (PyCFunction) _wrap_Grid_InsertCols, METH_VARARGS | METH_KEYWORDS }, | |
15670 | { (char *)"Grid_AppendCols", (PyCFunction) _wrap_Grid_AppendCols, METH_VARARGS | METH_KEYWORDS }, | |
15671 | { (char *)"Grid_DeleteCols", (PyCFunction) _wrap_Grid_DeleteCols, METH_VARARGS | METH_KEYWORDS }, | |
15672 | { (char *)"Grid_DrawCellHighlight", (PyCFunction) _wrap_Grid_DrawCellHighlight, METH_VARARGS | METH_KEYWORDS }, | |
15673 | { (char *)"Grid_DrawTextRectangle", (PyCFunction) _wrap_Grid_DrawTextRectangle, METH_VARARGS | METH_KEYWORDS }, | |
15674 | { (char *)"Grid_GetTextBoxSize", (PyCFunction) _wrap_Grid_GetTextBoxSize, METH_VARARGS | METH_KEYWORDS }, | |
15675 | { (char *)"Grid_BeginBatch", (PyCFunction) _wrap_Grid_BeginBatch, METH_VARARGS | METH_KEYWORDS }, | |
15676 | { (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS }, | |
15677 | { (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS }, | |
15678 | { (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
15679 | { (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS }, |
15680 | { (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS }, | |
15681 | { (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15682 | { (char *)"Grid_DisableCellEditControl", (PyCFunction) _wrap_Grid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15683 | { (char *)"Grid_CanEnableCellControl", (PyCFunction) _wrap_Grid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS }, | |
15684 | { (char *)"Grid_IsCellEditControlEnabled", (PyCFunction) _wrap_Grid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS }, | |
15685 | { (char *)"Grid_IsCellEditControlShown", (PyCFunction) _wrap_Grid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS }, | |
15686 | { (char *)"Grid_IsCurrentCellReadOnly", (PyCFunction) _wrap_Grid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15687 | { (char *)"Grid_ShowCellEditControl", (PyCFunction) _wrap_Grid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15688 | { (char *)"Grid_HideCellEditControl", (PyCFunction) _wrap_Grid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS }, | |
15689 | { (char *)"Grid_SaveEditControlValue", (PyCFunction) _wrap_Grid_SaveEditControlValue, METH_VARARGS | METH_KEYWORDS }, | |
15690 | { (char *)"Grid_XYToCell", (PyCFunction) _wrap_Grid_XYToCell, METH_VARARGS | METH_KEYWORDS }, | |
15691 | { (char *)"Grid_YToRow", (PyCFunction) _wrap_Grid_YToRow, METH_VARARGS | METH_KEYWORDS }, | |
15692 | { (char *)"Grid_XToCol", (PyCFunction) _wrap_Grid_XToCol, METH_VARARGS | METH_KEYWORDS }, | |
15693 | { (char *)"Grid_YToEdgeOfRow", (PyCFunction) _wrap_Grid_YToEdgeOfRow, METH_VARARGS | METH_KEYWORDS }, | |
15694 | { (char *)"Grid_XToEdgeOfCol", (PyCFunction) _wrap_Grid_XToEdgeOfCol, METH_VARARGS | METH_KEYWORDS }, | |
15695 | { (char *)"Grid_CellToRect", (PyCFunction) _wrap_Grid_CellToRect, METH_VARARGS | METH_KEYWORDS }, | |
15696 | { (char *)"Grid_GetGridCursorRow", (PyCFunction) _wrap_Grid_GetGridCursorRow, METH_VARARGS | METH_KEYWORDS }, | |
15697 | { (char *)"Grid_GetGridCursorCol", (PyCFunction) _wrap_Grid_GetGridCursorCol, METH_VARARGS | METH_KEYWORDS }, | |
15698 | { (char *)"Grid_IsVisible", (PyCFunction) _wrap_Grid_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
15699 | { (char *)"Grid_MakeCellVisible", (PyCFunction) _wrap_Grid_MakeCellVisible, METH_VARARGS | METH_KEYWORDS }, | |
15700 | { (char *)"Grid_SetGridCursor", (PyCFunction) _wrap_Grid_SetGridCursor, METH_VARARGS | METH_KEYWORDS }, | |
15701 | { (char *)"Grid_MoveCursorUp", (PyCFunction) _wrap_Grid_MoveCursorUp, METH_VARARGS | METH_KEYWORDS }, | |
15702 | { (char *)"Grid_MoveCursorDown", (PyCFunction) _wrap_Grid_MoveCursorDown, METH_VARARGS | METH_KEYWORDS }, | |
15703 | { (char *)"Grid_MoveCursorLeft", (PyCFunction) _wrap_Grid_MoveCursorLeft, METH_VARARGS | METH_KEYWORDS }, | |
15704 | { (char *)"Grid_MoveCursorRight", (PyCFunction) _wrap_Grid_MoveCursorRight, METH_VARARGS | METH_KEYWORDS }, | |
15705 | { (char *)"Grid_MovePageDown", (PyCFunction) _wrap_Grid_MovePageDown, METH_VARARGS | METH_KEYWORDS }, | |
15706 | { (char *)"Grid_MovePageUp", (PyCFunction) _wrap_Grid_MovePageUp, METH_VARARGS | METH_KEYWORDS }, | |
15707 | { (char *)"Grid_MoveCursorUpBlock", (PyCFunction) _wrap_Grid_MoveCursorUpBlock, METH_VARARGS | METH_KEYWORDS }, | |
15708 | { (char *)"Grid_MoveCursorDownBlock", (PyCFunction) _wrap_Grid_MoveCursorDownBlock, METH_VARARGS | METH_KEYWORDS }, | |
15709 | { (char *)"Grid_MoveCursorLeftBlock", (PyCFunction) _wrap_Grid_MoveCursorLeftBlock, METH_VARARGS | METH_KEYWORDS }, | |
15710 | { (char *)"Grid_MoveCursorRightBlock", (PyCFunction) _wrap_Grid_MoveCursorRightBlock, METH_VARARGS | METH_KEYWORDS }, | |
15711 | { (char *)"Grid_GetDefaultRowLabelSize", (PyCFunction) _wrap_Grid_GetDefaultRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15712 | { (char *)"Grid_GetRowLabelSize", (PyCFunction) _wrap_Grid_GetRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15713 | { (char *)"Grid_GetDefaultColLabelSize", (PyCFunction) _wrap_Grid_GetDefaultColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15714 | { (char *)"Grid_GetColLabelSize", (PyCFunction) _wrap_Grid_GetColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15715 | { (char *)"Grid_GetLabelBackgroundColour", (PyCFunction) _wrap_Grid_GetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15716 | { (char *)"Grid_GetLabelTextColour", (PyCFunction) _wrap_Grid_GetLabelTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15717 | { (char *)"Grid_GetLabelFont", (PyCFunction) _wrap_Grid_GetLabelFont, METH_VARARGS | METH_KEYWORDS }, | |
15718 | { (char *)"Grid_GetRowLabelAlignment", (PyCFunction) _wrap_Grid_GetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15719 | { (char *)"Grid_GetColLabelAlignment", (PyCFunction) _wrap_Grid_GetColLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15720 | { (char *)"Grid_GetColLabelTextOrientation", (PyCFunction) _wrap_Grid_GetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS }, | |
15721 | { (char *)"Grid_GetRowLabelValue", (PyCFunction) _wrap_Grid_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15722 | { (char *)"Grid_GetColLabelValue", (PyCFunction) _wrap_Grid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15723 | { (char *)"Grid_GetGridLineColour", (PyCFunction) _wrap_Grid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS }, | |
15724 | { (char *)"Grid_GetCellHighlightColour", (PyCFunction) _wrap_Grid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
15725 | { (char *)"Grid_GetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15726 | { (char *)"Grid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15727 | { (char *)"Grid_SetRowLabelSize", (PyCFunction) _wrap_Grid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15728 | { (char *)"Grid_SetColLabelSize", (PyCFunction) _wrap_Grid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15729 | { (char *)"Grid_SetLabelBackgroundColour", (PyCFunction) _wrap_Grid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15730 | { (char *)"Grid_SetLabelTextColour", (PyCFunction) _wrap_Grid_SetLabelTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15731 | { (char *)"Grid_SetLabelFont", (PyCFunction) _wrap_Grid_SetLabelFont, METH_VARARGS | METH_KEYWORDS }, | |
15732 | { (char *)"Grid_SetRowLabelAlignment", (PyCFunction) _wrap_Grid_SetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15733 | { (char *)"Grid_SetColLabelAlignment", (PyCFunction) _wrap_Grid_SetColLabelAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15734 | { (char *)"Grid_SetColLabelTextOrientation", (PyCFunction) _wrap_Grid_SetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS }, | |
15735 | { (char *)"Grid_SetRowLabelValue", (PyCFunction) _wrap_Grid_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15736 | { (char *)"Grid_SetColLabelValue", (PyCFunction) _wrap_Grid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS }, | |
15737 | { (char *)"Grid_SetGridLineColour", (PyCFunction) _wrap_Grid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS }, | |
15738 | { (char *)"Grid_SetCellHighlightColour", (PyCFunction) _wrap_Grid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
15739 | { (char *)"Grid_SetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15740 | { (char *)"Grid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS }, | |
15741 | { (char *)"Grid_EnableDragRowSize", (PyCFunction) _wrap_Grid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15742 | { (char *)"Grid_DisableDragRowSize", (PyCFunction) _wrap_Grid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15743 | { (char *)"Grid_CanDragRowSize", (PyCFunction) _wrap_Grid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15744 | { (char *)"Grid_EnableDragColSize", (PyCFunction) _wrap_Grid_EnableDragColSize, METH_VARARGS | METH_KEYWORDS }, | |
15745 | { (char *)"Grid_DisableDragColSize", (PyCFunction) _wrap_Grid_DisableDragColSize, METH_VARARGS | METH_KEYWORDS }, | |
15746 | { (char *)"Grid_CanDragColSize", (PyCFunction) _wrap_Grid_CanDragColSize, METH_VARARGS | METH_KEYWORDS }, | |
15747 | { (char *)"Grid_EnableDragGridSize", (PyCFunction) _wrap_Grid_EnableDragGridSize, METH_VARARGS | METH_KEYWORDS }, | |
15748 | { (char *)"Grid_DisableDragGridSize", (PyCFunction) _wrap_Grid_DisableDragGridSize, METH_VARARGS | METH_KEYWORDS }, | |
15749 | { (char *)"Grid_CanDragGridSize", (PyCFunction) _wrap_Grid_CanDragGridSize, METH_VARARGS | METH_KEYWORDS }, | |
15750 | { (char *)"Grid_SetAttr", (PyCFunction) _wrap_Grid_SetAttr, METH_VARARGS | METH_KEYWORDS }, | |
15751 | { (char *)"Grid_SetRowAttr", (PyCFunction) _wrap_Grid_SetRowAttr, METH_VARARGS | METH_KEYWORDS }, | |
15752 | { (char *)"Grid_SetColAttr", (PyCFunction) _wrap_Grid_SetColAttr, METH_VARARGS | METH_KEYWORDS }, | |
15753 | { (char *)"Grid_SetColFormatBool", (PyCFunction) _wrap_Grid_SetColFormatBool, METH_VARARGS | METH_KEYWORDS }, | |
15754 | { (char *)"Grid_SetColFormatNumber", (PyCFunction) _wrap_Grid_SetColFormatNumber, METH_VARARGS | METH_KEYWORDS }, | |
15755 | { (char *)"Grid_SetColFormatFloat", (PyCFunction) _wrap_Grid_SetColFormatFloat, METH_VARARGS | METH_KEYWORDS }, | |
15756 | { (char *)"Grid_SetColFormatCustom", (PyCFunction) _wrap_Grid_SetColFormatCustom, METH_VARARGS | METH_KEYWORDS }, | |
15757 | { (char *)"Grid_EnableGridLines", (PyCFunction) _wrap_Grid_EnableGridLines, METH_VARARGS | METH_KEYWORDS }, | |
15758 | { (char *)"Grid_GridLinesEnabled", (PyCFunction) _wrap_Grid_GridLinesEnabled, METH_VARARGS | METH_KEYWORDS }, | |
15759 | { (char *)"Grid_GetDefaultRowSize", (PyCFunction) _wrap_Grid_GetDefaultRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15760 | { (char *)"Grid_GetRowSize", (PyCFunction) _wrap_Grid_GetRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15761 | { (char *)"Grid_GetDefaultColSize", (PyCFunction) _wrap_Grid_GetDefaultColSize, METH_VARARGS | METH_KEYWORDS }, | |
15762 | { (char *)"Grid_GetColSize", (PyCFunction) _wrap_Grid_GetColSize, METH_VARARGS | METH_KEYWORDS }, | |
15763 | { (char *)"Grid_GetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_GetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15764 | { (char *)"Grid_GetCellBackgroundColour", (PyCFunction) _wrap_Grid_GetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15765 | { (char *)"Grid_GetDefaultCellTextColour", (PyCFunction) _wrap_Grid_GetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15766 | { (char *)"Grid_GetCellTextColour", (PyCFunction) _wrap_Grid_GetCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15767 | { (char *)"Grid_GetDefaultCellFont", (PyCFunction) _wrap_Grid_GetDefaultCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15768 | { (char *)"Grid_GetCellFont", (PyCFunction) _wrap_Grid_GetCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15769 | { (char *)"Grid_GetDefaultCellAlignment", (PyCFunction) _wrap_Grid_GetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15770 | { (char *)"Grid_GetCellAlignment", (PyCFunction) _wrap_Grid_GetCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15771 | { (char *)"Grid_GetDefaultCellOverflow", (PyCFunction) _wrap_Grid_GetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15772 | { (char *)"Grid_GetCellOverflow", (PyCFunction) _wrap_Grid_GetCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15773 | { (char *)"Grid_GetCellSize", (PyCFunction) _wrap_Grid_GetCellSize, METH_VARARGS | METH_KEYWORDS }, | |
15774 | { (char *)"Grid_SetDefaultRowSize", (PyCFunction) _wrap_Grid_SetDefaultRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15775 | { (char *)"Grid_SetRowSize", (PyCFunction) _wrap_Grid_SetRowSize, METH_VARARGS | METH_KEYWORDS }, | |
15776 | { (char *)"Grid_SetDefaultColSize", (PyCFunction) _wrap_Grid_SetDefaultColSize, METH_VARARGS | METH_KEYWORDS }, | |
15777 | { (char *)"Grid_SetColSize", (PyCFunction) _wrap_Grid_SetColSize, METH_VARARGS | METH_KEYWORDS }, | |
15778 | { (char *)"Grid_AutoSizeColumn", (PyCFunction) _wrap_Grid_AutoSizeColumn, METH_VARARGS | METH_KEYWORDS }, | |
15779 | { (char *)"Grid_AutoSizeRow", (PyCFunction) _wrap_Grid_AutoSizeRow, METH_VARARGS | METH_KEYWORDS }, | |
15780 | { (char *)"Grid_AutoSizeColumns", (PyCFunction) _wrap_Grid_AutoSizeColumns, METH_VARARGS | METH_KEYWORDS }, | |
15781 | { (char *)"Grid_AutoSizeRows", (PyCFunction) _wrap_Grid_AutoSizeRows, METH_VARARGS | METH_KEYWORDS }, | |
15782 | { (char *)"Grid_AutoSize", (PyCFunction) _wrap_Grid_AutoSize, METH_VARARGS | METH_KEYWORDS }, | |
15783 | { (char *)"Grid_AutoSizeRowLabelSize", (PyCFunction) _wrap_Grid_AutoSizeRowLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15784 | { (char *)"Grid_AutoSizeColLabelSize", (PyCFunction) _wrap_Grid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS }, | |
15785 | { (char *)"Grid_SetColMinimalWidth", (PyCFunction) _wrap_Grid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS }, | |
15786 | { (char *)"Grid_SetRowMinimalHeight", (PyCFunction) _wrap_Grid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS }, | |
15787 | { (char *)"Grid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS }, | |
15788 | { (char *)"Grid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS }, | |
15789 | { (char *)"Grid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS }, | |
15790 | { (char *)"Grid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS }, | |
15791 | { (char *)"Grid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15792 | { (char *)"Grid_SetCellBackgroundColour", (PyCFunction) _wrap_Grid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
15793 | { (char *)"Grid_SetDefaultCellTextColour", (PyCFunction) _wrap_Grid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15794 | { (char *)"Grid_SetCellTextColour", (PyCFunction) _wrap_Grid_SetCellTextColour, METH_VARARGS | METH_KEYWORDS }, | |
15795 | { (char *)"Grid_SetDefaultCellFont", (PyCFunction) _wrap_Grid_SetDefaultCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15796 | { (char *)"Grid_SetCellFont", (PyCFunction) _wrap_Grid_SetCellFont, METH_VARARGS | METH_KEYWORDS }, | |
15797 | { (char *)"Grid_SetDefaultCellAlignment", (PyCFunction) _wrap_Grid_SetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15798 | { (char *)"Grid_SetCellAlignment", (PyCFunction) _wrap_Grid_SetCellAlignment, METH_VARARGS | METH_KEYWORDS }, | |
15799 | { (char *)"Grid_SetDefaultCellOverflow", (PyCFunction) _wrap_Grid_SetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15800 | { (char *)"Grid_SetCellOverflow", (PyCFunction) _wrap_Grid_SetCellOverflow, METH_VARARGS | METH_KEYWORDS }, | |
15801 | { (char *)"Grid_SetCellSize", (PyCFunction) _wrap_Grid_SetCellSize, METH_VARARGS | METH_KEYWORDS }, | |
15802 | { (char *)"Grid_SetDefaultRenderer", (PyCFunction) _wrap_Grid_SetDefaultRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15803 | { (char *)"Grid_SetCellRenderer", (PyCFunction) _wrap_Grid_SetCellRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15804 | { (char *)"Grid_GetDefaultRenderer", (PyCFunction) _wrap_Grid_GetDefaultRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15805 | { (char *)"Grid_GetCellRenderer", (PyCFunction) _wrap_Grid_GetCellRenderer, METH_VARARGS | METH_KEYWORDS }, | |
15806 | { (char *)"Grid_SetDefaultEditor", (PyCFunction) _wrap_Grid_SetDefaultEditor, METH_VARARGS | METH_KEYWORDS }, | |
15807 | { (char *)"Grid_SetCellEditor", (PyCFunction) _wrap_Grid_SetCellEditor, METH_VARARGS | METH_KEYWORDS }, | |
15808 | { (char *)"Grid_GetDefaultEditor", (PyCFunction) _wrap_Grid_GetDefaultEditor, METH_VARARGS | METH_KEYWORDS }, | |
15809 | { (char *)"Grid_GetCellEditor", (PyCFunction) _wrap_Grid_GetCellEditor, METH_VARARGS | METH_KEYWORDS }, | |
15810 | { (char *)"Grid_GetCellValue", (PyCFunction) _wrap_Grid_GetCellValue, METH_VARARGS | METH_KEYWORDS }, | |
15811 | { (char *)"Grid_SetCellValue", (PyCFunction) _wrap_Grid_SetCellValue, METH_VARARGS | METH_KEYWORDS }, | |
15812 | { (char *)"Grid_IsReadOnly", (PyCFunction) _wrap_Grid_IsReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15813 | { (char *)"Grid_SetReadOnly", (PyCFunction) _wrap_Grid_SetReadOnly, METH_VARARGS | METH_KEYWORDS }, | |
15814 | { (char *)"Grid_SelectRow", (PyCFunction) _wrap_Grid_SelectRow, METH_VARARGS | METH_KEYWORDS }, | |
15815 | { (char *)"Grid_SelectCol", (PyCFunction) _wrap_Grid_SelectCol, METH_VARARGS | METH_KEYWORDS }, | |
15816 | { (char *)"Grid_SelectBlock", (PyCFunction) _wrap_Grid_SelectBlock, METH_VARARGS | METH_KEYWORDS }, | |
15817 | { (char *)"Grid_SelectAll", (PyCFunction) _wrap_Grid_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
15818 | { (char *)"Grid_IsSelection", (PyCFunction) _wrap_Grid_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
15819 | { (char *)"Grid_ClearSelection", (PyCFunction) _wrap_Grid_ClearSelection, METH_VARARGS | METH_KEYWORDS }, | |
15820 | { (char *)"Grid_IsInSelection", (PyCFunction) _wrap_Grid_IsInSelection, METH_VARARGS | METH_KEYWORDS }, | |
15821 | { (char *)"Grid_GetSelectedCells", (PyCFunction) _wrap_Grid_GetSelectedCells, METH_VARARGS | METH_KEYWORDS }, | |
15822 | { (char *)"Grid_GetSelectionBlockTopLeft", (PyCFunction) _wrap_Grid_GetSelectionBlockTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
15823 | { (char *)"Grid_GetSelectionBlockBottomRight", (PyCFunction) _wrap_Grid_GetSelectionBlockBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
15824 | { (char *)"Grid_GetSelectedRows", (PyCFunction) _wrap_Grid_GetSelectedRows, METH_VARARGS | METH_KEYWORDS }, | |
15825 | { (char *)"Grid_GetSelectedCols", (PyCFunction) _wrap_Grid_GetSelectedCols, METH_VARARGS | METH_KEYWORDS }, | |
15826 | { (char *)"Grid_DeselectRow", (PyCFunction) _wrap_Grid_DeselectRow, METH_VARARGS | METH_KEYWORDS }, | |
15827 | { (char *)"Grid_DeselectCol", (PyCFunction) _wrap_Grid_DeselectCol, METH_VARARGS | METH_KEYWORDS }, | |
15828 | { (char *)"Grid_DeselectCell", (PyCFunction) _wrap_Grid_DeselectCell, METH_VARARGS | METH_KEYWORDS }, | |
15829 | { (char *)"Grid_BlockToDeviceRect", (PyCFunction) _wrap_Grid_BlockToDeviceRect, METH_VARARGS | METH_KEYWORDS }, | |
15830 | { (char *)"Grid_GetSelectionBackground", (PyCFunction) _wrap_Grid_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
15831 | { (char *)"Grid_GetSelectionForeground", (PyCFunction) _wrap_Grid_GetSelectionForeground, METH_VARARGS | METH_KEYWORDS }, | |
15832 | { (char *)"Grid_SetSelectionBackground", (PyCFunction) _wrap_Grid_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
15833 | { (char *)"Grid_SetSelectionForeground", (PyCFunction) _wrap_Grid_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS }, | |
15834 | { (char *)"Grid_RegisterDataType", (PyCFunction) _wrap_Grid_RegisterDataType, METH_VARARGS | METH_KEYWORDS }, | |
15835 | { (char *)"Grid_GetDefaultEditorForCell", (PyCFunction) _wrap_Grid_GetDefaultEditorForCell, METH_VARARGS | METH_KEYWORDS }, | |
15836 | { (char *)"Grid_GetDefaultRendererForCell", (PyCFunction) _wrap_Grid_GetDefaultRendererForCell, METH_VARARGS | METH_KEYWORDS }, | |
15837 | { (char *)"Grid_GetDefaultEditorForType", (PyCFunction) _wrap_Grid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS }, | |
15838 | { (char *)"Grid_GetDefaultRendererForType", (PyCFunction) _wrap_Grid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS }, | |
15839 | { (char *)"Grid_SetMargins", (PyCFunction) _wrap_Grid_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
15840 | { (char *)"Grid_GetGridWindow", (PyCFunction) _wrap_Grid_GetGridWindow, METH_VARARGS | METH_KEYWORDS }, | |
15841 | { (char *)"Grid_GetGridRowLabelWindow", (PyCFunction) _wrap_Grid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS }, | |
15842 | { (char *)"Grid_GetGridColLabelWindow", (PyCFunction) _wrap_Grid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS }, | |
15843 | { (char *)"Grid_GetGridCornerLabelWindow", (PyCFunction) _wrap_Grid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS }, | |
15844 | { (char *)"Grid_swigregister", Grid_swigregister, METH_VARARGS }, | |
15845 | { (char *)"new_GridEvent", (PyCFunction) _wrap_new_GridEvent, METH_VARARGS | METH_KEYWORDS }, | |
15846 | { (char *)"GridEvent_GetRow", (PyCFunction) _wrap_GridEvent_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
15847 | { (char *)"GridEvent_GetCol", (PyCFunction) _wrap_GridEvent_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
15848 | { (char *)"GridEvent_GetPosition", (PyCFunction) _wrap_GridEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
15849 | { (char *)"GridEvent_Selecting", (PyCFunction) _wrap_GridEvent_Selecting, METH_VARARGS | METH_KEYWORDS }, | |
15850 | { (char *)"GridEvent_ControlDown", (PyCFunction) _wrap_GridEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
15851 | { (char *)"GridEvent_MetaDown", (PyCFunction) _wrap_GridEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
15852 | { (char *)"GridEvent_ShiftDown", (PyCFunction) _wrap_GridEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
15853 | { (char *)"GridEvent_AltDown", (PyCFunction) _wrap_GridEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
15854 | { (char *)"GridEvent_swigregister", GridEvent_swigregister, METH_VARARGS }, | |
15855 | { (char *)"new_GridSizeEvent", (PyCFunction) _wrap_new_GridSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
15856 | { (char *)"GridSizeEvent_GetRowOrCol", (PyCFunction) _wrap_GridSizeEvent_GetRowOrCol, METH_VARARGS | METH_KEYWORDS }, | |
15857 | { (char *)"GridSizeEvent_GetPosition", (PyCFunction) _wrap_GridSizeEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
15858 | { (char *)"GridSizeEvent_ControlDown", (PyCFunction) _wrap_GridSizeEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
15859 | { (char *)"GridSizeEvent_MetaDown", (PyCFunction) _wrap_GridSizeEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
15860 | { (char *)"GridSizeEvent_ShiftDown", (PyCFunction) _wrap_GridSizeEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
15861 | { (char *)"GridSizeEvent_AltDown", (PyCFunction) _wrap_GridSizeEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
15862 | { (char *)"GridSizeEvent_swigregister", GridSizeEvent_swigregister, METH_VARARGS }, | |
15863 | { (char *)"new_GridRangeSelectEvent", (PyCFunction) _wrap_new_GridRangeSelectEvent, METH_VARARGS | METH_KEYWORDS }, | |
15864 | { (char *)"GridRangeSelectEvent_GetTopLeftCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopLeftCoords, METH_VARARGS | METH_KEYWORDS }, | |
15865 | { (char *)"GridRangeSelectEvent_GetBottomRightCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRightCoords, METH_VARARGS | METH_KEYWORDS }, | |
15866 | { (char *)"GridRangeSelectEvent_GetTopRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopRow, METH_VARARGS | METH_KEYWORDS }, | |
15867 | { (char *)"GridRangeSelectEvent_GetBottomRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRow, METH_VARARGS | METH_KEYWORDS }, | |
15868 | { (char *)"GridRangeSelectEvent_GetLeftCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetLeftCol, METH_VARARGS | METH_KEYWORDS }, | |
15869 | { (char *)"GridRangeSelectEvent_GetRightCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetRightCol, METH_VARARGS | METH_KEYWORDS }, | |
15870 | { (char *)"GridRangeSelectEvent_Selecting", (PyCFunction) _wrap_GridRangeSelectEvent_Selecting, METH_VARARGS | METH_KEYWORDS }, | |
15871 | { (char *)"GridRangeSelectEvent_ControlDown", (PyCFunction) _wrap_GridRangeSelectEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
15872 | { (char *)"GridRangeSelectEvent_MetaDown", (PyCFunction) _wrap_GridRangeSelectEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
15873 | { (char *)"GridRangeSelectEvent_ShiftDown", (PyCFunction) _wrap_GridRangeSelectEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
15874 | { (char *)"GridRangeSelectEvent_AltDown", (PyCFunction) _wrap_GridRangeSelectEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
15875 | { (char *)"GridRangeSelectEvent_swigregister", GridRangeSelectEvent_swigregister, METH_VARARGS }, | |
15876 | { (char *)"new_GridEditorCreatedEvent", (PyCFunction) _wrap_new_GridEditorCreatedEvent, METH_VARARGS | METH_KEYWORDS }, | |
15877 | { (char *)"GridEditorCreatedEvent_GetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
15878 | { (char *)"GridEditorCreatedEvent_GetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
15879 | { (char *)"GridEditorCreatedEvent_GetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
15880 | { (char *)"GridEditorCreatedEvent_SetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
15881 | { (char *)"GridEditorCreatedEvent_SetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
15882 | { (char *)"GridEditorCreatedEvent_SetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_SetControl, METH_VARARGS | METH_KEYWORDS }, | |
15883 | { (char *)"GridEditorCreatedEvent_swigregister", GridEditorCreatedEvent_swigregister, METH_VARARGS }, | |
15884 | { NULL, NULL } | |
15885 | }; | |
15886 | ||
15887 | ||
15888 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
15889 | ||
15890 | static void *_p_wxPyGridCellRendererTo_p_wxGridCellRenderer(void *x) { | |
15891 | return (void *)((wxGridCellRenderer *) ((wxPyGridCellRenderer *) x)); | |
15892 | } | |
15893 | static void *_p_wxGridCellStringRendererTo_p_wxGridCellRenderer(void *x) { | |
15894 | return (void *)((wxGridCellRenderer *) ((wxGridCellStringRenderer *) x)); | |
15895 | } | |
15896 | static void *_p_wxGridCellNumberRendererTo_p_wxGridCellRenderer(void *x) { | |
15897 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x)); | |
15898 | } | |
15899 | static void *_p_wxGridCellFloatRendererTo_p_wxGridCellRenderer(void *x) { | |
15900 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x)); | |
15901 | } | |
15902 | static void *_p_wxGridCellBoolRendererTo_p_wxGridCellRenderer(void *x) { | |
15903 | return (void *)((wxGridCellRenderer *) ((wxGridCellBoolRenderer *) x)); | |
15904 | } | |
15905 | static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer(void *x) { | |
15906 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x)); | |
15907 | } | |
15908 | static void *_p_wxGridCellEnumRendererTo_p_wxGridCellRenderer(void *x) { | |
15909 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x)); | |
15910 | } | |
15911 | static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer(void *x) { | |
15912 | return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x)); | |
15913 | } | |
15914 | static void *_p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15915 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x)); | |
15916 | } | |
15917 | static void *_p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15918 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x)); | |
15919 | } | |
15920 | static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15921 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x)); | |
15922 | } | |
15923 | static void *_p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15924 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x)); | |
15925 | } | |
15926 | static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer(void *x) { | |
15927 | return (void *)((wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x)); | |
15928 | } | |
15929 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
15930 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
15931 | } | |
15932 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
15933 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
15934 | } | |
823f0cfe RD |
15935 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { |
15936 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
15937 | } | |
d14a1e28 RD |
15938 | static void *_p_wxGridTo_p_wxPanel(void *x) { |
15939 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxGrid *) x)); | |
15940 | } | |
15941 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
15942 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
15943 | } | |
15944 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
15945 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
15946 | } | |
15947 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
15948 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
15949 | } | |
15950 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
15951 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
15952 | } | |
15953 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
15954 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
15955 | } | |
15956 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
15957 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
15958 | } | |
15959 | static void *_p_wxGridSizeEventTo_p_wxNotifyEvent(void *x) { | |
15960 | return (void *)((wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
15961 | } | |
15962 | static void *_p_wxGridRangeSelectEventTo_p_wxNotifyEvent(void *x) { | |
15963 | return (void *)((wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
15964 | } | |
15965 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
15966 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
15967 | } | |
15968 | static void *_p_wxGridEventTo_p_wxNotifyEvent(void *x) { | |
15969 | return (void *)((wxNotifyEvent *) ((wxGridEvent *) x)); | |
15970 | } | |
823f0cfe RD |
15971 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { |
15972 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
15973 | } | |
d14a1e28 RD |
15974 | static void *_p_wxGridTo_p_wxScrolledWindow(void *x) { |
15975 | return (void *)((wxScrolledWindow *) ((wxGrid *) x)); | |
15976 | } | |
15977 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
15978 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
15979 | } | |
15980 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
15981 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
15982 | } | |
15983 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
15984 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
15985 | } | |
15986 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
15987 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
15988 | } | |
15989 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
15990 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
15991 | } | |
15992 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
15993 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
15994 | } | |
15995 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
15996 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
15997 | } | |
15998 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
15999 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
16000 | } | |
16001 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
16002 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
16003 | } | |
16004 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
16005 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
16006 | } | |
16007 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
16008 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
16009 | } | |
16010 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
16011 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
16012 | } | |
16013 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
16014 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
16015 | } | |
16016 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
16017 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
16018 | } | |
16019 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
16020 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
16021 | } | |
16022 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
16023 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16024 | } | |
16025 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
16026 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
16027 | } | |
16028 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
16029 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
16030 | } | |
16031 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
16032 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
16033 | } | |
16034 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
16035 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
16036 | } | |
16037 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
16038 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
16039 | } | |
16040 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
16041 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
16042 | } | |
16043 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
16044 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
16045 | } | |
16046 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
16047 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
16048 | } | |
16049 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
16050 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
16051 | } | |
823f0cfe RD |
16052 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { |
16053 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
16054 | } | |
d14a1e28 RD |
16055 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
16056 | return (void *)((wxWindow *) ((wxControl *) x)); | |
16057 | } | |
16058 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
16059 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
16060 | } | |
16061 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
16062 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
16063 | } | |
16064 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
16065 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
16066 | } | |
16067 | static void *_p_wxGridTo_p_wxWindow(void *x) { | |
16068 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
16069 | } | |
16070 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
16071 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
16072 | } | |
16073 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
16074 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
16075 | } | |
16076 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
16077 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16078 | } | |
16079 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
16080 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16081 | } | |
16082 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
16083 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16084 | } | |
16085 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
16086 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
16087 | } | |
16088 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
16089 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16090 | } | |
16091 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
16092 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
16093 | } | |
16094 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
16095 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16096 | } | |
16097 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
16098 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16099 | } | |
16100 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
16101 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16102 | } | |
16103 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
16104 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
16105 | } | |
16106 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
16107 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
16108 | } | |
16109 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
16110 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
16111 | } | |
16112 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
16113 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16114 | } | |
16115 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
16116 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
16117 | } | |
16118 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
16119 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16120 | } | |
16121 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
16122 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
16123 | } | |
16124 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
16125 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
16126 | } | |
16127 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
16128 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
16129 | } | |
16130 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
16131 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
16132 | } | |
16133 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
16134 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
16135 | } | |
16136 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
16137 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16138 | } | |
16139 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
16140 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
16141 | } | |
16142 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
16143 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
16144 | } | |
16145 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
16146 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16147 | } | |
16148 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
16149 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
16150 | } | |
16151 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
16152 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16153 | } | |
16154 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
16155 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
16156 | } | |
16157 | static void *_p_wxGridRangeSelectEventTo_p_wxEvent(void *x) { | |
16158 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16159 | } | |
16160 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
16161 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
16162 | } | |
16163 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
16164 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16165 | } | |
16166 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
16167 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
16168 | } | |
16169 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
16170 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
16171 | } | |
16172 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
16173 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
16174 | } | |
16175 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
16176 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
16177 | } | |
16178 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
16179 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
16180 | } | |
16181 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
16182 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
16183 | } | |
16184 | static void *_p_wxGridSizeEventTo_p_wxEvent(void *x) { | |
16185 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16186 | } | |
16187 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
16188 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
16189 | } | |
16190 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
16191 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
16192 | } | |
16193 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
16194 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16195 | } | |
16196 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
16197 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
16198 | } | |
16199 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
16200 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
16201 | } | |
16202 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
16203 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
16204 | } | |
16205 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
16206 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
16207 | } | |
16208 | static void *_p_wxGridEventTo_p_wxEvent(void *x) { | |
16209 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x)); | |
16210 | } | |
16211 | static void *_p_wxGridEditorCreatedEventTo_p_wxEvent(void *x) { | |
16212 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16213 | } | |
16214 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
16215 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
16216 | } | |
16217 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
16218 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
16219 | } | |
16220 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
16221 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16222 | } | |
16223 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
16224 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
16225 | } | |
16226 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
16227 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
16228 | } | |
16229 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
16230 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
16231 | } | |
16232 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
16233 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
16234 | } | |
16235 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
16236 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16237 | } | |
16238 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
16239 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16240 | } | |
16241 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
16242 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
16243 | } | |
16244 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
16245 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
16246 | } | |
16247 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
16248 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
16249 | } | |
16250 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
16251 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
16252 | } | |
16253 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
16254 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
16255 | } | |
16256 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
16257 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
16258 | } | |
16259 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
16260 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
16261 | } | |
16262 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
16263 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
16264 | } | |
16265 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
16266 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
16267 | } | |
16268 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
16269 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
16270 | } | |
16271 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
16272 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
16273 | } | |
16274 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
16275 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
16276 | } | |
16277 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
16278 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
16279 | } | |
16280 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
16281 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
16282 | } | |
16283 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
16284 | return (void *)((wxObject *) ((wxSizer *) x)); | |
16285 | } | |
16286 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
16287 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
16288 | } | |
16289 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
16290 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16291 | } | |
16292 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
16293 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
16294 | } | |
16295 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
16296 | return (void *)((wxObject *) ((wxEvent *) x)); | |
16297 | } | |
16298 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
16299 | return (void *)((wxObject *) ((wxFontData *) x)); | |
16300 | } | |
16301 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
16302 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
16303 | } | |
16304 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
16305 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
16306 | } | |
16307 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
16308 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
16309 | } | |
16310 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
16311 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
16312 | } | |
16313 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
16314 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
16315 | } | |
16316 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
16317 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
16318 | } | |
16319 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
16320 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16321 | } | |
16322 | static void *_p_wxGridStringTableTo_p_wxObject(void *x) { | |
16323 | return (void *)((wxObject *) (wxGridTableBase *) ((wxGridStringTable *) x)); | |
16324 | } | |
16325 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
16326 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
16327 | } | |
16328 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
16329 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
16330 | } | |
16331 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
16332 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
16333 | } | |
16334 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
16335 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
16336 | } | |
16337 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
16338 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
16339 | } | |
16340 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
16341 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
16342 | } | |
16343 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
16344 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16345 | } | |
16346 | static void *_p_wxGridEventTo_p_wxObject(void *x) { | |
16347 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x)); | |
16348 | } | |
16349 | static void *_p_wxGridEditorCreatedEventTo_p_wxObject(void *x) { | |
16350 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16351 | } | |
16352 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
16353 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
16354 | } | |
16355 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
16356 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
16357 | } | |
16358 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
16359 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16360 | } | |
16361 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
16362 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
16363 | } | |
16364 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
16365 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
16366 | } | |
16367 | static void *_p_wxGridTo_p_wxObject(void *x) { | |
16368 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
16369 | } | |
16370 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
16371 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
16372 | } | |
16373 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
16374 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
16375 | } | |
16376 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
16377 | return (void *)((wxObject *) ((wxColourData *) x)); | |
16378 | } | |
16379 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
16380 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
16381 | } | |
16382 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
16383 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16384 | } | |
16385 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
16386 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
16387 | } | |
16388 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
16389 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
16390 | } | |
16391 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
16392 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
16393 | } | |
16394 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
16395 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
16396 | } | |
16397 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
16398 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
16399 | } | |
16400 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
16401 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
16402 | } | |
16403 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
16404 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
16405 | } | |
16406 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
16407 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
16408 | } | |
16409 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
16410 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
16411 | } | |
16412 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
16413 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
16414 | } | |
16415 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
16416 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
16417 | } | |
16418 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
16419 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
16420 | } | |
16421 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
16422 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
16423 | } | |
16424 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
16425 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16426 | } | |
16427 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
16428 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
16429 | } | |
16430 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
16431 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
16432 | } | |
16433 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
16434 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
16435 | } | |
16436 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
16437 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
16438 | } | |
16439 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
16440 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
16441 | } | |
16442 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
16443 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
16444 | } | |
16445 | static void *_p_wxGridSizeEventTo_p_wxObject(void *x) { | |
16446 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16447 | } | |
16448 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
16449 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
16450 | } | |
16451 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
16452 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
16453 | } | |
16454 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
16455 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
16456 | } | |
16457 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
16458 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
16459 | } | |
16460 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
16461 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
16462 | } | |
16463 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
16464 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
16465 | } | |
16466 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
16467 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
16468 | } | |
16469 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
16470 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
16471 | } | |
16472 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
16473 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
16474 | } | |
16475 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
16476 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
16477 | } | |
16478 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
16479 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
16480 | } | |
16481 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
16482 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
16483 | } | |
16484 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
16485 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
16486 | } | |
16487 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
16488 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
16489 | } | |
16490 | static void *_p_wxGridRangeSelectEventTo_p_wxObject(void *x) { | |
16491 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16492 | } | |
16493 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
16494 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16495 | } | |
16496 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
16497 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16498 | } | |
16499 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
16500 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
16501 | } | |
16502 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
16503 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
16504 | } | |
16505 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
16506 | return (void *)((wxObject *) ((wxImage *) x)); | |
16507 | } | |
16508 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
16509 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
16510 | } | |
16511 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
16512 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
16513 | } | |
16514 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
16515 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
16516 | } | |
16517 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
16518 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
16519 | } | |
16520 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
16521 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
16522 | } | |
16523 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
16524 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16525 | } | |
16526 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
16527 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16528 | } | |
16529 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
16530 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
16531 | } | |
16532 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
16533 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
16534 | } | |
d14a1e28 RD |
16535 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
16536 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
16537 | } | |
16538 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
16539 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
16540 | } | |
16541 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
16542 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
16543 | } | |
0df68c9f RD |
16544 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { |
16545 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
16546 | } | |
d14a1e28 RD |
16547 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { |
16548 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
16549 | } | |
16550 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
16551 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
16552 | } | |
16553 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
16554 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
16555 | } | |
16556 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
16557 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
16558 | } | |
16559 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
16560 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
16561 | } | |
16562 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
16563 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
16564 | } | |
16565 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
16566 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
16567 | } | |
16568 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
16569 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
16570 | } | |
16571 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
16572 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16573 | } | |
16574 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
16575 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
16576 | } | |
823f0cfe RD |
16577 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { |
16578 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
16579 | } | |
d14a1e28 RD |
16580 | static void *_p_wxSashEventTo_p_wxObject(void *x) { |
16581 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
16582 | } | |
16583 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
16584 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
16585 | } | |
16586 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
16587 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
16588 | } | |
16589 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
16590 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
16591 | } | |
16592 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
16593 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
16594 | } | |
16595 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
16596 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16597 | } | |
16598 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
16599 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16600 | } | |
16601 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
16602 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16603 | } | |
16604 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
16605 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
16606 | } | |
16607 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
16608 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
16609 | } | |
16610 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
16611 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
16612 | } | |
16613 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
16614 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16615 | } | |
16616 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
16617 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
16618 | } | |
16619 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
16620 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
16621 | } | |
16622 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
16623 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
16624 | } | |
16625 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
16626 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
16627 | } | |
16628 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
16629 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
16630 | } | |
16631 | static void *_p_wxGridTableBaseTo_p_wxObject(void *x) { | |
16632 | return (void *)((wxObject *) ((wxGridTableBase *) x)); | |
16633 | } | |
16634 | static void *_p_wxPyGridTableBaseTo_p_wxObject(void *x) { | |
16635 | return (void *)((wxObject *) (wxGridTableBase *) ((wxPyGridTableBase *) x)); | |
16636 | } | |
16637 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
16638 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16639 | } | |
16640 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
16641 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
16642 | } | |
16643 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
16644 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
16645 | } | |
16646 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
16647 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16648 | } | |
16649 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
16650 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
16651 | } | |
16652 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
16653 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
16654 | } | |
16655 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
16656 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16657 | } | |
16658 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
16659 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
16660 | } | |
16661 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
16662 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
16663 | } | |
16664 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
16665 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
16666 | } | |
16667 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
16668 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
16669 | } | |
16670 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
16671 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
16672 | } | |
16673 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
16674 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
16675 | } | |
16676 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
16677 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
16678 | } | |
16679 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
16680 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
16681 | } | |
16682 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
16683 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
16684 | } | |
16685 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
16686 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
16687 | } | |
16688 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
16689 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
16690 | } | |
16691 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
16692 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
16693 | } | |
16694 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
16695 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
16696 | } | |
16697 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
16698 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
16699 | } | |
16700 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
16701 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
16702 | } | |
16703 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
16704 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
16705 | } | |
16706 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
16707 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
16708 | } | |
16709 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
16710 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
16711 | } | |
16712 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
16713 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
16714 | } | |
16715 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
16716 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
16717 | } | |
16718 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
16719 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
16720 | } | |
16721 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
16722 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
16723 | } | |
16724 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
16725 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
16726 | } | |
16727 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
16728 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
16729 | } | |
16730 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
16731 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
16732 | } | |
16733 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
16734 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
16735 | } | |
16736 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
16737 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
16738 | } | |
16739 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
16740 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
16741 | } | |
16742 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
16743 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
16744 | } | |
16745 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
16746 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
16747 | } | |
16748 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
16749 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
16750 | } | |
16751 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
16752 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
16753 | } | |
16754 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
16755 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
16756 | } | |
823f0cfe RD |
16757 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { |
16758 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
16759 | } | |
d14a1e28 RD |
16760 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { |
16761 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
16762 | } | |
16763 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
16764 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
16765 | } | |
16766 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
16767 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
16768 | } | |
16769 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
16770 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
16771 | } | |
16772 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
16773 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
16774 | } | |
16775 | static void *_p_wxGridTo_p_wxEvtHandler(void *x) { | |
16776 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x)); | |
16777 | } | |
16778 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
16779 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
16780 | } | |
16781 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
16782 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
16783 | } | |
16784 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
16785 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
16786 | } | |
16787 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
16788 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
16789 | } | |
16790 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
16791 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
16792 | } | |
16793 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
16794 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
16795 | } | |
16796 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
16797 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
16798 | } | |
16799 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
16800 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
16801 | } | |
16802 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
16803 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
16804 | } | |
16805 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
16806 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
16807 | } | |
16808 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
16809 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
16810 | } | |
16811 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
16812 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
16813 | } | |
16814 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
16815 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
16816 | } | |
16817 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
16818 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
16819 | } | |
16820 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
16821 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
16822 | } | |
16823 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
16824 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
16825 | } | |
16826 | static void *_p_wxGridStringTableTo_p_wxGridTableBase(void *x) { | |
16827 | return (void *)((wxGridTableBase *) ((wxGridStringTable *) x)); | |
16828 | } | |
16829 | static void *_p_wxPyGridTableBaseTo_p_wxGridTableBase(void *x) { | |
16830 | return (void *)((wxGridTableBase *) ((wxPyGridTableBase *) x)); | |
16831 | } | |
16832 | static void *_p_wxPyGridCellEditorTo_p_wxGridCellEditor(void *x) { | |
16833 | return (void *)((wxGridCellEditor *) ((wxPyGridCellEditor *) x)); | |
16834 | } | |
16835 | static void *_p_wxGridCellTextEditorTo_p_wxGridCellEditor(void *x) { | |
16836 | return (void *)((wxGridCellEditor *) ((wxGridCellTextEditor *) x)); | |
16837 | } | |
16838 | static void *_p_wxGridCellNumberEditorTo_p_wxGridCellEditor(void *x) { | |
16839 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x)); | |
16840 | } | |
16841 | static void *_p_wxGridCellFloatEditorTo_p_wxGridCellEditor(void *x) { | |
16842 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x)); | |
16843 | } | |
16844 | static void *_p_wxGridCellBoolEditorTo_p_wxGridCellEditor(void *x) { | |
16845 | return (void *)((wxGridCellEditor *) ((wxGridCellBoolEditor *) x)); | |
16846 | } | |
16847 | static void *_p_wxGridCellChoiceEditorTo_p_wxGridCellEditor(void *x) { | |
16848 | return (void *)((wxGridCellEditor *) ((wxGridCellChoiceEditor *) x)); | |
16849 | } | |
16850 | static void *_p_wxGridCellEnumEditorTo_p_wxGridCellEditor(void *x) { | |
16851 | return (void *)((wxGridCellEditor *) (wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x)); | |
16852 | } | |
16853 | static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor(void *x) { | |
16854 | return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x)); | |
16855 | } | |
16856 | static void *_p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor(void *x) { | |
16857 | return (void *)((wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x)); | |
16858 | } | |
16859 | static void *_p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor(void *x) { | |
16860 | return (void *)((wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x)); | |
16861 | } | |
16862 | static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor(void *x) { | |
16863 | return (void *)((wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x)); | |
16864 | } | |
16865 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
16866 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
16867 | } | |
16868 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
16869 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
16870 | } | |
16871 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
16872 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
16873 | } | |
16874 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
16875 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
16876 | } | |
16877 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
16878 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
16879 | } | |
16880 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
16881 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
16882 | } | |
16883 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
16884 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
16885 | } | |
16886 | static void *_p_wxGridRangeSelectEventTo_p_wxCommandEvent(void *x) { | |
16887 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridRangeSelectEvent *) x)); | |
16888 | } | |
16889 | static void *_p_wxGridSizeEventTo_p_wxCommandEvent(void *x) { | |
16890 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridSizeEvent *) x)); | |
16891 | } | |
16892 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
16893 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
16894 | } | |
16895 | static void *_p_wxGridEventTo_p_wxCommandEvent(void *x) { | |
16896 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridEvent *) x)); | |
16897 | } | |
16898 | static void *_p_wxGridEditorCreatedEventTo_p_wxCommandEvent(void *x) { | |
16899 | return (void *)((wxCommandEvent *) ((wxGridEditorCreatedEvent *) x)); | |
16900 | } | |
16901 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
16902 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
16903 | } | |
16904 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
16905 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
16906 | } | |
16907 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
16908 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
16909 | } | |
16910 | static void *_p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider(void *x) { | |
16911 | return (void *)((wxGridCellAttrProvider *) ((wxPyGridCellAttrProvider *) x)); | |
16912 | } | |
16913 | static void *_p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor(void *x) { | |
16914 | return (void *)((wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x)); | |
16915 | } | |
15afbcd0 RD |
16916 | 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}}; |
16917 | 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}}; | |
16918 | 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}}; | |
16919 | 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}}; | |
16920 | 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}}; | |
16921 | 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}}; | |
16922 | 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}}; | |
16923 | 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}}; | |
16924 | 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}}; | |
16925 | 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}}; | |
16926 | 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}}; | |
16927 | 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}}; | |
16928 | 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}}; | |
16929 | 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}}; | |
16930 | 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}}; | |
823f0cfe | 16931 | 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}}; |
15afbcd0 RD |
16932 | 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}}; |
16933 | 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}}; | |
16934 | 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}}; | |
16935 | 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}}; | |
823f0cfe RD |
16936 | 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}}; |
16937 | 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_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_wxMDIClientWindow", _p_wxMDIClientWindowTo_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_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_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_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_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_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}}; | |
15afbcd0 RD |
16938 | 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}}; |
16939 | 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}}; | |
16940 | 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}}; | |
823f0cfe | 16941 | 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_wxTaskBarIcon", _p_wxTaskBarIconTo_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_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_wxCURHandler", _p_wxCURHandlerTo_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_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}}; |
15afbcd0 RD |
16942 | 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}}; |
16943 | 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}}; | |
16944 | 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}}; | |
16945 | 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}}; | |
823f0cfe | 16946 | 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_wxProgressDialog", _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_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_wxFileDialog", _p_wxFileDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_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_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_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_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_wxTaskBarIcon", _p_wxTaskBarIconTo_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_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_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}}; |
15afbcd0 RD |
16947 | 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}}; |
16948 | 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}}; | |
16949 | 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}}; | |
16950 | 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}}; | |
16951 | 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}}; | |
16952 | 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}}; | |
16953 | 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}}; | |
16954 | 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}}; | |
16955 | 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}}; | |
16956 | 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}}; | |
16957 | 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}}; | |
16958 | 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}}; | |
16959 | 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}}; | |
16960 | 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}}; | |
16961 | 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}}; | |
16962 | 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}}; | |
16963 | 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}}; | |
16964 | 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}}; | |
16965 | 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}}; | |
16966 | 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}}; | |
16967 | 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 |
16968 | |
16969 | static swig_type_info *swig_types_initial[] = { | |
16970 | _swigt__p_wxGridCellAutoWrapStringRenderer, | |
16971 | _swigt__p_wxGridCellEnumRenderer, | |
16972 | _swigt__p_wxGridCellDateTimeRenderer, | |
16973 | _swigt__p_wxGridCellBoolRenderer, | |
16974 | _swigt__p_wxGridCellFloatRenderer, | |
16975 | _swigt__p_wxGridCellNumberRenderer, | |
16976 | _swigt__p_wxPyGridCellRenderer, | |
16977 | _swigt__p_wxGridCellRenderer, | |
16978 | _swigt__p_wxGridCellStringRenderer, | |
16979 | _swigt__p_wxGridCellAttr, | |
16980 | _swigt__p_wxColour, | |
16981 | _swigt__p_wxDC, | |
16982 | _swigt__p_wxGridTableMessage, | |
16983 | _swigt__p_wxGrid, | |
994141e6 | 16984 | _swigt__p_char, |
d14a1e28 RD |
16985 | _swigt__p_wxPanel, |
16986 | _swigt__p_wxNotifyEvent, | |
16987 | _swigt__p_wxGridRangeSelectEvent, | |
16988 | _swigt__p_wxSize, | |
16989 | _swigt__p_wxGridCellCoords, | |
16990 | _swigt__p_wxScrolledWindow, | |
16991 | _swigt__p_wxWindow, | |
16992 | _swigt__p_wxFont, | |
16993 | _swigt__p_wxControl, | |
16994 | _swigt__p_wxEvent, | |
16995 | _swigt__p_wxObject, | |
16996 | _swigt__p_wxGridSizeEvent, | |
16997 | _swigt__p_wxRect, | |
16998 | _swigt__p_long, | |
16999 | _swigt__p_wxString, | |
17000 | _swigt__p_wxEvtHandler, | |
17001 | _swigt__p_wxPoint, | |
17002 | _swigt__p_wxGridEvent, | |
17003 | _swigt__p_wxGridEditorCreatedEvent, | |
17004 | _swigt__p_wxGridTableBase, | |
d14a1e28 RD |
17005 | _swigt__p_wxGridCellNumberEditor, |
17006 | _swigt__p_wxPyGridCellEditor, | |
17007 | _swigt__p_wxGridCellEditor, | |
17008 | _swigt__p_wxGridCellTextEditor, | |
994141e6 | 17009 | _swigt__p_wxGridCellFloatEditor, |
d14a1e28 RD |
17010 | _swigt__p_wxGridCellBoolEditor, |
17011 | _swigt__p_wxPyGridTableBase, | |
17012 | _swigt__p_wxGridStringTable, | |
17013 | _swigt__p_wxArrayString, | |
17014 | _swigt__p_wxCommandEvent, | |
17015 | _swigt__p_wxGridCellAttrProvider, | |
17016 | _swigt__p_wxKeyEvent, | |
17017 | _swigt__p_wxGridCellChoiceEditor, | |
17018 | _swigt__p_wxGridCellEnumEditor, | |
17019 | _swigt__p_wxGridCellAutoWrapStringEditor, | |
17020 | _swigt__p_int, | |
17021 | _swigt__p_wxPyGridCellAttrProvider, | |
17022 | 0 | |
17023 | }; | |
17024 | ||
17025 | ||
17026 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
17027 | ||
17028 | static swig_const_info swig_const_table[] = { | |
15afbcd0 RD |
17029 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_STRING", 0, 0, (void *)"string", &SWIGTYPE_p_char}, |
17030 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_BOOL", 0, 0, (void *)"bool", &SWIGTYPE_p_char}, | |
17031 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_NUMBER", 0, 0, (void *)"long", &SWIGTYPE_p_char}, | |
17032 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_FLOAT", 0, 0, (void *)"double", &SWIGTYPE_p_char}, | |
17033 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_CHOICE", 0, 0, (void *)"choice", &SWIGTYPE_p_char}, | |
17034 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_TEXT", 0, 0, (void *)"string", &SWIGTYPE_p_char}, | |
17035 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_LONG", 0, 0, (void *)"long", &SWIGTYPE_p_char}, | |
17036 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_CHOICEINT", 0, 0, (void *)"choiceint", &SWIGTYPE_p_char}, | |
17037 | { SWIG_PY_POINTER, (char*)"GRID_VALUE_DATETIME", 0, 0, (void *)"datetime", &SWIGTYPE_p_char}, | |
d14a1e28 RD |
17038 | {0}}; |
17039 | ||
17040 | #ifdef __cplusplus | |
17041 | } | |
17042 | #endif | |
17043 | ||
17044 | #ifdef __cplusplus | |
17045 | extern "C" | |
17046 | #endif | |
17047 | SWIGEXPORT(void) SWIG_init(void) { | |
17048 | static PyObject *SWIG_globals = 0; | |
17049 | static int typeinit = 0; | |
17050 | PyObject *m, *d; | |
17051 | int i; | |
17052 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
17053 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
17054 | d = PyModule_GetDict(m); | |
17055 | ||
17056 | if (!typeinit) { | |
17057 | for (i = 0; swig_types_initial[i]; i++) { | |
17058 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
17059 | } | |
17060 | typeinit = 1; | |
17061 | } | |
17062 | SWIG_InstallConstants(d,swig_const_table); | |
17063 | ||
17064 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
b2dc1044 | 17065 | SWIG_addvarlink(SWIG_globals,(char*)"DateTimeFormatStr",_wrap_DateTimeFormatStr_get, _wrap_DateTimeFormatStr_set); |
15afbcd0 RD |
17066 | PyDict_SetItemString(d,"GRID_VALUE_STRING", SWIG_FromCharPtr("string")); |
17067 | PyDict_SetItemString(d,"GRID_VALUE_BOOL", SWIG_FromCharPtr("bool")); | |
17068 | PyDict_SetItemString(d,"GRID_VALUE_NUMBER", SWIG_FromCharPtr("long")); | |
17069 | PyDict_SetItemString(d,"GRID_VALUE_FLOAT", SWIG_FromCharPtr("double")); | |
17070 | PyDict_SetItemString(d,"GRID_VALUE_CHOICE", SWIG_FromCharPtr("choice")); | |
17071 | PyDict_SetItemString(d,"GRID_VALUE_TEXT", SWIG_FromCharPtr("string")); | |
17072 | PyDict_SetItemString(d,"GRID_VALUE_LONG", SWIG_FromCharPtr("long")); | |
17073 | PyDict_SetItemString(d,"GRID_VALUE_CHOICEINT", SWIG_FromCharPtr("choiceint")); | |
17074 | PyDict_SetItemString(d,"GRID_VALUE_DATETIME", SWIG_FromCharPtr("datetime")); | |
d14a1e28 RD |
17075 | SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set); |
17076 | SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set); | |
15afbcd0 RD |
17077 | PyDict_SetItemString(d,"GridCellAttr_Any", SWIG_FromInt((int)wxGridCellAttr::Any)); |
17078 | PyDict_SetItemString(d,"GridCellAttr_Default", SWIG_FromInt((int)wxGridCellAttr::Default)); | |
17079 | PyDict_SetItemString(d,"GridCellAttr_Cell", SWIG_FromInt((int)wxGridCellAttr::Cell)); | |
17080 | PyDict_SetItemString(d,"GridCellAttr_Row", SWIG_FromInt((int)wxGridCellAttr::Row)); | |
17081 | PyDict_SetItemString(d,"GridCellAttr_Col", SWIG_FromInt((int)wxGridCellAttr::Col)); | |
17082 | PyDict_SetItemString(d,"GridCellAttr_Merged", SWIG_FromInt((int)wxGridCellAttr::Merged)); | |
17083 | PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_GET_VALUES", SWIG_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_GET_VALUES)); | |
17084 | PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_SEND_VALUES", SWIG_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES)); | |
17085 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_INSERTED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_INSERTED)); | |
17086 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_APPENDED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_APPENDED)); | |
17087 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_DELETED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_DELETED)); | |
17088 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_INSERTED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_INSERTED)); | |
17089 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_APPENDED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_APPENDED)); | |
17090 | PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_DELETED", SWIG_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_DELETED)); | |
17091 | PyDict_SetItemString(d,"Grid_wxGridSelectCells", SWIG_FromInt((int)wxGrid::wxGridSelectCells)); | |
17092 | PyDict_SetItemString(d,"Grid_wxGridSelectRows", SWIG_FromInt((int)wxGrid::wxGridSelectRows)); | |
17093 | PyDict_SetItemString(d,"Grid_wxGridSelectColumns", SWIG_FromInt((int)wxGrid::wxGridSelectColumns)); | |
d14a1e28 RD |
17094 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_CLICK)); |
17095 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_CLICK)); | |
17096 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_DCLICK)); | |
17097 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_DCLICK)); | |
17098 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_CLICK)); | |
17099 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_CLICK)); | |
17100 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_DCLICK)); | |
17101 | PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_DCLICK)); | |
17102 | PyDict_SetItemString(d, "wxEVT_GRID_ROW_SIZE", PyInt_FromLong(wxEVT_GRID_ROW_SIZE)); | |
17103 | PyDict_SetItemString(d, "wxEVT_GRID_COL_SIZE", PyInt_FromLong(wxEVT_GRID_COL_SIZE)); | |
17104 | PyDict_SetItemString(d, "wxEVT_GRID_RANGE_SELECT", PyInt_FromLong(wxEVT_GRID_RANGE_SELECT)); | |
17105 | PyDict_SetItemString(d, "wxEVT_GRID_CELL_CHANGE", PyInt_FromLong(wxEVT_GRID_CELL_CHANGE)); | |
17106 | PyDict_SetItemString(d, "wxEVT_GRID_SELECT_CELL", PyInt_FromLong(wxEVT_GRID_SELECT_CELL)); | |
17107 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_SHOWN", PyInt_FromLong(wxEVT_GRID_EDITOR_SHOWN)); | |
17108 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_HIDDEN", PyInt_FromLong(wxEVT_GRID_EDITOR_HIDDEN)); | |
17109 | PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_CREATED", PyInt_FromLong(wxEVT_GRID_EDITOR_CREATED)); | |
17110 | ||
17111 | ||
17112 | } | |
17113 |